/* Season — Design-Tokens und Grundstile nach dem HfM-UI-Regelwerk
   (docs/ui-regelwerk-hfm-0.2.html). Regelnummern in Kommentaren verweisen dorthin. */

/* ---------- Schrift: Open Sans, selbst gehostet (T-01) ----------
   Variable Schrift 400–700, Subsets latin + latin-ext.
   Lizenz: static/fonts/OpenSans-OFL.txt (SIL Open Font License 1.1). */
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: swap;
    src: url("../fonts/open-sans-latin-wght.dcf31ebe1074.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400 700;
    font-stretch: 100%;
    font-display: swap;
    src: url("../fonts/open-sans-latin-ext-wght.062c1f2aaf2d.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
    /* HfM-Grauskala (F-02): feste Rollen statt freier Grautöne */
    --n-950: #303030;   /* Text primär */
    --n-700: #686868;   /* Text sekundär */
    --n-600: #878787;   /* zurückgestellt: Icons, große Nebentexte */
    --n-400: #b2b2b2;   /* deaktiviert, Platzhalter, Feldrahmen */
    --n-200: #e9e9e9;   /* Linien */
    --n-100: #f5f6f7;   /* Seitenfläche */
    --n-050: #fafbfb;   /* subtile Fläche */
    --white: #ffffff;   /* Komponente */

    /* Produktfarbe HfM-Dunkelgrün (F-01, F-04, F-05) */
    --product: #2b4242;
    --product-hover: #1f3131;
    --product-60: rgba(43, 66, 66, .60);
    --product-20: rgba(43, 66, 66, .20);

    /* HfM-Akzent Gold — höchstens einmal je Ansicht, dunkle Schrift darauf (F-03) */
    --accent: #b9924c;
    --accent-60: rgba(185, 146, 76, .60);
    --accent-20: rgba(185, 146, 76, .20);

    /* Statusfarben (F-06) */
    --success: #177245;
    --success-soft: #e7f4ec;
    --warning: #8a4b08;
    --warning-soft: #fff2dc;
    --danger: #b42318;
    --danger-hover: #8f1c13;
    --danger-soft: #fce9e7;
    --info: #175cd3;
    --info-soft: #e9f1ff;

    --theme: var(--product);
    --theme-hover: var(--product-hover);
    --theme-soft: var(--product-20);
    --focus: #2f80ed;

    /* Buchungsstatus → Statusfarben (Zuordnung; Status immer zusätzlich als Text, F-07) */
    --status-requested: var(--warning);     /* angefragt */
    --status-confirmed: var(--info);        /* bestätigt */
    --status-checked-in: var(--success);    /* eingecheckt */
    --status-checked-out: var(--n-600);     /* ausgecheckt */
    --status-cancelled: var(--n-400);       /* storniert */

    /* Rundungen (A-04) und Schatten nur für schwebende Elemente (A-05) */
    --r-sm: 6px;    /* Status, Tags, kleine Elemente */
    --r-md: 10px;   /* Bedienelemente, Felder, kleine Karten */
    --r-lg: 16px;   /* große Karten, Dialoge */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .07);
    --shadow-md: 0 18px 45px rgba(0, 0, 0, .10);

    /* Abstände im 4-px-Raster (A-01) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;

    /* Schriftleiter (T-02, T-03): Regular 400, Semibold 600, Bold 700 nur für Kennzahlen/Warnungen */
    --font: "Open Sans", Arial, sans-serif;
    --fs-h1: 32px;
    --fs-h2: 24px;
    --fs-h3: 18px;
    --fs-body: 16px;
    --fs-small: 14px;     /* UI, Tabellen, Bedienelemente — Minimum für Bedienelemente */
    --fs-caption: 12px;   /* nur Metadaten und kurze Zusatzangaben */

    --sidebar-w: 230px;
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.55;
    color: var(--n-950);
    background: var(--n-100);
}

h1, h2, h3 { font-weight: 600; }
h1 { font-size: var(--fs-h1); line-height: 1.2; margin: 0 0 var(--space-4); }
h2 { font-size: var(--fs-h2); line-height: 1.25; margin: var(--space-6) 0 var(--space-2); }
h3 { font-size: var(--fs-h3); line-height: 1.35; margin: var(--space-4) 0 var(--space-2); }
@media (max-width: 700px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
}
a { color: var(--theme); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }

/* Fokus sichtbar und logisch (B-06, S-06) */
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}
.topbar :focus-visible, .sidebar :focus-visible { outline-color: var(--white); }

/* ---------- Layout: Topbar, Sidebar, Inhalt ---------- */
.app { min-height: 100vh; }

.topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--product);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.topbar-center { min-width: 0; }
.topbar-right { display: flex; justify-content: flex-end; }
.topbar form { margin: 0; }
.topbar-site { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.topbar-site select {
    max-width: 14rem;
    padding: var(--space-1) var(--space-2);
    font-size: var(--fs-small);
}
.topbar-muted {
    color: rgba(255, 255, 255, .78);
    font-size: var(--fs-small);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar .user-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
    text-decoration: none;
}
.topbar .user-name {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar .user-link:hover .user-name { text-decoration: underline; }
@media (max-width: 480px) {
    .topbar-right .btn-label { display: none; }   /* Abmelden nur als Icon, Name per aria-label */
    .topbar-right .btn { min-width: 44px; padding-inline: var(--space-2); }
}
.nav-toggle {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    color: var(--white);
    font-size: var(--fs-h2);
    padding: var(--space-1) var(--space-2);
    cursor: pointer;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--product);
    color: var(--white);
    display: flex;
    flex-direction: column;
    z-index: 50;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    font-size: var(--fs-h3);
    padding: var(--space-4) 20px;
}
.sidebar-logo { padding: 0 20px var(--space-3); }
.sidebar-logo img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
    background: var(--white);
    border-radius: var(--r-md);
    padding: var(--space-1) var(--space-2);
}
.sidebar-nav { display: flex; flex-direction: column; padding: var(--space-2) 0; flex: 1; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: rgba(255, 255, 255, .80);
    text-decoration: none;
    padding: var(--space-3) 20px;
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, .09); color: var(--white); }
.sidebar-nav a.active {
    background: rgba(255, 255, 255, .12);
    border-left-color: var(--white);
    color: var(--white);
    font-weight: 600;
}
.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .17);
    color: var(--white);
    font-size: var(--fs-caption);
    font-weight: 600;
    text-transform: uppercase;
}
.avatar-lg { width: 64px; height: 64px; }
.avatar-lg.avatar-fallback { background: var(--product); font-size: var(--fs-h2); }
.company-logo-preview {
    max-width: 160px;
    max-height: 64px;
    object-fit: contain;
    border: 1px solid var(--n-200);
    border-radius: var(--r-md);
    padding: var(--space-1) var(--space-2);
}

.content {
    margin-left: var(--sidebar-w);
    padding: var(--space-6);
}
/* Inhalt mittig im Bereich neben der Sidebar; Lesebreite begrenzt, Karten/Pläne dürfen breiter */
.content > * { max-width: 1240px; margin-inline: auto; }
.content-wide > * { max-width: 1800px; }

.nav-backdrop { display: none; }

/* Mobile: Sidebar als Drawer */
@media (min-width: 821px) {
    .topbar { margin-left: var(--sidebar-w); }
    .nav-toggle { display: none; }
}

@media (max-width: 820px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.2s ease; }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(20, 26, 32, .42);
        z-index: 45;
    }
    .content { margin-left: 0; padding: var(--space-4); }
}

/* ---------- Icons: Lucide, Outline, 24-px-Raster, currentColor (I-01, I-05) ---------- */
.icon { flex-shrink: 0; vertical-align: -0.15em; }
.icon-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--n-400);
    border-radius: var(--r-md);
    color: var(--n-950);
    background: var(--white);
    cursor: pointer;
}
.icon-button:hover { background: var(--n-100); }
.tile-icon { display: block; color: var(--product); margin-bottom: var(--space-2); }

/* ---------- Bausteine ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--n-200);
    border-radius: var(--r-lg);
    padding: 20px;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.tile { text-align: left; border-radius: var(--r-md); }
.tile .tile-value {
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--n-950);
    font-variant-numeric: tabular-nums;
}
.tile .tile-label { color: var(--n-700); font-size: var(--fs-small); }

/* Buttons: eine primäre Aktion je Kontext (B-01), Bedienfläche 44 px (B-05) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    padding: 10px var(--space-4);
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    background: var(--product);
    color: var(--white);
}
.btn:hover { background: var(--product-hover); }
.btn-secondary { background: var(--white); color: var(--n-950); border-color: var(--n-400); }
.btn-secondary:hover { background: var(--n-100); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: var(--danger-hover); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-sm { min-height: 36px; padding: var(--space-1) var(--space-3); }
@media (pointer: coarse) {
    .btn-sm { min-height: 44px; }   /* Touch: Bedienfläche 44 px (B-05) */
}
.btn[disabled] { background: var(--n-200); color: var(--n-600); cursor: not-allowed; }

/* Statuskennzeichnungen: 6 px Rundung, keine Pillenform (A-04) */
.badge {
    display: inline-block;
    padding: 2px var(--space-2);
    border-radius: var(--r-sm);
    font-size: var(--fs-caption);
    font-weight: 600;
    line-height: 1.4;
    color: var(--white);
}
.badge-requested { background: var(--status-requested); }
.badge-confirmed { background: var(--status-confirmed); }
.badge-checked_in { background: var(--status-checked-in); }
.badge-checked_out { background: var(--n-200); color: var(--n-700); }
.badge-cancelled { background: var(--n-200); color: var(--n-700); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
table.data {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--n-200);
    border-radius: var(--r-md);
    font-size: var(--fs-small);
    font-variant-numeric: tabular-nums;
}
table.data th, table.data td {
    text-align: left;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--n-200);
    white-space: nowrap;
}
table.data th {
    background: var(--n-100);
    color: var(--n-700);
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}
table.data tr:last-child td { border-bottom: none; }

/* ---------- Formulare: Label sichtbar über dem Feld (E-01), Fehler am Feld (E-03) ---------- */
form p { margin: 0 0 var(--space-3); }
label {
    display: block;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--n-950);
    margin-bottom: var(--space-1);
}
label.required::after { content: " *"; color: var(--danger); }   /* Pflichtfeld (E-02) */
input, select, textarea {
    width: 100%;
    padding: 10px var(--space-3);
    border: 1px solid var(--n-400);
    border-radius: var(--r-md);
    font: inherit;
    color: var(--n-950);
    background: var(--white);
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-color: var(--product);
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--product); }
input::placeholder, textarea::placeholder { color: var(--n-400); }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-2) var(--space-4);
}
.errorlist {
    color: var(--danger);
    list-style: none;
    padding: 0;
    margin: var(--space-1) 0;
    font-size: var(--fs-small);
    font-weight: 600;
}
.helptext { font-size: var(--fs-caption); color: var(--n-700); }

/* ---------- Meldungen: Farbe, Symbol/Text, nächster Schritt (S-01, S-02) ----------
   Rahmen- und Textwerte entsprechen dem Statussystem des Regelwerks. */
.messages { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.msg {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: 1px solid #b9cdf4;
    border-radius: var(--r-md);
    margin-bottom: var(--space-2);
    font-size: var(--fs-small);
    color: #164b9c;
    background: var(--info-soft);
}
.msg.success { color: #11643b; background: var(--success-soft); border-color: #b6dbc6; }
.msg.warning { color: #754006; background: var(--warning-soft); border-color: #e9c995; }
.msg.error, .msg.danger { color: #962016; background: var(--danger-soft); border-color: #ebbbb5; }
.msg .icon { margin-top: 1px; }

/* ---------- Bottom-Sheet (mobile Dialoge): schwebend, daher Schatten (A-05) ---------- */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 26, 32, .42);
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.sheet {
    background: var(--white);
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
}
@media (min-width: 821px) {
    .sheet-backdrop { align-items: center; }
    .sheet { border-radius: var(--r-lg); }
}
.sheet h2 { margin-top: 0; }
.sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}
.sheet-head h2 { margin: 0; }
.sheet-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.sheet:focus { outline: none; }
body.sheet-open { overflow: hidden; }

/* Fußzeile der Dialoge: links leise Neben-/Abbruchaktion, rechts die eine Hauptaktion (B-01) */
.sheet-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--n-200);
}
.sheet-actions form { margin: 0; }
.sheet-actions-main { display: inline-flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.btn-quiet { background: transparent; color: var(--n-700); border-color: transparent; padding-inline: var(--space-2); }
.btn-quiet:hover { background: var(--n-100); color: var(--n-950); }
.btn-quiet-danger { color: var(--danger); }
.btn-quiet-danger:hover { background: var(--danger-soft); color: var(--danger-hover); }
/* Verlängern als Aufklapper statt Datumsfeld in der Knopfreihe */
.extend { margin-top: var(--space-3); }
.extend > summary { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 36px; cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--product); list-style: none; }
.extend > summary::-webkit-details-marker { display: none; }
.extend-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
.extend-form span { flex: 1 1 160px; }
.extend-form input { width: 100%; }
.extend-form p { margin: 0; }

/* Kleinkram */
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.page-head h1 { margin: 0; }
.muted { color: var(--n-700); }
.text-right { text-align: right; }
.mt { margin-top: var(--space-4); }

/* ---------- Belegungsplan ---------- */
.plan-scroll { overflow-x: auto; }
.plan-inner { min-width: 900px; }
.plan-row-grid {
    display: grid;
    grid-template-columns: 90px repeat(14, minmax(56px, 1fr));
    align-items: stretch;
}
.plan-header { border-bottom: 2px solid var(--n-200); }
.plan-day {
    text-align: center;
    font-size: var(--fs-caption);
    color: var(--n-700);
    padding: var(--space-2) var(--space-1);
    border-left: 1px solid var(--n-200);
}
.plan-day .dow { font-weight: 600; }
.plan-day.today { background: var(--product-20); color: var(--product-hover); }
.plan-category {
    padding: var(--space-2) var(--space-3);
    background: var(--n-100);
    color: var(--n-950);
    font-weight: 600;
    font-size: var(--fs-small);
    border-bottom: 1px solid var(--n-200);
}
.plan-row { border-bottom: 1px solid var(--n-200); min-height: 44px; }
.plan-pitch {
    padding: var(--space-2) var(--space-3);
    font-weight: 600;
    font-size: var(--fs-small);
    display: flex;
    align-items: center;
}
.plan-cell {
    border-left: 1px solid var(--n-200);
    display: block;
    min-height: 100%;
}
.plan-cell.today { background: var(--n-100); }
.plan-cell:hover { background: var(--product-20); }
.plan-bar {
    margin: 4px 2px;
    border-radius: var(--r-sm);
    color: var(--white);
    font-size: var(--fs-small);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    align-self: center;
}
.plan-bar.status-requested {   /* angefragt = vorläufig: zusätzlich gestrichelt, nicht nur Farbe (F-07) */
    background: var(--status-requested);
    outline: 2px dashed rgba(255, 255, 255, .75);
    outline-offset: -3px;
}
.plan-bar.status-confirmed { background: var(--status-confirmed); }
.plan-bar.status-checked_in { background: var(--status-checked-in); }
.plan-bar.open-left { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.plan-bar.open-right { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.legend {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    vertical-align: -1px;
    margin: 0 var(--space-1) 0 var(--space-3);
}
.legend.badge-requested { background: var(--status-requested); }
.legend.badge-confirmed { background: var(--status-confirmed); }
.legend.badge-checked_in { background: var(--status-checked-in); }

/* ---------- Platzkarte als Lageplan ----------
   Kartografische Grundfarben (ruhig, entsättigt) ergänzen die Regelwerk-Tokens;
   Parzellen tragen die Statusfarben. */
:root {
    --plan-grass: #eef3ee;
    --plan-grass-dot: #d5e0d5;
    --plan-area: #f7f8f9;
    --plan-green: #d6e6d1;
    --plan-water: #dbe9f6;
    --plan-water-line: #b9cdf4;
    --plan-road: #d9d4c7;
    --plan-building: #cfd6dc;
    --plan-building-line: #9aa6b0;
}
.map-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-end; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Steuerleiste der Platzkarte: Suche, Stichtag, Zoom, Filter-Chips */
.map-controls { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); }
.map-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: flex-end; }
.map-search { position: relative; flex: 1 1 280px; min-width: 220px; margin: 0; }
.map-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--n-600); }
.map-search input { padding-left: 40px; }
.date-nav { display: flex; align-items: flex-end; gap: var(--space-1); margin: 0; }
.date-nav input { width: auto; }
.date-nav .icon-button { text-decoration: none; }
.range-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2); margin: 0; }
.range-form input { width: auto; }
.map-counter { font-size: var(--fs-small); color: var(--n-700); }
.map-filters { display: block; }
.map-filters[open] > .map-row { margin-top: var(--space-3); }
.map-filters > summary { cursor: pointer; font-size: var(--fs-small); font-weight: 600; color: var(--n-700); list-style: none; }
.map-filters > summary::before { content: "▸ "; }
.map-filters[open] > summary::before { content: "▾ "; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--n-400);
    border-radius: var(--r-sm);
    background: var(--white);
    color: var(--n-950);
    font-size: var(--fs-small);
    font-weight: 600;
    cursor: pointer;
}
.chip:hover { background: var(--n-100); }
.chip[aria-pressed="true"] { background: var(--product); border-color: var(--product); color: var(--white); }
.chip .count { font-weight: 400; opacity: .8; }
.chip .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid transparent; }
.chip .swatch.st-occupied { background: var(--status-checked-in); }
.chip .swatch.st-arrival { background: var(--status-confirmed); }
.chip .swatch.st-departure { background: var(--status-checked-out); }
.chip .swatch.st-requested { background: var(--status-requested); }
.chip .swatch.st-free { background: var(--white); border-color: var(--n-400); }
@media (pointer: coarse) { .chip { min-height: 44px; } }
.map-date { margin: 0; }
.map-date input { width: auto; }
.map-legend { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-3); font-size: var(--fs-caption); }
.map-legend span { display: inline-flex; align-items: center; gap: var(--space-1); }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.plan-zoom { display: inline-flex; gap: var(--space-1); }
.plan-wrap { overflow: auto; padding: 0; height: calc(100vh - 300px); min-height: 420px; }
@media (max-width: 700px) { .plan-wrap { height: 60vh; min-height: 320px; } }
.plan-svg {
    display: block;
    width: calc(var(--plan-zoom, 100) * 1%);
    min-width: 100%;
    height: auto;
    font-family: var(--font);
}
.plan-svg .plan-grass { fill: var(--plan-grass); }
.plan-svg .plan-grass-dot { fill: var(--plan-grass-dot); }
.plan-svg .el-area { fill: var(--plan-area); stroke: var(--n-400); }
.plan-svg .el-green { fill: var(--plan-green); stroke: none; }
.plan-svg .el-water { fill: var(--plan-water); stroke: var(--plan-water-line); }
.plan-svg .el-road { fill: none; stroke: var(--plan-road); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.plan-svg .el-building { fill: var(--plan-building); stroke: var(--plan-building-line); }
.plan-svg .el-label { font-size: 12px; fill: var(--n-700); text-anchor: middle; pointer-events: none; }
.plan-svg .el-label-category { font-weight: 600; fill: var(--n-950); text-anchor: start; }
.plan-svg .pitch { stroke: var(--white); stroke-width: 1.5; }
.plan-svg .pitch.st-free { fill: var(--white); stroke: var(--n-400); }
.plan-svg .pitch.st-occupied { fill: var(--status-checked-in); }
.plan-svg .pitch.st-arrival { fill: var(--status-confirmed); }
.plan-svg .pitch.st-departure { fill: var(--status-checked-out); }
.plan-svg .pitch.st-requested { fill: var(--status-requested); }
.plan-svg .pitch-code {
    font-size: 12px;
    font-weight: 600;
    fill: var(--white);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}
.plan-svg .pitch-code.dark { fill: var(--n-950); }
.plan-svg .pitch.pitch-area { fill-opacity: .55; }
/* Mit Hintergrundbild (z. B. Faltblatt): Dekor entfällt, Freiflächen lassen das Bild durchscheinen */
.plan-svg.with-image .el, .plan-svg.with-image .el-label { display: none; }
.plan-svg.with-image .pitch.st-free { fill-opacity: .6; }
.plan-svg .pitch-link { cursor: pointer; outline: none; }
.plan-svg .pitch-link:hover .pitch { stroke: var(--product); stroke-width: 3; }
.plan-svg .pitch-link:focus-visible .pitch { stroke: var(--focus); stroke-width: 4; }
.plan-svg .pitch-link.dimmed { opacity: .15; }
.plan-svg .pitch-link.hit .pitch { stroke: var(--accent); stroke-width: 4; }   /* Suchtreffer: der eine Gold-Akzent der Ansicht (F-03) */
.plan-wrap { cursor: grab; }
.plan-wrap.grabbing { cursor: grabbing; user-select: none; }
.plan-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }


/* hidden-Attribut gewinnt auch gegen display-Regeln von Buttons und Boxen */
[hidden] { display: none !important; }

/* KI-Import im Lageplan-Editor */
.ai-import-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); }
.ai-import-head strong { display: inline-flex; align-items: center; gap: var(--space-1); }
.ai-import-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }

/* KI-Assistent: Gespräch */
.assistant { max-width: 60rem; }
.chat { display: flex; flex-direction: column; gap: var(--space-3); }
.bubble { max-width: 46rem; padding: var(--space-3) var(--space-4); border-radius: var(--r-lg); line-height: 1.5; }
.bubble.assistant { display: flex; gap: var(--space-3); align-self: flex-start; background: var(--n-100); border: 1px solid var(--n-200); }
.bubble.assistant .icon { flex: none; color: var(--product); margin-top: 3px; }
.bubble.user { align-self: flex-end; background: var(--product); color: var(--white); border-bottom-right-radius: var(--r-sm); }
.bubble.progress { color: var(--n-700); }
.proposal { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--n-200); }
.proposal h3 { margin-top: 0; }
.proposal-list { margin: 0 0 var(--space-2); padding-left: var(--space-4); columns: 2; column-gap: var(--space-4); }
.proposal-list li { break-inside: avoid; }
.chat-form { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.chat-form input[type="text"] { flex: 1; }
.chat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.next-steps { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: var(--space-4); }
.next-steps .tile { text-decoration: none; color: inherit; }
.next-steps .tile:hover { border-color: var(--product); }
.upload-form p { margin: 0 0 var(--space-3); }
.mode-choice { display: grid; gap: var(--space-2); margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--n-200); border-radius: var(--r-md); }
.mode-choice legend { padding: 0 var(--space-1); font-weight: 600; font-size: var(--fs-small); }
.mode-choice label { display: flex; gap: var(--space-2); align-items: flex-start; cursor: pointer; }
.mode-choice input { margin-top: 4px; }
.onboarding { border-left: 4px solid var(--accent); margin-bottom: var(--space-4); }
.onboarding h2 { display: flex; align-items: center; gap: var(--space-2); margin-top: 0; }
@media (max-width: 640px) { .proposal-list { columns: 1; } .bubble { max-width: 100%; } }

/* Lageplan-Editor (SVG) */
.editor { display: flex; flex-direction: column; gap: var(--space-2); }
.editor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: var(--space-1) var(--space-2); margin: 0; }
.editor-tools .tool { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--r-md); background: transparent; color: var(--n-950); font: inherit; font-size: var(--fs-small); cursor: pointer; white-space: nowrap; }
.editor-tools .tool:hover { background: var(--n-100); }
.editor-tools .tool[aria-pressed="true"], .editor-tools .tool[aria-expanded="true"] { background: var(--product); border-color: var(--product); color: var(--white); }
.editor-tools .tool[disabled] { opacity: .35; cursor: default; background: transparent; }
.editor-tools .tool-group { display: inline-flex; align-items: center; gap: 2px; }
.editor-tools .tool-group select { min-height: 36px; padding: 0 var(--space-2); font-size: var(--fs-small); width: auto; }
.editor-tools .sep { width: 1px; height: 26px; margin: 0 var(--space-1); background: var(--n-200); }
.editor-tools .grow { flex: 1; }
.editor-canvas { position: relative; }
.editor-wrap { height: calc(100vh - 250px); min-height: 460px; overflow: hidden; padding: 0; cursor: default; touch-action: none; }
.editor-wrap.space { cursor: grab; }
.editor-wrap.grabbing { cursor: grabbing; }
.editor-svg { display: block; width: 100%; height: 100%; background: var(--n-100); user-select: none; -webkit-user-select: none; }
.editor-svg[data-tool="pitch"], .editor-svg[data-tool="area"], .editor-svg[data-tool="road"], .editor-svg[data-tool="label"], .editor-svg[data-tool="stamp"], .editor-svg[data-tool="place"] { cursor: crosshair; }
.editor-svg[data-tool="hand"] { cursor: grab; }
.editor-svg.with-image .el-label { display: block; }
.ed-ground { fill: var(--plan-grass); stroke: var(--n-400); stroke-width: 1; }
.ed-image { opacity: .85; }
.ed-item { cursor: move; }
.ed-pitch { stroke: var(--white); stroke-width: 1; fill-opacity: .8; }
.ed-pitch:hover { fill-opacity: 1; }
.ed-item.selected { stroke: var(--focus); stroke-width: 2; }
.ed-code { fill: var(--white); text-anchor: middle; dominant-baseline: central; pointer-events: none; font-weight: 600; paint-order: stroke; stroke: rgba(0, 0, 0, .35); stroke-width: .6px; }
.ed-code.dark { fill: var(--n-950); stroke: rgba(255, 255, 255, .6); }
.ed-el-text { pointer-events: none; dominant-baseline: central; }
.ed-label-dot { fill: var(--white); stroke: var(--n-700); }
.ed-vertex { fill: var(--white); stroke: var(--focus); cursor: move; }
.ed-vertex.ed-corner { cursor: nwse-resize; }
.ed-mid { fill: var(--white); stroke: var(--focus); opacity: .85; cursor: copy; }
.ed-edge { fill: var(--focus); stroke: var(--white); cursor: move; }
.ed-rot { fill: var(--white); stroke: var(--accent); cursor: grab; }
.ed-rot-line { stroke: var(--accent); }
.ed-guide { stroke: #d6008f; stroke-dasharray: 4 3; pointer-events: none; }
.ed-marquee { fill: rgba(43, 66, 66, .08); stroke: var(--product); stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.ed-marquee-box { fill: none; stroke: var(--focus); pointer-events: none; }
.ed-preview { fill: rgba(43, 66, 66, .15); stroke: var(--product); vector-effect: non-scaling-stroke; pointer-events: none; }
.ed-preview-line { fill: none; stroke: var(--product); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; opacity: .5; pointer-events: none; }
.ed-proposal { fill: var(--accent); fill-opacity: .15; stroke: var(--accent); pointer-events: none; }
.ed-proposal-code { fill: var(--n-950); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
/* Ansicht-Schalter Lageplan | Kacheln */
.segmented { display: inline-flex; border: 1px solid var(--n-400); border-radius: var(--r-md); overflow: hidden; }
.segmented .seg { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-3); border: 0; background: var(--white); color: var(--n-950); font: inherit; font-size: var(--fs-small); cursor: pointer; }
.segmented .seg + .seg { border-left: 1px solid var(--n-400); }
.segmented .seg:hover { background: var(--n-100); }
.segmented .seg[aria-pressed="true"] { background: var(--product); color: var(--white); }

/* Platzkarte ohne Lageplan: Kacheln nach Kategorien */
.pitch-board { display: grid; gap: var(--space-5, 20px); }
.pitch-group h2 { display: flex; align-items: baseline; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--fs-h3); }
.pitch-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: var(--space-2); }
.pitch-tile { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: var(--space-2) var(--space-3); background: var(--white); border: 1px solid var(--n-200); border-left: 5px solid var(--n-400); border-radius: var(--r-md); color: var(--n-950); text-decoration: none; transition: box-shadow .12s ease, transform .12s ease, opacity .12s ease; }
.pitch-tile:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .10); transform: translateY(-1px); }
.pitch-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pitch-tile-code { font-weight: 700; }
.pitch-tile-sub { font-size: var(--fs-caption); color: var(--n-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-tile.st-free { border-left-color: var(--n-200); }
.pitch-tile.st-occupied { border-left-color: var(--status-checked-in); }
.pitch-tile.st-arrival { border-left-color: var(--status-confirmed); }
.pitch-tile.st-departure { border-left-color: var(--status-checked-out); }
.pitch-tile.st-requested { border-left-color: var(--status-requested); }
.pitch-tile.dimmed { opacity: .25; }
.pitch-tile.hit { outline: 3px solid var(--accent); outline-offset: 1px; }
.imported-note { display: flex; flex-direction: column; gap: var(--space-2); }
.imported-note .chat-actions { margin-top: 0; }
.imported-note form { margin: 0; }
.editor-status { margin: 0; min-height: 22px; color: var(--n-700); font-size: var(--fs-small); }
.editor-toast { position: absolute; top: var(--space-3); left: 50%; transform: translateX(-50%); z-index: 25; max-width: min(640px, calc(100% - 24px)); padding: var(--space-2) var(--space-4); border-radius: var(--r-md); background: var(--n-950); color: var(--white); font-size: var(--fs-small); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: ed-pop .15s ease-out; }
.editor-toast.error { background: var(--danger); }
.editor-status.error { color: var(--danger); }
.ctx-menu { position: absolute; z-index: 30; min-width: 250px; margin: 0; padding: var(--space-1); list-style: none; background: var(--white); border: 1px solid var(--n-200); border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); animation: ed-pop .12s ease-out; }
.ctx-menu li.sep { height: 1px; margin: var(--space-1) 0; background: var(--n-200); }
.ctx-menu button { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; padding: 8px var(--space-3); border: 0; border-radius: var(--r-sm); background: none; color: var(--n-950); font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer; }
.ctx-menu button:hover, .ctx-menu button:focus-visible { background: var(--n-100); outline: none; }
.ctx-menu button.danger { color: var(--danger); }
.ctx-menu button[disabled] { opacity: .4; cursor: default; }
.ctx-menu kbd, .help-list kbd { padding: 1px 5px; border: 1px solid var(--n-200); border-bottom-width: 2px; border-radius: 4px; background: var(--n-100); font: inherit; font-size: var(--fs-caption); color: var(--n-700); }
.popover { position: absolute; z-index: 31; width: 270px; padding: var(--space-3); background: var(--white); border: 1px solid var(--n-200); border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); animation: ed-pop .12s ease-out; }
.popover h3 { margin: 0 0 var(--space-2); font-size: var(--fs-small); }
.popover p { margin: 0 0 var(--space-2); }
.popover .actions { display: flex; justify-content: flex-end; gap: var(--space-2); }
.editor-panel { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 20; width: min(400px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; margin: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); animation: ed-pop .12s ease-out; }
.editor-panel h3 { display: flex; align-items: center; gap: var(--space-2); margin-top: 0; }
.editor-panel hr { border: 0; border-top: 1px solid var(--n-200); margin: var(--space-3) 0; }
.help-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.help-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.help-list .icon { flex: none; color: var(--product); margin-top: 2px; }
.ed-legend { position: absolute; left: var(--space-3); bottom: var(--space-3); display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-2) var(--space-3); max-width: calc(100% - 24px); padding: var(--space-1) var(--space-2); background: rgba(255, 255, 255, .92); border-radius: var(--r-md); font-size: var(--fs-caption); pointer-events: none; }
.ed-legend:empty { display: none; }
.ed-legend-item { display: inline-flex; align-items: center; gap: 4px; }
.ed-legend-item i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
@keyframes ed-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .editor-wrap { height: 62vh; min-height: 360px; } .editor-tools .tool { padding: 0 var(--space-2); } }

/* ---------- Gästeportal (öffentliche Platzseite, ohne Anmeldung) ----------
   Dieselben Tokens wie die Betreiber-Oberfläche; Layout einspaltig, mobil zuerst. */
body.portal { background: var(--n-100); }
.portal-header { background: var(--product); color: var(--white); }
.portal-header .inner, .portal-main, .portal-footer .inner { max-width: 1100px; margin-inline: auto; }
.portal-header .inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); min-height: 56px; }
.portal-brand, .portal-phone { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--white); text-decoration: none; font-weight: 600; min-height: 44px; }
.portal-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-phone { font-weight: 400; font-size: var(--fs-small); flex-shrink: 0; }
.portal-header :focus-visible { outline-color: var(--white); }
.portal-main { padding: var(--space-4) var(--space-4) var(--space-12); display: flex; flex-direction: column; gap: var(--space-4); }
@media (min-width: 700px) { .portal-main { padding-top: var(--space-6); } }
.portal-main > * { margin: 0; min-width: 0; }   /* Flex-Kinder dürfen schmaler als ihr Inhalt werden (Tabellen scrollen im table-wrap) */
.portal-main .page-head { margin: var(--space-2) 0 0; }
.portal-hero h1 { margin-bottom: var(--space-1); }
.portal-hero p { margin: 0 0 var(--space-2); }
.portal-hero p:last-child { margin-bottom: 0; }
.portal-hero .muted .icon { vertical-align: -0.2em; }
.small { font-size: var(--fs-small); }
.stay-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: var(--space-3); }
.stay-form .form-grid p { margin-bottom: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.quick-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.quick-chips .chip { text-decoration: none; }
.results-head h2 { margin: 0; }

.portal-map-card { padding: var(--space-3); }
.portal-map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.portal-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-size: var(--fs-small); color: var(--n-700); }
.portal-legend .sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--n-400); background: var(--white); margin-left: var(--space-2); }
.portal-legend .sw:first-child { margin-left: 0; }
.portal-legend .sw.avail { border-color: var(--success); }
.portal-legend .sw.taken { background: var(--n-200); border-color: var(--n-400); }
.portal-plan { height: auto; max-height: 70vh; min-height: 240px; }
.portal-svg .pitch.avail { fill: var(--white); stroke: var(--success); stroke-width: 2; }
.portal-svg .pitch.taken { fill: var(--n-200); stroke: var(--n-400); stroke-width: 1; }
.portal-svg .pitch-code { fill: var(--n-950); }
.portal-svg .pitch-link.taken .pitch-code { fill: var(--n-600); font-weight: 400; }
.portal-svg .pitch-link.taken { cursor: default; }
.portal-svg .pitch-link.avail:hover .pitch { fill: var(--success-soft); stroke-width: 3; }
.portal-svg .pitch-link.avail:focus-visible .pitch { stroke: var(--focus); stroke-width: 4; }
.portal-svg.with-image .pitch.avail { fill-opacity: .85; }
.portal-svg.with-image .pitch.taken { fill-opacity: .7; }

.offer-group h3 { margin: 0; }
.offer-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); margin-bottom: var(--space-2); }
.offer-group > p.muted { margin: 0 0 var(--space-3); font-size: var(--fs-small); }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.offer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--n-200); border-radius: var(--r-md); background: var(--white); }
.offer-code { font-weight: 600; font-size: var(--fs-h3); min-width: 3.5rem; }
.offer-meta { flex: 1 1 180px; color: var(--n-700); font-size: var(--fs-small); }
.offer-meta .icon { vertical-align: -0.15em; }
.offer-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer-price small { font-weight: 400; color: var(--n-700); font-size: var(--fs-caption); }
.offer .btn { margin-left: auto; }
@media (max-width: 480px) { .offer .btn { flex-basis: 100%; margin-left: 0; } }

.back-link { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.request-layout { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 900px) { .request-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.request-layout > * { min-width: 0; }
.request-layout h2 { margin-top: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-3); }
.summary-grid dt { font-size: var(--fs-caption); color: var(--n-700); text-transform: uppercase; letter-spacing: .03em; }
.summary-grid dd { margin: 0; font-weight: 600; }
.summary-grid dd .muted { font-weight: 400; font-size: var(--fs-small); }
label.check { display: flex; align-items: flex-start; gap: var(--space-2); font-weight: 400; cursor: pointer; }
label.check > span:first-child { flex: none; display: inline-flex; margin-top: 3px; }
label.check input { width: 18px; height: 18px; margin: 0; }
.consent { font-size: var(--fs-small); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-lg { min-height: 52px; font-size: var(--fs-body); width: 100%; }
@media (min-width: 700px) { .btn-lg { width: auto; } }

.confirmation .status-head { display: flex; align-items: center; gap: var(--space-2); }
.status-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.status-icon.ok { background: var(--success-soft); color: var(--success); }
.status-icon.pending { background: var(--warning-soft); color: var(--warning); }
.status-icon.off { background: var(--danger-soft); color: var(--danger); }
.portal-code-row { display: flex; align-items: baseline; gap: var(--space-3); margin: var(--space-3) 0; }
.portal-code { font-size: var(--fs-h2); font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.confirmation .msg { margin-top: var(--space-3); }
.portal table.data td:first-child { white-space: normal; }   /* Preiszeilen umbrechen, Betrag bleibt sichtbar (390 px) */
.portal-footer { padding: var(--space-6) var(--space-4); color: var(--n-700); font-size: var(--fs-small); border-top: 1px solid var(--n-200); }
.portal-footer p { margin: 0 0 var(--space-2); }

/* Einstellungen → Online-Reservierung */
.online-status { margin-bottom: var(--space-4); }
.portal-url { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: var(--fs-small); word-break: break-all; }
.pitch-pick { border: 1px solid var(--n-200); border-radius: var(--r-md); padding: var(--space-2) var(--space-3) var(--space-3); margin: 0 0 var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.pitch-pick legend { font-weight: 600; font-size: var(--fs-small); padding: 0 var(--space-1); }
.pitch-pick .pick { align-items: center; min-height: 36px; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .pitch-pick .pick { min-height: 44px; } }

/* Dashboard: offene Anfragen */
.tile-attention { border-left: 4px solid var(--warning); }
.request-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.request-actions form { margin: 0; }
.guest-message { color: var(--n-700); font-size: var(--fs-caption); white-space: normal; max-width: 32ch; }
.badge-portal { background: var(--product-20); color: var(--product); }

/* ---------- Camper-App: Startseite, Suche, Ergebnisliste ---------- */
.portal-nav { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.portal-nav form { margin: 0; }
.portal-link { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-2); border: 0; background: transparent; color: var(--white); font: inherit; font-size: var(--fs-small); font-weight: 600; text-decoration: none; cursor: pointer; border-radius: var(--r-md); }
.portal-link:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 480px) { .portal-link span, .portal-phone span { display: none; } }
.hero { padding: var(--space-4) 0 0; }
.hero h1 { font-size: 36px; line-height: 1.15; margin: 0 0 var(--space-2); }
.hero p { margin: 0; color: var(--n-700); font-size: var(--fs-h3); max-width: 44rem; }
@media (max-width: 700px) { .hero h1 { font-size: 28px; } .hero p { font-size: var(--fs-body); } }
.search-form .search-where { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-3); }
.search-form .search-q { flex: 1 1 260px; margin: 0; }
.input-with-icon { position: relative; display: block; }
.input-with-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--n-600); pointer-events: none; }
.input-with-icon input { padding-left: 40px; }
.search-form .quick-chips { margin-top: var(--space-3); }
.search-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: var(--space-3); }
.search-form .form-grid p { margin-bottom: 0; }
.search-form .form-actions { justify-content: space-between; }
.search-form .power-filter { font-size: var(--fs-small); align-items: center; }
.search-form .power-filter > span:first-child { margin-top: 0; }
.locate-note { margin: var(--space-2) 0 0; }
.site-teaser h2 { margin: 0; }
.site-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.site-card { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.site-card-body { flex: 1 1 320px; min-width: 0; }
.site-card-body h3 { margin: 0 0 var(--space-1); }
.site-card-body h3 a { text-decoration: none; color: var(--n-950); }
.site-card-body h3 a:hover { color: var(--product); text-decoration: underline; }
.site-card-body p { margin: 0 0 var(--space-1); }
.site-desc { color: var(--n-700); font-size: var(--fs-small); }
.site-facts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--fs-small); margin-top: var(--space-2); }
.fact { display: inline-flex; align-items: center; gap: 4px; color: var(--n-700); }
.fact-free { color: var(--success); font-weight: 600; }
.fact-full { color: var(--n-600); font-weight: 600; }
.site-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); margin-left: auto; }
@media (max-width: 480px) { .site-card-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; margin-left: 0; } }
.site-card-full { opacity: .75; }
.site-card-directory { border-style: dashed; }
.login-card { max-width: 420px; margin-inline: auto; width: 100%; }
.login-card h1 { margin-bottom: var(--space-1); }
.login-note { margin: var(--space-3) 0 0; }

/* Betreiber-Registrierung */
.register-layout { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 960px) { .register-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.register-layout > * { min-width: 0; }
.register-form h2 { font-size: var(--fs-h3); margin: var(--space-4) 0 var(--space-2); }
.register-form h2:first-of-type { margin-top: 0; }
.form-grid-plz { grid-template-columns: minmax(90px, 1fr) minmax(0, 3fr); }
.register-aside h2 { margin-top: 0; font-size: var(--fs-h3); }
.steps { margin: 0 0 var(--space-3); padding-left: 1.3rem; display: grid; gap: var(--space-2); }
.steps li::marker { font-weight: 700; color: var(--product); }
.verify-note { margin-bottom: var(--space-4); }
.verify-note form { display: inline; }

/* HfM-Marke („Heute für Morgen“) auf Platzhalter */
.hfm-mark, .camp-mark { flex-shrink: 0; vertical-align: middle; }
.hero-with-mark { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.hero-mark { color: var(--product); opacity: .85; }
@media (max-width: 700px) { .hero-mark { display: none; } }
.portal-by { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.hfm-wordmark { height: 30px; width: auto; flex-shrink: 0; }

/* Logo-Varianten (Auswahlseite, nur Entwicklung) */
.mark-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.mark-card { display: flex; flex-direction: column; gap: var(--space-2); }
.mark-card.is-current { border-color: var(--product); box-shadow: 0 0 0 2px var(--product-20); }
.mark-card h2 { font-size: var(--fs-h3); margin: 0; }
.mark-card p { margin: 0; }
.mark-big { display: flex; justify-content: center; padding: var(--space-3) 0; color: var(--product); }
.mark-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--product); color: var(--white); border-radius: var(--r-md); font-weight: 600; }
.mark-small { display: flex; align-items: center; gap: var(--space-3); color: var(--n-700); }
.mark-tab { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--n-200); border-radius: 8px 8px 0 0; background: var(--n-050); font-size: var(--fs-caption); color: var(--n-950); }

/* Team: Profilbilder, Rollen */
.avatar-sm { width: 28px; height: 28px; }
.avatar-dark { background: var(--product-20); color: var(--product); }
.member { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.member > span { line-height: 1.3; }
.member:hover { text-decoration: underline; }
.member-head { display: flex; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-4); }
.member-head p { margin: 0; }
.avatar-upload { margin-top: var(--space-2); }
.avatar-upload input[type="file"] { padding: 6px; font-size: var(--fs-small); }
table.data td.wrap { white-space: normal; max-width: 36ch; }
.perm-list { border: 1px solid var(--n-200); border-radius: var(--r-md); padding: var(--space-2) var(--space-3) var(--space-3); margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); }
.perm-list legend { font-weight: 600; font-size: var(--fs-small); padding: 0 var(--space-1); }
.perm-list .check { align-items: center; }
.perm-list ul { list-style: none; margin: 0; padding: 0; display: contents; }
