/* Gastwerk öffentliche Website · statischer Rahmen (Plan Welle 3 T1.2).
 * Getrennt von base.css (Backoffice-Design-System, dieselbe Datei) - ein
 * Gast sieht die Pension, nicht das Backoffice.
 *
 * Port von v1 themes/default/assets/css/theme.css
 * (~/code/gastwerk-old/themes/default/assets/css/theme.css). Farben/Schriften
 * unten sind nur ein FALLBACK: die externe Theme-CSS-Route
 * (cms/theme_views.py, per <link> NACH dieser Datei eingebunden, siehe
 * cms/context_processors.py::theme) überschreibt --color-* / --font-* mit
 * den tatsächlich konfigurierten Werten (Settings -> theme.json -> diese
 * Defaults, cms/design/settings.py::DesignSettings). Kein Inline-<style>
 * (Plan Teil C.4 - unsere CSP kennt kein style-src 'unsafe-inline').
 *
 * --color-danger/--color-success/--color-warning sind NICHT Teil von
 * theme.json/der CSS-Route - feste, nicht konfigurierbare Statusfarben
 * (wie in v1).
 *
 * Kontrast: die Farben sind vom Betrieb konfigurierbar (Formular kommt in
 * einer späteren Welle), deshalb prüft cms/design/settings.py::
 * DesignSettings.contrast_warnings() rechnerisch (WCAG AA, ratio() in
 * cms/design/color.py) gegen CONTRAST_MINIMUM=4.5 und meldet eine
 * Warnung statt eines Fehlers (Plan T1.2) - eine ungünstige Wahl bleibt
 * speicherbar, aber sichtbar markiert.
 *
 * Kein Framework, kein Build-Schritt - wie base.css, dieselbe Begründung
 * (siehe dort).
 *
 * Welle 5, Task B1: Frame (Kopf/Fuß, siehe unten) und Grundelemente
 * (Typo-Hierarchie, Formulare, Tabellen, Badges, Leerzustände) auf das
 * Qualitätsniveau von base.css gehoben - ohne die konfigurierbare Menge zu
 * erweitern (Plan Teil C.5, Token-Vertrag oben). Jede neue Regel, die Text
 * auf einer Marken-Hintergrundfläche setzt, geht über --color-on-primary/
 * --color-on-accent (von cms/design/color.py::readable_text_on berechnet -
 * bei JEDER wählbaren Farbe die kontrastreichere von Hell/Dunkel, siehe
 * cms/tests/test_public_theme_contrast.py) oder über die abgeleiteten
 * -soft-Töne mit --color-text (wie schon .cms-preview-banner unten) - nie
 * über ein fest gewähltes Farbpaar. Status-Töne (Erfolg/Warnung/Fehler)
 * bleiben fest (siehe oben); ihre Flächen-Tints entstehen per CSS
 * color-mix() zur Laufzeit im Browser, kein Python-Vorabbau nötig.
 *
 * Welle 7, Dunkelmodus: folgt der System-Präferenz
 * (@media (prefers-color-scheme: dark)), ein manueller Override sitzt als
 * data-theme="light|dark" auf <html> (ui/js/theme.js, bereits Teil jeder
 * öffentlichen Seite über cms/public/layout.html - dasselbe Skript wie im
 * Backoffice, siehe dessen base.css-Dateikopf für die ausführliche
 * Begründung des Musters, hier bewusst 1:1 übernommen statt eines
 * zweiten). Die hintergrundabhängigen Tokens unten (--color-bg bis
 * --color-accent-ink) sind wie oben nur ein FALLBACK - die externe
 * Theme-CSS-Route liefert im Dunkelmodus denselben Block, aber aus
 * cms/design/settings.py::DesignSettings.dark_css_variables() gerechnet
 * (dort die volle Herleitung). Primär-/Akzentfarbe selbst, ihre -strong-
 * Töne und --color-on-primary/--color-on-accent hängen NICHT vom
 * Hintergrund ab (siehe DesignSettings) und bleiben deshalb in BEIDEN
 * Modi identisch - nur --color-danger/-success/-warning (fest, nicht
 * konfigurierbar, siehe oben) brauchen eine eigene, hier fest hinterlegte
 * dunkle Variante, weil sie nie über die Theme-CSS-Route laufen.
 *
 * --color-primary-ink/--color-accent-ink (DesignSettings::_ink()) sind
 * NEU seit Welle 7 und ERSETZEN rohes --color-primary/--color-accent
 * überall dort, wo eine der beiden Farben als Linktext/Icon/Rahmen DIREKT
 * auf --color-bg/--color-surface steht (a, .button--ghost:hover,
 * Fokusring, Formular-Fokusrahmen, Blockquote-Leiste, aktueller-Nav-Link,
 * Alert-Text unten) - eine im Hellmodus tadellos lesbare, aber sehr dunkle
 * Betriebsfarbe würde sonst auf der im Dunkelmodus ebenfalls dunklen
 * Seite verschwinden (und umgekehrt für eine sehr helle Farbe im
 * Hellmodus). Wo Primär-/Akzentfarbe stattdessen die FLÄCHE ist (Buttons,
 * .skip-link, .booking-panel), bleibt es bei --color-primary/--color-
 * accent + --color-on-primary/--color-on-accent (unverändert, siehe
 * oben) - dieses Paar ist bereits unabhängig vom Seitenhintergrund
 * lesbar. Wo Primär-/Akzentfarbe auf einer -soft-Fläche steht (Badges,
 * .cms-preview-banner, .feature__icon, .wizard-steps "erledigt" in
 * portal.css), gilt weiterhin der ältere Token-Vertrag (-soft-Ton +
 * --color-text, siehe oben) - dafür ist -ink NICHT gedacht.
 *
 * --color-control-border (DesignSettings::_control_border(), ebenfalls
 * NEU seit Welle 7 - Nachtrag nach Rückmeldung aus dem Browser-Test) ist
 * eine ANDERE Art Token-Vertrag: WCAG 1.4.11 ("Non-text Contrast", 3:1,
 * UI_CONTRAST_MINIMUM) statt WCAG 1.4.3 (Fließtext, CONTRAST_MINIMUM).
 * --color-border selbst ist als reine Haarlinie gedacht (Tabellen, <hr>,
 * .card - dort genügt ein dekorativer, unauffälliger Strich) und hält
 * das strengere Nicht-Text-Kriterium bei DIESER Vorlage nicht zuverlässig
 * ein (Vorgabe: #e3ddd3 gegen #fff = 1.35:1 im Hellmodus, im Dunkelmodus
 * sogar nur 1.06:1, weil dort color-border = color-text und color-surface
 * nah beieinander liegen). JEDES Bedienelement mit einer eigenen Fläche
 * (Eingabefeld, Checkbox/Radio, der Farbschema-Umschalter) benutzt
 * deshalb --color-control-border statt --color-border - Fokusring/
 * Fokus-Rahmen bleiben unverändert bei --color-accent-ink/--color-
 * primary-ink (die halten 1.4.11 durch CONTRAST_MINIMUM=4.5 ohnehin mit
 * Reserve, siehe deren Formel).
 */

:root {
    /* color-scheme: "light dark" sagt dem Browser, dass BEIDE Modi
       unterstützt sind - native, von uns nicht gestylte UI (Rolltext-
       Leiste, <select>-Pfeil, Datumspicker-Symbol, Standard-Fokusrahmen
       von Checkbox/Radio) folgt dann automatisch der System-Präferenz,
       statt (wie ohne diese Deklaration) grundsätzlich hell zu bleiben.
       [data-theme="dark"]/[data-theme="light"] unten überschreiben das
       gezielt auf EINEN Wert für den manuellen Override. */
    color-scheme: light dark;
    --color-bg: #faf7f2;
    --color-surface: #ffffff;
    --color-surface-alt: #f1ece4;
    --color-border: #e3ddd3;
    --color-text: #1f2a2e;
    --color-muted: #56666b;
    --color-primary: #2f5d62;
    --color-primary-strong: #25484c;
    --color-primary-soft: #e3e7e4;
    --color-on-primary: #ffffff;
    --color-primary-ink: #2f5d62;
    --color-accent: #d9a066;
    --color-accent-strong: #c08d5a;
    --color-accent-soft: #f1e0cb;
    --color-on-accent: #1f2a2e;
    --color-accent-ink: #1f2a2e;
    /* Bedienelement-Umriss (WCAG 1.4.11, cms/design/settings.py::
       DesignSettings._control_border()) - NICHT --color-border direkt:
       das ist eine reine Haarlinie (Tabellen/<hr>) und hält das
       Nicht-Text-Kriterium bei DIESER Vorlage nicht ein (#e3ddd3 gegen
       #fff = 1.35:1, siehe dortiger Docstring). */
    --color-control-border: #56666b;
    --color-danger: #a4282a;
    --color-success: #2f6b3f;
    --color-warning: #8a5a00;
    --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
    --step-0: clamp(1rem, .97rem + .15vw, 1.075rem);
    --step-1: clamp(1.2rem, 1.12rem + .35vw, 1.4rem);
    --step-2: clamp(1.42rem, 1.28rem + .65vw, 1.8rem);
    --step-3: clamp(1.7rem, 1.46rem + 1.1vw, 2.4rem);
    --step-4: clamp(2.05rem, 1.66rem + 1.9vw, 3.15rem);
    --step-5: clamp(2.45rem, 1.8rem + 3.2vw, 4.3rem);
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: clamp(3rem, 2rem + 4vw, 5rem);
    --space-9: clamp(4.5rem, 3rem + 6vw, 8rem);
    --radius: 14px;
    --radius-small: 8px;
    --content-width: 72rem;
    --shadow-sm: 0 1px 2px rgb(31 42 46 / .05), 0 2px 8px -2px rgb(31 42 46 / .06);
    --shadow-md: 0 6px 16px -4px rgb(31 42 46 / .1), 0 2px 4px -2px rgb(31 42 46 / .05);
    --shadow-lg: 0 22px 44px -16px rgb(31 42 46 / .22);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-height: 4.5rem;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --color-bg: #141b1e;
        --color-surface: #1b2528;
        --color-surface-alt: #182023;
        --color-border: #1f2a2e;
        --color-text: #faf7f3;
        --color-muted: #a7a9a8;
        --color-primary-soft: #19272a;
        --color-accent-soft: #473e31;
        --color-primary-ink: #faf7f3;
        --color-accent-ink: #d9a066;
        --color-control-border: #a7a9a8;
        --color-danger: #ff8a80;
        --color-success: #6fe0a0;
        --color-warning: #f2c46b;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --color-bg: #141b1e;
    --color-surface: #1b2528;
    --color-surface-alt: #182023;
    --color-border: #1f2a2e;
    --color-text: #faf7f3;
    --color-muted: #a7a9a8;
    --color-primary-soft: #19272a;
    --color-accent-soft: #473e31;
    --color-primary-ink: #faf7f3;
    --color-accent-ink: #d9a066;
    --color-control-border: #a7a9a8;
    --color-danger: #ff8a80;
    --color-success: #6fe0a0;
    --color-warning: #f2c46b;
}

/* Manueller Override auf "hell", während das Betriebssystem Dunkelmodus
   meldet (ui/js/theme.js) - ohne dies bliebe color-scheme (s.o.) auf
   "light dark" stehen und native, ungestylte UI (Datumspicker etc.)
   würde trotz hellem Seitenlayout dunkel bleiben. Keine der übrigen
   --color-*-Variablen braucht hier eine eigene Zeile: die UNBEDINGTEN
   Werte oben in :root SIND bereits die hellen. */
:root[data-theme="light"] {
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-4)); }
body.site { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; color: var(--color-text); background: var(--color-bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
html.nav-open body.site { overflow: hidden; }
main { flex: 1; }
main:focus { outline: none; }
img, svg, picture, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--space-3); font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-text); text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5, h6 { font-family: var(--font-body); font-size: var(--step-0); text-transform: uppercase; letter-spacing: .06em; }
p, ul, ol, address, figure, blockquote { margin: 0; }
p + p { margin-top: var(--space-3); }
ul, ol { padding-left: 1.25em; }
blockquote { padding-left: var(--space-4); border-left: 3px solid var(--color-accent-ink); color: var(--color-muted); font-style: italic; }
hr { margin-block: var(--space-6); border: 0; border-top: 1px solid var(--color-border); }
a { color: var(--color-primary-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .15s var(--ease); }
a:hover { color: var(--color-primary-strong); }
:focus-visible { outline: 3px solid var(--color-accent-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--color-accent-soft); color: var(--color-text); }
.icon { flex: none; width: 1.25em; height: 1.25em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--color-muted); }

/* Markenfarbe statt --color-text/#fff (bis Welle 6): --color-text tauscht
   im Dunkelmodus die Rolle mit --color-bg (siehe theme.css-Dateikopf oben)
   und würde ein fest weißes Label sonst auf ebenfalls fast-weißem Grund
   unsichtbar machen. --color-primary/--color-on-primary bleiben dagegen
   in BEIDEN Modi dasselbe, kontrastgeprüfte Paar (DesignSettings). */
.skip-link { position: absolute; top: var(--space-2); left: var(--space-2); z-index: 100; padding: var(--space-2) var(--space-4); border-radius: var(--radius-small); background: var(--color-primary); color: var(--color-on-primary); font-weight: 600; transform: translateY(-200%); transition: transform .2s var(--ease); }
.skip-link:focus { transform: none; color: var(--color-on-primary); }

.container { width: 100%; max-width: var(--content-width); margin-inline: auto; padding-inline: clamp(1rem, .5rem + 2.5vw, 2rem); }
.container--narrow { max-width: 46rem; }
.container--wide { max-width: 88rem; }

/* Schaltflächen */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 2.75rem; padding: .6rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font: 600 var(--step--1)/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.button .icon { width: 1.1rem; height: 1.1rem; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: none; }
.button--primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-sm); }
.button--primary:hover { background: var(--color-primary-strong); color: var(--color-on-primary); box-shadow: var(--shadow-md); }
.button--accent { background: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--shadow-sm); }
.button--accent:hover { background: var(--color-accent-strong); color: var(--color-on-accent); box-shadow: var(--shadow-md); }
.button--ghost { border-color: var(--color-control-border); background: transparent; color: var(--color-text); }
.button--ghost:hover { border-color: var(--color-primary-ink); color: var(--color-primary-ink); }
.button--ghost-light { border-color: rgb(255 255 255 / .35); background: transparent; color: inherit; }
.button--ghost-light:hover { border-color: #fff; color: #fff; }
.button--large { min-height: 3.25rem; padding: .85rem 1.75rem; font-size: var(--step-0); }
.button--block { width: 100%; }
.button:disabled, .button[aria-disabled="true"] { opacity: .55; box-shadow: none; cursor: not-allowed; }
.button:disabled:hover, .button[aria-disabled="true"]:hover { transform: none; }

/* Kopf */
/* color-mix() statt eines fest hellen rgb()-Literals (bis Welle 6): die
   halbtransparente Kopfzeile muss die jeweils aktive --color-bg/-border
   durchscheinen lassen, sonst bliebe sie im Dunkelmodus ein heller Streifen
   über dunkler Seite (color-mix() wird bereits an anderer Stelle in dieser
   Datei verwendet, siehe .badge--success unten - kein neues Verfahren). */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--color-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--color-bg); } }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; margin-right: auto; color: var(--color-text); text-decoration: none; }
.brand__name { font-family: var(--font-heading); font-size: var(--step-2); font-weight: 600; letter-spacing: -.01em; }
.brand__logo { width: auto; max-height: 2.75rem; }
.site-nav, .site-header__actions { display: none; }
.site-nav__list { display: flex; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.site-nav__link { position: relative; display: block; padding: var(--space-2) var(--space-3); color: var(--color-text); font-weight: 500; text-decoration: none; }
.site-nav__link::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: .2rem; height: 2px; border-radius: 2px; background: var(--color-accent-ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { align-items: center; gap: var(--space-4); }
.lang-switch { display: flex; gap: var(--space-1); margin: 0; padding: 0; list-style: none; font-size: var(--step--1); font-weight: 600; letter-spacing: .06em; }
.lang-switch a, .lang-switch__current { display: block; padding: var(--space-1) var(--space-2); border-radius: var(--radius-small); text-decoration: none; }
.lang-switch a { color: var(--color-muted); }
.lang-switch a:hover { color: var(--color-text); background: var(--color-surface-alt); }
.lang-switch__current { color: var(--color-text); background: var(--color-surface-alt); }

/* Farbschema-Umschalter (Welle 9: EIN zyklischer Knopf statt der
   früheren drei Kacheln, siehe cms/public/partials/theme_toggle.html) -
   grundwerk_uis theme.js (ab 0.1.2, schon Teil jeder öffentlichen Seite,
   siehe cms/public/layout.html) übernimmt das Zyklus-Verhalten
   (``data-gw-theme-cycle``) und spiegelt den aufgelösten Zustand als
   ``data-gw-theme-current`` auf <html>; hier nur reines CSS, das genau
   das zum aktuellen Zustand passende Icon zeigt. Eigene Regel statt
   geteilter Klasse mit der Verwaltung: theme.css/grundwerk_uis
   Design-System bleiben getrennte Design-Systeme (siehe
   theme.css-Dateikopf), nur das Skript ist geteilte Infrastruktur. */
.theme-toggle { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; min-width: 1.5rem; min-height: 1.5rem; padding: 0; border: 1px solid var(--color-control-border); border-radius: 999px; background: var(--color-surface); color: var(--color-muted); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.theme-toggle:hover { color: var(--color-primary-ink); background: var(--color-surface-alt); border-color: var(--color-primary); }
.theme-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.theme-toggle [data-gw-theme-icon] { display: none; }
.theme-toggle [data-gw-theme-icon="system"] { display: inline-flex; }
html[data-gw-theme-current="light"] .theme-toggle [data-gw-theme-icon="system"],
html[data-gw-theme-current="dark"] .theme-toggle [data-gw-theme-icon="system"] { display: none; }
html[data-gw-theme-current="light"] .theme-toggle [data-gw-theme-icon="light"],
html[data-gw-theme-current="dark"] .theme-toggle [data-gw-theme-icon="dark"] { display: inline-flex; }

.nav-mobile { position: static; }
.nav-mobile__toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; padding: 0 var(--space-3); border: 1px solid var(--color-control-border); border-radius: 999px; font-weight: 600; font-size: var(--step--1); cursor: pointer; list-style: none; user-select: none; }
.nav-mobile__toggle::-webkit-details-marker { display: none; }
.nav-mobile__close, .nav-mobile[open] .nav-mobile__open { display: none; }
.nav-mobile[open] .nav-mobile__close { display: block; }
.nav-mobile__panel { position: absolute; inset: 100% 0 auto; display: grid; gap: var(--space-5); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: var(--space-5) clamp(1rem, .5rem + 2.5vw, 2rem) var(--space-6); background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg); animation: slide-down .25s var(--ease); }
.nav-mobile__list { display: grid; margin: 0; padding: 0; list-style: none; }
.nav-mobile__list a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); color: var(--color-text); font-family: var(--font-heading); font-size: var(--step-2); text-decoration: none; }
.nav-mobile__list a[aria-current="page"] { color: var(--color-primary-ink); }
@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 60rem) {
    .site-nav, .site-header__actions { display: flex; }
    .nav-mobile { display: none; }
}

/* Seitenkopf, Vorschau, Hinweise */
.page-header { padding-block: var(--space-8) var(--space-6); background: linear-gradient(180deg, var(--color-surface-alt), var(--color-bg)); }
.page-header__title { margin: 0; font-size: var(--step-4); letter-spacing: -.015em; }
.page-header__lead { max-width: 52ch; margin-top: var(--space-3); font-size: var(--step-1); color: var(--color-muted); }
.cms-preview-banner { padding: var(--space-2) var(--space-4); text-align: center; font-weight: 600; background: var(--color-accent-soft); color: var(--color-text); }
.flashes { display: grid; gap: var(--space-2); padding-top: var(--space-4); }
.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-small); border-left: 4px solid currentColor; background: var(--color-surface); box-shadow: var(--shadow-sm); }
.alert-success { color: var(--color-success); }
.alert-error, .alert-danger { color: var(--color-danger); }
.alert-warning { color: var(--color-warning); }
.alert-info, .alert-debug { color: var(--color-primary-ink); }

/* Karten und Formulare */
.card { padding: var(--space-6); border-radius: var(--radius); background: var(--color-surface); box-shadow: var(--shadow-md); }
.site .form-row { margin-bottom: var(--space-4); }
.site label { display: block; margin-bottom: var(--space-1); font-weight: 600; font-size: var(--step--1); }
.site input:not([type="checkbox"], [type="radio"], [type="hidden"]), .site select, .site textarea { width: 100%; min-height: 2.75rem; padding: .55rem .8rem; border: 1px solid var(--color-control-border); border-radius: var(--radius-small); background: var(--color-surface); color: var(--color-text); font: inherit; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.site textarea { min-height: 8rem; resize: vertical; }
.site input:focus, .site select:focus, .site textarea:focus { outline: none; border-color: var(--color-primary-ink); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.site input[type="checkbox"], .site input[type="radio"] { width: 1.15rem; height: 1.15rem; margin: 0 var(--space-2) 0 0; vertical-align: -.15em; border: 1px solid var(--color-control-border); accent-color: var(--color-primary); }
.site .form-row:has(input[type="checkbox"]), .site .form-row:has(input[type="radio"]) { display: flex; flex-wrap: wrap; align-items: center; }
.site .form-row:has(input[type="checkbox"]) label, .site .form-row:has(input[type="radio"]) label { order: 2; margin: 0; font-weight: 400; }
.site .form-row:has(input[type="checkbox"]) .form-error, .site .form-row:has(input[type="radio"]) .form-error { order: 3; flex-basis: 100%; }
.site .form-error { margin: var(--space-1) 0 0; padding: 0; list-style: none; color: var(--color-danger); font-size: var(--step--1); }
.site .form-row:has(.form-error) input:not([type="checkbox"], [type="radio"], [type="hidden"]),
.site .form-row:has(.form-error) select,
.site .form-row:has(.form-error) textarea { border-color: var(--color-danger); }
.site fieldset { margin: 0 0 var(--space-4); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-small); }
.site fieldset .form-row:last-child { margin-bottom: 0; }
.site legend { padding: 0 var(--space-2); font-weight: 600; font-size: var(--step--1); }
.site input:disabled, .site select:disabled, .site textarea:disabled { background: var(--color-surface-alt); color: var(--color-muted); cursor: not-allowed; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
.site table { width: 100%; border-collapse: collapse; margin-block: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-small); overflow: hidden; font-size: var(--step--1); }
.site th, .site td { padding: var(--space-2) var(--space-3); text-align: left; border-bottom: 1px solid var(--color-border); }
.site thead th { background: var(--color-surface-alt); color: var(--color-muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.site tbody tr:last-child td { border-bottom: none; }
.site tbody tr:hover { background: var(--color-surface-alt); }

/* Badges - fest genutzt: -soft-Tönungen (Primär/Akzent) + --color-text
   bzw. eine per color-mix() zur Laufzeit erzeugte Tönung der festen
   Statusfarben - nie ein hartkodiertes Farbpaar (Kommentar Dateikopf). */
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .15em .7em; border-radius: 999px; font-size: var(--step--1); font-weight: 600; letter-spacing: .01em; line-height: 1.6; white-space: nowrap; }
.badge--primary { background: var(--color-primary-soft); color: var(--color-text); }
.badge--accent { background: var(--color-accent-soft); color: var(--color-text); }
.badge--success { background: color-mix(in srgb, var(--color-success) 14%, var(--color-surface)); color: var(--color-success); }
.badge--warning { background: color-mix(in srgb, var(--color-warning) 14%, var(--color-surface)); color: var(--color-warning); }
.badge--danger { background: color-mix(in srgb, var(--color-danger) 14%, var(--color-surface)); color: var(--color-danger); }
.badge--muted { background: var(--color-surface-alt); color: var(--color-muted); border: 1px solid var(--color-border); }

/* Leerzustand - eigenständig (Karten/Listen) oder als einzelne, über alle
   Spalten laufende Tabellenzelle (<tr><td colspan="…">…</td></tr>), analog
   base.css. */
.empty-state { padding: var(--space-7) var(--space-4); border: 1px dashed var(--color-border); border-radius: var(--radius); text-align: center; color: var(--color-muted); }
.site tbody tr:only-child td[colspan] { padding: var(--space-7) var(--space-4); text-align: center; color: var(--color-muted); }
.site tbody tr:only-child:has(td[colspan]):hover { background: transparent; }

/* Fuß */
.site-footer { margin-top: var(--space-9); padding-top: var(--space-8); color: #e9eeec; background: #1d2b2e; }
.site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / .35); }
.site-footer a:hover { text-decoration-color: currentColor; }
.site-footer__grid { display: grid; gap: var(--space-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); padding-bottom: var(--space-7); }
.site-footer__brand { display: grid; gap: var(--space-3); justify-items: start; }
.site-footer__name { font-family: var(--font-heading); font-size: var(--step-2); color: #fff; }
.site-footer__tagline { color: #b9c6c3; }
.site-footer__heading { margin-bottom: var(--space-4); font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #b9c6c3; }
.site-footer__address { display: grid; gap: var(--space-2); font-style: normal; }
.site-footer__address a { display: inline-flex; align-items: center; gap: var(--space-2); }
.site-footer__links { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.site-footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); padding-block: var(--space-5); border-top: 1px solid rgb(255 255 255 / .12); font-size: var(--step--1); color: #b9c6c3; }
.site-footer__powered, .site-footer__powered a { color: #93a5a1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    .site-header, .site-footer, .skip-link, .booking-panel, .map { display: none !important; }
    body.site { background: #fff; }
}
