/* ===========================================================================
   postleitzahlenkarte-deutschland.de · p17 GmbH
   Corporate Design: Premium-Gold + Geschäftsbereich Landkarten
   Schriften: Oswald (Texte/Überschriften) · Caveat (Buttons)
   =========================================================================== */

:root {
    /* Premium-Gold (Leitfarbe der Marke) */
    --gold:        #C6A75C;
    --gold-light:  #D8BF86;
    --gold-dark:   #9E8444;
    --gold-deep:   #6B5D37;
    --gold-soft:   #f3ecdc;   /* sehr heller Goldton für Flächen */

    /* Landkarten (Akzent) */
    --geo:         #5479BB;
    --geo-light:   #7fa0d1;
    --geo-dark:    #3f5b8f;
    --geo-comp:    #BB9654;   /* Komplementär (gold-braun) */

    /* Basis / Neutraltöne */
    --ink:     #191919;
    --ink-2:   #323232;
    --gray:    #595959;
    --gray-2:  #737373;
    --line:    #e6e1d6;
    --bg:      #ffffff;
    --surface: #ffffff;

    --radius: 12px;
    --radius-sm: 7px;
    --shadow: 0 2px 12px rgba(107,93,55,.10);
    --shadow-lg: 0 14px 36px rgba(25,25,25,.16);
    --maxw: 1280px;
    --topbar-h: 40px;
    --nav-h: 72px;

    --f-body: "Oswald", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --f-hand: "Caveat", "Segoe UI", cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
    font-family: var(--f-body);
    font-weight: 300;
    color: var(--ink-2);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    letter-spacing: .15px;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; color: var(--ink); letter-spacing: .3px; }

/* ----------------------------- Buttons (Caveat) ----------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--f-hand); font-weight: 700; font-size: 1.35rem; line-height: 1;
    cursor: pointer; padding: 10px 26px 8px; border-radius: var(--radius-sm);
    border: 2px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .05s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--gold-dark); color: #fff; }
.btn-accent  { background: var(--geo); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--geo-dark); color: #fff; }
.btn-ghost   { background: #fff; color: var(--gold-deep); border-color: var(--gold); }
.btn-ghost:hover:not(:disabled) { background: var(--gold-soft); color: var(--gold-deep); }
.btn-block { width: 100%; }

/* ----------------------------- Header / Nav ----------------------------- */

.site-header { position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }

.topbar {
    background: var(--gold-dark); color: #fff8ec;
    font-size: .82rem; letter-spacing: .4px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between;
    min-height: var(--topbar-h); gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-left  { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 18px; flex-wrap: wrap; }

.navbar { background: #fff; }
.navbar .container { display: flex; align-items: center; justify-content: space-between;
    min-height: var(--nav-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; border-radius: 8px; box-shadow: 0 2px 8px rgba(167,50,61,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-weight: 600; font-size: 1.15rem; color: var(--ink); text-transform: uppercase;
    letter-spacing: .5px; }
.brand-sub   { font-size: .72rem; color: var(--gold-dark); text-transform: uppercase;
    letter-spacing: 1.6px; font-weight: 400; }

.site-nav { display: flex; gap: 6px; align-items: center; }
.nav-link {
    color: var(--ink-2); font-size: 1rem; font-weight: 400; text-transform: uppercase;
    letter-spacing: .6px; padding: 10px 16px; border-radius: var(--radius-sm);
    transition: background .15s, color .15s; white-space: nowrap;
}
.nav-link:hover { background: var(--gold-soft); color: var(--gold-deep); text-decoration: none; }
.nav-link.is-active { color: #fff; background: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    cursor: pointer; padding: 10px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--gold-dark); display: block; border-radius: 3px;
    transition: transform .2s, opacity .2s; }

/* ----------------------------- Footer ----------------------------- */

.site-footer { background: var(--gold-soft); color: var(--ink-2); margin-top: 56px;
    border-top: 4px solid var(--gold); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
    padding: 44px 24px; }
.footer-col { min-width: 240px; }
.footer-contact { display: flex; gap: 16px; }
.footer-logo { border-radius: 8px; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(167,50,61,.25); }
.footer-address { display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.footer-address strong { color: var(--ink); font-size: 1.1rem; font-weight: 600; margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: .5px; }
.footer-address a { color: var(--geo-dark); }

.footer-heading { color: var(--gold-deep); font-size: .92rem; text-transform: uppercase;
    letter-spacing: 1.6px; font-weight: 600; margin: 0 0 14px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--ink-2); font-size: .95rem; }
.footer-links a:hover { color: var(--gold-deep); }

.footer-bottom { border-top: 1px solid var(--gold-light); font-size: .85rem; color: var(--gold-deep); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding-top: 16px; padding-bottom: 16px; }

/* ----------------------------- Cookie-Banner ----------------------------- */

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: #fff; border-top: 4px solid var(--gold); box-shadow: 0 -8px 28px rgba(0,0,0,.18); }
.cookie-inner { display: flex; align-items: center; gap: 24px; padding: 18px 24px; flex-wrap: wrap; }
.cookie-text { margin: 0; font-size: .92rem; color: var(--ink-2); flex: 1 1 420px; }
.cookie-actions { display: flex; gap: 12px; flex: 0 0 auto; }

/* ----------------------------- Inhalts-Seiten ----------------------------- */

.content-page { padding: 52px 24px; max-width: 900px; }
.content-page h1 { font-size: 2.4rem; margin: 0 0 10px; color: var(--gold-deep); }
.content-page h1 + .lead { color: var(--gray); font-size: 1.2rem; font-weight: 300; margin-bottom: 30px; }
.content-page h2 { font-size: 1.55rem; margin: 40px 0 12px; padding-bottom: 8px; color: var(--gold-dark);
    border-bottom: 2px solid var(--gold-light); }
.content-page h3 { font-size: 1.2rem; margin: 26px 0 8px; color: var(--ink); }
.content-page p, .content-page li { color: var(--ink-2); }
.content-page ul { padding-left: 22px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px;
    margin: 30px 0; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold);
    border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; color: var(--gold-dark); }

.cta-box { background: var(--gold); color: #fff; border-radius: var(--radius); padding: 30px;
    margin: 36px 0; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center;
    justify-content: space-between; box-shadow: var(--shadow); }
.cta-box h2 { color: #fff; border: 0; margin: 0; }
.cta-box p { color: #fff8ec; margin: 4px 0 0; }
.cta-box .btn-accent { background: var(--geo); }
.cta-box .btn-accent:hover { background: var(--geo-dark); }

/* ============================ ANWENDUNG ============================ */

.page-app .site-main { padding: 0; }

.app { display: grid; grid-template-columns: 420px 1fr; gap: 0; align-items: stretch;
    min-height: calc(100vh - var(--topbar-h) - var(--nav-h)); }

.app-panel { background: #fff; border-right: 1px solid var(--line); padding: 26px;
    overflow-y: auto; max-height: calc(100vh - var(--topbar-h) - var(--nav-h)); }
.app-title { font-size: 1.7rem; margin: 0 0 8px; color: var(--gold-deep); }
.app-intro { font-size: .96rem; color: var(--gray); margin: 0 0 24px; }

.ctl { margin-bottom: 24px; }
.ctl-label { display: block; font-size: .82rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 1px; color: var(--gold-deep); margin-bottom: 9px; }
.ctl-hint { font-size: .86rem; color: var(--gray); margin: 0 0 9px; font-weight: 300; }
.ctl-hint code { background: var(--gold-soft); padding: 1px 6px; border-radius: 4px; font-size: .9em;
    color: var(--gold-deep); }
.ctl-actions { border-top: 1px solid var(--line); padding-top: 20px; display: flex;
    flex-direction: column; gap: 12px; }

.seg { display: inline-flex; background: var(--gold-soft); border: 1px solid var(--gold-light);
    border-radius: var(--radius-sm); padding: 4px; gap: 4px; width: 100%; }
.seg-btn { flex: 1; border: 0; background: transparent; color: var(--gold-deep); cursor: pointer;
    font-family: var(--f-body); font-size: .92rem; font-weight: 400; text-transform: uppercase;
    letter-spacing: .4px; padding: 9px 6px; border-radius: 5px; transition: background .15s, color .15s; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active { background: var(--gold); color: #fff; }
.seg-small { max-width: 200px; }
.seg-small .seg-btn { padding: 7px; }

.select, .textarea, .color-input, .text-input {
    width: 100%; font-family: var(--f-body); font-weight: 300; font-size: .95rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 11px;
    background: #fff; color: var(--ink); }
.select:focus, .textarea:focus, .text-input:focus { outline: 2px solid var(--gold-light);
    border-color: var(--gold); }
.textarea { resize: vertical; margin-bottom: 10px; }
.color-input { height: 44px; padding: 4px; cursor: pointer; }
#numeric-options .ctl-label { margin-top: 16px; }
#numeric-options .ctl-label:first-child { margin-top: 0; }

.table-wrap > summary { cursor: pointer; font-weight: 400; color: var(--gold-dark);
    text-transform: uppercase; letter-spacing: .5px; padding: 8px 0; font-size: .9rem; }
.plz-table-scroll { max-height: 320px; overflow-y: auto; border: 1px solid var(--line);
    border-radius: var(--radius-sm); margin-top: 8px; }
.plz-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.plz-table th { position: sticky; top: 0; background: var(--gold-soft); text-align: left;
    padding: 9px 10px; font-size: .74rem; text-transform: uppercase; letter-spacing: .6px;
    color: var(--gold-deep); font-weight: 500; border-bottom: 1px solid var(--gold-light); }
.plz-table td { padding: 4px 8px; border-bottom: 1px solid var(--gold-soft); }
.plz-table tr:hover td { background: var(--gold-soft); }
.plz-table .pcode { font-weight: 500; color: var(--geo); width: 46px; }
.plz-table input { width: 100%; border: 1px solid transparent; background: transparent;
    font-family: var(--f-body); font-weight: 300; font-size: .9rem; padding: 4px 6px; border-radius: 4px; }
.plz-table input:hover { border-color: var(--line); }
.plz-table input:focus { outline: 0; border-color: var(--gold); background: #fff; }

.export-group { display: flex; gap: 12px; }
.export-group .btn { flex: 1; }
.export-hint { font-size: .82rem; color: var(--gray); margin: 0; font-weight: 300; }

/* ----------------------------- Karte ----------------------------- */

.app-map { display: flex; flex-direction: column; background: var(--gold-soft); }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.check { font-size: .92rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; }
.check input { accent-color: var(--gold); }
.map-status { font-size: .85rem; color: var(--gold-deep); }

.map-stage { position: relative; flex: 1; padding: 18px; display: flex; min-height: 480px; }
.map-svg-host { flex: 1; display: flex; align-items: center; justify-content: center; }
.map-svg-host svg { width: 100%; height: 100%;
    max-height: calc(100vh - var(--topbar-h) - var(--nav-h) - 130px); }

.plz-shape { stroke: #ffffff; stroke-width: .5; cursor: pointer;
    transition: fill .12s, stroke .12s; }
.plz-shape:hover { stroke: var(--ink); stroke-width: 1.2; }
.plz-label { font: 600 9px var(--f-body); fill: #2c2c2c; pointer-events: none; text-anchor: middle; }

.legend { position: absolute; top: 30px; right: 30px; background: rgba(255,255,255,.97);
    border: 1px solid var(--gold-light); border-top: 4px solid var(--gold); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 15px 17px; max-width: 270px; max-height: 70%; overflow-y: auto; }
.legend-title { font-weight: 500; font-size: .84rem; text-transform: uppercase; letter-spacing: .8px;
    color: var(--gold-deep); margin-bottom: 11px; }
.legend-items { display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.legend-swatch { width: 18px; height: 18px; border-radius: 4px; flex: 0 0 auto;
    border: 1px solid rgba(0,0,0,.15); }
.legend-item input[type=color] { width: 24px; height: 24px; padding: 0; border: 0; background: none;
    cursor: pointer; flex: 0 0 auto; }

.map-tooltip { position: absolute; pointer-events: none; background: var(--ink); color: #fff;
    padding: 8px 12px; border-radius: 7px; font-size: .86rem; box-shadow: var(--shadow-lg);
    z-index: 5; max-width: 240px; transform: translate(-50%, -125%); }
.map-tooltip b { color: var(--gold-light); }

.map-credit { position: absolute; left: 18px; right: 18px; bottom: 18px; font-size: .74rem;
    color: var(--gold-deep); background: rgba(255,255,255,.88); padding: 7px 11px; border-radius: 7px;
    line-height: 1.4; pointer-events: none; font-weight: 300; }

/* ----------------------------- Modal (E-Mail-Gate) ----------------------------- */

.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(25,25,25,.55);
    display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.modal { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--gold); max-width: 480px; width: 100%; padding: 30px;
    max-height: 90vh; overflow-y: auto; }
.modal h2 { color: var(--gold-deep); font-size: 1.5rem; margin: 0 0 6px; }
.modal p { font-size: .95rem; color: var(--ink-2); margin: 0 0 18px; font-weight: 300; }
.modal label { display: block; font-size: .82rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: .8px; color: var(--gold-deep); margin-bottom: 8px; }
.modal .checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 6px;
    font-size: .88rem; font-weight: 300; color: var(--gray); }
.modal .checkbox-row input { margin-top: 4px; accent-color: var(--gold); flex: 0 0 auto; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }
.modal-error { color: var(--geo); font-size: .86rem; margin: 8px 0 0; min-height: 1em; }
.modal-close { float: right; background: none; border: 0; font-size: 1.6rem; line-height: 1;
    color: var(--gray-2); cursor: pointer; margin: -10px -8px 0 0; }
.modal-close:hover { color: var(--ink); }

/* ----------------------------- Responsiv ----------------------------- */

@media (max-width: 980px) {
    .site-nav { position: absolute; top: calc(var(--topbar-h) + var(--nav-h)); left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 8px 16px 18px; gap: 2px; display: none;
        box-shadow: var(--shadow-lg); border-top: 1px solid var(--line); }
    .site-nav.open { display: flex; }
    .nav-link { padding: 14px; width: 100%; }
    .nav-toggle { display: flex; }

    .app { grid-template-columns: 1fr; }
    .app-panel { max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
    .app-map { min-height: 72vh; }
    .map-svg-host svg { max-height: 64vh; }
    .legend { position: static; max-width: none; margin-top: 12px; }
    .map-stage { flex-direction: column; }
}

@media (max-width: 600px) {
    .topbar { font-size: .76rem; }
    .topbar .container { justify-content: center; gap: 10px 16px; }
    .brand-title { font-size: 1rem; }
    .content-page { padding: 36px 20px; }
    .content-page h1 { font-size: 1.9rem; }
    .footer-inner { flex-direction: column; gap: 30px; }
    .cookie-actions { width: 100%; }
    .cookie-actions .btn { flex: 1; }
    .cta-box { flex-direction: column; align-items: flex-start; }
    .modal { padding: 22px; }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .btn { width: 100%; }
}

@media (max-width: 380px) {
    .container { padding: 0 16px; }
    .app-panel { padding: 18px; }
}

/* ============================ KONFIGURATOR / WIZARD ============================ */

.app-panel { display: flex; flex-direction: column; }
.wiz-body { flex: 1; }

/* Stepper */
.stepper { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-2);
    text-align: center; line-height: 1.2; }
.stepper .dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 600; font-size: .9rem; background: var(--gold-soft);
    color: var(--gold-deep); border: 2px solid var(--gold-light); transition: background .15s, color .15s; }
.stepper li.is-active .dot { background: var(--gold); color: #fff; border-color: var(--gold); }
.stepper li.is-done .dot { background: var(--geo); color: #fff; border-color: var(--geo); }
.stepper li.is-active { color: var(--gold-deep); font-weight: 500; }

/* Schritt-Container */
.wiz-step { animation: fadeStep .2s ease; }
.wiz-step[hidden] { display: none; }
@keyframes fadeStep { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.step-head { font-size: 1.35rem; margin: 0 0 4px; color: var(--gold-deep); }
.step-sub { font-size: .92rem; color: var(--gray); margin: 0 0 20px; font-weight: 300; }

/* Navigation unten */
.wiz-nav { display: flex; gap: 12px; margin-top: 22px; padding-top: 18px;
    border-top: 1px solid var(--line); }
.wiz-nav .btn { flex: 1; }
.wiz-nav .btn-back { flex: 0 0 auto; }

/* Kartentyp-Karten (mit Beispielbild) */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-card { position: relative; border: 2px solid var(--line); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; background: #fff; text-align: left; padding: 0;
    font-family: var(--f-body); transition: border-color .15s, box-shadow .15s, transform .05s;
    display: flex; flex-direction: column; }
.type-card:hover:not(.is-disabled) { border-color: var(--geo-light); box-shadow: var(--shadow); }
.type-card.is-active { border-color: var(--geo); box-shadow: 0 0 0 3px rgba(84,121,187,.18); }
.type-card .type-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
    background: var(--gold-soft); }
.type-card .type-body { display: block; padding: 10px 12px 12px; }
.type-card .type-name { display: block; font-weight: 500; font-size: .95rem; color: var(--ink); line-height: 1.25; }
.type-card .type-meta { display: block; font-size: .78rem; color: var(--gray); margin-top: 3px; }
.type-card .type-check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px;
    border-radius: 50%; background: var(--geo); color: #fff; display: none; align-items: center;
    justify-content: center; font-size: .9rem; box-shadow: var(--shadow); }
.type-card.is-active .type-check { display: flex; }
.type-card.is-disabled { cursor: not-allowed; opacity: .5; }
.type-card.is-disabled .type-body::after { content: attr(data-disabled-note); display: block;
    margin-top: 6px; font-size: .72rem; color: var(--geo-dark); font-weight: 500; }

/* Hinweis-Kasten (z. B. PLZ-Raster nicht in Vorschau) */
.type-note { margin: 14px 0 0; padding: 12px 14px; font-size: .86rem; line-height: 1.5;
    color: var(--geo-dark); background: rgba(84,121,187,.08); border: 1px solid var(--geo-light);
    border-left: 4px solid var(--geo); border-radius: var(--radius-sm); }

/* Variante (Radio-Liste) */
.variant-list { display: flex; flex-direction: column; gap: 10px; }
.variant { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line);
    border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.variant:hover:not(.is-disabled) { border-color: var(--geo-light); }
.variant.is-active { border-color: var(--geo); background: rgba(84,121,187,.06); }
.variant.is-disabled { opacity: .5; cursor: not-allowed; }
.variant input { margin-top: 3px; accent-color: var(--geo); flex: 0 0 auto; }
.variant-text { flex: 1; }
.variant-name { display: block; font-weight: 500; color: var(--ink); font-size: .98rem; }
.variant-meta { display: block; font-size: .8rem; color: var(--gray); margin-top: 2px; }
.variant-price { font-weight: 600; color: var(--geo-dark); font-size: .95rem; white-space: nowrap; }

/* Maß-Eingaben */
.dim-row { display: flex; gap: 12px; }
.dim-field { flex: 1; }
.dim-field label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px;
    color: var(--gold-deep); margin-bottom: 6px; font-weight: 500; }
.dim-field .input-suffix { position: relative; }
.dim-field .input-suffix input { padding-right: 38px; }
.dim-field .input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: var(--gray-2); font-size: .9rem; pointer-events: none; }

/* Preis-Indikator-Box */
.price-box { border: 1px solid var(--gold-light); border-top: 4px solid var(--gold);
    border-radius: var(--radius); background: var(--gold-soft); padding: 16px 18px; margin-top: 20px; }
.price-box h4 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .8px;
    color: var(--gold-deep); }
.price-row { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem;
    color: var(--ink-2); padding: 3px 0; }
.price-row.muted { color: var(--gray); }
.price-total { display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
    margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--gold-light); }
.price-total .lbl { font-weight: 500; color: var(--gold-deep); text-transform: uppercase;
    letter-spacing: .6px; font-size: .8rem; }
.price-total .val { font-size: 1.5rem; font-weight: 600; color: var(--geo-dark); }
.price-note { font-size: .78rem; color: var(--gray); margin: 10px 0 0; font-weight: 300; line-height: 1.45; }
.price-box.is-request .val { font-size: 1.1rem; }

/* Auswahl-Liste (gewählte PLZ-Flächen) */
.sel-summary { font-size: .86rem; color: var(--gray); margin: 0 0 10px; }
.sel-summary b { color: var(--geo-dark); }
.sel-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; }
.sel-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff;
    border: 1px solid var(--geo-light); border-radius: 20px; padding: 4px 6px 4px 12px;
    font-size: .86rem; color: var(--ink-2); }
.sel-chip b { color: var(--geo-dark); font-weight: 600; }
.sel-chip .chip-x { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--gold-soft);
    color: var(--gold-deep); cursor: pointer; font-size: .9rem; line-height: 1; display: inline-flex;
    align-items: center; justify-content: center; }
.sel-chip .chip-x:hover { background: var(--geo); color: #fff; }
.sel-empty { font-size: .9rem; color: var(--gray-2); font-style: italic; }

/* Kontakt-Formular */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px;
    color: var(--gold-deep); margin-bottom: 6px; font-weight: 500; }
.field label .req { color: var(--geo); }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0;
    font-size: .86rem; font-weight: 300; color: var(--gray); }
.checkbox-row input { margin-top: 4px; accent-color: var(--geo); flex: 0 0 auto; }
.form-error { color: var(--geo-dark); font-size: .86rem; margin: 10px 0 0; min-height: 1em; font-weight: 400; }

/* Erfolgsmeldung */
.wiz-success { text-align: center; padding: 30px 10px; }
.wiz-success .ok-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--geo);
    color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px; }
.wiz-success h3 { color: var(--gold-deep); font-size: 1.4rem; margin: 0 0 8px; }
.wiz-success p { color: var(--gray); font-size: .96rem; }

/* ----------------------------- Karte (Canvas) ----------------------------- */

.map-search { display: flex; align-items: center; gap: 8px; position: relative; }
.map-search input { width: 190px; max-width: 46vw; }
.map-search .search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto; z-index: 8; }
.map-search .search-results[hidden] { display: none; }
.map-search .search-results button { display: flex; justify-content: space-between; gap: 10px;
    width: 100%; text-align: left; border: 0; background: none; padding: 8px 11px; cursor: pointer;
    font-family: var(--f-body); font-size: .9rem; color: var(--ink-2); }
.map-search .search-results button:hover { background: var(--gold-soft); }
.map-search .search-results .r-code { font-weight: 600; color: var(--geo-dark); }
.map-search .search-results .r-name { color: var(--gray); }

.app-map { height: calc(100vh - var(--topbar-h) - var(--nav-h)); overflow: hidden; }
.app-map .map-stage { flex: 1; min-height: 0; }
.map-canvas-host { flex: 1; position: relative; min-height: 0; border-radius: var(--radius);
    overflow: hidden; background: #fbfaf6; touch-action: none; }
.map-canvas-host canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.map-canvas-host.is-loading { cursor: progress; }
.map-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column;
    gap: 6px; z-index: 4; }
.map-zoom button { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--gold-light);
    background: rgba(255,255,255,.95); color: var(--gold-deep); font-size: 1.3rem; line-height: 1;
    cursor: pointer; box-shadow: var(--shadow); }
.map-zoom button:hover { background: var(--gold-soft); }

.map-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
    flex-direction: column; gap: 14px; background: rgba(251,250,246,.85); z-index: 6; color: var(--gold-deep);
    font-size: .95rem; }
.map-canvas-host.is-loading .map-loading { display: flex; }
.spinner { width: 38px; height: 38px; border: 4px solid var(--gold-light); border-top-color: var(--gold);
    border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.map-hint { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92);
    border: 1px solid var(--gold-light); border-radius: 8px; padding: 7px 12px; font-size: .82rem;
    color: var(--gold-deep); pointer-events: none; max-width: 60%; line-height: 1.4; }

@media (max-width: 980px) {
    .app-map { height: auto; }
    .map-canvas-host { min-height: 64vh; }
    .type-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .type-grid { grid-template-columns: 1fr; }
    .stepper li { font-size: 0; }
    .stepper li.is-active { font-size: .68rem; }
}

/* ===========================================================================
   LANDKARTEN-KONFIGURATOR · Zusätze (Google Maps, Maßstab, Grundlagen, Optionen)
   =========================================================================== */

/* Google-Maps-Container im Karten-Host */
#gmap { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Consent-Overlay vor dem Laden von Google Maps */
.map-consent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: var(--gold-soft); padding: 24px; z-index: 5; }
.map-consent[hidden] { display: none; }
.map-consent__box { background: #fff; border: 1px solid var(--gold-light); border-radius: var(--radius);
    padding: 22px 24px; max-width: 380px; box-shadow: var(--shadow); text-align: center; }
.map-consent__box h3 { margin: 0 0 8px; color: var(--gold-deep); }
.map-consent__box p { margin: 0 0 16px; font-size: .9rem; color: var(--gray); line-height: 1.5; }

/* Suche oben rechts: Ort + Umkreis */
.map-search .cs-umkreis { width: 78px; max-width: 22vw; }

/* Readout über dem Größenbereich */
.area-readout { background: var(--gold-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 9px 12px; font-size: .9rem; color: var(--gold-deep); margin: 6px 0 14px; }
.area-readout b { color: var(--ink); }

/* Maßstabstabelle */
.scale-table-wrap { max-height: 280px; overflow-y: auto; border: 1px solid var(--line);
    border-radius: var(--radius-sm); margin-top: 8px; }
.scale-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.scale-table thead th { position: sticky; top: 0; background: var(--gold-soft); color: var(--gold-deep);
    text-align: left; font-weight: 600; padding: 7px 8px; font-size: .76rem; text-transform: uppercase;
    letter-spacing: .4px; }
.scale-table td { padding: 6px 8px; border-top: 1px solid var(--line); }
.scale-table tr, .scale-table tbody tr { cursor: pointer; }
.scale-row:hover { background: rgba(84,121,187,.06); }
.scale-row.is-active { background: rgba(84,121,187,.12); }
.scale-table input[type=radio] { accent-color: var(--geo); }

.custom-scale { margin-top: 14px; }
.cs-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.cs-row .text-input { flex: 1; }

.size-pane[hidden] { display: none; }

/* Kartengrundlagen-Liste */
.grundlage-list { display: flex; flex-direction: column; gap: 10px; }
.grundlage-card { display: flex; gap: 12px; align-items: stretch; text-align: left; width: 100%;
    border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 8px;
    cursor: pointer; position: relative; }
.grundlage-card:hover { border-color: var(--geo-light); }
.grundlage-card.is-active { border-color: var(--geo); background: rgba(84,121,187,.06); }
.grundlage-card .g-img { width: 92px; height: 70px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.grundlage-card .g-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.grundlage-card .g-name { font-weight: 600; color: var(--ink); font-size: .98rem; }
.grundlage-card .g-desc { font-size: .78rem; color: var(--gray); line-height: 1.4; }
.grundlage-card .g-price { font-size: .8rem; color: var(--geo-dark); font-weight: 600; margin-top: 2px; }
.grundlage-card .g-check { position: absolute; top: 8px; right: 10px; color: var(--geo); font-weight: 700;
    opacity: 0; }
.grundlage-card.is-active .g-check { opacity: 1; }

/* Zusatzoptionen */
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line);
    border-radius: var(--radius-sm); padding: 12px; cursor: pointer; }
.opt:hover { border-color: var(--geo-light); }
.opt.is-active { border-color: var(--geo); background: rgba(84,121,187,.06); }
.opt input { margin-top: 3px; accent-color: var(--geo); flex: 0 0 auto; }
.opt-text { flex: 1; }
.opt-name { display: block; font-weight: 600; color: var(--ink); font-size: .96rem; }
.opt-desc { display: block; font-size: .8rem; color: var(--gray); margin-top: 2px; line-height: 1.4; }
.opt-price { font-weight: 600; color: var(--geo-dark); white-space: nowrap; }
.opt-detail { margin-top: 14px; padding: 14px; border: 1px dashed var(--gold-light);
    border-radius: var(--radius-sm); background: var(--gold-soft); }
.opt-detail[hidden] { display: none; }
.od-head { margin: 0 0 10px; font-size: .95rem; color: var(--gold-deep); }

.kml-line { font-size: .85rem; }
.kml-line[hidden] { display: none; }
