/* ==========================================================================
   Mövennest · Villa Rosa — Unterseite „Die Wohnung" (wohnung.html)
   Maße aus references/v4-wohnung-konzept.html (1600 px, Inhalt 1390 px).
   Werte mit clamp(): bei 1600 px exakt wie im Konzept, darunter fließend.
   Eigene Datei, unabhängig von style.css (Hero der Startseite).
   ========================================================================== */

/* Schriften: lokal, nie über fonts.googleapis.com (Abmahngefahr).
   Der Kursivschnitt ist eine eigene Datei — die variable Lora deckt nur
   font-style: normal ab. */
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --ivory: #f6f4ef;
  --navy: #0b2c3d;
  --sea: #194754;           /* Meergrün dunkel: Button, Akzente */
  --sea-hover: #215a67;
  --heading: #395353;       /* Überschriften */
  --sage: #739992;          /* Kursiv-Akzent */
  --text: #455e62;          /* Fließtext */
  --label: #577370;         /* Filterleiste, 4,7:1 auf Elfenbein */
  --muted: #5a706d;         /* Kleine Versalzeilen, 4,6–4,8:1 (Konzept: #6d8180 nur 3,7:1) */
  --line: #becbc5;
  --sand: #ebe6dd;          /* Fläche hinter Hochformaten */
  --mint: #e9f0ed;
  --mint-deep: #dbe8e2;
  --white: #ffffff;

  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --rand: clamp(20px, 6.5625vw, 105px);   /* 105 px bei 1600 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

/* Hinter der offenen Lightbox scrollt die Seite nicht mit */
html:has(.lightbox[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

main:focus { outline: none; }

.wrap {
  width: min(1390px, 100% - 2 * var(--rand));
  margin-inline: auto;
}

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

/* Tastaturfokus: auf Elfenbein dunkel und deutlich */
:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 0.75rem 1.1rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: var(--navy);
}

.eyebrow {
  display: block;
  color: var(--sea);
  font-size: clamp(12.5px, 0.75rem + 0.25vw, 15px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.kopf__leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: clamp(84px, 7.375vw, 118px);
  border-bottom: 1px solid var(--line);
}

.marke {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(15px, 0.469vw + 13.5px, 21px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.kopf__nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.4375vw, 55px);
}

.kopf__liste {
  display: flex;
  gap: clamp(28px, 3.4375vw, 55px);
}

.kopf__liste a {
  display: inline-block;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease);
}

.kopf__liste a:hover { border-bottom-color: var(--line); }
.kopf__liste a[aria-current="page"] { border-bottom-color: var(--sea); }

.kopf__button,
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  background: var(--sea);
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}

.kopf__button:hover,
.knopf:hover { background: var(--sea-hover); }

.kopf__button {
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* ==========================================================================
   Einstieg
   ========================================================================== */
.intro {
  position: relative;
  padding: clamp(48px, 6.875vw, 110px) 0 clamp(40px, 4.375vw, 70px);
}

.intro__anker {
  position: absolute;
  top: clamp(20px, 2.75vw, 44px);
  right: clamp(0px, 2.8125vw, 45px);
  width: clamp(64px, 7.1875vw, 115px);
  height: auto;
  opacity: 0.1;
  filter: invert(20%) sepia(21%) saturate(977%) hue-rotate(142deg);
  pointer-events: none;
}

.intro__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(32px, 5.625vw, 90px);
  align-items: end;
}

.intro__titel {
  margin-top: 23px;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.0625vw + 29px, 94px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.intro__titel em,
.titel-gross em,
.ausstattung__titel em {
  color: var(--sage);
  font-style: italic;
}

/* Kursives g/Punkt der Lora ragen rechts über die enge Sperrung hinaus */
.intro__titel em { padding-right: 0.06em; }

.intro__text {
  max-width: 465px;
  padding-bottom: 12px;
  color: var(--text);
  font-size: clamp(18px, 0.3125vw + 17px, 22px);
  line-height: 1.58;
  text-wrap: pretty;
}

/* ==========================================================================
   Galerie
   Ohne JavaScript: Raster aus Vorschaubildern (.galerie__liste).
   Mit JavaScript (.is-buehne): Filterleiste, Bühne, Vollbild.
   ========================================================================== */
.galerie {
  padding-bottom: clamp(56px, 4.75vw, 76px);
}

.galerie:not(.is-buehne) .galerie__kopf,
.galerie:not(.is-buehne) .buehne,
.galerie:not(.is-buehne) .galerie__vollbild { display: none; }

.galerie.is-buehne .galerie__liste { display: none; }

/* Grundraster ohne JavaScript ---------------------------------------------- */
.galerie__liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(20px, 2.125vw, 34px) clamp(16px, 1.5vw, 24px);
  padding-top: clamp(24px, 2.375vw, 38px);
  border-top: 1px solid var(--line);
}

.galerie__liste a {
  display: block;
  padding: 6px;
  background: var(--white);
  box-shadow: 0 9px 20px rgba(11, 44, 61, 0.08);
}

.galerie__liste img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand);
}

.galerie__liste figcaption {
  margin-top: 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.galerie__liste figcaption span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Filterleiste --------------------------------------------------------------- */
.galerie__kopf {
  display: flex;
  flex-wrap: wrap;      /* Notbremse: lieber umbrechen als seitlich überlaufen */
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  box-shadow: inset 0 -1px 0 var(--line);   /* Linie, auf der der aktive Reiter liegt */
}

.filter {
  display: flex;
  gap: clamp(20px, 2.1875vw, 35px);
}

.filter__knopf,
.galerie__blaettern {
  padding: 0 0 22px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--label);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.filter__knopf {
  display: inline-flex;
  flex-direction: column;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* Platz für den fetten Schnitt reservieren, damit nichts springt */
.filter__knopf::after {
  content: attr(data-text);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 700;
}

.filter__knopf:hover { color: var(--sea); }

.filter__knopf[aria-pressed="true"] {
  border-bottom-color: var(--sea);
  color: var(--sea);
  font-weight: 700;
}

.galerie__blaettern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0;
  padding-bottom: 23px;
  transition: color 0.2s var(--ease);
}

.galerie__blaettern:hover { color: var(--sea); }
.galerie__blaettern svg { transition: transform 0.25s var(--ease); }
.galerie__blaettern:hover svg { transform: translateX(3px); }

.galerie__blaettern:disabled,
.pfeil:disabled { cursor: default; opacity: 0.35; }
.galerie__blaettern:disabled:hover { color: var(--label); }
.galerie__blaettern:disabled:hover svg { transform: none; }

.filter__knopf:focus-visible,
.galerie__blaettern:focus-visible { outline-offset: 2px; }

/* Bühne --------------------------------------------------------------------- */
.buehne {
  display: grid;
  /* 1060 + 34 + 270 px bei 1390 px Breite, rechts 26 px Luft wie im Konzept */
  grid-template-columns: minmax(0, 1060fr) minmax(0, 270fr);
  column-gap: clamp(16px, 2.125vw, 34px);
  align-items: start;
  margin-top: clamp(24px, 2.375vw, 38px);
  padding-right: 1.8705%;
}

.buehne__haupt {
  position: relative;
  aspect-ratio: 1060 / 645;
  padding: 9px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(11, 44, 61, 0.15);
}

.buehne__bild {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
}

.buehne__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Hochformate vollständig auf der Sandfläche, nicht beschnitten */
.buehne__img.is-hoch { object-fit: contain; }

.buehne__zahl {
  position: absolute;
  left: 27px;
  bottom: 27px;
  padding: 17px 21px;
  background: rgba(246, 244, 239, 0.95);
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: clamp(17px, 0.703vw + 15.75px, 27px);
  line-height: 1.28;
  pointer-events: none;
}

/* Runde Pfeile: weiter wie im Konzept rechts über der Rahmenkante,
   zurück gespiegelt links */
.pfeil {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 1px solid #9db8b0;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--sea);
  box-shadow: 0 8px 20px rgba(11, 44, 61, 0.12);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.pfeil svg { width: 26px; height: 26px; }
.pfeil:hover { background: var(--white); border-color: var(--sea); }
.pfeil:disabled:hover { background: var(--ivory); border-color: #9db8b0; }
.pfeil--weiter { right: -24px; }
.pfeil--zurueck { left: -24px; }

.buehne__vorschau {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.vorschau {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 270 / 197;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 9px 20px rgba(11, 44, 61, 0.08);
  cursor: pointer;
}

.vorschau[hidden] { display: none; }

.vorschau img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease), opacity 0.2s var(--ease);
}

.vorschau:hover img { transform: scale(1.03); }

.galerie__fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 30px;
}

.galerie__fuss p {
  color: var(--muted);
  font-size: clamp(13px, 0.25vw + 12px, 16px);
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.galerie__vollbild {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--sea);
  background: none;
  color: var(--sea);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.galerie__vollbild svg { transition: transform 0.25s var(--ease); }
.galerie__vollbild:hover svg { transform: translate(2px, -2px); }

/* Vollbild (Lightbox) ------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0a2633;
  color: var(--ivory);
  overscroll-behavior: contain;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.lightbox::backdrop { background: rgba(8, 31, 43, 0.6); }

.lightbox :focus-visible { outline-color: var(--ivory); }

.lightbox__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 1.5vw, 24px) clamp(16px, 2vw, 32px);
}

.lightbox__titel {
  font-family: var(--font-serif);
  font-size: clamp(18px, 0.5vw + 15px, 24px);
  font-weight: 400;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.lightbox__schliessen {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox__figur {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 0 clamp(16px, 7vw, 112px);
}

.lightbox__flaeche {
  position: relative;
  min-height: 0;
}

.lightbox__bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox__text {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 0 clamp(18px, 2vw, 30px);
  color: rgba(246, 244, 239, 0.88);
  font-size: clamp(15px, 0.2vw + 14px, 17px);
  line-height: 1.5;
  text-align: center;
}

.lightbox__bereich {
  margin-right: 0.6em;
  color: #b0e2d9;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pfeil--hell {
  width: 56px;
  height: 56px;
  border-color: rgba(246, 244, 239, 0.55);
  background: rgba(246, 244, 239, 0.08);
  color: var(--ivory);
  box-shadow: none;
}

.pfeil--hell:hover,
.pfeil--hell:disabled:hover {
  background: rgba(246, 244, 239, 0.18);
  border-color: var(--ivory);
}

.lightbox .pfeil--zurueck { left: clamp(8px, 2vw, 32px); }
.lightbox .pfeil--weiter { right: clamp(8px, 2vw, 32px); }

/* ==========================================================================
   Auf einen Blick
   ========================================================================== */
.ueberblick {
  padding: clamp(64px, 6.5625vw, 105px) 0 clamp(72px, 7.8125vw, 125px);
  background: linear-gradient(180deg, var(--ivory), var(--mint));
}

.ueberblick__titel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 510px);
  gap: clamp(32px, 6.875vw, 110px);
  align-items: end;
  margin-top: clamp(28px, 4.6875vw, 75px);
}

.titel-gross {
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(36px, 2.656vw + 27.5px, 70px);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.05em;
}

.titel-gross em { padding-right: 0.05em; }

.ueberblick__text {
  max-width: 510px;
  padding-bottom: 9px;
  color: var(--text);
  font-size: clamp(17px, 0.273vw + 16.1px, 21px);
  line-height: 1.56;
  text-wrap: pretty;
}

.fakten {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(44px, 5.9375vw, 95px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fakt {
  display: flex;
  flex-direction: column-reverse;   /* Zahl oben, Bezeichnung darunter */
  justify-content: flex-end;
  padding: 28px 25px 35px 0;
  border-right: 1px solid var(--line);
}

.fakt:not(:first-child) { padding-left: clamp(20px, 2.125vw, 34px); }
.fakt:last-child { border-right: 0; }

.fakt dd {
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: clamp(40px, 1.406vw + 35.5px, 58px);
  line-height: 1.28;
  white-space: nowrap;
}

.fakt dt {
  margin-top: 11px;
  color: #56706b;   /* Konzept #65817b nur 3,7:1 auf dem Mintverlauf */
  font-size: clamp(12px, 0.15vw + 11.6px, 14px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ==========================================================================
   Raum für Raum
   ========================================================================== */
.raeume {
  padding: clamp(64px, 6.25vw, 100px) 0 clamp(80px, 8.75vw, 140px);
  background: linear-gradient(180deg, var(--mint), var(--ivory) 25%);
}

.raeume__kopf,
.ausstattung__kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.raeume__titel,
.ausstattung__titel {
  margin-top: 20px;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(36px, 2.578vw + 27.75px, 69px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.05em;
}

.raeume__einleitung,
.ausstattung__einleitung {
  max-width: 420px;
  color: var(--text);
  font-size: clamp(16.5px, 0.117vw + 16.1px, 18px);
  line-height: 1.5;
  text-wrap: pretty;
}

.raeume__raster {
  display: grid;
  grid-template-columns: minmax(0, 520fr) minmax(0, 746fr);
  gap: clamp(40px, 7.75vw, 124px);
  align-items: start;
  margin-top: clamp(48px, 5.3125vw, 85px);
}

.raeume__foto {
  position: relative;
  aspect-ratio: 520 / 670;
  padding: 10px;
  background: var(--white);
  box-shadow: 0 20px 45px rgba(11, 44, 61, 0.14);
  transform: rotate(-1.7deg);
}

.raeume__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.raeume__foto figcaption {
  position: absolute;
  right: calc(-1 * clamp(12px, 5vw, 80px));
  bottom: 35px;
  padding: 15px 24px;
  background: var(--ivory);
  color: var(--sea);
  font-size: clamp(12px, 0.15vw + 11.6px, 14px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(1.7deg);
}

.raeume__liste { border-top: 1px solid var(--line); }

.raeume__zeile {
  display: grid;
  grid-template-columns: clamp(36px, 4.0625vw, 65px) minmax(0, 1fr);
  gap: clamp(12px, 2.1875vw, 35px);
  padding: 34px 0 43px;
  border-bottom: 1px solid var(--line);
}

.raeume__nr {
  color: #5d7472;   /* Konzept #8ca59c nur 2,4:1 */
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.raeume__zeile h3 {
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: clamp(25px, 0.625vw + 23px, 33px);
  font-weight: 400;
  line-height: 1.28;
}

.raeume__zeile p {
  max-width: 620px;
  margin-top: 15px;
  color: var(--text);
  font-size: clamp(16.5px, 0.117vw + 16.1px, 18px);
  line-height: 1.53;
}

.raeume__bett {
  width: 90px;
  height: auto;
  margin-top: 20px;
  opacity: 0.36;
  filter: invert(25%) sepia(10%) saturate(1032%) hue-rotate(140deg);
}

/* ==========================================================================
   Ausstattung im Detail (zusätzlich zum Konzept)
   ========================================================================== */
.ausstattung {
  padding: clamp(24px, 2.5vw, 40px) 0 clamp(64px, 6.25vw, 100px);
}

.ausstattung__raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(40px, 7.75vw, 124px);
  margin-top: clamp(40px, 4.375vw, 70px);
}

.ausstattung__spalte { border-top: 1px solid var(--line); }

.gruppe {
  display: grid;
  grid-template-columns: clamp(120px, 10.625vw, 170px) minmax(0, 1fr);
  gap: 8px clamp(16px, 1.875vw, 30px);
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.gruppe h3 {
  color: var(--sea);
  font-family: var(--font-serif);
  font-size: clamp(22px, 0.3125vw + 21px, 26px);
  font-weight: 400;
  line-height: 1.3;
}

.gruppe li {
  position: relative;
  padding: 3px 0 3px 22px;
  color: var(--text);
  font-size: clamp(16px, 0.156vw + 15.5px, 18px);
  line-height: 1.5;
}

/* Feiner Strich statt Aufzählungspunkt */
.gruppe li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(3px + 0.75em);
  width: 10px;
  border-top: 1px solid var(--sage);
}

/* ==========================================================================
   Abschluss
   ========================================================================== */
.abschluss {
  padding: clamp(72px, 7vw, 112px) 0 clamp(72px, 7.6875vw, 123px);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--mint-deep) 100%);
  text-align: center;
}

.abschluss__titel {
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(34px, 2.422vw + 26.25px, 65px);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

.abschluss__text {
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(17px, 0.234vw + 16.25px, 20px);
  line-height: 1.5;
}

.knopf {
  margin-top: 38px;
  padding: 18px 30px;
  font-size: 14px;
}

.abschluss__zurueck {
  margin-top: 32px;
  font-size: 14px;
}

.abschluss__zurueck a {
  color: var(--sea);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-color: rgba(25, 71, 84, 0.35);
  text-underline-offset: 5px;
}

.abschluss__zurueck a:hover { text-decoration-color: var(--sea); }

/* ==========================================================================
   Einblenden beim Scrollen: Ausgangszustand sichtbar, erst JS versteckt
   ========================================================================== */
[data-reveal] {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-wartend {
  opacity: 0;
  transform: translateY(18px);
}

/* ==========================================================================
   Kleinere Bildschirme
   ========================================================================== */

/* Kopfzeile in zwei Reihen: Marke oben, Navigation darunter */
@media (max-width: 1100px) {
  .kopf__leiste {
    flex-wrap: wrap;
    padding: 22px 0 16px;
  }

  .kopf__nav {
    justify-content: space-between;
    width: 100%;
  }

  .kopf__liste { gap: 32px; }
}

@media (max-width: 1023px) {
  .intro__raster,
  .ueberblick__titel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .intro__text,
  .ueberblick__text { max-width: 560px; padding-bottom: 0; }

  /* Bühne: Hauptbild 4 : 3, Vorschau als Reihe darunter */
  .buehne {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
    padding-right: 0;
  }

  .buehne__haupt { aspect-ratio: 4 / 3; }

  /* Sechs Filter und „Blättern" passen erst ab 1024 px in eine Zeile
     (761–1000 px lief „Blättern" sonst rechts aus der Seite): Filter über
     die volle Breite mit eigener Linie, „Blättern" darunter rechts */
  .galerie__kopf { box-shadow: none; }

  .filter {
    width: 100%;
    flex-wrap: wrap;
    box-shadow: inset 0 -1px 0 var(--line);
  }

  .galerie__blaettern {
    margin-left: auto;
    padding: 4px 0;
  }

  .buehne__vorschau {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .vorschau { aspect-ratio: 4 / 3; }

  .pfeil {
    width: 52px;
    height: 52px;
  }

  .pfeil svg { width: 22px; height: 22px; }
  .pfeil--weiter { right: 14px; }
  .pfeil--zurueck { left: 14px; }

  .buehne__zahl {
    left: 16px;
    bottom: 16px;
    padding: 10px 14px;
  }

  .raeume__kopf,
  .ausstattung__kopf {
    flex-direction: column;
    align-items: flex-start;
  }

  .raeume__einleitung,
  .ausstattung__einleitung { max-width: 560px; }

  .gruppe {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  /* Alle sechs Filter sichtbar: enger setzen statt seitlich scrollen
     (ein unsichtbar scrollender Streifen schnitt „Ausblick" ab); auf sehr
     schmalen Geräten in zwei Reihen */
  .filter {
    column-gap: clamp(8px, 2.6vw, 18px);
    row-gap: 2px;
  }

  .filter__knopf {
    flex: none;
    padding-bottom: 14px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .galerie__blaettern {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .buehne { margin-top: 18px; }

  .galerie__fuss {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 24px;
  }

  .galerie__vollbild {
    font-size: 13px;
    letter-spacing: 0.12em;
  }

  .raeume__raster { grid-template-columns: minmax(0, 1fr); }

  .raeume__foto-halter {
    width: min(100%, 420px);
    padding: 0 6px;
  }

  .ausstattung__raster { grid-template-columns: minmax(0, 1fr); }
  .ausstattung__spalte + .ausstattung__spalte { border-top: 0; }

  .lightbox__figur { padding: 0; }

  .lightbox__text { padding-inline: 16px; }

  .pfeil--hell {
    width: 46px;
    height: 46px;
    background: rgba(8, 31, 43, 0.55);
  }
}

@media (max-width: 640px) {
  .kopf__leiste { padding: 18px 0 14px; gap: 12px; }

  .kopf__nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .kopf__liste { gap: 18px; }

  .kopf__liste a {
    padding: 4px 0;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .kopf__button {
    padding: 10px 14px;
    font-size: 11px;
  }

  .buehne__haupt { padding: 6px; }

  .pfeil {
    width: 44px;
    height: 44px;
  }

  .pfeil svg { width: 20px; height: 20px; }
  .pfeil--weiter { right: 10px; }
  .pfeil--zurueck { left: 10px; }

  .buehne__zahl {
    left: 10px;
    bottom: 10px;
    padding: 7px 11px;
  }

  .buehne__vorschau { gap: 10px; }

  /* Kennzahlen 2 × 2 */
  .fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .fakt,
  .fakt:not(:first-child) { padding: 20px 12px 24px 0; }

  .fakt:nth-child(2n) {
    padding-left: 20px;
    border-right: 0;
  }

  .fakt:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .raeume__zeile { padding: 26px 0 30px; }

  .lightbox__kopf { padding: 10px 16px; }
}

@media (max-width: 359px) {
  .kopf__liste { gap: 14px; }

  .kopf__liste a {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .filter { gap: 14px; }
  .filter__knopf { font-size: 11px; letter-spacing: 0.08em; }
}

/* Keine Bewegung, wenn das System sie reduziert haben möchte */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal].is-wartend {
    opacity: 1;
    transform: none;
  }

  .vorschau:hover img,
  .galerie__blaettern:hover svg,
  .galerie__vollbild:hover svg { transform: none; }
}

/* Schmale Handys: Filter einen Hauch kleiner, damit sie in einer Reihe bleiben */
@media (max-width: 380px) {
  .filter__knopf { font-size: 11px; }
}

/* Unter 480 px heißt „Alle Bilder" nur „Alle" — so bleiben die sechs Filter
   bis 360 px in einer Reihe. Vorleser hören weiter „Alle (19 Bilder)". */
@media (max-width: 479px) {
  .filter__zusatz { display: none; }
  .filter__knopf[data-kurz]::after { content: attr(data-kurz); }
}
