/* =========================================================================
   Ferienwohnung Trixi – Stylesheet
   Aufbau: Tokens · Basis · Layout · Komponenten · Seiten · Hilfsklassen
   Mobile First. Alle Farbkombinationen erfüllen mindestens WCAG AA.
   ========================================================================= */

/* --- Schriften ---------------------------------------------------------- */

@font-face {
  font-family: "Trixi Serif";
  src: url("/assets/fonts/serif-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Trixi Serif";
  src: url("/assets/fonts/serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Bestandsfarben der alten Website, daraus abgeleitete Abstufungen */
  --sand-50: #f7f4ee;
  --sand-100: #ede8de;   /* Bestandsfarbe */
  --sand-200: #ded6c6;
  --sand-300: #c7bda8;
  --sand-500: #9a9080;
  --sand-700: #6b6355;

  --brand: #5b874b;        /* Bestandsfarbe – Flächen, Rahmen, Icons */
  --brand-strong: #456839; /* Text und Buttons: 6,4:1 auf Weiß */
  --brand-deep: #33512a;
  --brand-50: #eef4eb;
  --brand-100: #dceada;

  --ink-900: #1f2419;      /* Fließtext: 16:1 auf Weiß */
  --ink-700: #3a4232;
  --ink-600: #545c4a;
  --dark: #232a1d;         /* dunkle Sektionen */
  --dark-soft: #2e3626;

  --sea: #2c6b7a;
  --white: #fff;

  --warn-bg: #fdf3e3;
  --warn-line: #d9a441;
  --error: #a4302a;
  --error-bg: #fbeeed;
  --ok: #2f6b3c;
  --ok-bg: #eaf4ec;

  /* Typografie */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-head: "Trixi Serif", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --step-1: clamp(1.17rem, 1.11rem + 0.3vw, 1.35rem);
  --step-2: clamp(1.37rem, 1.26rem + 0.55vw, 1.7rem);
  --step-3: clamp(1.6rem, 1.42rem + 0.9vw, 2.15rem);
  --step-4: clamp(1.88rem, 1.58rem + 1.5vw, 2.7rem);
  --step-5: clamp(2.2rem, 1.7rem + 2.4vw, 3.4rem);

  /* Abstände */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: clamp(3.5rem, 2rem + 6vw, 6rem);

  --wrap: 74rem;
  --wrap-narrow: 46rem;
  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 20px;

  --shadow-s: 0 1px 2px rgba(35, 42, 29, 0.06),
    0 2px 6px rgba(35, 42, 29, 0.05);
  --shadow-m: 0 2px 4px rgba(35, 42, 29, 0.06),
    0 10px 24px -6px rgba(35, 42, 29, 0.14);
  --shadow-l: 0 4px 8px rgba(35, 42, 29, 0.08),
    0 24px 48px -12px rgba(35, 42, 29, 0.22);

  --header-h: 4.25rem;
}

/* --- Reset und Basis ---------------------------------------------------- */

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

* {
  margin: 0;
}

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

body {
  overflow-wrap: break-word;
  background: var(--sand-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  /* Deutsche Komposita wie "Datenschutzerklärung" oder
     "Verfügbarkeitskalender" passen auf schmalen Displays sonst nicht in
     eine Zeile und schieben das Layout auf. */
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p {
  text-wrap: pretty;
  hyphens: auto;
}

a {
  color: var(--brand-strong);
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
}

a:hover {
  color: var(--brand-deep);
}

:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brand-strong);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-s) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .wrap {
    width: min(var(--wrap), 100% - 4rem);
  }
}

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

.section {
  padding-block: var(--space-2xl);
}

.section--tight {
  padding-block: var(--space-xl);
}

.section--sand {
  background: var(--sand-100);
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--dark);
  color: var(--sand-100);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark a {
  color: var(--brand-100);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-l);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xs);
  color: var(--brand-strong);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: var(--brand-100);
}

.lead {
  margin-top: var(--space-s);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-700);
}

.section--dark .lead {
  color: var(--sand-200);
}

.prose > * + * {
  margin-top: var(--space-s);
}

.prose h2 {
  margin-top: var(--space-l);
}

.prose h3 {
  margin-top: var(--space-m);
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

/* --- Icons -------------------------------------------------------------- */

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.icon--xs {
  width: 1rem;
  height: 1rem;
}

.icon--sm {
  width: 1.15rem;
  height: 1.15rem;
}

.icon--lg {
  width: 2rem;
  height: 2rem;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--brand-strong);
  color: var(--brand-strong);
}

.btn--ghost:hover {
  background: var(--brand-strong);
  color: var(--white);
}

.btn--onDark {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink-900);
}

.btn--onDark:hover {
  background: var(--sand-100);
  border-color: var(--sand-100);
  color: var(--ink-900);
}

.btn--outlineLight {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.btn--outlineLight:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
  color: var(--white);
}

.btn--lg {
  padding: 0.9rem 1.6rem;
  font-size: var(--step-1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-m);
}

.btn-row--center {
  justify-content: center;
}

/* --- Kopfbereich und Navigation ----------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Deckende Fläche statt backdrop-filter: Der Weichzeichner ist bei 94 %
     Deckkraft ohnehin kaum sichtbar, muss aber bei jedem Scroll-Frame neu
     berechnet werden. Deckend ist ruhiger und garantiert den Kontrast. */
  background: var(--sand-50);
  border-bottom: 1px solid var(--sand-200);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-900);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  /* --brand statt --brand-strong ergaebe mit dem sandfarbenen "T" nur
     3,43:1. Mit --brand-strong sind es 5,2:1. */
  background: var(--brand-strong);
  border-radius: 8px;
  color: var(--sand-100);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
}

.brand__place {
  color: var(--sand-700);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  background: transparent;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-s);
  color: var(--ink-900);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

.nav {
  display: none;
}

.nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--space-s) 1.25rem var(--space-m);
  background: var(--sand-50);
  border-bottom: 1px solid var(--sand-200);
  box-shadow: var(--shadow-m);
}

.nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__list a {
  display: block;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--sand-200);
  color: var(--ink-900);
  font-weight: 600;
  text-decoration: none;
}

.nav__list a[aria-current="page"] {
  color: var(--brand-strong);
}

.nav__cta {
  width: 100%;
  margin-top: var(--space-s);
}

/* Erst ab dieser Breite passt die Navigation ohne Umbruch in eine Zeile.
   Darunter bleibt das Mobilmenü aktiv. */
@media (min-width: 68rem) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-m);
  }

  .nav__list {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .nav__list a {
    padding: 0.45rem 0.6rem;
    border-bottom: 0;
    border-radius: var(--radius-s);
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .nav__list a:hover {
    background: var(--sand-100);
    color: var(--brand-strong);
  }

  .nav__list a[aria-current="page"] {
    background: var(--brand-50);
  }

  .nav__cta {
    width: auto;
    margin-top: 0;
    padding: 0.6rem 1.05rem;
    font-size: 0.95rem;
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

/* Bild und Verlauf liegen als normale, absolut positionierte Ebene im Hero.
   Bewusst OHNE negativen z-index und ohne isolation: Ein Element hinter dem
   eigenen Hintergrund zwingt den Browser zu einer separaten Compositing-
   Ebene, was bei einem grossen Foto teuer ist. Der Inhalt wird stattdessen
   mit z-index: 1 nach vorn geholt. */
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bildmittelpunkt je Seite steuerbar: Bei flachen Ausschnitten entscheidet
     er darüber, ob vom Motiv der interessante Teil zu sehen ist. */
  object-position: center var(--hero-focus, 58%);
}

/* Für Motive, deren Aussage im oberen Bildbereich liegt – etwa Horizont,
   Himmel und Sonne über der Ostsee. */
.hero--focus-top {
  --hero-focus: 30%;
}

/* Der Text sitzt am unteren Rand, deshalb wird vor allem dort abgedunkelt.
   Oben bleibt das Foto weitgehend sichtbar. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(24, 30, 20, 0.34) 0%,
    rgba(24, 30, 20, 0.18) 28%,
    rgba(24, 30, 20, 0.64) 66%,
    rgba(24, 30, 20, 0.88) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(38rem, 82svh);
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero--compact .hero__inner {
  min-height: min(26rem, 62svh);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-bottom: var(--space-s);
  padding: 0.3rem 0.75rem;
  /* Ein dunkler Chip statt eines hellen Schleiers: So bleibt der Text
     auch dann lesbar, wenn an dieser Stelle ein heller Bildbereich liegt.
     Ungünstigster Fall (weisses Motiv): 4,7:1. */
  background: rgba(24, 30, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  /* Kein backdrop-filter: Das Weichzeichnen eines grossflaechigen Fotos
     kostet auf schwachen Geraeten spuerbar Leistung und bringt hier keinen
     Lesbarkeitsgewinn, den der dunkle Chip nicht schon liefert. */
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 18ch;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(15, 20, 12, 0.45);
}

.hero__sub {
  max-width: 46ch;
  margin-top: var(--space-s);
  font-size: var(--step-1);
  color: var(--white);
  text-shadow: 0 1px 12px rgba(15, 20, 12, 0.55);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-l);
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-s);
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(15, 20, 12, 0.6);
}

/* Faktenleiste unter dem Hero */
.facts {
  background: var(--brand-strong);
  color: var(--white);
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding-block: var(--space-m);
  list-style: none;
  margin: 0;
}

.facts__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.3;
}

.facts__list .icon {
  width: 1.35rem;
  height: 1.35rem;
  opacity: 0.9;
}

@media (min-width: 40rem) {
  .facts__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .facts__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* --- Vertrauensleiste --------------------------------------------------- */

.trust {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .trust {
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: center;
  }
}

.rating {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: var(--space-m);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.rating__score {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: var(--step-3);
  font-weight: 600;
}

.rating__max {
  color: var(--sand-700);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
}

.stars {
  display: inline-flex;
  gap: 0.1rem;
  color: #c9922b;
}

.stars .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.rating__meta {
  color: var(--ink-600);
  font-size: var(--step--1);
}

.rating__meta a {
  color: var(--brand-strong);
}

.trust__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trust__item .icon {
  color: var(--brand-strong);
  margin-top: 0.15rem;
}

.trust__item strong {
  display: block;
  font-size: var(--step-0);
}

.trust__item span {
  color: var(--ink-600);
  font-size: var(--step--1);
}

/* --- Karten-Raster ------------------------------------------------------ */

.grid {
  display: grid;
  gap: var(--space-m);
}

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

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

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

@media (min-width: 40rem) {
  .grid--2,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--space-m);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--brand-50);
  border-radius: 10px;
  color: var(--brand-strong);
}

.card h2,
.card h3 {
  font-size: var(--step-1);
}

.card p {
  color: var(--ink-700);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* --- Wechselnde Bild-Text-Blöcke ---------------------------------------- */

.split {
  display: grid;
  gap: var(--space-m);
  align-items: center;
}

@media (min-width: 55rem) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }

  .split--reverse .split__media {
    order: 2;
  }
}

.split + .split {
  margin-top: var(--space-xl);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
}

.split__body h3 {
  margin-bottom: var(--space-xs);
}

.split__body p {
  color: var(--ink-700);
}

.split__body p + p {
  margin-top: var(--space-s);
}

/* --- Ausstattungslisten ------------------------------------------------- */

.amenities {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .amenities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68rem) {
  .amenities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.amenity__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-xs);
  color: var(--brand-strong);
}

.amenity__head h3 {
  font-size: var(--step-1);
  color: var(--ink-900);
}

.amenity ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenity li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.28rem 0;
  font-size: var(--step--1);
  line-height: 1.5;
}

.amenity li .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.32rem;
  color: var(--brand);
  stroke-width: 2.4;
}

/* --- Galerie ------------------------------------------------------------ */

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 68rem) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery__item {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  background: var(--sand-200);
  border-radius: var(--radius-s);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
}

.gallery--teaser {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 48rem) {
  .gallery--teaser {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Lightbox ----------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(20, 25, 17, 0.94);
  padding: 0.75rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--sand-100);
  font-size: var(--step--1);
}

.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  position: relative;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-s);
}

.lightbox__caption {
  padding: 0.6rem 0.25rem 0.25rem;
  color: var(--sand-200);
  font-size: var(--step--1);
  text-align: center;
  text-wrap: pretty;
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 0;
}

.lightbox__nav--next {
  right: 0;
}

/* --- Bewertungen -------------------------------------------------------- */

.reviews {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 55rem) {
  .reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.review__text {
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-900);
}

.review__meta {
  color: var(--ink-600);
  font-size: var(--step--1);
}

.review__meta strong {
  color: var(--ink-900);
}

/* --- Tabellen und Konditionen ------------------------------------------- */

.datalist {
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.datalist__row {
  display: grid;
  gap: 0.15rem 1rem;
  padding: var(--space-s) var(--space-m);
  border-top: 1px solid var(--sand-200);
}

.datalist__row:first-child {
  border-top: 0;
}

@media (min-width: 44rem) {
  .datalist__row {
    grid-template-columns: 15rem 1fr;
    align-items: baseline;
  }
}

.datalist__label {
  font-weight: 600;
}

.datalist__value {
  color: var(--brand-strong);
  font-weight: 600;
}

.datalist__note {
  grid-column: 1 / -1;
  color: var(--ink-600);
  font-size: var(--step--1);
}

@media (min-width: 44rem) {
  .datalist__note {
    grid-column: 2;
  }
}

/* Entfernungsliste */
.distances {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.distances li {
  display: grid;
  gap: 0.1rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--sand-200);
}

.distances li:first-child {
  border-top: 0;
}

@media (min-width: 44rem) {
  .distances li {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }
}

.distances__label {
  font-weight: 600;
}

.distances__value {
  color: var(--brand-strong);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.distances__note {
  grid-column: 1 / -1;
  color: var(--ink-600);
  font-size: var(--step--1);
}

/* --- FAQ ---------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0.6rem;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__item[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-s);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--space-s) var(--space-m);
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q .icon {
  color: var(--brand-strong);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q .icon {
  transform: rotate(180deg);
}

.faq__a {
  padding: 0 var(--space-m) var(--space-m);
  color: var(--ink-700);
  max-width: 62ch;
}

/* --- Karte mit Zwei-Klick-Lösung ---------------------------------------- */

.map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand-200);
  background: var(--sand-100);
}

.map__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  aspect-ratio: 16 / 10;
  padding: var(--space-m);
  text-align: center;
}

.map__placeholder p {
  max-width: 44ch;
  color: var(--ink-700);
  font-size: var(--step--1);
}

.map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}

/* --- Video -------------------------------------------------------------- */

.video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  background: var(--dark);
}

.video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Vorschauflaeche, die das Video erst auf Klick nachlaedt. */
.video__trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video__trigger img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video__trigger .btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-l);
}

.video__trigger:hover .btn {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

/* --- Abschluss-CTA ------------------------------------------------------ */

.section--cta {
  background: var(--sand-100);
}

.cta-box {
  padding: var(--space-l);
  background: var(--dark);
  border-radius: var(--radius-l);
  color: var(--sand-100);
  text-align: center;
}

@media (min-width: 48rem) {
  .cta-box {
    padding: var(--space-xl);
  }
}

.cta-box__title {
  color: var(--white);
  font-size: var(--step-3);
}

.cta-box__text {
  max-width: 52ch;
  margin: var(--space-s) auto 0;
  color: var(--sand-200);
}

.cta-box__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--space-l);
}

.cta-box__actions .btn--primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink-900);
}

.cta-box__actions .btn--primary:hover {
  background: var(--sand-100);
  border-color: var(--sand-100);
  color: var(--ink-900);
}

.cta-box__actions .btn--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.cta-box__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
  color: var(--white);
}

.cta-box__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: var(--space-m);
  color: var(--sand-300);
  font-size: var(--step--1);
}

/* --- Breadcrumbs -------------------------------------------------------- */

.breadcrumbs {
  background: var(--sand-100);
  border-bottom: 1px solid var(--sand-200);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0.7rem 0;
  margin: 0;
  font-size: var(--step--1);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs__sep {
  color: var(--sand-500);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink-600);
}

/* --- Formular ----------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--space-m);
  padding: var(--space-m);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

@media (min-width: 44rem) {
  .form {
    padding: var(--space-l);
  }
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
  font-size: var(--step--1);
}

.field .req {
  color: var(--error);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--sand-50);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-s);
  font-size: var(--step-0);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  background: var(--white);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field--error input,
.field--error textarea,
.field--error select {
  border-color: var(--error);
  background: var(--error-bg);
}

.field__error {
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 600;
}

.field__hint {
  color: var(--ink-600);
  font-size: var(--step--1);
}

.field-row {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 34rem) {
  .field-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  accent-color: var(--brand-strong);
}

.checkbox label {
  font-size: var(--step--1);
  font-weight: 400;
  line-height: 1.55;
}

/* Honigtopf – für Menschen unsichtbar, für einfache Bots sichtbar */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  display: flex;
  gap: 0.75rem;
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius);
  border: 1px solid;
  font-size: var(--step--1);
}

.notice .icon {
  flex: none;
  margin-top: 0.15rem;
}

.notice--ok {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: #1f4a29;
}

.notice--error {
  background: var(--error-bg);
  border-color: var(--error);
  color: #7d231e;
}

.notice--info {
  background: var(--sand-100);
  border-color: var(--sand-300);
  color: var(--ink-700);
}

.notice--warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: #6d4a12;
}

.notice strong {
  display: block;
  margin-bottom: 0.15rem;
}

/* --- Kontaktkarten ------------------------------------------------------ */

.contact-cards {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 44rem) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-card {
  display: flex;
  gap: 0.85rem;
  padding: var(--space-m);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
}

.contact-card .icon {
  color: var(--brand-strong);
  margin-top: 0.2rem;
}

.contact-card strong {
  display: block;
}

.contact-card a {
  font-weight: 600;
}

.contact-card p {
  color: var(--ink-600);
  font-size: var(--step--1);
}

/* --- Fußzeile ----------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: var(--sand-200);
  padding-top: var(--space-xl);
}

.site-footer a {
  color: var(--sand-100);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-l);
  padding-bottom: var(--space-xl);
}

@media (min-width: 44rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.site-footer__brand {
  font-family: var(--font-head);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.site-footer__addr {
  font-size: var(--step--1);
  line-height: 1.7;
}

.site-footer__head {
  margin-bottom: 0.6rem;
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: var(--step--1);
}

.site-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer__hint {
  margin-top: 0.75rem;
  color: var(--sand-500);
  font-size: 0.8rem;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: var(--space-s);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: var(--sand-500);
}

.site-footer__legal {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Sticky-CTA auf Mobilgeräten ---------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(247, 244, 238, 0.97);
  border-top: 1px solid var(--sand-300);
  box-shadow: 0 -6px 20px rgba(35, 42, 29, 0.12);
}

.sticky-cta[hidden] {
  display: none;
}

.sticky-cta .btn {
  flex: 1;
  padding-block: 0.7rem;
  font-size: 0.95rem;
}

/* Der Sticky-CTA verschwindet erst, wenn die Desktop-Navigation mit ihrem
   eigenen CTA-Button erscheint. Sonst gaebe es dazwischen keinen sichtbaren
   Weg zur Buchung. */
@media (min-width: 68rem) {
  .sticky-cta {
    display: none !important;
  }
}

body:has(.sticky-cta:not([hidden])) .site-footer__bar {
  padding-bottom: 4.5rem;
}

@media (min-width: 68rem) {
  body:has(.sticky-cta:not([hidden])) .site-footer__bar {
    padding-bottom: var(--space-s);
  }
}

/* --- Hilfsklassen ------------------------------------------------------- */

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

.center {
  text-align: center;
}

.mt-l {
  margin-top: var(--space-l);
}

.mt-m {
  margin-top: var(--space-m);
}

.mt-s {
  margin-top: var(--space-s);
}

.external-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-600);
  font-size: var(--step--1);
}

/* --- Sanftes Einblenden beim Scrollen ----------------------------------- */

/* --- Sanftes Einblenden beim Scrollen -----------------------------------
   Bewusst ohne JavaScript: Die Animation läuft über eine scroll-gesteuerte
   CSS-Animation. Kann der Browser das nicht, greift die Regel gar nicht
   erst – die Inhalte sind dann von Anfang an sichtbar. Ein Skriptfehler
   oder ein nicht auslösender Beobachter kann hier also niemals dazu
   führen, dass Text unsichtbar bleibt. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }

    @keyframes reveal-in {
      from {
        opacity: 0;
        transform: translateY(14px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .gallery__item:hover img {
    transform: none;
  }
}

@media print {
  .site-header,
  .sticky-cta,
  .site-footer,
  .section--cta,
  .lightbox {
    display: none !important;
  }
}
