/* ============================================================
   Kesselpause — Design-System (alle 4 Seiten)
   Editorialer Reisemagazin-Look: Fraunces (Display) + Newsreader
   (Text), selbst gehostet (kein CDN — eng.md §1/§4 bleibt erfüllt).
   Print-Ästhetik statt App-Deko: Haarlinien statt Schatten, kaum
   Rundungen, Gold als Struktur­farbe, ein einheitlicher Foto-Grade.
   Light default, Dark via prefers-color-scheme (ux.md §4).
   ============================================================ */

/* ---------- Schriften (self-hosted, OFL-Lizenz) ---------- */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Farbwelt */
  --papier: #faf8f3;          /* warmes Creme statt Weiß */
  --papier-tief: #f1ede4;     /* Sand: abgesetzte Flächen */
  --karte: #ffffff;
  --tinte: #1c2721;           /* grünschwarze Tinte */
  --tinte-sanft: #4c5a52;
  --wald: #1e3d2e;            /* tiefes Waldgrün: Flächen, Footer */
  --wald-hell: #e4efe7;
  --akzent: #256e49;          /* Buttons/Links, Kontrast ≥ 4,5:1 auf Papier */
  --akzent-tief: #1b5537;
  --akzent-kontrast: #ffffff;
  --gold: #a07d1c;            /* Eyebrows, Haarlinien, Nummern — sparsam */
  --linie: #e0d9ca;
  --warn-bg: #fdf6e3;
  --warn-border: #d9c26e;
  --warn-text: #5f4a00;
  --invert-bg: #f4f1e8;       /* heller Button auf Waldgrün-Band */
  --invert-text: #1e3d2e;
  --radius: 3px;              /* Print-Look: kaum Rundung */
  --radius-gross: 5px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #121a15;
    --papier-tief: #0d130f;
    --karte: #1a2620;
    --tinte: #ece9df;
    --tinte-sanft: #a8b3aa;
    --wald: #16281e;
    --wald-hell: #1e3327;
    --akzent: #5cbf8b;
    --akzent-tief: #74d3a1;
    --akzent-kontrast: #0a1d12;
    --gold: #d3ac4a;
    --linie: #2b382f;
    --warn-bg: #2e2609;
    --warn-border: #8a7226;
    --warn-text: #f0dc9a;
    --invert-bg: #e8e4d5;
    --invert-text: #14251b;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Grundelemente ---------- */

a { color: var(--akzent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--akzent-tief); text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 540;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); margin: 0.3em 0; }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); margin: 0 0 0.55em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }

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

.num { font-variant-numeric: tabular-nums; }

figure { margin: 0; }
figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--tinte-sanft);
  margin-top: 0.5rem;
}

/* Einheitlicher Foto-Grade: EIN warmer Look über alle Content-Bilder & -Videos
   (0-€-Alternative zum Foto-Editing, bis eigenes Material da ist) */
.foto-grid img,
.galerie img,
.galerie video,
.video-band video {
  filter: sepia(0.26) saturate(1.12) contrast(1.05) brightness(1.02);
}

/* Eyebrow: Gold-Kicker mit kurzer Haarlinie davor */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}

/* Pull-Quote: großer editorialer Moment, Gold-Linie oben */
.pull {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  font-weight: 480;
  line-height: 1.32;
  max-width: 32rem;
  margin: 2.2rem 0 0;
  padding-top: 1.3rem;
  border-top: 2px solid var(--gold);
}
.pull em { font-style: italic; }

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

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.4rem;
}

section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--linie); }

/* Rhythmus-Brecher: Sand- und Waldgrün-Bänder */
.s-sand { background: var(--papier-tief); }
.s-wald {
  background: var(--wald);
  color: #e6ecdf;
  border-top: none !important;
}
.s-wald + section { border-top: none; }
.s-wald h2 { color: #f6f3ea; }
.s-wald a { color: #cfe3cf; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--akzent);
  color: var(--akzent-kontrast);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  padding: 1.1rem 0;
  position: relative;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 640;
  font-size: 1.4rem;
  letter-spacing: 0.005em;
  color: var(--tinte);
  text-decoration: none;
}
.brand-claim {
  color: var(--tinte-sanft);
  font-size: 0.9rem;
  font-style: italic;
  font-family: var(--text);
  text-align: right;
}

/* Header über dem Hero-Bild: helle Schrift (nur index) */
.hat-hero .site-header {
  margin-bottom: -4.4rem;
}
.hat-hero .site-header .brand,
.hat-hero .site-header .brand-claim { color: #f6f3ea; }

/* ---------- Hero: Foto mit Verlaufs-Scrim, Text auf dem Bild ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(94vh, 46rem);
  padding: 0;
  overflow: hidden;
  color: #f6f3ea;
}
.hero-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.1) saturate(1.06) contrast(1.03);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 26, 20, 0.42) 0%, rgba(16, 26, 20, 0.05) 30%, rgba(16, 26, 20, 0.14) 55%, rgba(14, 24, 18, 0.88) 100%);
}
.hero-inhalt {
  position: relative;
  width: 100%;
  padding-top: 7rem;
  padding-bottom: 2.6rem;
}
.hero h1 {
  color: #fdfcf8;
  font-weight: 500;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
  margin: 0.3em 0 0.25em;
}
.hero .sub {
  font-size: 1.16rem;
  line-height: 1.55;
  color: #e9e5d8;
  max-width: 34rem;
  margin: 0 0 1.6rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
/* Hero-Kicker: statt Glas-Pille eine ruhige Zeile in Kapitälchen-Optik */
.hero .badge {
  display: inline-block;
  background: none;
  border: none;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #efe8d2;
  border-top: 1px solid rgba(244, 233, 199, 0.55);
  padding: 0.55rem 0 0;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.hero .badge strong { color: #ffe9a8; font-weight: 800; }
.hero-credit {
  font-size: 0.72rem;
  font-family: var(--sans);
  color: rgba(240, 236, 224, 0.66);
  margin: 1.6rem 0 0;
}
.hero-credit a { color: inherit; }

/* Badge außerhalb des Heros (Unterseiten/Fallback) */
.badge {
  display: inline-block;
  font-family: var(--sans);
  background: var(--wald-hell);
  color: var(--tinte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 0.35rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ---------- Buttons (Touch-Ziel ≥ 44 px, ux.md §4) ---------- */

.btn {
  display: inline-block;
  min-height: 44px;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--sans);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--akzent);
  color: var(--akzent-kontrast);
}
.btn-primary:hover { background: var(--akzent-tief); }
.s-wald .btn-primary { background: var(--invert-bg); color: var(--invert-text); }
.s-wald .btn-primary:hover { background: #ffffff; }

/* ---------- Fotos: Kategorien-Grid (asymmetrisch) & Galerie ---------- */

.foto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 0.8rem;
  margin: 1.6rem 0 0.6rem;
  counter-reset: kategorie;
}
.foto-grid figure { counter-increment: kategorie; }
.foto-grid figure:first-child { grid-column: span 2; }
.foto-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.foto-grid figure:first-child img { aspect-ratio: 3 / 2; }
.foto-grid figcaption {
  font-weight: 600;
  color: var(--tinte);
  font-size: 0.85rem;
  padding: 0.45rem 0 0;
  margin: 0;
}
.foto-grid figcaption::before {
  content: counter(kategorie, decimal-leading-zero);
  color: var(--gold);
  font-weight: 800;
  margin-right: 0.55rem;
  font-variant-numeric: tabular-nums;
}
/* Ab Tablet: Magazin-Raster — 2 große über 3 kleinen */
@media (min-width: 40rem) {
  .foto-grid { grid-template-columns: repeat(6, 1fr); }
  .foto-grid figure:first-child,
  .foto-grid figure:nth-child(2) { grid-column: span 3; }
  .foto-grid figure:nth-child(2) img { aspect-ratio: 3 / 2; }
  .foto-grid figure:nth-child(n + 3) { grid-column: span 2; }
}

.galerie {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.2rem 0.2rem 0.8rem;
  counter-reset: ort;
}
.galerie figure {
  flex: 0 0 74%;
  max-width: 19rem;
  scroll-snap-align: start;
  counter-increment: ort;
}
.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.galerie figcaption {
  padding: 0.5rem 0 0;
  margin: 0;
  font-size: 0.82rem;
}
.galerie figcaption::before {
  content: counter(ort, decimal-leading-zero);
  color: var(--gold);
  font-weight: 800;
  margin-right: 0.55rem;
  font-variant-numeric: tabular-nums;
}
.galerie .placeholder { min-height: 320px; margin: 0; flex: 0 0 70%; max-width: 18rem; scroll-snap-align: start; }

/* ---------- Video: ruhige Bewegtbild-Momente (Poster als Fallback) ---------- */

.video-figur { position: relative; }
.video-figur video {
  display: block;
  width: 100%;
  height: auto;          /* width/height-Attribute (CLS-Schutz) nicht als fixe Höhe übernehmen */
  aspect-ratio: 4 / 3;   /* fügt sich in den Galerie-Rhythmus ein, 16:9-Material wird beschnitten */
  object-fit: cover;
  border-radius: var(--radius);
  background: #101b14;
}

.video-band {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #101b14;
}
section.video-band { border-top: none; }
.video-band + section { border-top: none; }
.video-band video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  object-fit: cover;
}
.band-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(14, 24, 18, 0.8) 100%);
  pointer-events: none;
}
.band-inhalt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.3rem;
  color: #f6f3ea;
}
.band-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e8c76a;
  margin: 0 0 0.3rem;
}
.band-text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 520;
  line-height: 1.3;
  max-width: 34rem;
  margin: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

/* ---------- Bild-Platzhalter (klar gekennzeichnet, PLAN.md P1.2) ---------- */

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--sans);
  padding: 1rem;
  min-height: 220px;
  border: 2px dashed var(--warn-border);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    45deg,
    var(--warn-bg),
    var(--warn-bg) 12px,
    transparent 12px,
    transparent 24px
  );
  color: var(--warn-text);
  font-weight: 600;
  margin: 1.5rem 0;
}

/* ---------- Karten & Aufklapper ---------- */

.card {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  padding: 1.7rem 1.7rem 1.5rem;
}
/* Auf dem Waldgrün-Band: Karte auflösen, Inhalt direkt aufs Band */
.s-wald .card {
  background: none;
  border: none;
  padding: 0;
}

details {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  margin: 0.65rem 0;
  background: var(--karte);
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.08rem;
  padding: 0.95rem 1.2rem;
  min-height: 44px;
  list-style-position: inside;
}
summary::marker { color: var(--gold); }
summary:hover { color: var(--akzent); }
details > div { padding: 0 1.2rem 1.1rem; }

.eckdaten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.6rem;
  padding: 0;
  margin: 0.9rem 0;
  list-style: none;
  font-family: var(--sans);
}
.eckdaten li {
  background: var(--wald-hell);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}
.eckdaten strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tinte-sanft);
  margin-bottom: 0.1rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0;
}
.timeline li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2rem;
  border-left: 1px solid var(--linie);
  margin-left: 0.3rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline time { font-weight: 700; color: var(--akzent-tief); margin-right: 0.5rem; font-variant-numeric: tabular-nums; font-family: var(--sans); font-size: 0.92em; }

/* ---------- MailerLite-Embed auf dem Waldgrün-Band an unser Design angleichen ---------- */

.ml-embedded { max-width: 34rem; }
.s-wald .ml-embedded .ml-form-embedWrapper,
.s-wald .ml-embedded .ml-form-embedBody,
.s-wald .ml-embedded .ml-form-embedContainer {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}
.s-wald .ml-embedded input[type="email"],
.s-wald .ml-embedded input[type="text"] {
  min-height: 48px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  font-family: var(--sans) !important;
  border: 1px solid rgba(244, 233, 199, 0.4) !important;
  border-radius: var(--radius) !important;
  background: #fdfcf7 !important;
  color: #1c2721 !important;
}
.s-wald .ml-embedded button {
  min-height: 44px !important;
  padding: 0.9rem 1.8rem !important;
  border-radius: var(--radius) !important;
  border: none !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  font-family: var(--sans) !important;
  background: var(--invert-bg) !important;
  color: var(--invert-text) !important;
  cursor: pointer;
}
.s-wald .ml-embedded button:hover { background: #ffffff !important; }
.s-wald .ml-embedded h4,
.s-wald .ml-embedded p { color: #e6ecdf !important; font-family: var(--text) !important; }

/* ---------- Formular (Warteliste) ---------- */

.warteliste-form { font-family: var(--sans); }
.form-feld { margin: 1rem 0; }
.form-feld label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.form-feld input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--sans);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--papier);
  color: var(--tinte);
}
.s-wald .form-feld input[type="email"] {
  border-color: rgba(244, 233, 199, 0.4);
  background: #fdfcf7;
  color: #1c2721;
}
.form-feld input[type="email"]:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.form-hinweis { font-size: 0.85rem; font-family: var(--sans); color: var(--tinte-sanft); margin-top: 0.6rem; }
.s-wald .form-hinweis { color: #b9c6b3; }
.fehler {
  font-family: var(--sans);
  color: #b3261e;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.4rem;
}
.fehler.ok { color: var(--akzent-tief); } /* informative Meldung, kein Fehler */
.s-wald .fehler { color: #ffb4a8; }
.s-wald .fehler.ok { color: #ffe9a8; }
@media (prefers-color-scheme: dark) {
  .fehler { color: #ff8a80; }
}

/* ---------- Sticky-CTA-Bar (ruhig: Papier + Haarlinie statt Glas) ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--papier);
  border-top: 1px solid var(--linie);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  display: none;
  z-index: 50;
}
.sticky-cta.sichtbar { display: block; }
.sticky-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0;
}
.sticky-cta .preis {
  font-family: var(--serif);
  font-weight: 640;
  font-size: 1.15rem;
  white-space: nowrap;
}
.sticky-cta .btn { padding: 0.7rem 1.5rem; }

/* ---------- Hinweis-Banner (Entwurfs-/Platzhalter-Warnung) ---------- */

.entwurf-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius);
  font-family: var(--sans);
  padding: 0.8rem 1.1rem;
  margin: 1.2rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 3rem;
  background: var(--wald);
  color: #cfdcd2;
  padding: 2.8rem 0 6rem; /* Platz für Sticky-Bar */
  font-size: 0.95rem;
}
.site-footer .brand-block {
  font-family: var(--serif);
  color: #f4f1e8;
  font-size: 1.3rem;
  font-weight: 640;
  margin: 0 0 0.2rem;
}
.site-footer .claim {
  font-family: var(--text);
  font-style: italic;
  color: #a9bcae;
  margin: 0 0 1.5rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.site-footer a { color: #dfe8e0; }
.site-footer .fein { font-size: 0.78rem; font-family: var(--sans); color: #93a798; margin: 0; }

/* ---------- Unterseiten (Impressum, Datenschutz, Danke) ---------- */

.prosa h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prosa address { font-style: normal; }

.variante { display: none; }
body[data-von="warteliste"] #v-warteliste { display: block; }
body[data-von="kauf"] #v-kauf { display: block; }
body:not([data-von]) #v-generisch { display: block; }
