/* Hallmark · checked: 2026-11-05 · genre: editorial (inferred)
 * floor: 0 FAIL · fixed: 4, 6a, 44b, 15, 19, 26a, 34, 39a, 39b, 48, 49a, 50, 62, 63, 67, 70 · structural: printed (9, 42, 44b, 58, 59)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · waive 83 · alle 13 Fotos sind eigene Aufnahmen des Hauses, der Rundgang ist eine Galerie eigener Arbeit · ein Ferienhaus verkauft sich über seine Fotos, der Steg führt jetzt über die volle Breite */
/* Hallmark · dismissed 11 · das Foto ist Klickziel der Fotobox, der leichte Zoom zeigt das an und ist so gewollt */
/* Hallmark · dismissed 41 · der Hero-Rahmen selbst trägt keinen Text, .hero__content setzt die Textfarbe */
/* Hallmark · waive 72 · die Messung trifft Text in zugeklappten Fragen, der Rand der offenen Kästen stimmt · die Antwort zur Stornierung ist geschlossen unsichtbar und ragt nur rechnerisch aus der Karte */
/* Hallmark · dismissed 49 · die E-Mail-Zeile im Menü ist bewusst zweizeilig: Beschriftung über dem Linktext */
/* Hallmark · reworded "Anreise – Abreise" to "Anreise und Abreise" · 19 names the dash */
/* Hallmark · reworded "Vielen Dank! Ihre Anfrage ist eingegangen. Wir melden uns zeitnah bei Ihnen." to "Noch nicht übertragen." mit Telefon und E-Mail · 70 names the fake send */
/* Urlaub an der Eider – Stylesheet
   Gewählt: Hero aus Variante B, übrige Seite aus Variante C (2026-11-02).
   Alle Designwerte stehen zentral in :root. Keine externen Ressourcen. */

/* Schriften liegen lokal in fonts/ (SIL Open Font License, Lizenztexte daneben). */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  /* Farben aus dem echten Haus und dem Logo:
     Hauswand (helles Weiß), Logo-Schiefer #313F46, Grün der Haustür, Sonne aus dem Logo #EBAE29 */
  --surface: #f6f7f5;
  --surface-low: #eff1ee;
  --surface-container: #e7ebe7;
  --surface-high: #dce1dd;
  --surface-highest: #d0d6d2;
  --canvas: #fcfcfb;

  --primary: #313f46;              /* Logo-Schiefer: Überschriften, dunkle Flächen */
  --on-primary: #fcfcfb;
  --secondary: #2e5b3c;            /* Grün der Haustür: Textakzente, Icons */
  --sun-gold: #ebae29;             /* Sonne aus dem Logo: Buttons */
  --sun-hover: #df9f17;
  --on-dark-muted: #b8c4c9;        /* Nebentext auf Schiefer */

  --on-surface: #1f292e;           /* Haupttext */
  --on-surface-variant: #4a565c;   /* Sekundärtext */
  --outline: #646f75;
  --outline-variant: #c2cacc;
  --error: #b3261e;

  /* Schriften: Newsreader für Überschriften, Schibsted Grotesk für Text und Hero */
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Formensprache: feine Rundungen */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;

  --margin-mobile: 1.25rem;
  --margin-desktop: 3rem;
  --container: 80rem;
  --header-h: 5rem;
  --finder-h: 17rem; /* Höhe der Anfrageleiste samt Abstand: der Hero lässt ihr Platz im ersten Bildschirm */

  --shadow-sm: 0 1px 3px rgba(31, 41, 46, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(31, 41, 46, 0.08);
  --shadow-header: 0 1px 8px rgba(31, 41, 46, 0.06);
  --shadow-cal: 0 12px 32px -8px rgba(31, 41, 46, 0.25);

  /* Überlagerungen: Deckkraft gehört zur Farbe */
  --on-dark-wash: rgba(255, 255, 255, 0.12);
  --on-dark-line: rgba(252, 252, 251, 0.35);
  --on-dark-hover: rgba(252, 252, 251, 0.18);
  --rule-soft: rgba(49, 63, 70, 0.08);
  --range: rgba(46, 91, 60, 0.14);
  --scrim-drawer: rgba(31, 41, 46, 0.46);
  --scrim-button: rgba(31, 41, 46, 0.6);
  --scrim-lightbox: rgba(31, 41, 46, 0.92);
  /* Hero-Verlauf: Weiß auf hellster Videostelle ca. 4,7:1. Nicht abschwächen, ohne neu zu rechnen. */
  --scrim-hero-1: rgba(31, 41, 46, 0.45);
  --scrim-hero-2: rgba(31, 41, 46, 0.25);
  --scrim-hero-3: rgba(31, 41, 46, 0);

  /* Bewegung: nur in Langform-Properties verwenden (Firefox, siehe CLAUDE.md) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --fs-h1: 2rem;
  --lh-h1: 2.5rem;
}

@media (min-width: 768px) {
  :root {
    --fs-h1: 2.75rem;
    --lh-h1: 3.25rem;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1px); /* Kopfleiste (5rem) plus ihre 1px-Linie: Abschnitt beginnt genau an der Kante */
  -webkit-text-size-adjust: 100%;
          text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ul { margin: 0; padding: 0; }
h1, h2, h3 { overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}
.hero :focus-visible { outline-color: var(--sun-gold); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Icons (SVG-Sprite im HTML) ---------- */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 1rem; height: 1rem; }

/* ---------- Typografie ---------- */
.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance; /* ältere Browser brechen normal um */
}
.h1, .h2 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
.h3 { font-size: 1.625rem; line-height: 2rem; }
.h4 { font-size: 1.3rem; line-height: 1.75rem; }
.muted { color: var(--on-surface-variant); }
.small { font-size: 0.875rem; line-height: 1.375rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}
@media (min-width: 1024px) {
  .container { padding-left: var(--margin-desktop); padding-right: var(--margin-desktop); }
}

.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 6.5rem 0; } }
.section--sand { background: var(--surface-low); }
.section--canvas { background: var(--canvas); }
.section--linen { background: var(--surface); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) { .section-head { margin-bottom: 3.75rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition-property: background-color, border-color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--sun-gold);
  border-color: var(--sun-gold);
  color: var(--primary);
}
.btn--primary:hover {
  background: var(--sun-hover);
  border-color: var(--sun-hover);
  box-shadow: var(--shadow-md);
}
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--surface-high);
}
/* Fläche auf Pseudo-Element: Effekte am Header selbst würden Nachfahren mit position:fixed einfangen */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: var(--surface);
  box-shadow: var(--shadow-header);
}
.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; min-width: 0; text-decoration: none; }
.brand__logo { height: 2.5rem; width: auto; } /* Logo enthält den Namen bereits */

.nav__list { display: flex; flex-direction: column; gap: 0.25rem; }
.nav__link {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--primary); background: var(--surface-low); }
}
.nav__link[aria-current] { background: var(--surface-container); color: var(--primary); }

/* Nur im Mobil-Drawer sichtbar */
.nav__head, .nav__sect, .nav__extra, .nav__cta, .nav__ic, .nav-backdrop { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.site-header__cta { display: none; padding: 0.625rem 1.25rem; }
.menu-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-sm);
  background: var(--surface-container);
  color: var(--primary);
  cursor: pointer;
}
/* Drei Striche, die sich zum Kreuz legen */
.menu-btn span {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition-property: transform, opacity;
  transition-duration: 300ms;
  transition-timing-function: ease;
}
.menu-btn span + span { margin-top: 4px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Ohne JS: Navigation immer sichtbar (statisch unter dem Balken) */
html:not(.js) .menu-btn { display: none; }

/* ---------- Mobil-Drawer: fährt von rechts herein, Inhalt in Abschnitten ---------- */
@media (max-width: 767px) {
  html:not(.js) .nav {
    padding: 0.75rem var(--margin-mobile) 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-high);
  }
  .js .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(89vw, 22.875rem);
    padding-bottom: 1.75rem;
    overflow-x: hidden; /* einrückende Einträge dürfen keinen Querbalken auslösen */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--canvas);
    transform: translateX(100%);
    visibility: hidden; /* zu: nicht per Tab und nicht für Screenreader erreichbar */
  }
  .js .nav.is-open { transform: none; visibility: visible; }

  .js .nav__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    padding: 1.375rem 1.25rem;
    background: var(--primary);
  }
  /* Logo ist schieferfarben: braucht auf der dunklen Karte einen hellen Grund */
  .nav__brand {
    display: block;
    min-width: 0;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-md);
    background: var(--canvas);
  }
  .nav__brand img { height: 2.25rem; width: auto; }
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--on-dark-wash);
    color: var(--on-primary);
    cursor: pointer;
  }
  .nav__head :focus-visible { outline-color: var(--sun-gold); }

  .js .nav__sect {
    display: block;
    padding: 1.25rem 1.375rem 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
  }

  .js .nav__list { display: block; }
  .js .nav__ic { display: block; width: 1.5rem; height: 1.5rem; stroke-width: 1.5; color: var(--secondary); }
  .js .nav__link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-height: 3.25rem;
    padding: 0.8125rem 1.375rem;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    color: var(--primary);
  }
  .js .nav__link:focus-visible { outline-offset: -2px; }
  .js .nav li:not(:last-child) .nav__link:not([href^="tel:"]) { border-bottom: 1px solid var(--rule-soft); } /* Kontaktzeilen ohne Linie */
  .js .nav__link[aria-current] { box-shadow: inset 3px 0 0 var(--sun-gold); }

  .nav__tx { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; }
  .nav__tx small {
    margin-bottom: 1px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--secondary);
  }

  .js .nav__cta { display: flex; margin: 1.125rem 1.375rem 0.125rem; }

  .js .nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    touch-action: none; /* iOS: Seite dahinter scrollt nicht mit */
    background: var(--scrim-drawer);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
  }
  .js .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav__list { flex-direction: row; gap: 0.5rem; }
  .nav__link { padding: 0.5rem 0.875rem; white-space: nowrap; }
  .site-header__cta { display: inline-flex; }
}
/* iPad hochkant: alle Punkte passen in eine Zeile, ohne umzubrechen */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__list { gap: 0.25rem; }
  .nav__link { padding: 0.5rem; font-size: 0.8125rem; }
  .site-header__cta { padding: 0.625rem 0.75rem; font-size: 0.8125rem; }
}

main { padding-top: var(--header-h); }

/* ---------- Hero: Hausfoto, Text unten links auf einem Verlauf ---------- */
/* --hero-gap: gleicher Abstand oben (zur Menüleiste) und unten (zum nächsten Abschnitt) */
.hero { --hero-gap: 1rem; padding: var(--hero-gap) 0; }
@media (min-width: 1024px) { .hero { --hero-gap: 1.5rem; } }
@media (min-width: 640px) { :root { --finder-h: 10.75rem; } }
@media (min-width: 1024px) { :root { --finder-h: 6.75rem; } }
.hero__frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* Mindesthöhe statt fester Höhe: bei großem Text wächst der Rahmen mit, nichts wird abgeschnitten */
  min-height: clamp(20rem, calc(100svh - var(--header-h) - 2 * var(--hero-gap) - var(--finder-h)), 52rem);
  border-radius: var(--radius-lg);
  background: var(--primary);
}
.hero__img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
/* Foto über dem Video: blendet aus, sobald das Video läuft (main.js). Das Video wird nur verdeckt, nicht unsichtbar gemacht,
   damit kein Browser es als unsichtbar einstuft und anhält. */
.hero__photo {
  transition-property: opacity;
  transition-duration: 1500ms;
  transition-timing-function: ease;
}
.hero__photo.is-faded { opacity: 0; }
/* Zweites Video liegt über dem ersten und blendet ein und aus; das erste bleibt deckend, so scheint nie der Hintergrund durch.
   Dauer wie FADE in main.js */
.hero__video2, .hero__still2 {
  opacity: 0;
  transition-property: opacity;
  transition-duration: 2500ms;
  transition-timing-function: linear;
}
.hero__video2.is-on, .hero__still2.is-on { opacity: 1; }
/* Video-Knopf oben rechts: bewegte Inhalte über 5 s brauchen eine Haltetaste (WCAG 2.2.2). Grundstil wie die Fotobox-Knöpfe */
.hero__toggle { top: 1rem; right: 1rem; z-index: 1; }
.hero__toggle[hidden] { display: none; }
.hero__toggle .icon--play, .hero__toggle.is-paused .icon--pause { display: none; }
.hero__toggle.is-paused .icon--play { display: block; }
.hero__frame::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--scrim-hero-1), var(--scrim-hero-2) 45%, var(--scrim-hero-3) 72%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; width: 100%; padding: 2rem 1.5rem 1.25rem; color: var(--on-primary); }
@media (min-width: 768px) { .hero__content { padding: 3rem 3rem 1.75rem; } }
/* Titel in einer Zeile: Schriftgröße folgt der Fensterbreite (abzüglich Ränder), Deckel bei 6rem.
   Kein nowrap: bei vergrößertem Text oder Textabstand bricht er um statt abgeschnitten zu werden (WCAG 1.4.12) */
.hero__title {
  font-family: var(--font-display);
  font-size: max(2.5rem, calc((100vw - 5.5rem) / 10)); /* Handy: darf zweizeilig werden, nie kleiner als h2 */
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--on-primary);
}
@media (min-width: 768px) { .hero__title { font-size: min(6rem, calc((100vw - 8.5rem) / 10)); } }
@media (min-width: 1024px) { .hero__title { font-size: min(6rem, calc((100vw - 12rem) / 9.6)); } }
.hero__content p { margin-top: 0.25rem; max-width: 32rem; font-size: 1.125rem; line-height: 1.6; color: var(--on-primary); text-wrap: balance; }
@media (min-width: 768px) { .hero__content p { margin-top: -0.35rem; padding-left: 0.25rem; } } /* optisch bündig zum U des großen Titels */
.hero__content .btn { margin-top: 1.75rem; }

/* ---------- Anfrageleiste unter dem Hero: Zeitraum mit Kalender, Gäste, Button ---------- */
/* Ohne JS gibt es keinen Kalender: Leiste entfällt, die Anfrage-Knöpfe führen weiter zum Formular */
html:not(.js) .finder { display: none; }
.finder { position: relative; z-index: 2; padding-bottom: 1.5rem; } /* z-index: Kalender liegt über dem folgenden Abschnitt */
.finder__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.875rem;
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) {
  .finder__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder__submit, .finder__error { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .finder__bar { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; }
  .finder__submit { grid-column: auto; }
}
.finder__field { position: relative; }
.finder__label {
  position: absolute;
  top: 0.4375rem;
  left: 3rem;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--on-surface-variant);
  pointer-events: none;
}
.finder__control {
  display: block;
  width: 100%;
  height: 3.25rem;
  padding: 1.25rem 2.75rem 0.25rem 3rem;
  border: 1px solid var(--outline); /* wie .input: 3:1 zur Fläche (WCAG 1.4.11) */
  border-radius: var(--radius-sm);
  background: var(--surface-low);
  color: var(--primary);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  transition-property: background-color, border-color;
  transition-duration: 150ms;
  transition-timing-function: ease;
}
.finder__control:hover { border-color: var(--primary); }
.finder__control:focus-visible { background: var(--canvas); outline: 2px solid var(--secondary); outline-offset: 2px; }
.finder__control[aria-expanded="true"] { background: var(--canvas); border-color: var(--primary); }
.finder__icon, .finder__chev { position: absolute; top: 50%; margin-top: -0.625rem; pointer-events: none; }
.finder__icon { left: 1rem; color: var(--secondary); }
.finder__chev { right: 1rem; color: var(--on-surface-variant); transition-property: transform; transition-duration: 300ms; transition-timing-function: ease; }
.finder__field--dates:has([aria-expanded="true"]) .finder__chev { transform: rotate(180deg); }
.finder__value { display: inline-flex; align-items: center; gap: 0.5rem; }
.finder__value.is-empty [data-in], .finder__value.is-empty [data-out] { color: var(--outline); font-weight: 500; }
.finder__to { color: var(--secondary); }
.finder__submit { height: 3.25rem; padding-left: 2rem; padding-right: 2rem; font-size: 1rem; }
.finder__error { margin: 0; }
.finder__error[hidden] { display: none; }

/* Kalender: ein Monat mobil, zwei ab 768 px */
.cal {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 10;
  padding: 3.5rem 1rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-cal);
}
.cal[hidden] { display: none; }
.cal:not([hidden]) { animation-name: fade; animation-duration: 450ms; animation-timing-function: ease; }
@media (min-width: 768px) { .cal { right: auto; width: 38rem; max-width: calc(100vw - 2 * var(--margin-mobile)); } }
.cal__nav { position: absolute; top: 0.75rem; left: 0.75rem; right: 0.75rem; display: flex; justify-content: space-between; z-index: 1; }
.cal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--surface-high);
  border-radius: 50%;
  background: var(--surface-low);
  color: var(--secondary);
  cursor: pointer;
  transition-property: background-color;
  transition-duration: 150ms;
  transition-timing-function: ease;
}
.cal__btn:hover:not(:disabled) { background: var(--surface-container); }
.cal__btn:disabled { color: var(--outline-variant); cursor: default; }
.cal__months { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .cal__months { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
.cal__title { height: 2.5rem; margin: -2.75rem 0 0.5rem; font-family: var(--font-display); font-size: 1.25rem; line-height: 2.5rem; text-align: center; color: var(--primary); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.cal__wd { padding: 0.25rem 0; font-size: 0.75rem; font-weight: 700; text-align: center; color: var(--on-surface-variant); }
.cal__day {
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .cal__day:hover:not(:disabled):not([aria-disabled="true"]):not(.is-start):not(.is-end) { background: var(--surface-container); } }
.cal__day:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; position: relative; }
.cal__day:disabled { color: var(--outline-variant); cursor: default; }
/* Belegung: vor .is-range/.is-start/.is-end, damit gewählte Tage ihre Farbe behalten. Durchgestrichen, nicht nur grau (nicht allein über Farbe). */
.cal__day[aria-disabled="true"] { cursor: not-allowed; }
.cal__day.is-occupied { background: var(--surface-highest); color: var(--on-surface-variant); text-decoration: line-through; }
/* Tageshälften: am = Nacht davor (oben links, bis zum Morgen), pm = Nacht dieses Tages (unten rechts, ab dem Abend).
   Belegt grau, angefragt gold mit Punkt (nicht nur Farbe). Gold #f8e6bd mit Text/Punkt #4d3a0c: Kontrast 8,9:1. */
.cal__day.is-am-occ { --cal-a: var(--surface-highest); }
.cal__day.is-am-res { --cal-a: #f8e6bd; }
.cal__day.is-pm-occ { --cal-b: var(--surface-highest); }
.cal__day.is-pm-res { --cal-b: #f8e6bd; }
.cal__day.is-am-occ, .cal__day.is-am-res, .cal__day.is-pm-occ, .cal__day.is-pm-res {
  background: linear-gradient(135deg, var(--cal-a, transparent) 50%, var(--cal-b, transparent) 50%);
}
.cal__day.is-am-res, .cal__day.is-pm-res { position: relative; color: #4d3a0c; }
.cal__day.is-am-res::after, .cal__day.is-pm-res::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #4d3a0c;
}
.cal__day.is-unreachable { color: var(--outline-variant); }
.cal__day.is-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--outline); }
.cal__day.is-range { background: var(--range); box-shadow: none; }
.cal__day.is-start, .cal__day.is-end { background: var(--secondary); color: var(--on-primary); font-weight: 700; box-shadow: none; }
.cal__day.is-start { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.cal__day.is-end { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cal__day.is-start:not(.has-end) { border-radius: var(--radius-sm); }
.cal__legend { display: flex; align-items: center; gap: 1.5rem; margin-top: 1rem; color: var(--on-surface-variant); }
.cal__legend > span { display: inline-flex; align-items: center; }
.cal__swatch { flex: none; position: relative; width: 1rem; height: 1rem; margin-right: 0.5rem; border-radius: 2px; background: var(--surface-highest); }
.cal__swatch--res { background: #f8e6bd; }
.cal__swatch--res::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #4d3a0c; }
.cal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--surface-high); }
.cal__hint { color: var(--on-surface-variant); }
.cal__actions { display: flex; align-items: center; gap: 1rem; flex: none; }
.cal__ok { padding: 0.5rem 1.25rem; }
.cal__ok:disabled { background: var(--surface-high); border-color: var(--surface-high); color: var(--on-surface-variant); box-shadow: none; cursor: default; }
.cal__ok:disabled:active { transform: none; }
.cal__reset { padding: 0.25rem 0; border: 0; background: none; color: var(--secondary); font: inherit; font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cal__reset:focus-visible, .cal__btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* ---------- Auf einen Blick: Fakten in drei Gruppen ---------- */
.facts { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.facts section { padding-top: 1.25rem; border-top: 2px solid var(--primary); }
.facts h3 { margin-bottom: 1rem; }
.facts dl { display: grid; gap: 0.75rem; margin: 0; }
.facts dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.facts dt { color: var(--on-surface-variant); }
.facts dd { margin: 0; font-weight: 600; text-align: right; color: var(--primary); }
.wide-photo { margin-top: 4rem; }
.wide-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); }
@media (min-width: 1024px) { .wide-photo img { aspect-ratio: 21 / 9; } }

/* ---------- Über uns: Erzähltext mit zwei versetzten Fotos ---------- */
.story { display: grid; gap: 2rem; }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.story__text .h2 { margin-bottom: 1.5rem; }
.story__lead { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.45; color: var(--primary); }
@media (min-width: 768px) { .story__lead { font-size: 1.75rem; } }
.story__text p + p { margin-top: 1.25rem; }
.story__text p:not(.story__lead) { max-width: 60ch; font-size: 1.0625rem; line-height: 1.75; color: var(--on-surface-variant); }
@media (min-width: 1024px) {
  .story { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 2rem; align-items: start; }
  .story__text { grid-column: 1 / 7; grid-row: 1 / 3; }
  .story__a { grid-column: 8 / 13; grid-row: 1; }
  .story__b { grid-column: 8 / 13; grid-row: 2; }
}

/* ---------- Galerie: freie Spalten, Fotos behalten ihr Format ---------- */
.gallery { columns: 1; column-gap: 1.5rem; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1024px) { .gallery { columns: 3; } }
.gallery figure { break-inside: avoid; margin-bottom: 1.75rem; }
/* Der Steg führt: über alle Spalten, größer als jedes andere Foto */
.gallery figure:first-child { column-span: all; }
@media (min-width: 640px) { .gallery figure:first-child img { aspect-ratio: 16 / 9; object-fit: cover; } }
/* Handy, eine Spalte: der Steg hochformatig, Bad und Haustür flacher, damit der Steg das größte Foto bleibt */
@media (max-width: 639px) {
  .gallery figure:first-child img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; }
  .gallery figure:nth-child(2) img { aspect-ratio: 4 / 3; object-fit: cover; }
  .gallery .is-tall img { aspect-ratio: 1 / 1; }
}
.gallery img { width: 100%; border-radius: var(--radius-md); }
.gallery .is-tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { margin-top: 0.625rem; font-size: 0.875rem; color: var(--on-surface-variant); }

/* ---------- Buchen / Kontakt ---------- */
.book { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .book { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.panel { padding: 2rem; border-radius: var(--radius-md); background: var(--canvas); border: 1px solid var(--surface-high); box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .panel--form { padding: 3rem; } }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.panel.stack { gap: 1rem; }

.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, 1fr); } }
.form__field { display: flex; flex-direction: column; gap: 0.375rem; }
.form__field label { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--outline); /* 5:1 zur Fläche, WCAG 1.4.11 verlangt 3:1 */
  border-radius: var(--radius-sm);
  background: var(--surface-low);
  color: var(--on-surface);
  font: inherit;
  font-size: 0.9375rem;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.input:focus { background: var(--canvas); }
.input:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
textarea.input { resize: vertical; }
.input::placeholder { color: var(--outline); opacity: 1; }
.input:user-invalid, .input.is-invalid { border-color: var(--error); }
.form__error { font-size: 0.875rem; line-height: 1.4; color: var(--error); }
.form > .form__error { margin-top: -1rem; padding-left: 1.875rem; } /* unter dem Text der Einwilligung */

.consent { display: flex; align-items: flex-start; gap: 0.75rem; padding-top: 0.5rem; }
.consent input { flex: none; width: 1.125rem; height: 1.125rem; margin: 0.25rem 0 0; accent-color: var(--secondary); border-radius: 2px; }
.consent label { font-size: 0.875rem; line-height: 1.4; color: var(--on-surface-variant); }
.consent a { color: var(--secondary); text-decoration: underline; }

.feedback {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.875rem;
}
.feedback[hidden] { display: none; }
.feedback.is-error { background: var(--error); }
.feedback a { color: inherit; }
.form__extras { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.form__extras legend { padding: 0; margin-bottom: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.form__extras .consent { padding-top: 0; }
.form__extras .muted { font-weight: 400; }
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form__nights { margin-top: -0.75rem; min-height: 1.375rem; }
.feedback .icon { width: 1.5rem; height: 1.5rem; color: var(--sun-gold); }

.contact-list { display: flex; flex-direction: column; gap: 0.875rem; padding-top: 0.25rem; color: var(--primary); }
.contact-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; }
.contact-list .icon { color: var(--secondary); }
.contact-list a { text-decoration: none; color: inherit; }
.contact-list a:hover { color: var(--secondary); }

/* Karte (Zwei-Klick): Platzhalter auf Schiefer, danach Google-iframe in derselben Fläche */
.map__frame { position: relative; display: flex; min-height: 22rem; border-radius: var(--radius-md); overflow: hidden; background: var(--primary); }
.map__frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.map__consent { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; color: var(--on-primary); font-size: 0.9375rem; line-height: 1.5rem; }
.map__consent .small { color: var(--on-dark-muted); }
.map__consent a:not(.btn) { color: var(--on-primary); }
.map__consent a:not(.btn):focus-visible { outline: 2px solid var(--sun-gold); outline-offset: 2px; }
.map__pin { width: 2.75rem; height: 2.75rem; padding: 0.625rem; border-radius: 50%; color: var(--sun-gold); background: var(--on-dark-wash); }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.map__consent .btn:focus-visible { outline-color: var(--sun-gold); }
.btn--light { background: transparent; border-color: var(--on-dark-line); color: var(--on-primary); box-shadow: none; }
.btn--light:hover { background: var(--on-dark-hover); }

.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--surface-high); }
.faq details:first-child { border-top: 1px solid var(--surface-high); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  cursor: pointer;
}
.faq summary:hover { color: var(--secondary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.3s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details.is-closing summary .icon { transform: none; } /* Pfeil dreht beim Zuklappen sofort zurück (main.js) */
.faq p { padding-bottom: 0.875rem; font-size: 0.9375rem; line-height: 1.5; color: var(--on-surface-variant); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-high); padding: 4.5rem 0 3rem; border-top: 1px solid var(--surface-highest); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); } }
.footer__col { display: flex; flex-direction: column; gap: 0.75rem; color: var(--on-surface-variant); }
.footer__col > .brand__logo { align-self: flex-start; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--primary); }
.footer__title { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.footer__line { display: flex; align-items: center; gap: 0.5rem; }
.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--outline-variant);
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}
.footer__legal nav { display: flex; gap: 1.5rem; }
.site-footer--slim { padding: 1.5rem 0; }   /* Serverseiten (Buchung, Verwaltung): nur Rechtliches */
.site-footer--slim .footer__legal { margin-top: 0; padding-top: 0; border-top: 0; }
/* Serverseiten: Fußleiste immer am unteren Fensterrand, Inhalt füllt den Platz dazwischen */
.page-slim { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-slim main { flex: 1 0 auto; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--primary); }
@media (min-width: 640px) { .footer__legal { flex-direction: row; } }

/* ---------- Foto-Rahmen: Hover vergrößert das Foto leicht, der Rahmen schneidet ab ---------- */
.photo { display: block; overflow: hidden; border-radius: var(--radius-md); }
.photo img { border-radius: 0; transition-property: transform; transition-duration: 700ms; transition-timing-function: var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .photo:hover img { transform: scale(1.05); }
}

/* ---------- Fotobox ---------- */
.zoomable { cursor: zoom-in; }
.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 4.5rem 1rem 3.5rem;
  border: 0;
  background: var(--scrim-lightbox);
  color: var(--on-primary);
  overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation-name: fade; animation-duration: 200ms; animation-timing-function: ease; }
.lightbox::backdrop { background: transparent; }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: 100%; max-height: 100%; }
/* Originalgröße (natürliche Pixelmaße), nur verkleinert, wenn der Bildschirm kleiner ist */
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 16rem); max-height: calc(100dvh - 16rem); min-height: 0; flex: 0 1 auto; object-fit: contain; border-radius: var(--radius-md); }
.lightbox__cap, .lightbox__thumbs { flex: none; }
.lightbox__thumbs { position: relative; display: flex; gap: 0.5rem; max-width: 100%; padding: 0.25rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumbs > :first-child { margin-left: auto; }
.lightbox__thumbs > :last-child { margin-right: auto; }
.lightbox__thumb { flex: none; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; cursor: pointer; opacity: 0.55; transition-property: opacity, transform; transition-duration: 160ms; transition-timing-function: ease; }
.lightbox__thumb:hover { opacity: 0.85; }
.lightbox__thumb:active { transform: scale(0.96); }
.lightbox__thumb[aria-current="true"] { opacity: 1; outline: 2px solid var(--sun-gold); outline-offset: 2px; }
.lightbox__thumb:focus-visible { outline: 2px solid var(--on-primary); outline-offset: 2px; }
.lightbox__thumb img { display: block; width: 4.5rem; height: 3.375rem; object-fit: cover; border-radius: var(--radius-sm); }
.lightbox__cap { font-size: 0.9375rem; color: var(--on-dark-muted); text-align: center; }
.lightbox__btn, .hero__toggle {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--on-dark-line);
  border-radius: 50%;
  background: var(--scrim-button);
  color: var(--on-primary);
  cursor: pointer;
  transition-property: background-color, transform;
  transition-duration: 160ms;
  transition-timing-function: ease;
}
.lightbox__btn:hover, .hero__toggle:hover { background: var(--on-dark-hover); }
.lightbox__btn:active, .hero__toggle:active { transform: scale(0.95); }
.lightbox__btn:focus-visible { outline-color: var(--sun-gold); }
.lightbox__btn--close { top: 1rem; right: 1rem; }
/* Pfeile sitzen am Foto: mobil auf dem Foto, ab 900 px links und rechts daneben */
.lightbox__stage { position: relative; display: flex; justify-content: center; flex: 0 1 auto; min-height: 0; max-width: 100%; }
.lightbox__btn--prev, .lightbox__btn--next { top: 50%; margin-top: -1.375rem; }
.lightbox__btn--prev { left: 0.5rem; }
.lightbox__btn--next { right: 0.5rem; }
@media (min-width: 900px) {
  .lightbox__img { max-width: calc(100vw - 11rem); }
  .lightbox__btn--prev { left: -3.75rem; }
  .lightbox__btn--next { right: -3.75rem; }
}

/* ---------- Bewegung ---------- */
/* Hero: Foto setzt sich, Text kommt gestaffelt; data-rise="1" bis "3" legt die Reihenfolge fest */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.06); } }

/* Jede Seite blendet beim Laden sanft ein. Nur opacity: macht body nicht zum Bezugsrahmen für den fixierten Header.
   Der Seitenhintergrund (vom body auf die Leinwand übertragen) bleibt dabei stehen, kein weißes Aufblitzen. */
body {
  animation-name: fade;
  animation-duration: 700ms;
  animation-timing-function: var(--ease-out);
}
.hero__img {
  animation-name: settle;
  animation-duration: 1600ms;
  animation-timing-function: var(--ease-out);
}
[data-rise] {
  animation-name: rise;
  animation-duration: 700ms;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: both;
}
[data-rise="2"] { animation-delay: 70ms; }
[data-rise="3"] { animation-delay: 140ms; }

/* Abschnitte blenden beim ersten Sichtkontakt ein; Klasse und Verzögerung setzt main.js */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition-property: opacity, transform;
  transition-duration: 700ms;
  transition-timing-function: var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Mobil-Drawer: gleitet herein und wieder hinaus, Einträge kommen gestaffelt, Verzögerung setzt main.js.
   Beim Öffnen wechselt visibility sofort (sonst scheitert der Fokus), beim Schließen erst am Ende. */
@keyframes nav-item-in { from { opacity: 0; transform: translateX(18px); } }
@media (max-width: 767px) {
  .js .nav.is-animating {
    transition-property: transform, visibility;
    transition-duration: 420ms;
    transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .js .nav.is-open.is-animating { transition-property: transform; }
  .js .nav.is-open .nav__sect,
  .js .nav.is-open li,
  .js .nav.is-open .nav__cta {
    animation-name: nav-item-in;
    animation-duration: 450ms;
    animation-timing-function: ease;
    animation-fill-mode: both;
  }
  .js .nav-backdrop {
    transition-property: opacity, visibility;
    transition-duration: 350ms;
    transition-timing-function: ease;
  }
}

.faq details[open] p {
  animation-name: fade;
  animation-duration: 450ms;
  animation-timing-function: ease;
}

/* Weniger Bewegung: Positionswechsel entfallen, Einblenden bleibt (Firefox meldet reduce auch bei Fingerprinting-Schutz) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img { animation-name: none; }
  .photo:hover img { transform: none; }
  [data-rise] { animation-name: fade; }
  .js .reveal { transform: none; transition-duration: 400ms; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .js .nav { transform: none; opacity: 0; }
  .js .nav.is-open { opacity: 1; }
  .js .nav.is-animating { transition-property: opacity, visibility; }
  .js .nav.is-open.is-animating { transition-property: opacity; }
  .js .nav.is-open .nav__sect,
  .js .nav.is-open li,
  .js .nav.is-open .nav__cta { animation-name: fade; }
  .menu-btn span { transition-property: opacity; }
}

@media print {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Rechtstexte (Impressum, Datenschutz, Barrierefreiheit) ---------- */
.legal { max-width: 46rem; }
.legal .h1 { margin-bottom: 1rem; }
.legal section { margin-top: 2.5rem; }
.legal .h3 { font-size: 1.25rem; line-height: 1.625rem; margin-bottom: 0.75rem; }
.legal p, .legal li { color: var(--on-surface-variant); overflow-wrap: anywhere; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.375rem; }
.legal a { color: var(--primary); text-underline-offset: 3px; }
.legal a:hover { color: var(--secondary); }
.legal strong { color: var(--primary); }
.legal__meta { color: var(--on-surface-variant); font-size: 0.875rem; }
.legal__box { padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface-container); }

/* ---------- Serverseiten: Entscheidung per E-Mail-Link und Verwaltung ---------- */
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); box-shadow: none; }
.btn--outline:hover { background: var(--surface-container); }
.btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.decision { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.record { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5rem 1.25rem; margin: 1.5rem 0; }
.record dt { color: var(--on-surface-variant); }
.record dd { margin: 0; font-weight: 600; color: var(--primary); overflow-wrap: anywhere; }
.record dd.record__text { font-weight: 400; }
.notice { margin: 1.25rem 0; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--surface-container); border-left: 4px solid var(--secondary); color: var(--primary); }
.notice--warn { border-left-color: var(--error); }
.notice p + p { margin-top: 0.5rem; }

/* Auswertung in der Verwaltung: Tabellen scrollen im eigenen Rahmen, die Seite nie */
.report-years { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.report-scroll { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--surface-high); border-radius: var(--radius-md); }
.report-scroll:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.report { width: 100%; min-width: 36rem; border-collapse: collapse; }
.report th, .report td { padding: 0.625rem 0.875rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--surface-high); }
.report th[scope="row"], .report thead th:first-child { text-align: left; }
.report thead th { background: var(--surface-container); color: var(--primary); font-weight: 600; }
.report tfoot th, .report tfoot td { font-weight: 700; color: var(--primary); background: var(--surface-low); border-bottom: 0; }

/* Verwaltung: die per Mail angesprungene Anfrage hervorheben */
.panel:target { border-color: var(--secondary); box-shadow: 0 0 0 3px var(--range); }

/* ---------- Serverseiten, Feinschliff 11.11.: Breiten, Kopf, Karten, Status ---------- */
.legal--wide { max-width: 60rem; }
.legal--narrow { max-width: 30rem; }
.notice--warn { background: #fbeae8; }
.legal .admin-sec__intro { margin-bottom: 1.5rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--on-surface-variant); }
.btn--ghost:hover { color: var(--primary); background: var(--surface-container); }

.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.25rem; }
.legal .admin-head .h1 { margin: 0; }
.admin-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.admin-back { font-size: 0.875rem; margin-bottom: 0.5rem; }

.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.legal .jump__link {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4375rem 0.875rem;
  border: 1px solid var(--outline-variant); border-radius: 999px; background: var(--canvas);
  font-size: 0.875rem; font-weight: 600; color: var(--primary); text-decoration: none;
}
.legal .jump__link:hover { border-color: var(--primary); color: var(--primary); }
.jump__link:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.jump__count { min-width: 1.5rem; padding: 0 0.375rem; border-radius: 999px; background: var(--surface-container); font-size: 0.75rem; line-height: 1.5rem; text-align: center; }
.jump__count--hot { background: #fbefd0; color: #5c4100; }

.legal .admin-sec { margin-top: 3rem; }
.admin-sec__title { margin-bottom: 1rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; font-weight: 400; letter-spacing: -0.01em; color: var(--primary); }
.legal .admin-empty { padding: 1.25rem 1.5rem; border: 1px dashed var(--outline-variant); border-radius: var(--radius-lg); }

/* Karte je Anfrage, Angebot oder Belegung */
.panel.case { padding: 1.5rem; border-radius: var(--radius-lg); }
.panel.case + .panel.case { margin-top: 1rem; }
@media (min-width: 768px) { .panel.case { padding: 1.75rem 2rem; } }
.case__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1rem; }
.case__title-wrap { min-width: 0; }
.case__title { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.3; font-weight: 400; color: var(--primary); overflow-wrap: anywhere; }
.legal .case__when { margin-top: 0.25rem; font-weight: 600; color: var(--on-surface); }
.legal .case__meta { margin-top: 0.25rem; font-size: 0.875rem; }
.case .record { margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--surface-high); gap: 0.5rem 1.5rem; }
.case .record dd { font-weight: 500; color: var(--on-surface); }
.case .record a { color: var(--secondary); }
.case .notice { margin: 1.25rem 0 0; padding: 0.75rem 1rem; font-size: 0.9375rem; }
.case .decision { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--surface-high); }
.decision__item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.decision__check { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--on-surface-variant); cursor: pointer; }
.decision__check input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--secondary); }

.chip { flex: none; display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8125rem; line-height: 1.25rem; font-weight: 700; white-space: nowrap; }
.chip--wait { background: #fbefd0; color: #5c4100; }
.chip--offer { background: transparent; color: var(--secondary); box-shadow: inset 0 0 0 1px var(--secondary); }
.chip--ok { background: #e2ece4; color: #23462e; }
.chip--neutral { background: var(--surface-container); color: var(--primary); }

/* Auswertung */
.legal .report-years { list-style: none; padding-left: 0; gap: 0.5rem; }
.legal .report-years li + li { margin-top: 0; }
.legal .report-years a, .report-years strong { display: inline-block; padding: 0.375rem 0.875rem; border-radius: 999px; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.legal .report-years a { border: 1px solid var(--outline-variant); color: var(--primary); }
.legal .report-years a:hover { border-color: var(--primary); }
.report-years strong { background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary); }
/* 7 Kacheln ohne Lücke: mobil 2 Spalten (erste über die volle Breite), ab Tablet 4 Spalten (erste über 2 Zeilen) */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
.stats__item:first-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats__item:first-child { grid-column: auto; grid-row: span 2; justify-content: center; }
  .stats__item:first-child dd { font-size: 2.75rem; }
}
.stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem; padding: 1rem 1.25rem; border-radius: var(--radius-lg); background: var(--surface-low); }
.stats__item dt { font-size: 0.875rem; line-height: 1.35; color: var(--on-surface-variant); }
.stats__item dd { margin: 0; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--primary); }
.stats__item:first-child { background: var(--primary); }
.stats__item:first-child dt { color: var(--on-dark-muted); }
.stats__item:first-child dd { color: var(--on-primary); }

/* Buchungsseite des Gastes: Aufenthalt und Preis */
.stay { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface-low); }
.legal .stay__house { margin: 0 0 0.875rem; font-weight: 600; color: var(--primary); }
.stay__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.stay__dates dt { font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-surface-variant); }
.stay__dates dd { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--on-surface); white-space: nowrap; }
.legal .stay__sum { margin: 1rem 0 0; padding-top: 0.875rem; border-top: 1px solid var(--surface-high); color: var(--primary); }
.price { width: 100%; margin: 1.5rem 0 0.5rem; border-collapse: collapse; }
.price caption { margin-bottom: 0.5rem; text-align: left; font-family: var(--font-display); font-size: 1.375rem; color: var(--primary); }
.price th, .price td { padding: 0.4375rem 0; vertical-align: top; color: var(--on-surface); }
.price th { padding-right: 1rem; text-align: left; font-weight: 400; }
.price td { text-align: right; white-space: nowrap; }
.price tfoot th, .price tfoot td { padding-top: 0.875rem; border-top: 2px solid var(--primary); font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.legal .form.stack { margin-top: 1.5rem; }
