/* ==========================================================================
   Casa Bellavista - Ostra, Le Marche
   Farbwelt nach Moodboard: Himmel, Pool, Oliven, Senfgelbe Fassade,
   rote Fensterlaeden.
   ========================================================================== */

/* --- Design Tokens ------------------------------------------------------ */
:root {
  /* Flaechen */
  --cream: #fbf7f1;
  --sand: #f3ebe1;
  --sand-deep: #e9dccc;
  --white: #ffffff;

  /* Text */
  --ink: #23281f;
  --ink-soft: #5d6455;
  --ink-faint: #8b9182;

  /* Akzente */
  --olive: #55663f;
  --olive-deep: #333f26;
  --olive-light: #7d8f63;
  --terracotta: #b8503a;
  --terracotta-deep: #97402d;
  --ochre: #d89a3f;
  --pool: #2c9cb8;

  /* Typografie */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Raster */
  --wrap: 1240px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);

  /* Sonstiges */
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(35, 40, 31, 0.05), 0 12px 32px -12px rgba(35, 40, 31, 0.18);
  --shadow-lg: 0 2px 4px rgba(35, 40, 31, 0.06), 0 32px 64px -24px rgba(35, 40, 31, 0.3);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--ochre); color: var(--olive-deep); }

/* --- Layout-Helfer ------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--olive {
  background: var(--olive-deep);
  color: #ece7db;
}
.section--olive h2, .section--olive h3 { color: #fdfaf3; }

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

/* --- Typografische Bausteine -------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section--olive .eyebrow { color: var(--ochre); }

.h-xl { font-size: clamp(2.6rem, 7vw, 5rem); }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.h-sm { font-size: 1.25rem; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.125rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.section--olive .lead { color: #cfcdbe; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin-top: 1.25rem; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--terracotta);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:hover {
  --btn-bg: var(--terracotta-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(184, 80, 58, 0.7);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(35, 40, 31, 0.25);
}
.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  border-color: var(--ink);
  box-shadow: none;
}

.btn--light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}
.btn--light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border-color: #fff;
  box-shadow: none;
}

.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.875rem; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* --- Header ------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              height 0.35s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.35s var(--ease);
}
.brand__place {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.4rem;
  transition: color 0.35s var(--ease);
}

.nav { display: flex; gap: clamp(1rem, 2vw, 1.85rem); }
.nav a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding-block: 0.35rem;
  transition: color 0.35s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Sprachumschalter */
.lang {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 100px;
  transition: border-color 0.35s var(--ease);
}
.lang a {
  display: block;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: #fff; color: var(--ink); }

/* Zustand mit hellem Hintergrund: entweder nach dem Scrollen (.is-stuck)
   oder dauerhaft auf Unterseiten ohne dunkles Titelbild (.header--solid). */
.header.is-stuck,
/* Zustand mit hellem Hintergrund: entweder nach dem Scrollen (.is-stuck)
   oder dauerhaft auf Unterseiten ohne dunkles Titelbild (.header--solid). */
.header--solid {
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(35, 40, 31, 0.09);
}.header.is-stuck .brand__name,
.header--solid .brand__name { color: var(--ink); }.header.is-stuck .brand__place,
.header--solid .brand__place { color: var(--ink-faint); }.header.is-stuck .nav a,
.header--solid .nav a { color: var(--ink-soft); }.header.is-stuck .nav a:hover,
.header--solid .nav a:hover { color: var(--ink); }.header.is-stuck .lang,
.header--solid .lang { border-color: rgba(35, 40, 31, 0.2); }.header.is-stuck .lang a,
.header--solid .lang a { color: var(--ink-soft); }.header.is-stuck .lang a[aria-current="true"],
.header--solid .lang a[aria-current="true"] { background: var(--olive); color: #fff; }.header.is-stuck .btn--light,
.header--solid .btn--light {
  --btn-fg: var(--ink);
  border-color: rgba(35, 40, 31, 0.28);
}.header.is-stuck .btn--light:hover,
.header--solid .btn--light:hover { --btn-bg: var(--ink); --btn-fg: #fff; }.header.is-stuck .burger span,
.header--solid .burger span { background: var(--ink); }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease),
              background-color 0.35s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 26s var(--ease) forwards;
}
@keyframes kenburns {
  from { transform: scale(1.08) translate3d(1.2%, 1%, 0); }
  to   { transform: scale(1) translate3d(0, 0, 0); }
}
/* Drei Verläufe: oben für den Header, links für die Textspalte, unten für den
   Übergang zur Faktenleiste. Die linke Ebene ist der eigentliche Grund für die
   gute Lesbarkeit der Überschrift auf hellem Bildhintergrund. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 28, 18, 0.55) 0%, rgba(20, 28, 18, 0) 30%),
    linear-gradient(100deg, rgba(16, 23, 14, 0.82) 0%, rgba(16, 23, 14, 0.6) 30%,
                    rgba(16, 23, 14, 0.2) 56%, rgba(16, 23, 14, 0) 78%),
    linear-gradient(to top, rgba(18, 25, 16, 0.8) 0%, rgba(18, 25, 16, 0.25) 40%,
                    rgba(18, 25, 16, 0) 66%);
}

/* Schmale Schirme: der seitliche Verlauf würde fast die ganze Breite
   abdunkeln. Dort trägt der untere Verlauf die Lesbarkeit. */
@media (max-width: 700px) {
  .hero__media::after {
    background:
      linear-gradient(to bottom, rgba(20, 28, 18, 0.5) 0%, rgba(20, 28, 18, 0) 26%),
      linear-gradient(to top, rgba(18, 25, 16, 0.88) 0%, rgba(18, 25, 16, 0.62) 34%,
                      rgba(18, 25, 16, 0.15) 62%, rgba(18, 25, 16, 0) 80%);
  }
}

.hero__body {
  padding-bottom: clamp(3rem, 7vw, 6rem);
  color: #fff;
  max-width: 44rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}
.hero__eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--ochre);
}
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero h1 em {
  display: block;
  font-style: italic;
  color: var(--ochre);
}
.hero__text {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* Faktenleiste unter dem Hero */
.facts {
  background: var(--olive-deep);
  color: #e7e3d6;
}
/* Trennlinien entstehen über den 1px-Abstand, nicht über Rahmen: so stimmen
   sie bei jeder Spaltenzahl (6 / 3 / 2), ohne nth-child-Sonderfälle. */
.facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.11);
}
.facts__item {
  padding: clamp(1.5rem, 3vw, 2.25rem) 1rem;
  text-align: center;
  background: var(--olive-deep);
}
.facts__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--ochre);
}
.facts__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* --- Intro -------------------------------------------------------------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1.05fr 0.95fr; }
}
.intro__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.intro__collage figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); }
.intro__collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.intro__collage figure:hover img { transform: scale(1.05); }
.intro__collage figure:first-child { grid-row: span 2; }
.intro__collage figure:first-child img { min-height: 100%; }

.signature {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sand-deep);
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

/* --- Ausstattung / Merkmale --------------------------------------------- */
/* Feste Spaltenzahlen statt auto-fit: bei sechs Kacheln geht die Rechnung
   so immer glatt auf (1 / 2 / 3 Spalten) und es bleibt keine Lücke. */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--sand-deep);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 620px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--cream);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background-color 0.3s var(--ease);
}
.feature:hover { background: var(--white); }
.feature__icon {
  width: 34px; height: 34px;
  color: var(--olive);
  margin-bottom: 1.15rem;
}
.feature h3 { font-size: 1.1875rem; margin-bottom: 0.6rem; }
.feature p { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.65; }
.feature__details {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.feature__details li + li { margin-top: 0.35rem; }

/* --- Abwechselnde Bild/Text-Bloecke ------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(4rem, 8vw, 7rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.split__media:hover img { transform: scale(1.04); }
.split__body h2 { margin-bottom: 1.25rem; }

.checklist {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.checklist li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.9688rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--olive-light);
}

/* --- Zielgruppen-Karten ------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__media { overflow: hidden; aspect-ratio: 3 / 2; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.6rem 1.6rem 1.85rem; }
.card__body h3 { font-size: 1.1875rem; margin-bottom: 0.55rem; }
.card__body p { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.65; }

/* --- Erlebnis-Pakete (dunkler Abschnitt) --------------------------------- */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.package {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              transform 0.4s var(--ease);
}
.package:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(216, 154, 63, 0.45);
  transform: translateY(-4px);
}
.package__media { aspect-ratio: 16 / 10; overflow: hidden; }
.package__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.package:hover .package__media img { transform: scale(1.06); }
.package__body { padding: 1.5rem 1.5rem 1.75rem; }
.package__season {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.75rem;
}
.package h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.package p { font-size: 0.9375rem; color: #c8c6b8; line-height: 1.65; }

/* --- Region ------------------------------------------------------------- */
.distances {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sand-deep);
}
.distances li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--sand-deep);
  font-size: 0.9688rem;
}
.distances .place { font-weight: 500; }
.distances .place small {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}
.distances .dist {
  flex: none;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--olive);
  white-space: nowrap;
}

/* --- Galerie ------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter {
  padding: 0.5rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(35, 40, 31, 0.18);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter:hover { border-color: var(--olive); color: var(--olive); }
.filter[aria-pressed="true"] {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0.75rem;
}
.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--sand-deep);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 28, 18, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item[hidden] { display: none; }
/* Ein Element über zwei Spalten. Das Seitenverhältnis ist so gewählt, dass die
   Kachel exakt so hoch wird wie die 3:2-Kacheln daneben - sonst reißt die
   Zeile auf. (2w + gap) / (2w/3) ergibt bei 12px Abstand rund 3,05. */
.gallery__item--wide { grid-column: span 2; aspect-ratio: 3.05 / 1; }
@media (max-width: 640px) {
  .gallery__item--wide { grid-column: span 1; aspect-ratio: 3 / 2; }
}

.gallery__more { margin-top: 2rem; display: flex; justify-content: center; }

/* --- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(16, 22, 14, 0.94);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100svh - 9rem);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.97);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__caption {
  position: absolute;
  left: 50%; bottom: clamp(1rem, 3vw, 2rem);
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  text-align: center;
  padding-inline: 1rem;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__prev { left: clamp(0.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(0.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* --- Buchungsabschnitt --------------------------------------------------- */
.booking {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.booking__media { position: absolute; inset: 0; z-index: -2; }
.booking__media img { width: 100%; height: 100%; object-fit: cover; }
.booking__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(24, 33, 20, 0.92) 0%, rgba(24, 33, 20, 0.72) 45%, rgba(24, 33, 20, 0.35) 100%);
}
.booking__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .booking__inner { grid-template-columns: 1.1fr 0.9fr; }
}
.booking h2 { color: #fff; }
.booking__text { color: rgba(255, 255, 255, 0.85); margin-top: 1.25rem; }

.booking-card {
  background: rgba(251, 247, 241, 0.97);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.booking-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sand-deep);
}
.booking-card__price .from { font-size: 0.875rem; color: var(--ink-faint); }
.booking-card__price .amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}
.booking-card__price .unit { font-size: 0.9375rem; color: var(--ink-faint); }
.booking-card__note {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-top: 1rem;
  line-height: 1.55;
}
.booking-card .btn { width: 100%; margin-top: 1.5rem; }
.booking-card .btn + .btn { margin-top: 0.65rem; }

.btn--whatsapp {
  --btn-bg: #25d366;
  --btn-fg: #0b3d20;
  border-color: #25d366;
}
.btn--whatsapp:hover {
  --btn-bg: #1fbe5a;
  border-color: #1fbe5a;
  box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.7);
}

/* --- FAQ ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--sand-deep); }
.faq__item { border-bottom: 1px solid var(--sand-deep); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.125rem;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.faq__q:hover { color: var(--olive); }
.faq__q svg {
  flex: none;
  width: 18px; height: 18px;
  color: var(--olive);
  transition: transform 0.35s var(--ease);
}
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p {
  padding-bottom: 1.5rem;
  font-size: 0.9688rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* --- Footer ------------------------------------------------------------- */
.footer {
  background: var(--olive-deep);
  color: #b9b8ab;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  font-size: 0.9375rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.15rem;
}
.footer__brand .brand__name { color: #fdfaf3; font-size: 1.5rem; }
.footer__brand .brand__place { color: var(--ochre); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { text-decoration: none; transition: color 0.25s var(--ease); }
.footer a:hover { color: #fdfaf3; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.42);
}
.footer__bottom nav { display: flex; gap: 1.5rem; }

/* --- Mobile Buchungsleiste ---------------------------------------------- */
.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 55;
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem clamp(0.85rem, 4vw, 1.25rem);
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  background: rgba(251, 247, 241, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--sand-deep);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar__price { margin-right: auto; line-height: 1.2; }
.mobile-bar__price .from { display: block; font-size: 0.6875rem; color: var(--ink-faint); }
.mobile-bar__price .amount { font-family: var(--font-display); font-size: 1.25rem; }
.mobile-bar .btn { padding: 0.7rem 1.15rem; font-size: 0.875rem; }

/* --- Scroll-Reveal ------------------------------------------------------
   Der Startzustand wird nur gesetzt, wenn JavaScript laeuft (.js am <html>).
   Faellt JS aus, bleibt jeder Inhalt sichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 940px) {
  .burger { display: flex; }
  .header .btn--light { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    background: rgba(251, 247, 241, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -20px rgba(35, 40, 31, 0.35);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    color: var(--ink);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--sand-deep);
    font-size: 1.0625rem;
  }
  .nav a::after { display: none; }
  .mobile-bar { display: flex; }
}

@media (max-width: 560px) {
  /* Auf schmalen Schirmen liegt das erste Bild breit obenauf, die beiden
     anderen darunter nebeneinander - sonst bleibt eine Rasterzelle leer. */
  .intro__collage figure:first-child { grid-row: auto; grid-column: 1 / -1; }
  .intro__collage figure:first-child img { aspect-ratio: 16 / 9; min-height: 0; }
  .intro__collage figure:not(:first-child) img { aspect-ratio: 1; }
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* --- Bewegung reduzieren ------------------------------------------------ */
@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;
  }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* --- Druck -------------------------------------------------------------- */
@media print {
  .header, .mobile-bar, .lightbox, .filters, .hero__actions { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   Magazin, Karte und Rechtsseiten
   ========================================================================== */

/* --- Seitenkopf der Unterseiten ----------------------------------------- */
.section--pagehead {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--sand);
}

/* --- Beitragskarten ------------------------------------------------------ */
.pcards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (min-width: 620px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .pcards { grid-template-columns: repeat(3, 1fr); } }

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pcard[hidden] { display: none; }

.pcard__media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand-deep); }
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.06); }

/* Beitraege ohne eigenes Foto bekommen einen typografischen Kopf statt
   eines zugekauften Bildes. */
.pcard__media--type {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(216, 154, 63, 0.22), transparent 60%),
    var(--olive-deep);
}
.pcard__media--type span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
  color: #fdfaf3;
  text-align: center;
}

.pcard__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.pcard__kind {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.7rem;
}
.pcard__body h3 { font-size: 1.1875rem; margin-bottom: 0.6rem; }
.pcard__body p { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.6; }
.pcard__more {
  margin-top: 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--terracotta);
}

/* Erlebniskarten der Startseite sind jetzt Links */
a.package { text-decoration: none; color: inherit; }
.package__more {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ochre);
}

/* --- Beitragsseite ------------------------------------------------------- */
.post__head { background: var(--sand); padding-bottom: clamp(2rem, 4vw, 3rem); }
.post__head:not(.post__head--photo) { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)); }

.post__media { position: relative; height: clamp(300px, 52vh, 620px); overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20, 28, 18, 0.45) 0%, rgba(20, 28, 18, 0) 45%);
}
.post__intro { padding-top: clamp(2rem, 4vw, 3rem); }
.post__head--photo .post__intro { margin-top: 0; }
.post__intro .lead { margin-top: 1.25rem; }
.post__meta {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.post__body { padding-block: clamp(2.5rem, 5vw, 4rem); }
.post__body h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  margin: 2.5rem 0 1rem;
}
.post__body h2:first-child { margin-top: 0; }
.post__body p { font-size: 1.0625rem; line-height: 1.75; }
.post__body .checklist { margin: 1.5rem 0; }

.factbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin: 0 0 2.5rem;
  background: var(--sand-deep);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.factbox > div { background: var(--cream); padding: 1.1rem 1.25rem; }
.factbox dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.factbox dd { margin: 0.4rem 0 0; font-size: 0.9375rem; }

.pnote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  border-left: 3px solid var(--ochre);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9688rem;
  color: var(--ink-soft);
}

.pfig { margin: 2.5rem 0; }
.pfig img { width: 100%; border-radius: var(--radius-lg); }
.pfig figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.post .section--sand { margin-top: clamp(2rem, 5vw, 4rem); }

/* --- Fliesstext der Rechtsseiten ----------------------------------------- */
.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin: 2.25rem 0 0.85rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1rem; line-height: 1.75; max-width: 68ch; }
.prose .lead { margin-bottom: 2rem; }

/* --- Karte --------------------------------------------------------------- */
.mapwrap { margin-top: clamp(3rem, 6vw, 5rem); }
.mapwrap__head { max-width: 44rem; margin-bottom: 1.75rem; }
.mapwrap__head p { margin-top: 0.75rem; color: var(--ink-soft); }

.map {
  height: clamp(360px, 55vh, 560px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--sand-deep);
  background: var(--sand-deep);
  z-index: 0; /* bleibt unter dem fixierten Header */
}
/* Die Standardkacheln sind bunter als der Rest der Seite. */
.map .leaflet-tile-pane { filter: saturate(0.72) contrast(0.96) brightness(1.02); }
.map__note {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.map__note a { color: inherit; }

/* Marker */
.pin { background: none; border: 0; }
.pin__dot {
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--olive);
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(20, 28, 18, 0.45);
  transition: transform 0.2s var(--ease);
}
.pin--house .pin__dot {
  width: 20px; height: 20px;
  margin: -3px;
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(184, 80, 58, 0.25), 0 1px 8px rgba(20, 28, 18, 0.45);
}
.pin:hover .pin__dot { transform: scale(1.25); }
.pin__label {
  position: absolute;
  left: 50%; top: 18px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 9px #fff;
  pointer-events: none;
}
.pin--house .pin__label { top: 22px; font-size: 0.75rem; color: var(--terracotta-deep); }

/* Popup an die Seite angeglichen */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0;
}
.leaflet-popup-content { margin: 0; padding: 1rem 1.15rem 1.15rem; width: auto !important; }
.pop__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}
.pop__text {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.pop__link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
}
.pop__link:hover { text-decoration: underline; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-faint); }
.leaflet-container { font-family: var(--font-body); }

/* ==========================================================================
   Gaestebewertungen
   ========================================================================== */

/* Je Portal ein eigener Wert - kein zusammengerechneter Durchschnitt. */
.scores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.15rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.score:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.score__value {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}
.score__value small {
  font-size: 0.9375rem;
  color: var(--ink-faint);
  margin-left: 0.15rem;
}
.score__meta {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Sterne sind Dekoration; die Zahl daneben traegt die Aussage. */
.stars { display: inline-flex; gap: 2px; }
.star {
  width: 13px; height: 13px;
  background: var(--ochre);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
                     50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star--off { background: var(--sand-deep); }

/* Zitate */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (min-width: 720px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius-lg);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }

.quote__trans {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.quote__trans span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--sand-deep);
}
.quote__who { font-size: 0.9375rem; font-weight: 500; }
.quote__who small {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}
.quote__src {
  font-size: 0.75rem;
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.quote__src:hover { color: var(--terracotta); }

/* Pflichthinweis nach § 5b Abs. 3 UWG - klein, aber immer sichtbar. */
.reviews__note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 62ch;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* Ein oder zwei Zitate: schmaler und zentriert statt Luecken im Raster. */
.quotes--few {
  max-width: 760px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .quotes--few { grid-template-columns: 1fr; }
}
.quotes--few .quote { padding: clamp(1.75rem, 3vw, 2.5rem); }
.quotes--few blockquote { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* ==========================================================================
   Zugriffsschutz vor dem Livegang (entfaellt, sobald CONFIG["locked"]=False)
   ========================================================================== */

/* Alles ausser der Abfrage verstecken - auch ohne JavaScript. */
html.locked, html.locked body { overflow: hidden; height: 100%; }
html.locked body > *:not(.gate) { display: none !important; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(216, 154, 63, 0.16), transparent 62%),
    var(--olive-deep);
}
.gate__box {
  width: 100%;
  max-width: 26rem;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.gate__brand {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
}
.gate__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.gate__text {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}
.gate__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  text-align: center;
  letter-spacing: 0.08em;
}
.gate__input:focus {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  border-color: var(--olive);
}
.gate__btn { width: 100%; margin-top: 0.85rem; }
.gate__msg {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--terracotta);
}
