/* Lenhof Transportrechner – alle Klassen beginnen mit lenhof-calculator-, damit das Theme nicht verändert wird. */
.lenhof-calculator {
	--lc-magenta: #D400A6;
	--lc-blue: #1E3A8A;
	--lc-line: #d6dae6;
	--lc-bg: #f6f7fb;
	box-sizing: border-box;
	max-width: 960px;
	margin: 0 auto;
	color: #1b1f2e;
	font-size: 16px;
	line-height: 1.5;
}
.lenhof-calculator *, .lenhof-calculator *::before, .lenhof-calculator *::after { box-sizing: border-box; }
.lenhof-calculator h3 { color: var(--lc-blue); margin: 0 0 12px; }
.lenhof-calculator h4 { color: var(--lc-blue); margin: 24px 0 8px; }

.lenhof-calculator-progress { display: flex; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.lenhof-calculator-progress li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 3px solid var(--lc-line); color: #5b6275; min-width: 0; }
.lenhof-calculator-progress li.is-current { border-color: var(--lc-magenta); color: var(--lc-blue); font-weight: 600; }
.lenhof-calculator-progress li.is-done { border-color: var(--lc-blue); }
.lenhof-calculator-progress-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lc-line); color: #1b1f2e; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.is-current .lenhof-calculator-progress-no { background: var(--lc-magenta); color: #fff; }
.is-done .lenhof-calculator-progress-no { background: var(--lc-blue); color: #fff; }
.lenhof-calculator-progress-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lenhof-calculator-errors:empty { display: none; }
.lenhof-calculator-errors { border: 2px solid var(--lc-magenta); background: #fff5fc; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.lenhof-calculator-errors p { margin: 0 0 4px; font-weight: 600; }
.lenhof-calculator-errors ul { margin: 0; padding-left: 20px; }

.lenhof-calculator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lenhof-calculator-wide { grid-column: 1 / -1; }
.lenhof-calculator-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lenhof-calculator-field label, .lenhof-calculator-label { font-weight: 600; font-size: 14px; }
.lenhof-calculator-field small { color: #5b6275; }
.lenhof-calculator input[type=text], .lenhof-calculator input[type=email], .lenhof-calculator input[type=tel], .lenhof-calculator input[type=number],
.lenhof-calculator input[type=date], .lenhof-calculator input[type=time], .lenhof-calculator select, .lenhof-calculator textarea {
	width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #aab1c5; border-radius: 6px; background: #fff; color: #1b1f2e; font: inherit;
}
.lenhof-calculator textarea { min-height: 80px; }
.lenhof-calculator input:focus, .lenhof-calculator select:focus, .lenhof-calculator textarea:focus, .lenhof-calculator button:focus-visible {
	outline: 3px solid var(--lc-blue); outline-offset: 1px;
}
.lenhof-calculator-station, .lenhof-calculator-pack { border: 1px solid var(--lc-line); border-radius: 8px; padding: 14px; margin: 0 0 14px; background: var(--lc-bg); min-width: 0; }
.lenhof-calculator-station legend, .lenhof-calculator-pack legend { padding: 0 8px; font-weight: 700; color: var(--lc-blue); }
.lenhof-calculator-station-tools { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.lenhof-calculator-check, .lenhof-calculator-radio { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; }
.lenhof-calculator-check input, .lenhof-calculator-radio input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.lenhof-calculator-radios { display: flex; flex-wrap: wrap; gap: 6px 18px; min-height: 44px; align-items: center; }
.lenhof-calculator-radio { margin: 0; }
.lenhof-calculator-hint, .lenhof-calculator-desc, .lenhof-calculator-dims { color: #4a5164; font-size: 14px; margin: 6px 0; }
.lenhof-calculator-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.lenhof-calculator-btn { min-height: 44px; padding: 10px 20px; border-radius: 6px; border: 2px solid var(--lc-blue); font: inherit; font-weight: 600; cursor: pointer; }
.lenhof-calculator-btn-primary { background: var(--lc-magenta); border-color: var(--lc-magenta); color: #fff; }
.lenhof-calculator-btn-primary:hover { background: #b00088; border-color: #b00088; }
.lenhof-calculator-btn-secondary { background: #fff; color: var(--lc-blue); }
.lenhof-calculator-btn-secondary:hover { background: #eef1fa; }
.lenhof-calculator-btn[disabled], .lenhof-calculator-btn-link[disabled] { opacity: .5; cursor: not-allowed; }
.lenhof-calculator-btn-link { background: none; border: 0; padding: 6px 0; color: var(--lc-blue); text-decoration: underline; font: inherit; cursor: pointer; min-height: 32px; }
.lenhof-calculator-danger { color: #a30000; border-color: #a30000; }
.lenhof-calculator-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.lenhof-calculator-nav .lenhof-calculator-btn-primary { margin-left: auto; }

.lenhof-calculator-confirm { border: 2px solid var(--lc-magenta); background: #fff; border-radius: 6px; padding: 12px; margin-top: 12px; }
.lenhof-calculator-confirm-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.lenhof-calculator-confirm select { width: auto; min-width: 180px; }

.lenhof-calculator-vehicles { display: grid; gap: 12px; margin: 14px 0; }
.lenhof-calculator-vehicle { border: 2px solid var(--lc-line); border-radius: 8px; padding: 14px; background: #fff; }
.lenhof-calculator-vehicle.is-selected, .lenhof-calculator-vehicle:has(input:checked) { border-color: var(--lc-magenta); background: #fff5fc; }
.lenhof-calculator-vehicle-head { display: flex; align-items: center; gap: 10px; }
.lenhof-calculator-vehicle-head input { width: 20px; height: 20px; flex: none; }
.lenhof-calculator-vehicle img { max-width: 100%; height: auto; max-height: 160px; border-radius: 6px; margin-top: 8px; }
.lenhof-calculator-price { font-size: 18px; margin: 8px 0; }
.lenhof-calculator-price strong { color: var(--lc-magenta); font-size: 24px; }
.lenhof-calculator-net { color: #4a5164; font-size: 14px; }
.lenhof-calculator-lines { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.lenhof-calculator-lines td { padding: 4px 0; border-bottom: 1px solid var(--lc-line); }
.lenhof-calculator-amount { text-align: right; white-space: nowrap; padding-left: 12px !important; }
.lenhof-calculator-sum td { font-weight: 700; }
.lenhof-calculator-details summary { cursor: pointer; color: var(--lc-blue); font-size: 14px; }
.lenhof-calculator-route, .lenhof-calculator-message { background: var(--lc-bg); border-left: 4px solid var(--lc-blue); padding: 8px 12px; margin: 8px 0; }
.lenhof-calculator-manualkm { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0; }
.lenhof-calculator-summary { background: var(--lc-bg); border-radius: 8px; padding: 12px 16px; }
.lenhof-calculator-summary ul { margin: 4px 0 10px; padding-left: 20px; }
.lenhof-calculator-done { border: 2px solid var(--lc-blue); background: #f2f5ff; border-radius: 8px; padding: 20px; }
.lenhof-calculator-note { background: var(--lc-bg); padding: 12px; border-radius: 6px; }

@media (max-width: 640px) {
	.lenhof-calculator-grid { grid-template-columns: minmax(0, 1fr); }
	.lenhof-calculator-progress-label { display: none; }
	.lenhof-calculator-progress li.is-current .lenhof-calculator-progress-label { display: inline; }
	.lenhof-calculator-progress li.is-current { flex: 3; }
	.lenhof-calculator-nav { flex-direction: column-reverse; }
	.lenhof-calculator-nav .lenhof-calculator-btn { width: 100%; }
	.lenhof-calculator-confirm select { width: 100%; }
}
