/* Greenway Umzugsrechner – original stylesheet (no Bootstrap).
 *
 * Farben laufen ausnahmslos über die Tokens unten. Der Dunkelmodus tauscht nur
 * diese Tokens aus – wer eine Farbe direkt in eine Regel schreibt, bricht ihn.
 * Die beiden Dunkel-Blöcke (Systemeinstellung + manuelle Wahl) müssen synchron
 * bleiben. */

:root {
    color-scheme: light;

    /* Marke */
    --primary: #14663d;
    --primary-dark: #0f4f2f;
    --accent: #2fa968;
    --accent-hover: #268a55;
    --on-accent: #ffffff;                       /* Text auf grüner Fläche */
    --on-accent-veil: rgba(255, 255, 255, .25);
    --accent-glow: rgba(47, 169, 104, .28);
    --teal: #0d9488;

    /* Flächen */
    --bg: #f5f8f6;
    --card: #ffffff;
    --surface: #ffffff;                         /* Eingaben, innere Kästen */
    --surface-sunken: #fbfdfc;
    --surface-hover: #f2f5f3;
    --dot-bg: #e7ede9;
    --map-bg: #eef2ef;
    --veil: rgba(245, 248, 246, .88);
    --icon-tile: #ffffff;                       /* Kachel hinter den Möbel-PNGs */
    --icon-dim: none;

    /* Marken-Tints */
    --tint: #e7f4ec;
    --tint-soft: #f2faf5;
    --tint-strong: #eef6f1;
    --tint-teal: #e6f6f4;
    --tint-border: #cbe6d5;
    --tint-gradient: linear-gradient(135deg, #f1f9f4, #eaf5ee);

    /* Text & Linien */
    --text: #17251d;
    --text-muted: #64756b;
    --border: #e2ebe5;
    --border-strong: #cbd8cf;
    --ring: rgba(47, 169, 104, 0.25);
    --shadow: 0 1px 2px rgba(16, 40, 28, .04), 0 8px 24px rgba(16, 40, 28, .06);
    --shadow-hover: 0 8px 24px rgba(15, 79, 47, .08);

    /* Status */
    --danger: #c0392b;
    --danger-bg: #fdecea;
    --danger-border: #f5c6cb;
    --danger-text: #a12622;
    --warn-bg: #fdeede;
    --warn-text: #c8791c;

    /* Festpreis-Kachel – Schrift bleibt in beiden Themes weiß, der Verlauf
       trägt sie. */
    --price-gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --price-text: #ffffff;
    --price-fade: .85;                          /* Deckkraft für Label/Fußnote */
    --price-glow: none;
    --price-edge: transparent;

    /* Footer */
    --footer-bg: #0f4f2f;
    --footer-text: #cfe3d7;
    --footer-link: #eaf5ee;

    --radius: 14px;
    --radius-sm: 10px;
}

/* Dunkelmodus – Nachtgrün statt Neutralschwarz: die Flächen tragen selbst den
 * Markenton, das Grün ist Atmosphäre und nicht bloß ein Neonakzent. Grüne
 * Flächen kehren sich um (helles Grün, dunkle Schrift), damit Kontraste auf
 * dunklem Grund halten. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --primary: #3fbf7d;
        --primary-dark: #7fdca8;
        --accent: #4ecb87;
        --accent-hover: #6ad79b;
        --on-accent: #06150e;
        --on-accent-veil: rgba(6, 21, 14, .18);
        --accent-glow: rgba(78, 203, 135, .22);
        --teal: #4fd1c5;

        --bg: #0a1410;
        --card: #101c16;
        --surface: #16241d;
        --surface-sunken: #131f19;
        --surface-hover: #1d2e25;
        --dot-bg: #1e2f26;
        --map-bg: #16241d;
        --veil: rgba(10, 20, 16, .86);
        --icon-tile: #e6ece7;
        --icon-dim: brightness(.92);

        --tint: #16332a;
        --tint-soft: #14291f;
        --tint-strong: #16332a;
        --tint-teal: #12302e;
        --tint-border: #27543c;
        --tint-gradient: linear-gradient(135deg, #16332a, #112620);

        --text: #e7f0ea;
        --text-muted: #9bb0a4;
        --border: #22352b;
        --border-strong: #527866;
        --ring: rgba(78, 203, 135, .3);
        --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .45);
        --shadow-hover: 0 10px 30px rgba(0, 0, 0, .5);

        --danger: #ff8f80;
        --danger-bg: #2a1512;
        --danger-border: #5a2a24;
        --danger-text: #ffb4a8;
        --warn-bg: #2b1d0e;
        --warn-text: #f0b463;

        --price-gradient: linear-gradient(140deg, #0c4c30, #1c8250);
        --price-fade: 1;
        --price-fade: 1;
    --price-glow: 0 20px 50px -14px rgba(47, 169, 104, .55);
        --price-edge: rgba(190, 255, 215, .22);

        --footer-bg: #08120d;
        --footer-text: #9db3a6;
        --footer-link: #cfe8da;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --primary: #3fbf7d;
    --primary-dark: #7fdca8;
    --accent: #4ecb87;
    --accent-hover: #6ad79b;
    --on-accent: #06150e;
    --on-accent-veil: rgba(6, 21, 14, .18);
    --accent-glow: rgba(78, 203, 135, .22);
    --teal: #4fd1c5;

    --bg: #0a1410;
    --card: #101c16;
    --surface: #16241d;
    --surface-sunken: #131f19;
    --surface-hover: #1d2e25;
    --dot-bg: #1e2f26;
    --map-bg: #16241d;
    --veil: rgba(10, 20, 16, .86);
    --icon-tile: #e6ece7;
    --icon-dim: brightness(.92);

    --tint: #16332a;
    --tint-soft: #14291f;
    --tint-strong: #16332a;
    --tint-teal: #12302e;
    --tint-border: #27543c;
    --tint-gradient: linear-gradient(135deg, #16332a, #112620);

    --text: #e7f0ea;
    --text-muted: #9bb0a4;
    --border: #22352b;
    --border-strong: #527866;
    --ring: rgba(78, 203, 135, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, .5);

    --danger: #ff8f80;
    --danger-bg: #2a1512;
    --danger-border: #5a2a24;
    --danger-text: #ffb4a8;
    --warn-bg: #2b1d0e;
    --warn-text: #f0b463;

    --price-gradient: linear-gradient(140deg, #0c4c30, #1c8250);
    --price-fade: 1;
    --price-glow: 0 20px 50px -14px rgba(47, 169, 104, .55);
    --price-edge: rgba(190, 255, 215, .22);

    --footer-bg: #08120d;
    --footer-text: #9db3a6;
    --footer-link: #cfe8da;
}

* { box-sizing: border-box; }

.is-hidden { display: none !important; }

.form-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: .9rem;
    font-weight: 500;
}

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}
.site-header .logo { display: flex; align-items: center; gap: 10px; }
.site-header .logo img { height: 34px; width: auto; }
/* Die Wortmarke ist dunkelgrün und verschwindet auf dunklem Grund – dafür gibt
 * es eine aufgehellte Variante. Beide liegen im Markup, damit der Wechsel auch
 * ohne JavaScript sitzt. */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light { display: none; }
    :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.site-header .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}
.site-header .header-phone svg { width: 18px; height: 18px; }

/* Hero */
.hero { text-align: center; padding: 40px 0 8px; }
.hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; color: var(--primary-dark); letter-spacing: -.02em; }
.hero p { margin: 0 auto; max-width: 620px; color: var(--text-muted); }
.hero .badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--tint); color: var(--primary);
    font-size: .8rem; font-weight: 600;
    padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* Stepper */
.stepper { display: flex; gap: 6px; margin: 26px 0 22px; }
.stepper .step { flex: 1; text-align: center; position: relative; }
.stepper .dot {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px; font-size: .85rem; font-weight: 700;
    background: var(--dot-bg); color: var(--text-muted);
    border: 2px solid transparent; transition: .2s;
}
.stepper .label { font-size: .74rem; color: var(--text-muted); font-weight: 500; }
.stepper .step.active .dot { background: var(--accent); color: var(--on-accent); }
.stepper .step.done .dot { background: var(--primary); color: var(--on-accent); }
.stepper .step.active .label,
.stepper .step.done .label { color: var(--text); }
.stepper .bar { position: absolute; top: 15px; left: 55%; right: -45%; height: 2px; background: var(--border); }
.stepper .step.done .bar { background: var(--primary); }
.stepper .step:last-child .bar { display: none; }

/* Schritt-Fortschritt ("Schritt X von 5" + Restdauer) – prominente Pille */
.step-progress { text-align: center; margin: 24px 0 0; }
.step-progress + .stepper { margin-top: 16px; }
.step-progress-pill {
    display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 4px 8px; max-width: 100%;
    background: var(--accent); color: var(--on-accent);
    font-size: 1rem; font-weight: 600;
    padding: 9px 20px; border-radius: 999px;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.step-progress-pill svg { width: 17px; height: 17px; flex-shrink: 0; }
.step-progress-time { font-weight: 500; }

/* Card */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    margin-bottom: 20px;
}
.card > h2 { margin: 0 0 4px; font-size: 1.25rem; color: var(--primary-dark); }
.card > .card-sub { margin: 0 0 20px; color: var(--text-muted); font-size: .92rem; }

.section-title {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--primary-dark);
    margin: 22px 0 12px; font-size: 1rem;
}
.section-title svg { width: 18px; height: 18px; color: var(--accent); }
.section-title:first-child { margin-top: 0; }

/* Grid + fields */
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 600; color: var(--text); }
.hint { font-size: .76rem; color: var(--text-muted); }

input[type="text"], input[type="number"], input[type="email"], input[type="tel"],
input[type="date"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--ring);
}
textarea { resize: vertical; min-height: 90px; }

/* Checkbox / radio inline */
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Choice chips (radio group) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
    position: relative; cursor: pointer;
    padding: 9px 16px; border: 1px solid var(--border-strong);
    border-radius: 999px; font-size: .88rem; font-weight: 500;
    background: var(--surface); transition: .15s;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice.selected, .choice:has(input:checked) {
    border-color: var(--accent); background: var(--tint); color: var(--primary-dark);
}

/* Divider address block */
.address-block {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 16px;
    background: var(--surface-sunken);
}
.address-block > h3 { margin: 0 0 14px; font-size: .95rem; color: var(--primary-dark); }
.link-btn {
    background: none; border: none; color: var(--accent);
    font: inherit; font-weight: 600; cursor: pointer; padding: 0;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); display: inline-flex; align-items: center; gap: 4px; }

/* Google-Maps-Einwilligung */
.maps-consent {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px; margin-bottom: 16px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface-sunken);
}
.maps-consent-text { flex: 1; font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.maps-consent .btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 520px) {
    .maps-consent { flex-direction: column; align-items: stretch; }
}
.maps-withdraw { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.maps-withdraw:hover { color: var(--accent); }

/* Distance banner */
.banner {
    display: flex; align-items: center; gap: 12px;
    background: var(--tint-strong); border: 1px solid var(--tint-border);
    border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 8px;
}
.banner svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.banner .b-title { font-weight: 600; color: var(--primary-dark); }
.banner .b-text { font-size: .84rem; color: var(--text-muted); }
.banner .b-distance { font-size: 1.4rem; font-weight: 800; color: var(--primary); white-space: nowrap; }

/* Route map */
.route-map-wrap { position: relative; margin-top: 14px; }
.route-map {
    height: 280px; width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    overflow: hidden;
    background: var(--map-bg);
}
.route-map-status {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 12px;
    font-size: .88rem; color: var(--text-muted);
    background: var(--veil);
    border-radius: var(--radius-sm);
    pointer-events: none;
}

/* Inventory */
.room-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.room-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px 6px 8px; border: 1px solid var(--border-strong);
    border-radius: 999px; background: var(--surface); cursor: pointer;
    font-size: .85rem; font-weight: 500; color: var(--text);
}
.room-tab-icon {
    width: 26px; height: 26px; object-fit: contain;
    background: var(--icon-tile); border-radius: 50%; padding: 3px; flex-shrink: 0;
    filter: var(--icon-dim);
}
.room-tab.active .room-tab-icon { background: var(--on-accent-veil); }
.room-tab.active { background: var(--primary); border-color: var(--primary); color: var(--on-accent); }
.room-tab .count {
    display: inline-block; margin-left: 6px; background: var(--accent);
    color: var(--on-accent); border-radius: 999px; font-size: .7rem; padding: 0 6px; font-weight: 700;
}
.room-panel { display: none; }
.room-panel.active,
.room-panel.search-show {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}
.room-panel-label { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .room-panel.active, .room-panel.search-show { grid-template-columns: 1fr; }
}

/* Inventory running summary (volume / pieces / cartons) */
.inv-summary {
    margin-top: 20px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); overflow: hidden;
}
.inv-summary-main {
    text-align: center; padding: 20px 16px;
    background: var(--tint-gradient);
}
.inv-summary-vol { font-size: 2.1rem; font-weight: 800; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.inv-summary-label { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }
.inv-summary-pieces { font-size: .9rem; color: var(--text); margin-top: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-summary-kartons { padding: 14px 18px; border-top: 1px solid var(--border); }
.inv-summary-kartons-title { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.inv-summary-kartons ul { list-style: none; margin: 0; padding: 0; }
.inv-summary-kartons li { display: flex; justify-content: space-between; font-size: .86rem; color: var(--text-muted); padding: 3px 0; }
.inv-summary-kartons li .k-val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* Umzugskartons & Kleiderboxen box */
.material-box {
    margin-top: 20px; padding: 20px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface-sunken);
}
.material-title {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 4px; font-size: 1.05rem; color: var(--primary-dark);
}
.material-title svg { width: 20px; height: 20px; color: var(--accent); }
.material-sub { margin: 0 0 16px; font-size: .84rem; color: var(--text-muted); }
.material-note {
    background: var(--tint); border: 1px solid var(--tint-border); color: var(--primary-dark);
    border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-size: .86rem;
}
.material-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px;
}
.material-card-title { font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.material-input { display: flex; align-items: center; gap: 10px; }
.material-input input { max-width: 130px; }
.material-input .unit { font-size: .84rem; color: var(--text-muted); }
.material-included { color: var(--primary); font-weight: 600; font-size: .88rem; padding: 6px 0; }
.material-hint { margin: 8px 0 0; font-size: .76rem; color: var(--text-muted); }
.material-hint.accent { color: var(--accent); font-weight: 500; }

/* Inventory two-column layout: furniture left, summary right */
.inv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.inv-main { min-width: 0; }
.inv-side { position: sticky; top: 84px; min-width: 0; }
.inv-side .inv-summary { margin-top: 0; }
.kleiderbox-top { margin-top: 0; margin-bottom: 20px; }
@media (max-width: 860px) {
    .inv-layout { grid-template-columns: 1fr; }
    .inv-side { position: static; }
}

/* Inventory search */
.inv-search { position: relative; margin-bottom: 16px; }
.inv-search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--text-muted); pointer-events: none;
}
.inv-search input[type="search"] {
    width: 100%; height: 44px; padding: 0 14px 0 40px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font: inherit; background: var(--surface);
}
.inv-search input[type="search"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); outline: none; }
.inv-no-results { color: var(--text-muted); font-size: .9rem; padding: 8px 2px; }

/* Category icons + search room headings */
.room-panel-label { display: none; font-weight: 700; color: var(--primary-dark); margin: 14px 0 4px; }
.room-panel.search-show .room-panel-label { display: block; }
.item-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.item-main > div { min-width: 0; }
.item-name { overflow-wrap: anywhere; }
.item-row .stepper-input { flex-shrink: 0; }
/* Die Möbelbilder sind schwarze Strichzeichnungen auf deckendem Weiß. Ihre
 * Kachel bleibt deshalb auch nachts hell – nur leicht heruntergedimmt, damit
 * die 46 Pixel nicht ins dunkle Layout leuchten. */
.item-icon {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 9px;
    background: var(--icon-tile); border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem; line-height: 1; overflow: hidden;
    filter: var(--icon-dim);
}
.item-icon img.item-img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }

.item-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface);
}
.item-row .item-name { font-size: .9rem; }
.item-row .item-vol { font-size: .74rem; color: var(--text-muted); }

.stepper-input { display: inline-flex; align-items: center; gap: 0; }
.stepper-input button {
    width: 32px; height: 32px; border: 1px solid var(--border-strong);
    background: var(--surface); cursor: pointer; font-size: 1.1rem; line-height: 1;
    color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.stepper-input button:first-child { border-radius: 8px 0 0 8px; }
.stepper-input button:last-child { border-radius: 0 8px 8px 0; }
.stepper-input input {
    width: 46px; height: 32px; text-align: center; border-radius: 0;
    border-left: none; border-right: none; padding: 0;
    -moz-appearance: textfield;
}
.stepper-input input::-webkit-outer-spin-button,
.stepper-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stepper-row { display: flex; align-items: center; gap: 8px; }

/* Demontage / Montage furniture picker (step 3) */
.service-picker { margin: 4px 0 10px; }
.service-picker-grid { display: grid; gap: 8px; margin-top: 6px; }
.service-picker .item-row { padding: 8px 10px; }
.service-picker .item-icon { width: 40px; height: 40px; }
.service-picker .picker-meter { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Volume summary bar */
.volume-bar {
    position: sticky; bottom: 0;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--primary); color: var(--on-accent);
    padding: 12px 18px; border-radius: var(--radius-sm); margin-top: 16px;
}
.volume-bar .vb-value { font-size: 1.3rem; font-weight: 700; }
.volume-bar .vb-label { font-size: .78rem; opacity: .85; }

/* Service list */
.service-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 10px; cursor: pointer;
}
.service-item:has(input:checked) { border-color: var(--accent); background: var(--tint-soft); }
.service-item input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.service-item .s-title { font-weight: 600; }
.service-item .s-desc { font-size: .82rem; color: var(--text-muted); }

/* Zusatzservices two-column grid */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }
.service-box {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; background: var(--surface);
}
.service-box-title {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 8px; font-size: 1rem; color: var(--primary-dark);
}
.service-box-title svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.service-box-hint { font-size: .78rem; color: var(--text-muted); margin: 0 0 10px; }
.service-box-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.service-check {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; padding: 8px 0;
}
.service-check.start { align-items: flex-start; }
.service-check input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.service-check span { font-size: .9rem; font-weight: 500; }
.service-check p { margin: 3px 0 0; font-size: .78rem; color: var(--text-muted); line-height: 1.4; }
.service-date { max-width: 220px; }

/* Summary */
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.summary-row:last-child { border-bottom: none; }
.summary-row .k { color: var(--text-muted); }
.summary-row .v { font-weight: 600; text-align: right; }
.summary-edit { float: right; }

/* Der Festpreis ist das, weswegen die Leute den Rechner ausfüllen – im
 * Dunkelmodus ist er das einzige beleuchtete Objekt der Seite: Grünverlauf mit
 * Schimmer an der Oberkante und weichem Schein darunter. Der Verlauf bleibt
 * dafür tief genug, dass die weiße Schrift durchgehend lesbar ist. */
.price-box {
    position: relative;
    text-align: center; background: var(--price-gradient);
    color: var(--price-text); border-radius: var(--radius); padding: 24px; margin: 20px 0;
    box-shadow: var(--price-glow);
}
.price-box::before {
    content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px;
    background: var(--price-edge);
}
.price-box .p-label { font-size: .82rem; opacity: var(--price-fade); }
.price-box .p-value { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.price-box .p-note { font-size: .78rem; opacity: var(--price-fade); margin-top: 4px; }

/* Adressen & Route (Zusammenfassung) */
.route-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-sunken);
    padding: 20px;
    margin-top: 18px;
}
.route-box-title { margin: 0 0 16px; font-size: 1rem; color: var(--primary-dark); }
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.route-col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.route-tag {
    display: inline-block; margin-bottom: 10px;
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 2px 10px; border-radius: 999px;
}
.route-tag--from { background: var(--tint); color: var(--primary-dark); }
.route-tag--to { background: var(--tint-teal); color: var(--teal); }
.route-addr { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.route-addr .route-street { font-weight: 700; }
.route-meta {
    margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--border);
    font-size: .82rem; color: var(--text-muted);
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.route-meta .route-sep { color: var(--border-strong); }
.route-footer {
    display: flex; flex-wrap: wrap; gap: 12px 32px;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.route-fact { display: flex; flex-direction: column; gap: 2px; }
.route-fact-k { font-size: .78rem; color: var(--text-muted); }
.route-fact-v { font-weight: 700; }
@media (max-width: 640px) { .route-grid { grid-template-columns: 1fr; } }

/* Inventar-Positionen */
.inventory-list { list-style: none; margin: 0; padding: 0; }
.inventory-line {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem;
}
.inventory-line:last-child { border-bottom: none; }
.inventory-vol { font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.inventory-empty { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* Services & Material */
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
    position: relative; padding: 6px 0 6px 24px; font-size: .9rem;
    border-bottom: 1px solid var(--border);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
    content: "✓"; position: absolute; left: 0; top: 6px;
    color: var(--accent); font-weight: 700;
}
.services-sub {
    margin: 16px 0 4px; font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
}

/* Buttons + nav */
.actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-sm); font: inherit; font-weight: 600;
    cursor: pointer; border: 1px solid transparent; transition: .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-hover); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Footer */
.site-footer {
    background: var(--footer-bg); color: var(--footer-text);
    margin-top: 48px; padding: 32px 0;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer img { height: 30px; }
.site-footer a { color: var(--footer-link); }
.site-footer .f-contact { font-size: .9rem; line-height: 1.8; }

/* Success */
.success-wrap { text-align: center; padding: 40px 0; }
.success-icon {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--tint); color: var(--primary);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.success-icon svg { width: 40px; height: 40px; }

.error-icon {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--warn-bg); color: var(--warn-text);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.error-icon svg { width: 40px; height: 40px; }
.error-code { margin: 4px 0 22px; font-size: .8rem; color: var(--text-muted); letter-spacing: .04em; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Google Places autocomplete dropdown */
.pac-container {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    margin-top: 4px;
    font-family: inherit;
    background: var(--surface);
    z-index: 40;
}
.pac-item {
    padding: 9px 12px;
    cursor: pointer;
    border-top: 1px solid var(--border);
    font-size: .88rem;
    color: var(--text);
}
.pac-item:first-child { border-top: none; }
.pac-item:hover,
.pac-item-selected { background: var(--tint); }
.pac-item-query { font-size: .9rem; color: var(--text); }
.pac-matched { font-weight: 600; }

/* Landing / Marketing-Seite */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 28px 0 8px;
}
.usp-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.usp-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}
.usp-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--tint); color: var(--accent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.usp-icon svg { width: 30px; height: 30px; }
.usp-text { font-weight: 700; color: var(--primary-dark); font-size: 1rem; line-height: 1.35; }
.landing-cta { text-align: center; margin: 34px 0 10px; }
.landing-cta-hint { margin: 12px 0 0; font-size: .84rem; color: var(--text-muted); }

/* Design-Umschalter im Header */
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0;
    border: 1px solid var(--border-strong); border-radius: 50%;
    background: var(--surface); color: var(--primary);
    cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Kurzer Übergang nur im Moment des Umschaltens – kein Dauer-Transition auf
 * allen Elementen, das würde jede Interaktion weich und träge machen. */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
    transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease !important;
}
@media (prefers-reduced-motion: reduce) {
    .theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
        transition: none !important;
    }
    .usp-card { transition: none; }
}

@media (max-width: 720px) {
    .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
    .stepper .label { display: none; }
    .site-header .header-phone span { display: none; }
}
