/* Hilly Billy Town — Demo-Startseite
   Reines CSS, keine Frameworks. Bearbeitbar mit jedem Texteditor. */

:root {
  --color-primary: #6B4226;
  --color-accent: #C97C3D;
  --color-accent-hover: #A8632E;
  --color-accent-2: #3F5443;
  --color-bg: #FAF4E9;
  --color-bg-card: #FFFDF8;
  --color-bg-dark: #2B221B;
  --color-text: #2E2318;
  --color-text-light: #F5EFE3;
  --color-border: #E4D6C0;

  --font-headline: 'Kelly Slab', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; letter-spacing: 0.01em; }
h3 { font-size: 1.5rem; }

small, .small { font-size: 0.9375rem; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section { padding-block: var(--space-12); }
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}
.section--dark h2 { color: var(--color-text-light); }
/* color-accent-2 on color-bg-dark is only ~1.9:1 (fails WCAG 1.4.3) — use color-accent instead, ~4.8:1 */
.section--dark .eyebrow { color: var(--color-accent); }
.section--card { background: var(--color-bg-card); }

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent-2);
  margin-bottom: var(--space-2);
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 6px;
  padding: 14px 32px;
  font: 600 1rem var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  /* color-accent + white text was only ~3.3:1 (fails WCAG 1.4.3);
     color-accent-hover gives ~5:1 against white while staying in the same palette. */
  background: var(--color-accent-hover);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
}
/* .btn-outline uses color-primary for border/text, which is far too dark to
   read against the hero's dark photo background (same family of issue as the
   .btn-primary contrast fix above). This variant reuses color-text-light —
   already used for the hero h1/p on this exact background — so it inherits
   the same, already-legible contrast instead of introducing a new color. */
.btn-outline--light {
  background: transparent;
  border-color: var(--color-text-light);
  color: var(--color-text-light);
}
.btn-outline--light:hover {
  background: var(--color-text-light);
  color: var(--color-bg-dark);
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-accent-2);
  outline-offset: 2px;
}

/* Skip link: hidden off-screen until it receives keyboard focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--space-2) var(--space-3);
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}
/* Skip-link target: focus is moved here programmatically, no visible box needed
   since the scroll position itself communicates the jump. */
#main-content:focus {
  outline: none;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-dark);
  height: 84px;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-header img.logo { height: 40px; width: auto; }
/* Classic/original logo.png is dark/metallic by default and needs to be
   forced light to read against the dark header/footer background; the
   redesigned logo.svg is already light-colored and must NOT get this
   filter (see global.logo_variant in content.json / cms/templates/_header.html,
   _footer.html). */
.logo--classic { filter: brightness(0) invert(1) opacity(0.92); }
.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}
.nav-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
.nav-links a:hover { color: var(--color-accent); }
/* Reittouristik is the operator's core business (see UX review) — give its
   nav/footer link a deliberate, small weight bump over sibling links like
   "Ferienhütten" (position alone isn't a strong enough signal). Reuses
   color-accent, already confirmed ~4.8:1 against color-bg-dark above. */
.nav-primary { font-weight: 700; color: var(--color-accent); }
.nav-primary:hover { color: var(--color-text-light); }
/* Hidden on desktop, where the toggle has no effect (nav is always visible). */
.nav-toggle { display: none; }
/* Visible keyboard focus indicator on the hamburger label when the underlying
   checkbox (the actual focusable/operable control) has keyboard focus. */
.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 3px solid var(--color-accent-2);
  outline-offset: 2px;
}

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(43,34,27,0.25) 0%, rgba(43,34,27,0.6) 100%),
              url("images/teaser2.jpg") center/cover no-repeat;
}
.hero-inner {
  padding-block: var(--space-12) var(--space-8);
  color: var(--color-text-light);
  max-width: 720px;
}
.hero h1 { color: #fff; margin-bottom: var(--space-2); }
.hero p { font-size: 1.25rem; margin-bottom: var(--space-4); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* USP tiles */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.usp-tile {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-4);
  box-shadow: 0 4px 14px rgba(43,34,27,0.08);
}
.usp-tile .icon { font-size: 1.75rem; margin-bottom: var(--space-2); }
.usp-tile h3 { margin-bottom: var(--space-1); font-size: 1.25rem; }
.usp-tile p { font-size: 1rem; }

/* Gallery: gleichmäßiges Editorial-Grid statt CSS-Columns-Masonry.
   Die tatsächlichen Fotos liegen alle im annähernd selben Seitenverhältnis
   vor (~3:2 — vom Handy-Querformat bis zum größten Bild im Ordner), das
   "natürliche Seitenverhältnis" der alten Masonry-Lösung war also gar nie
   wirklich unterschiedlich. Was blieb, war nur der Nachteil: ein ausgefranster
   unterer Rand und — bei `column-count` — eine Lesereihenfolge, die spaltenweise
   statt zeilenweise läuft und damit für Tastatur-/Screenreader-Nutzer nicht mit
   der visuellen Reihenfolge übereinstimmt. Ein Grid mit fixem Seitenverhältnis
   (`aspect-ratio`) wirkt ruhiger und hochwertiger, behält die Lesereihenfolge
   bei und beschneidet die Fotos dabei kaum sichtbar, da sie ohnehin fast genau
   in dieses Verhältnis passen. Karten-Optik (Hintergrund/Radius/Schatten)
   folgt bewusst demselben Muster wie .usp-tile weiter oben, statt einen neuen
   Stil zu erfinden. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.gallery-item {
  display: block;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
.gallery-item-frame {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  box-shadow: 0 4px 14px rgba(43,34,27,0.08);
  transition: box-shadow 300ms ease, transform 300ms ease;
}
.gallery-item-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.gallery-item:hover .gallery-item-frame,
.gallery-item:focus-visible .gallery-item-frame {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43,34,27,0.16);
}
.gallery-item:hover .gallery-item-frame img,
.gallery-item:focus-visible .gallery-item-frame img {
  transform: scale(1.05);
}
/* Bildunterschrift bleibt dauerhaft sichtbar statt nur bei :hover — auf
   Touch-Geräten gibt es kein Hover, und die Bildtexte (z. B. "Seeadler im
   Müritz-Nationalpark") transportieren Vertrauen/Kontext, den man nicht
   verstecken sollte. min-height + line-clamp halten die Kartenhöhen der
   Grid-Zeile einheitlich, egal ob eine Unterschrift ein- oder zweizeilig ist. */
.gallery-item-caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: var(--space-2);
  min-height: 2.6em;
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--color-text);
  opacity: 0.75;
}
.gallery-cta { text-align: center; margin-top: var(--space-4); }
/* Startseiten-Teaser: 5 Bilder ohne Bildunterschrift/Lightbox (führt stattdessen
   direkt auf die volle Galerie-Seite) — eine Spalte mehr als das Standard-Grid,
   damit alle 5 in einer Reihe stehen. */
.gallery-grid--teaser { grid-template-columns: repeat(5, 1fr); }

/* Lightbox: reines CSS, kein JavaScript. Jedes .lightbox-Overlay ist standardmäßig
   unsichtbar und wird nur sichtbar, wenn die URL exakt seine ID als Fragment trägt
   (":target") — also wenn ein .gallery-item-Link mit href="#img-N" angeklickt wurde.
   Schließen (Klick auf × oder auf den Hintergrund) verlinkt zurück auf "#", was kein
   Element trifft und damit :target wieder deaktiviert. Sichtbarkeit läuft über
   opacity/visibility statt display:none, damit ein sanftes Einblenden möglich ist
   (transition-Dauer wird für prefers-reduced-motion weiter oben global gekappt).
   Die ‹/›-Pfeile verlinken auf das vorherige/nächste Bild-Fragment (Rundlauf am
   Anfang/Ende) und ergeben so eine Slideshow ganz ohne JavaScript. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}
.lightbox:target { opacity: 1; visibility: visible; }
/* Verhindert Scrollen des Hintergrunds während die Lightbox offen ist —
   reduziert Orientierungsverlust, v.a. bei Bildschirmlupen-Nutzung. */
body:has(.lightbox:target) { overflow: hidden; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,15,10,0.92);
  backdrop-filter: blur(3px);
}
.lightbox img {
  position: relative;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
  position: relative;
  max-width: 60ch;
  margin-top: var(--space-3);
  padding-inline: var(--space-4);
  font-family: var(--font-body);
  font-style: italic;
  text-align: center;
  color: var(--color-text-light);
}
.lightbox-counter {
  display: block;
  margin-top: var(--space-1);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.9;
}
.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  transition: background 200ms ease;
}
.lightbox-close:hover { background: var(--color-accent); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  transition: background 200ms ease;
}
.lightbox-nav:hover { background: var(--color-accent); }
.lightbox-prev { left: var(--space-3); }
.lightbox-next { right: var(--space-3); }

/* Simple image row: for pages that are only a heading + 1–3 photos, no
   running text (Reittouristik, Ferienhütten) — see cms/templates/
   reittouristik.html.j2 / ferienhuetten.html.j2. Image styling mirrors
   .gallery-grid img (object-fit: cover, rounded corners). */
.simple-image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 360px));
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.simple-image-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

/* Über uns */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.about-grid img { border-radius: 12px; }
.about-grid picture { border-radius: 12px; overflow: hidden; }
.about-facts {
  list-style: none;
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.about-facts li::before { content: "◆ "; color: var(--color-accent); }

/* Umgebung: Liste der Ausflugsziele (Name/Kategorie/Entfernung/Beschreibung/Link) */
.umgebung-list {
  list-style: none;
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.umgebung-list li {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-3);
}
.umgebung-list strong { display: block; font-size: 1.0625rem; }
.umgebung-list .umgebung-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  font-weight: 600;
}
.umgebung-list p { margin-top: var(--space-1); font-size: 0.9375rem; }
.umgebung-list a { display: inline-block; margin-top: var(--space-1); font-size: 0.875rem; font-weight: 600; }

/* Umgebung: Karte + Legende — Leaflet braucht eine Höhe auf dem Container,
   sonst bleibt die Karte unsichtbar (0px hoch). */
.umgebung-map-wrap {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: var(--space-3);
  align-items: start;
}
.umgebung-map {
  height: 420px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  /* Leaflet setzt .leaflet-container auf position:relative, aber ohne
     eigenes z-index — ohne Wert erzeugt position:relative KEINEN neuen
     Stacking-Context, die internen Leaflet-Panes (z-index bis 700) landen
     dann direkt im globalen Stacking-Context und ragen beim Scrollen über
     den sticky Header (z-index 100). z-index:0 hier erzwingt den eigenen
     Context, alles bleibt lokal auf die Karte begrenzt. */
  z-index: 0;
}
.umgebung-map-legend {
  list-style: none;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.9375rem;
}
.umgebung-map-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: var(--space-1);
  vertical-align: middle;
  border: 2px solid rgba(0,0,0,0.15);
}
.umgebung-map-dot--home { background: #C97C3D; border-color: #6B4226; }
.umgebung-map-dot--natur { background: #2a78d6; }
.umgebung-map-dot--familie { background: #eb6834; }
.umgebung-map-dot--kultur { background: #1baf7a; }

/* Rechtsseiten (Impressum/Datenschutz) */
.legal-content {
  max-width: 640px;
  margin-top: var(--space-4);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-3);
}

/* Preise */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.price-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-4);
  text-align: center;
  box-shadow: 0 4px 14px rgba(43,34,27,0.08);
}
.price-card--highlight {
  border: 2px solid var(--color-accent);
}
.price-card .price {
  font-family: var(--font-headline);
  font-size: 2rem;
  color: var(--color-accent);
  margin-block: var(--space-2);
}
.price-card ul {
  list-style: none;
  text-align: left;
  margin: var(--space-3) 0;
  font-size: 1rem;
}
.price-card li { margin-bottom: var(--space-1); }
.price-card li::before { content: "✓ "; color: var(--color-accent-2); }
.price-teaser-cta { text-align: center; margin-top: var(--space-4); }
.price-teaser-cta .btn { margin: var(--space-1); }
/* Small text link: originally scoped to .price-teaser-cta, now also used
   standalone (e.g. usp-tile "Mehr erfahren" links) — same look everywhere. */
.small-link {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  text-decoration: underline;
  color: var(--color-accent-2);
}
.small-link:hover { color: var(--color-primary); }

/* Full price table (preise.html) */
.price-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-6);
}
.price-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(43,34,27,0.08);
}
.price-table th, .price-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.price-table thead th {
  background: var(--color-primary);
  color: var(--color-text-light);
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 1.0625rem;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) { background: rgba(43,34,27,0.04); }
.price-table td:last-child {
  font-weight: 700;
  color: var(--color-accent-2);
  white-space: nowrap;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.contact-grid .phone {
  font-family: var(--font-headline);
  font-size: 2rem;
  color: var(--color-accent);
  margin-block: var(--space-2);
}
.contact-grid dl { margin-bottom: var(--space-4); }
.contact-grid dt { font-weight: 700; margin-top: var(--space-2); }

/* Booking/Anfrage-Formular (Kontakt-Sektion der Startseite, optional per
   content.global.booking_enabled). Spans both columns of .contact-grid on
   its own row, styled as a light card so it reads clearly against the dark
   section background — same card treatment (bg-card, radius, shadow) as
   .usp-tile/.price-card elsewhere, just reused here on a dark section. */
.booking-form-wrap {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  background: var(--color-bg-card);
  color: var(--color-text);
  border-radius: 10px;
  padding: var(--space-4);
  box-shadow: 0 4px 14px rgba(43,34,27,0.08);
}
.booking-form-wrap h3 { margin-bottom: var(--space-1); }
.booking-form-wrap > p { margin-bottom: var(--space-3); }
.booking-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.booking-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.booking-form .form-group--full,
.booking-form .form-actions {
  grid-column: 1 / -1;
}
.booking-form label { font-weight: 600; font-size: 0.9375rem; }
.booking-form input,
.booking-form select,
.booking-form textarea {
  font: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 14px;
}
.booking-form textarea { resize: vertical; min-height: 90px; }
.booking-form input:focus-visible,
.booking-form select:focus-visible,
.booking-form textarea:focus-visible {
  outline: 3px solid var(--color-accent-2);
  outline-offset: 1px;
}
.booking-form .form-actions { margin-top: var(--space-1); }

/* Honeypot field: visually off-screen (same clip-rect technique as
   .nav-toggle below), NOT display:none/type=hidden so it stays a
   believable-looking form field to scripts that check computed style, while
   the input itself additionally carries tabindex="-1" + aria-hidden="true"
   so it is unreachable by keyboard and invisible to assistive tech. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Map embed (OpenStreetMap iframe), used on the Kontakt section and Anfahrt page */
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-embed iframe { display: block; }

/* Divider */
.divider { text-align: center; color: var(--color-accent); font-size: 1.25rem; padding-block: var(--space-3); }

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  border-top: 2px dashed var(--color-border);
  padding-block: var(--space-6) var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}
.footer-grid h2 { color: var(--color-text-light); font-size: 1.125rem; margin-bottom: var(--space-2); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(245,239,227,0.15);
  padding-top: var(--space-3);
  color: rgba(245,239,227,0.6);
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid--teaser { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  body { font-size: 1rem; }
  .container { padding-inline: var(--space-3); }
  .section { padding-block: var(--space-8); }

  .nav-links {
    display: none;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--color-bg-dark);
    flex-direction: column;
    padding: var(--space-3);
    gap: var(--space-3);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  /* On mobile the checkbox is the only way to operate the menu, so it must stay
     focusable and keyboard-operable (Tab + Space) instead of display:none,
     which removes it from the tab order entirely. Visually hidden, not display:none. */
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .nav-toggle-label {
    display: block;
    color: var(--color-text-light);
    font-size: 1.75rem;
    cursor: pointer;
  }

  .hero { min-height: 70vh; align-items: center; text-align: center; }
  .hero-inner { padding-block: var(--space-6); margin-inline: auto; }
  .hero .btn { width: 100%; max-width: 320px; }
  .hero-ctas { flex-direction: column; align-items: center; }

  .usp-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .gallery-grid--teaser { grid-template-columns: repeat(2, 1fr); }

  .umgebung-list { grid-template-columns: 1fr; }
  .umgebung-map-wrap { grid-template-columns: 1fr; }
  .umgebung-map { height: 300px; }

  .lightbox img { max-height: 60vh; }
  .lightbox-caption { font-size: 0.9375rem; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-prev { left: var(--space-2); }
  .lightbox-next { right: var(--space-2); }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid img, .about-grid picture { order: -1; }
  .booking-form .form-grid { grid-template-columns: 1fr; }

  .price-grid { grid-template-columns: 1fr; }
  .price-card--highlight { transform: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 769px) {
  .nav-toggle-label { display: none; }
}

/* Respect users who have reduced motion enabled at the OS level. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
