/* ═══════════════════════════════════════════════════════════════════
   DIE RATSSTUBEN — Gemeinsames Stylesheet der finalen Website
   Basis: Entwurf B „Waldgrün bei Nacht“, hell ausbalanciert:
   Creme/Weiß als Grundton, Dunkelgrün für Hero, EINEN Akzent-Abschnitt
   und den Fuß. Gold als Signatur (Faden, Linien, Eyebrows).
   Fraunces (Display) · Alegreya Sans (Text) — lokal, ohne externe Quellen.
   Hinweis: Diese Datei liegt in css/, die Schriften in schriften/ an der
   Seitenwurzel — daher beginnen die Font-Pfade mit "../".
   ═══════════════════════════════════════════════════════════════════ */

/* ── Schriften ─────────────────────────────────────────────────── */

@font-face {
  font-family: "Fraunces";
  src: url("../schriften/fraunces/fraunces-v38-latin_latin-ext-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../schriften/fraunces/fraunces-v38-latin_latin-ext-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../schriften/fraunces/fraunces-v38-latin_latin-ext-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../schriften/fraunces/fraunces-v38-latin_latin-ext-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("../schriften/alegreya-sans/alegreya-sans-v28-latin_latin-ext-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("../schriften/alegreya-sans/alegreya-sans-v28-latin_latin-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("../schriften/alegreya-sans/alegreya-sans-v28-latin_latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Design-Tokens ─────────────────────────────────────────────── */

:root {
  /* Waldgrün */
  --gruen:        #2F4636;   /* Markenfarbe, Überschriften auf hell */
  --gruen-dunkel: #24352A;   /* dunkle Abschnitte                   */
  --gruen-nacht:  #1C2A21;   /* Hero-Overlay, Fuß, tiefste Stufe    */

  /* Gold */
  --gold:      #856A37;      /* Linien/Eyebrows auf hellem Grund    */
  --gold-hell: #B9975B;      /* Linien/Eyebrows auf dunklem Grund   */

  /* Helle Flächen */
  --creme: #F2EDE4;
  --weiss: #FFFFFF;

  /* Text */
  --tinte: #2F4636;                        /* Überschriften auf hell */
  --text:  #3E4A42;                        /* Fließtext auf hell     */
  --hell:  #F2EDE4;                        /* Text auf dunkel        */
  --hell-dim: rgba(242, 237, 228, 0.74);   /* gedimmter Text dunkel  */

  /* Kontext-Variablen (werden in dunklen Abschnitten umgeschaltet) */
  --akzent:      var(--gold);
  --titel-farbe: var(--tinte);
  --text-farbe:  var(--text);
  --faden-farbe: var(--gold);
  --flaeche:     var(--creme);

  --schrift-display: "Fraunces", Georgia, serif;
  --schrift-text: "Alegreya Sans", "Segoe UI", sans-serif;

  --weite: 75rem;
  --weite-breit: 85rem;
  --weite-schmal: 46rem;
  --rand: clamp(1.25rem, 5vw, 3rem);

  --uebergang: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & Basis ─────────────────────────────────────────────── */

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

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

body {
  font-family: var(--schrift-text);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--creme);
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--gruen); color: var(--creme); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 1px;
}

.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;
}

.sprunglink {
  position: absolute;
  top: -4rem; left: 1rem;
  z-index: 300;
  padding: 0.6em 1.2em;
  background: var(--gruen-nacht);
  color: var(--hell);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--gold-hell);
}
.sprunglink:focus { top: 1rem; }

/* ── Layout-Hüllen & Abschnitte ────────────────────────────────── */

.huelle { max-width: var(--weite); margin-inline: auto; padding-inline: var(--rand); }
.huelle.breit { max-width: var(--weite-breit); }
.huelle.schmal { max-width: var(--weite-schmal); }
.mittig { text-align: center; }
.mittig .prosa { margin-inline: auto; }

.abschnitt { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); }

/* Helle Flächen im Wechsel */
.abschnitt--creme { background: var(--creme); --flaeche: var(--creme); }
.abschnitt--weiss { background: var(--weiss); --flaeche: var(--weiss); }

/* Der dunkle Akzent (EINER pro Seite, dazu Hero und Fuß) */
.abschnitt--dunkel {
  background:
    radial-gradient(80% 60% at 15% 20%, rgba(47, 70, 54, 0.5), transparent 70%),
    var(--gruen-dunkel);
  color: var(--hell);
  --akzent:      var(--gold-hell);
  --titel-farbe: var(--creme);
  --text-farbe:  var(--hell-dim);
  --faden-farbe: var(--gold-hell);
  --flaeche:     var(--gruen-dunkel);
  overflow: hidden;
}
.abschnitt--dunkel :focus-visible,
.kontakt-finale   :focus-visible,
.kopf             :focus-visible,
.fuss             :focus-visible { outline-color: var(--gold-hell); }
.abschnitt--dunkel ::selection,
.kontakt-finale   ::selection,
.fuss             ::selection { background: var(--gold-hell); color: var(--gruen-nacht); }

/* Platz oben, wenn ein Bild aus dem hellen Abschnitt hineinragt */
.abschnitt--platz-oben { padding-top: clamp(8rem, 16vw, 12rem); }
/* Kein Fußraum, wenn das eigene Bild nach unten hinausragt */
.abschnitt--flach-unten { padding-bottom: 0; }

[id] { scroll-margin-top: 5.5rem; }

/* ── Typografie ────────────────────────────────────────────────── */

.titel {
  font-family: var(--schrift-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--titel-farbe);
  margin-block: 1.1rem 0.4rem;
}
.titel em, .held-titel em, .unterzeile em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.augenbraue {
  font-family: var(--schrift-text);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  text-indent: 0.32em; /* gleicht den Abstand des letzten Buchstabens aus */
  color: var(--akzent);
}

.unterzeile {
  font-family: var(--schrift-display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-style: italic;
  color: var(--text-farbe);
  margin-block: 0.3rem 1.4rem;
}

.prosa {
  max-width: 62ch;
  color: var(--text-farbe);
  margin-block: 0.9rem;
}
.prosa.gross { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); }
.prosa.betont {
  font-family: var(--schrift-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--titel-farbe);
}

.klein-titel {
  font-family: var(--schrift-text);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--akzent);
  margin-bottom: 0.9rem;
}

.gedimmt { opacity: 0.7; font-size: 0.925em; }

/* Zitat- und Kapazitätszeilen: Gold, Versalien, Letterspacing */
.goldzeile {
  font-family: var(--schrift-text);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--akzent);
  margin-block: 1.4rem;
}

/* ── Goldlinie (Trenner) & goldener Faden (Signatur) ──────────── */

.goldlinie {
  width: 120px;
  height: 1px;
  margin: 60px auto;
  background: var(--akzent);
}

.faden {
  width: 1px;
  height: clamp(4rem, 9vh, 6.5rem);
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(to bottom, transparent, var(--faden-farbe) 35%, var(--faden-farbe));
}

/* ── Knöpfe & Links ────────────────────────────────────────────── */

.knopf {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 1.05em 2.5em;
  font-family: var(--schrift-text);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-decoration: none;
  color: var(--creme);
  background: var(--gruen);
  border: 1px solid var(--gruen);
  transition: background-color 0.45s var(--uebergang), color 0.45s var(--uebergang), border-color 0.45s var(--uebergang);
}
.knopf:hover {
  background: var(--gruen-nacht);
  border-color: var(--gruen-nacht);
}

/* Kontur-Variante (Gold) — vor allem für dunkle Abschnitte */
.knopf--kontur {
  color: var(--akzent);
  background: transparent;
  border-color: rgba(185, 151, 91, 0.6);
}
.knopf--kontur:hover {
  background: var(--akzent);
  border-color: var(--akzent);
  color: var(--gruen-nacht);
}

.textlink {
  text-decoration: none;
  background-image: linear-gradient(var(--akzent), var(--akzent));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: color 0.35s var(--uebergang);
}
.textlink:hover { color: var(--akzent); }

/* ── Kopfzeile ─────────────────────────────────────────────────── */

.kopf {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(16, 25, 19, 0.8), rgba(16, 25, 19, 0));
  transition: background-color 0.5s var(--uebergang), box-shadow 0.5s var(--uebergang);
}
.kopf.ist-gescrollt,
.kopf--fest {
  background-color: rgba(22, 33, 26, 0.96);
  box-shadow: 0 1px 0 rgba(185, 151, 91, 0.25), 0 12px 40px rgba(14, 21, 16, 0.28);
}
/* Auf Seiten ohne dunklen Hero beginnt der Inhalt unter dem festen Kopf */
.kopf--fest ~ main { padding-top: clamp(4.75rem, 9vw, 6.5rem); }

.kopf-zeile {
  max-width: var(--weite-breit);
  margin-inline: auto;
  padding: clamp(0.9rem, 2.5vw, 1.4rem) var(--rand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.marke { flex-shrink: 0; }
.marke img { width: clamp(9.5rem, 16vw, 12rem); height: auto; }

.hauptnav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.hauptnav-liste {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2rem);
  list-style: none;
}
.hauptnav-liste a {
  display: inline-block;
  padding: 0.4em 0.1em;
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--hell);
  position: relative;
}
.hauptnav-liste a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-hell);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--uebergang);
}
.hauptnav-liste a:hover::after,
.hauptnav-liste a:focus-visible::after { transform: scaleX(1); }

/* Aktive Seite: goldene Linie bleibt stehen */
.hauptnav-liste a[aria-current="page"] { color: var(--gold-hell); }
.hauptnav-liste a[aria-current="page"]::after { transform: scaleX(1); }

/* Reservierungs-Pille (Gold) */
.reservieren {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  padding: 0.55em 1.6em;
  border: 1px solid rgba(185, 151, 91, 0.65);
  border-radius: 999px;
  text-decoration: none;
  color: var(--hell);
  transition: background-color 0.45s var(--uebergang), color 0.45s var(--uebergang);
}
.reservieren-wort {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-hell);
  transition: color 0.45s var(--uebergang);
}
.reservieren-nummer {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.reservieren:hover { background: var(--gold-hell); color: var(--gruen-nacht); }
.reservieren:hover .reservieren-wort { color: var(--gruen-nacht); }

/* Mobil-Navigation (Checkbox-Technik, ohne JavaScript voll nutzbar) */

.nav-schalter {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.nav-knopf { display: none; }

@media (max-width: 56.25em) {

  .nav-knopf {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    position: relative;
    z-index: 130;
  }
  .nav-schalter:focus-visible + .nav-knopf {
    outline: 2px solid var(--gold-hell);
    outline-offset: 4px;
    border-radius: 1px;
  }
  .nav-knopf-balken,
  .nav-knopf-balken::before,
  .nav-knopf-balken::after {
    display: block;
    width: 1.75rem;
    height: 1px;
    background: var(--hell);
    transition: transform 0.4s var(--uebergang), opacity 0.3s ease, background-color 0.3s ease;
  }
  .nav-knopf-balken { position: relative; }
  .nav-knopf-balken::before,
  .nav-knopf-balken::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-knopf-balken::before { top: -8px; }
  .nav-knopf-balken::after  { top: 8px; }

  .nav-schalter:checked + .nav-knopf .nav-knopf-balken { background: transparent; }
  .nav-schalter:checked + .nav-knopf .nav-knopf-balken::before { transform: translateY(8px) rotate(45deg); background: var(--gold-hell); }
  .nav-schalter:checked + .nav-knopf .nav-knopf-balken::after  { transform: translateY(-8px) rotate(-45deg); background: var(--gold-hell); }

  .hauptnav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 6rem var(--rand) 3rem;
    background:
      radial-gradient(90% 70% at 50% 15%, rgba(47, 70, 54, 0.55), transparent 70%),
      var(--gruen-nacht);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s var(--uebergang), visibility 0s linear 0.45s;
  }
  .nav-schalter:checked ~ .hauptnav {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .hauptnav-liste {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
  .hauptnav-liste a {
    font-family: var(--schrift-display);
    font-weight: 300;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.35;
    padding: 0.25em 0.4em;
  }
  .hauptnav-liste a::after { height: 1px; bottom: 0.1em; }

  .reservieren {
    margin-top: 2.5rem;
    padding: 0.8em 2.2em;
  }
  .reservieren-nummer { font-size: 1.05rem; }
}

body:has(.nav-schalter:checked) { overflow: hidden; }

/* ── Hero ──────────────────────────────────────────────────────── */

.held {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--hell);
  --akzent:      var(--gold-hell);
  --faden-farbe: var(--gold-hell);
  /* Overlay-Steuerung: pro Seite per style="--schleier-oben:…" justierbar */
  --schleier-oben:  0.66;
  --schleier-rand:  0.55;
  --schleier-unten: 0.38;
}

/* Halber Hero für Unterseiten */
.held--halb {
  min-height: 60vh;
  min-height: 60svh;
}

.held-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.held-schleier {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(130% 95% at 50% 40%, transparent 42%, rgba(14, 21, 16, var(--schleier-rand))),
    linear-gradient(to bottom,
      rgba(16, 25, 19, var(--schleier-oben)) 0%,
      rgba(16, 25, 19, 0.18) 35%,
      rgba(16, 25, 19, var(--schleier-unten)) 100%);
}

.held-inhalt {
  text-align: center;
  padding: 8rem var(--rand) 9rem;
}
.held--halb .held-inhalt { padding: 7rem var(--rand) 5rem; }

.held-augenbraue { margin-bottom: clamp(1.4rem, 3.5vw, 2.4rem); }
/* Lesbarkeit der Goldzeile über hellen Bildstellen (z. B. Sandstein) */
.held .augenbraue,
.held-augenbraue {
  text-shadow: 0 1px 2px rgba(20, 30, 24, 0.55), 0 0 18px rgba(20, 30, 24, 0.35);
}

.held-titel {
  font-family: var(--schrift-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 0.9rem + 6vw, 6.25rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--creme);
  text-shadow: 0 2px 40px rgba(14, 21, 16, 0.45);
}
.held--halb .held-titel { font-size: clamp(2.1rem, 1rem + 4.4vw, 4.6rem); }

.held-unterzeile {
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--hell-dim);
}

.held-faden {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-0.5px);
  width: 1px;
  height: clamp(5rem, 12vh, 8rem);
}
.held-faden span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-hell));
}

/* ── Bildband (volle Breite, mit Bildzeile) ────────────────────── */

.bildband {
  position: relative;
}
.bildband img {
  width: 100%;
  height: clamp(21rem, 68vh, 40rem);
  object-fit: cover;
}
.bildband::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(16, 25, 19, 0.62), transparent);
  pointer-events: none;
}
.bildband figcaption {
  position: absolute;
  z-index: 1;
  left: max(var(--rand), calc((100vw - var(--weite-breit)) / 2 + var(--rand)));
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.88);
}
.bildband figcaption::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: var(--gold-hell);
  flex-shrink: 0;
}

/* ── Zweispalt: Bild und Text ──────────────────────────────────── */

.zweispalt {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.zweispalt + .zweispalt { margin-top: clamp(4.5rem, 10vw, 8rem); }

.zweispalt-bild { position: relative; grid-column: 1 / 7; grid-row: 1; }
.zweispalt-bild img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(28, 42, 33, 0.24);
}
.zweispalt-text {
  grid-column: 8 / 13;
  grid-row: 1;
  padding-top: clamp(1rem, 5vw, 4.5rem);
}

.zweispalt--bildrechts .zweispalt-bild { grid-column: 7 / 13; }
.zweispalt--bildrechts .zweispalt-text { grid-column: 1 / 6; padding-top: clamp(1rem, 4vw, 3rem); }

/* Bild ragt in den folgenden (dunklen) Abschnitt hinein */
.ragt-nach-unten {
  z-index: 2;
  margin-bottom: calc(-1 * clamp(3.5rem, 9vw, 7rem));
}
.ragt-nach-unten img { box-shadow: 0 34px 80px rgba(14, 21, 16, 0.4); }

/* Bildzuschnitte der Personen-Porträts */
.person-gastgeber .zweispalt-bild img { object-position: 55% 22%; }
.person-kuechenchef .zweispalt-bild img { object-position: 36% 42%; }

/* ── Bild mit Beschriftung in Goldrahmen-Optik ─────────────────── */

.goldrahmen { position: relative; }
.goldrahmen::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem auto 1.25rem;
  bottom: -1.25rem;
  border: 1px solid rgba(185, 151, 91, 0.45);
  pointer-events: none;
}
.goldrahmen img {
  position: relative;
  width: 100%;
  object-fit: cover;
}
.goldrahmen figcaption {
  position: relative;
  margin-top: 2.4rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--text-farbe);
}

/* ── Galerie-Band (versetzt, kein starres Raster) ──────────────── */

.galerie {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.galerie figure { position: relative; }
.galerie img {
  width: 100%;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(28, 42, 33, 0.2);
}
.galerie figcaption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--text-farbe);
}
.galerie figcaption::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--akzent);
  flex-shrink: 0;
}

/* Versetztes Muster für bis zu sechs Bilder, wiederholt sich danach */
.galerie > *:nth-child(6n+1) { grid-column: 1 / 7; }
.galerie > *:nth-child(6n+1) img { aspect-ratio: 4 / 3; }
.galerie > *:nth-child(6n+2) { grid-column: 8 / 13; margin-top: clamp(2.5rem, 7vw, 6rem); }
.galerie > *:nth-child(6n+2) img { aspect-ratio: 1 / 1; }
.galerie > *:nth-child(6n+3) { grid-column: 2 / 7; margin-top: clamp(1rem, 3vw, 2.5rem); }
.galerie > *:nth-child(6n+3) img { aspect-ratio: 4 / 5; }
.galerie > *:nth-child(6n+4) { grid-column: 8 / 12; }
.galerie > *:nth-child(6n+4) img { aspect-ratio: 4 / 3; }
.galerie > *:nth-child(6n+5) { grid-column: 1 / 7; margin-top: clamp(1rem, 3vw, 2.5rem); }
.galerie > *:nth-child(6n+5) img { aspect-ratio: 3 / 2; }
.galerie > *:nth-child(6n)   { grid-column: 8 / 13; margin-top: clamp(2rem, 5vw, 4rem); }
.galerie > *:nth-child(6n) img { aspect-ratio: 4 / 5; }

/* ── Raum-Collage (gestaffelt, wie Entwurf B) ──────────────────── */

.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  align-items: start;
}

.raum { position: relative; }
.raum img {
  width: 100%;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(28, 42, 33, 0.25);
}
.raum figcaption {
  margin-top: 1.1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--titel-farbe);
}
.raum-nummer {
  display: inline-block;
  min-width: 1.6em;
  margin-right: 0.35em;
  font-family: var(--schrift-display);
  font-style: italic;
  font-size: 1.15em;
  color: var(--akzent);
}
.raum-detail { color: var(--text-farbe); }

.raum--breit { grid-column: 1 / 9; grid-row: 1; }
.raum--breit img { aspect-ratio: 4 / 3; }

.raum--hoch {
  grid-column: 9 / 13;
  grid-row: 1;
  margin-top: clamp(3rem, 9vw, 7rem);
  display: flex;
  flex-direction: column;
}
.raum--hoch img { aspect-ratio: 4 / 5; }
.raum--hoch figcaption {
  order: -1;               /* Bildzeile füllt die Lücke des Versatzes */
  margin: 0 0 1.1rem;
}

.raum--quer {
  grid-column: 6 / 11;
  grid-row: 2;
  margin-top: clamp(-7rem, -6vw, -4rem);
  z-index: 2;
}
.raum--quer img {
  aspect-ratio: 3 / 2;
  border: clamp(6px, 1vw, 10px) solid var(--flaeche); /* Passepartout aus dem Seitengrund */
}

/* ── Trio: Text + großes Bild + kleines, überlappendes Bild ────── */

.trio {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.trio-text { grid-column: 1 / 7; grid-row: 1; }
.trio-bild { grid-column: 8 / 13; grid-row: 1 / 3; }
.trio-bild img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover; /* Zuschnitt statt Verzerrung (Fehler „verschobenes Bild“, Runde 4) */
}
.trio-bild-klein {
  grid-column: 5 / 8;
  grid-row: 2;
  z-index: 2;
  margin-top: clamp(-5rem, -4vw, -3rem);
  align-self: start;
  box-shadow: 0 26px 60px rgba(14, 21, 16, 0.5);
}
.trio-bild-klein img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Große Geister-Ziffer im Hintergrund (z. B. die 60 Tage) */
.ziffer-geist {
  position: absolute;
  top: clamp(1rem, 4vw, 3rem);
  right: -0.06em;
  font-family: var(--schrift-display);
  font-weight: 300;
  font-size: clamp(13rem, 30vw, 27rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(185, 151, 91, 0.08);
  pointer-events: none;
  user-select: none;
}

/* ── Karten-Tafel ──────────────────────────────────────────────── */

.karte {
  position: relative;
  text-align: center;
  padding: clamp(2.75rem, 7vw, 4.75rem) clamp(1.5rem, 6vw, 4.5rem);
  border: 1px solid rgba(133, 106, 55, 0.5);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
}
.karte::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(133, 106, 55, 0.22);
  pointer-events: none;
}

.karten-liste {
  list-style: none;
  max-width: 30rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  text-align: left;
}
.karten-liste li + li { border-top: 1px solid rgba(133, 106, 55, 0.18); }
.karten-zeile {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-block: 1.05rem;
  text-decoration: none;
}
.karten-name {
  font-family: var(--schrift-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.7rem);
  color: var(--gruen);
  transition: color 0.35s var(--uebergang);
}
a.karten-zeile:hover .karten-name { color: var(--gold); }
.karten-punkte {
  flex: 1;
  border-bottom: 1px dotted rgba(133, 106, 55, 0.55);
  transform: translateY(-0.35em);
}
.karten-art {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.karten-notiz {
  margin-top: 1.6rem;
  font-size: 0.9375rem;
  color: var(--text-farbe);
}

/* ── Kontakt-Finale (dunkel, mit Hintergrundbild) ──────────────── */

.kontakt-finale {
  position: relative;
  padding: 0;
  isolation: isolate;
  color: var(--hell);
  --akzent:      var(--gold-hell);
  --titel-farbe: var(--creme);
  --text-farbe:  var(--hell-dim);
  --faden-farbe: var(--gold-hell);
  --flaeche:     var(--gruen-nacht);
}
.kontakt-hintergrund {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.85);
}
.kontakt-finale::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(28, 42, 33, 0.93) 0%,
    rgba(28, 42, 33, 0.84) 45%,
    rgba(22, 33, 26, 0.95) 100%);
}
.kontakt-inhalt { padding-block: clamp(5rem, 11vw, 8.5rem); }

.kontakt-tel {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--schrift-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 1.1rem + 3.4vw, 3.4rem);
  letter-spacing: 0.01em;
  color: var(--gold-hell);
  text-decoration: none;
  background-image: linear-gradient(var(--gold-hell), var(--gold-hell));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 50% 100%;
  padding-bottom: 0.15em;
  transition: background-size 0.5s var(--uebergang);
}
.kontakt-tel:hover { background-size: 100% 1px; }

.kontakt-spalten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 56rem;
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}
.kontakt-block .prosa { margin-block: 0 1.1rem; }

/* ── Fußbereich ────────────────────────────────────────────────── */

.fuss {
  background: var(--gruen-nacht);
  border-top: 1px solid rgba(185, 151, 91, 0.25);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) 2rem;
  color: var(--hell-dim);
  --akzent:      var(--gold-hell);
  --titel-farbe: var(--creme);
  --text-farbe:  var(--hell-dim);
}
.fuss-logo {
  width: clamp(9rem, 14vw, 11rem);
  height: auto;
  margin-inline: auto;
  opacity: 0.92;
}
.fuss-spalten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.75rem, 6vw, 4rem);
}
.fuss-block p {
  font-size: 0.9375rem;
  margin-bottom: 0.9rem;
}
.fuss a { color: var(--hell); }

.fuss-unten {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(242, 237, 228, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;
}
.fuss-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.9rem;
}
.fuss-nav a {
  padding: 0.2em 0.1em;
  text-decoration: none;
  background-image: linear-gradient(var(--gold-hell), var(--gold-hell));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.4s var(--uebergang), color 0.4s var(--uebergang);
}
.fuss-nav a:hover { background-size: 100% 1px; color: var(--gold-hell); }

/* ── Responsiv ─────────────────────────────────────────────────── */

@media (max-width: 56.25em) {

  .zweispalt,
  .trio,
  .collage { display: block; }

  .zweispalt-text { padding-top: 0 !important; max-width: 36rem; }
  .zweispalt-bild { max-width: 30rem; }
  .zweispalt-bild + .zweispalt-text,
  .zweispalt-text + .zweispalt-bild { margin-top: 2rem; }
  .zweispalt + .zweispalt { margin-top: 4rem; }
  .ragt-nach-unten {
    margin-left: auto;
    margin-bottom: -4rem;
    position: relative;
  }

  .trio-bild { margin-top: 2.5rem; max-width: 34rem; }
  .goldrahmen::before { inset: 1rem -0.75rem auto 1rem; bottom: -0.75rem; }
  .trio-bild-klein {
    max-width: 17rem;
    margin-top: -4.5rem;
    margin-left: auto;
    margin-right: 2rem;
    position: relative;
    z-index: 2;
  }
  .ziffer-geist { font-size: clamp(11rem, 42vw, 16rem); top: 2.5rem; }
  .abschnitt--platz-oben { padding-top: 9rem; }

  .raum { max-width: 36rem; }
  .raum--hoch { margin-left: auto; width: 86%; margin-top: 2.25rem; }
  .raum--quer { width: 88%; margin-top: -3rem; margin-left: 0; position: relative; z-index: 2; }

  .galerie { display: block; }
  .galerie figure { max-width: 30rem; }
  .galerie figure + figure { margin-top: 2.25rem; }
  .galerie figure:nth-child(even) { margin-left: auto; }
  .galerie img { aspect-ratio: auto !important; }

  .kontakt-spalten { grid-template-columns: 1fr; gap: 2.5rem; }

  .fuss-spalten { grid-template-columns: 1fr; text-align: center; gap: 2.25rem; }
  .fuss-unten { flex-direction: column; align-items: center; text-align: center; }

  .goldlinie { margin-block: 40px; }
}

@media (max-width: 30em) {
  .raum--hoch { width: 100%; margin-top: 2.25rem; }
  .raum--quer { margin-top: -1.75rem; width: 92%; }
  .trio-bild-klein { margin-right: 0; max-width: 15rem; }
  .reservieren-nummer { font-size: 1rem; }
  .held-inhalt { padding: 7rem var(--rand) 8rem; }
}

/* ── Bewegung (nur ohne Reduced Motion) ────────────────────────── */

@media (prefers-reduced-motion: no-preference) {

  /* Sehr langsamer Ken-Burns-Zoom im Hero */
  .held-bild {
    animation: held-zoom 45s var(--uebergang) both;
    transform-origin: 50% 42%;
  }
  @keyframes held-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.09); }
  }

  /* Orchestrierter Seiteneinstieg (Verzögerung per --ad im style-Attribut) */
  .auftritt {
    animation: auftritt 1.3s var(--uebergang) both;
    animation-delay: var(--ad, 0s);
  }
  @keyframes auftritt {
    from { opacity: 0; transform: translateY(1.4rem); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .held-faden.auftritt {
    animation-name: faden-ziehen;
    animation-duration: 1.6s;
  }
  @keyframes faden-ziehen {
    from { opacity: 0; transform: translateX(-0.5px) scaleY(0); }
    to   { opacity: 1; transform: translateX(-0.5px) scaleY(1); }
  }
  .held-faden { transform-origin: top center; }

  /* Scroll-Reveals: Anfangszustand NUR, wenn JS aktiv ist (html.js) */
  html.js .reveal {
    opacity: 0;
    transform: translateY(1.6rem);
    transition:
      opacity 1s var(--uebergang),
      transform 1s var(--uebergang);
    transition-delay: var(--rd, 0ms);
  }
  html.js .reveal.sichtbar {
    opacity: 1;
    transform: translateY(0);
  }
  html.js .faden.reveal {
    transform: scaleY(0);
    transform-origin: top center;
  }
  html.js .faden.reveal.sichtbar { transform: scaleY(1); }
}

/* ---------------------------------------------------------------
   Platzhalter für noch fehlende Fotos (Feedback-Runde 1)
   Nutzung: <div class="foto-folgt" style="aspect-ratio: 4 / 3;">
              <span class="foto-folgt-marke">Foto folgt</span>
              <span class="foto-folgt-motiv">Porträt Robin Meder</span>
            </div>
   Ersatz später: Block durch <img> mit gleicher aspect-ratio ersetzen —
   das Layout drumherum bleibt unverändert.
   --------------------------------------------------------------- */
.foto-folgt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background:
    repeating-linear-gradient(-45deg,
      rgba(133, 106, 55, 0.06) 0 14px,
      rgba(133, 106, 55, 0.12) 14px 15px),
    var(--creme, #F2EDE4);
  border: 1px dashed var(--gold, #856A37);
  color: var(--gold, #856A37);
  text-align: center;
  padding: 1.5rem;
}
.abschnitt--dunkel .foto-folgt {
  background:
    repeating-linear-gradient(-45deg,
      rgba(185, 151, 91, 0.08) 0 14px,
      rgba(185, 151, 91, 0.14) 14px 15px),
    rgba(255, 255, 255, 0.04);
  border-color: var(--gold-hell, #B9975B);
  color: var(--gold-hell, #B9975B);
}
.foto-folgt-marke {
  font-family: var(--schrift-text);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}
.foto-folgt-motiv {
  font-family: var(--schrift-display);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.85;
}

/* Reduced Motion: alles ruhig */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
