/* =========================================================================
   Highlights Schwyz – Design-System / main.css
   Statische Website, keine Frameworks. Custom Properties, Grid, Flexbox.
   Reihenfolge: 1 Fonts · 2 Tokens · 3 Reset · 4 Basis · 5 Layout
                6 Header · 7 Footer · 8 Komponenten · 9 Utilities
   ========================================================================= */

/* -------------------------------------------------------------------------
   1 · Schriften (lokal, self-hosted)
   Die Woff2-Dateien fehlen aktuell noch (siehe TODO.md). Sobald sie in
   assets/fonts/ liegen, die folgenden Blöcke einkommentieren. Bis dahin
   greift der System-Font-Fallback aus den Tokens weiter unten.
   ------------------------------------------------------------------------- */
/* Raleway (frei/OFL) – Hauptschrift des Magazins, lokal self-hosted (kein CDN).
   Variable Font (Gewicht 100–900), Latein + Latein-Ext (Umlaute, Guillemets). */
@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-italic-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   2 · Design-Tokens
   ------------------------------------------------------------------------- */
:root {
  /* --- Farbwelt (aus dem Magazin extrahiert) --------------------------- */
  /* Basis */
  --c-paper:        #ffffff; /* Magazin-Weiss */
  --c-paper-2:      #f4f3f1; /* leicht abgesetzte Flächen */
  --c-ink:          #221f1f; /* Text/Überschriften, fast-schwarz (Magazin) */
  --c-ink-soft:     #4a4a4d; /* Sekundär-/Fliesstext (#404041) */

  /* Marke – Rollen behalten die alten Variablennamen, neue Werte */
  --c-forest:       #221f1f; /* Primär: Schwarz (Buttons, Links, Logo) */
  --c-forest-dark:  #000000; /* dunkler für Hover */
  --c-forest-deep:  #1a1817; /* Footer-Hintergrund (fast schwarz) */
  --c-lake:         #2f6f8f; /* Sekundär (Fokus-Ring, eine Tag-Variante) */
  --c-gold:         #e8403d; /* Akzent: Schweizer-Rot (Logo/Schweizerkreuz) */
  --c-red:          #e8403d; /* Alias, sprechend */
  --c-stone:        #8a857f; /* neutrales Grau */
  --c-line:         #e5e3e0; /* Trennlinien auf Weiss */

  /* Rollen */
  --c-bg:           var(--c-paper);
  --c-bg-alt:       var(--c-paper-2);
  --c-text:         var(--c-ink);
  --c-text-soft:    var(--c-ink-soft);
  --c-primary:      var(--c-forest);
  --c-accent:       var(--c-gold);
  --c-focus:        var(--c-lake);

  /* --- Typografie (Magazin: Raleway; Überschriften kräftig) ------------ */
  --font-display: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto,
                  Helvetica, Arial, sans-serif;
  --font-body:    "Raleway", system-ui, -apple-system, "Segoe UI", Roboto,
                  Helvetica, Arial, sans-serif;

  /* Modulare Skala (~1.25), fluid via clamp */
  --fs-xs:   0.79rem;
  --fs-sm:   0.889rem;
  --fs-base: 1rem;
  --fs-md:   clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --fs-lg:   clamp(1.35rem, 1.2rem + 0.7vw, 1.6rem);
  --fs-xl:   clamp(1.75rem, 1.45rem + 1.4vw, 2.35rem);
  --fs-2xl:  clamp(2.25rem, 1.7rem + 2.6vw, 3.4rem);
  --fs-3xl:  clamp(2.9rem, 2.0rem + 4.2vw, 4.75rem);

  --lh-tight: 1.12;
  --lh-snug:  1.3;
  --lh-body:  1.65;

  --measure: 68ch; /* angenehme Zeilenlänge für Fliesstext */

  /* --- Abstände (8px-Raster, fluid) ------------------------------------ */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: clamp(3rem, 2rem + 4vw, 5rem);
  --sp-9: clamp(4rem, 2.5rem + 6vw, 7.5rem);

  /* --- Struktur -------------------------------------------------------- */
  --content-max: 1200px;
  --content-narrow: 760px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(22, 48, 38, 0.06),
               0 2px 8px rgba(22, 48, 38, 0.06);
  --shadow:    0 4px 12px rgba(22, 48, 38, 0.08),
               0 12px 32px rgba(22, 48, 38, 0.10);

  --header-h: 72px;
  --dur:   0.25s;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------
   3 · Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { min-height: 100vh; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:target { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* -------------------------------------------------------------------------
   4 · Basis-Typografie
   ------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Verhindert horizontales Scrollen durch das off-canvas-Menü (translateX(100%)).
     clip statt hidden: erzeugt keinen Scroll-Container, Sticky-Header bleibt intakt. */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--c-ink);
  text-wrap: balance;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p, li { text-wrap: pretty; }

a {
  color: var(--c-forest);
  text-decoration-color: color-mix(in srgb, var(--c-forest) 35%, transparent);
  text-underline-offset: 0.15em;
  transition: color var(--dur) var(--ease),
              text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--c-gold); text-decoration-color: currentColor; }

strong { font-weight: 650; }

/* Sichtbare Fokus-Zustände (Qualitätsfloor) */
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Textauswahl */
::selection { background: color-mix(in srgb, var(--c-gold) 30%, transparent); }

/* -------------------------------------------------------------------------
   5 · Layout-Helfer
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}
.wrap--narrow { max-width: var(--content-narrow); }

.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }
.section--alt { background: var(--c-bg-alt); }

/* Fliesstext-Container: begrenzte Zeilenlänge */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius); margin-block: 1.6em; }

/* Kennzahlen-Raster (Daten-Beiträge, z. B. «Schwyz in Zahlen») */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
  margin-block: var(--sp-6);
}
.kpi {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
}
.kpi__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--c-accent);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.kpi__label { font-size: var(--fs-sm); color: var(--c-text-soft); margin-top: var(--sp-2); }

/* Skip-Link */
.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: var(--sp-3);
  z-index: 1000;
  background: var(--c-forest);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* -------------------------------------------------------------------------
   6 · Kopfzeile / Signatur-Motiv (Mythen-Silhouette)
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--c-paper) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

/* Wortmarke (Logo-Platzhalter) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 400;               /* «Highlights» leicht */
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  text-decoration: none;
  line-height: 1;
}
.brand:hover { color: var(--c-ink); }
.brand span { position: relative; z-index: 1; }            /* «HighlightsSchwyz» vor dem Badge */
.brand__mark { flex: none; margin-left: -0.14em; }          /* Badge sitzt leicht hinter dem «z» */
.brand strong { color: var(--c-ink); font-weight: 800; }   /* «Schwyz» fett schwarz */

/* Markenname im Fliesstext: «HighlightsSchwyz» zusammen, letztes Wort fett */
.brandname { white-space: nowrap; }
.brandname strong { font-weight: 700; }

/* Navigation */
.nav { display: flex; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.4vw, 1.15rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__link {
  display: inline-block;
  padding: var(--sp-2) var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-ink-soft);
  text-decoration: none;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--c-ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Burger */
.nav-toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--c-ink);
  transition: transform var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after  { position: absolute; top:  7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1059px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100dvh - var(--header-h));
    z-index: 90;
    background: var(--c-paper);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    padding: var(--sp-6) 0;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    font-size: var(--fs-md);
    padding: var(--sp-4) clamp(1rem, 5vw, 2.5rem);
    border-bottom: 1px solid var(--c-line);
  }
  .nav__link::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

/* -------------------------------------------------------------------------
   7 · Fusszeile
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-forest-deep);
  color: color-mix(in srgb, #fff 82%, var(--c-forest));
  padding-block: var(--sp-8) var(--sp-6);
  margin-top: var(--sp-9);
}
.site-footer a { color: color-mix(in srgb, #fff 88%, var(--c-forest)); }
.site-footer a:hover { color: var(--c-gold); }
.footer__grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: var(--sp-3);
  display: inline-flex; align-items: center; gap: var(--sp-3);
}
.footer__claim { color: color-mix(in srgb, #fff 68%, var(--c-forest)); max-width: 32ch; }
.footer__title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, #fff 55%, var(--c-forest));
  margin-bottom: var(--sp-4);
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid color-mix(in srgb, #fff 14%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: color-mix(in srgb, #fff 60%, var(--c-forest));
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }

/* -------------------------------------------------------------------------
   8 · Komponenten
   ------------------------------------------------------------------------- */

/* Eyebrow / Kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-gold);
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: currentColor;
}

/* Buttons */
.btn {
  --btn-bg: var(--c-forest);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7em 1.4em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover {
  color: #fff;
  background: var(--c-forest-dark);
  border-color: var(--c-forest-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-forest);
  border-color: var(--c-forest);
}
.btn--ghost:hover {
  background: var(--c-forest);
  color: #fff;
}
.btn--accent { --btn-bg: var(--c-gold); border-color: var(--c-gold); }
.btn--accent:hover {
  background: color-mix(in srgb, var(--c-gold) 82%, #000);
  border-color: color-mix(in srgb, var(--c-gold) 82%, #000);
}
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* Textlink mit Pfeil */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* Kategorie-Label */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-forest);
  background: color-mix(in srgb, var(--c-forest) 10%, var(--c-paper));
  padding: 0.35em 0.75em;
  border-radius: 999px;
}
.tag--lake  { color: var(--c-lake);  background: color-mix(in srgb, var(--c-lake) 12%, var(--c-paper)); }
.tag--gold  { color: color-mix(in srgb, var(--c-gold) 78%, #000); background: color-mix(in srgb, var(--c-gold) 16%, var(--c-paper)); }
.tag--stone { color: color-mix(in srgb, var(--c-stone) 82%, #000); background: color-mix(in srgb, var(--c-stone) 16%, var(--c-paper)); }

/* Beitrags-Karte */
.card {
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--c-forest) 25%, var(--c-line));
}
.card__media {
  aspect-ratio: 16 / 10;
  background: var(--c-paper-2);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__title { font-size: var(--fs-lg); margin: 0; }
.card__title a { color: var(--c-ink); text-decoration: none; }
.card__title a:hover { color: var(--c-forest); }
.card__excerpt { color: var(--c-text-soft); font-size: var(--fs-sm); }
.card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}
/* Ganze Karte klickbar, Titel-Link als Anker */
.card__link::after {
  content: "";
  position: absolute; inset: 0;
}
.card { position: relative; }

/* Karten-Grid */
.card-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* Bildunterschrift */
figure { margin: 0; }
figcaption {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  font-style: italic;
}

/* Formularfelder */
.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.field__req { color: var(--c-gold); }
.field__hint { font-size: var(--fs-xs); color: var(--c-text-soft); }
.input, .textarea, .select {
  width: 100%;
  padding: 0.7em 0.9em;
  font-size: var(--fs-base);
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--c-stone); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--c-lake);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-lake) 22%, transparent);
}
.textarea { min-height: 8rem; resize: vertical; }
.input:invalid:not(:placeholder-shown),
.textarea:invalid:not(:placeholder-shown) { border-color: #b4472f; }

/* Honeypot – für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Formularmeldungen */
.form-note {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-size: var(--fs-sm);
}
.form-note--ok    { color: #17362a; background: color-mix(in srgb, var(--c-forest) 12%, var(--c-paper)); border-color: color-mix(in srgb, var(--c-forest) 30%, transparent); }
.form-note--error { color: #7a2c1a; background: color-mix(in srgb, #b4472f 10%, var(--c-paper)); border-color: color-mix(in srgb, #b4472f 35%, transparent); }

/* Sponsoren-Wall */
.sponsor-wall {
  display: grid;
  gap: var(--sp-5) var(--sp-6);
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  align-items: center;
}
.sponsor {
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-3);
}
.sponsor img {
  max-height: 56px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.sponsor:hover img { filter: grayscale(0); opacity: 1; }

/* Trenner mit Motiv */
.rule {
  border: 0;
  height: 1px;
  background: var(--c-line);
}

/* Scroll-Reveal (dezent, einmalig) */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* -------------------------------------------------------------------------
   8b · Startseiten-Sektionen (Phase 2)
   ------------------------------------------------------------------------- */

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,30,24,0.30) 0%,
      rgba(15,30,24,0.15) 40%,
      rgba(15,30,24,0.55) 100%);
}
.hero__inner {
  min-height: clamp(460px, 78vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: var(--sp-8) var(--sp-9);
  color: #fff;
}
.hero__eyebrow { color: #fff; }
.hero__eyebrow::before { background: var(--c-gold); }
.hero__title {
  color: #fff;
  font-size: var(--fs-3xl);
  max-width: 16ch;
  margin-top: var(--sp-3);
  text-shadow: 0 2px 24px rgba(10,22,16,0.35);
}
.hero__claim {
  color: rgba(255,255,255,0.92);
  font-size: var(--fs-md);
  max-width: 46ch;
  margin-top: var(--sp-4);
  text-shadow: 0 1px 12px rgba(10,22,16,0.4);
}
.hero__actions { margin-top: var(--sp-6); display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn--ghost:hover { background: #fff; color: var(--c-forest); border-color: #fff; }

/* Sektions-Kopf: Eyebrow + Titel + optionaler Link */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.section-head__title { margin-top: var(--sp-2); }
.section-head p.lead { margin-top: var(--sp-2); max-width: 52ch; }

/* Ausgabe-2026-Split: Cover + Text */
.feature {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } }
.feature__cover {
  position: relative;
  max-width: 360px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  transition: transform var(--dur) var(--ease);
}
.feature__cover:hover { transform: rotate(0); }
.feature__cover img { width: 100%; aspect-ratio: 620 / 877; object-fit: cover; }

/* Über-das-Magazin-Band */
.about-band { text-align: center; }
.about-band .prose { margin-inline: auto; }

/* Motiv-Trenner mit Mythen */
.motif-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--c-line);
  margin-block: var(--sp-6);
}
.motif-divider::before,
.motif-divider::after { content: ""; height: 1px; background: currentColor; flex: 1; }
.motif-divider svg { color: var(--c-stone); flex: none; }

/* -------------------------------------------------------------------------
   8c · Beiträge – Übersicht, Filter & Einzelseite (Phase 3)
   ------------------------------------------------------------------------- */

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-sm); color: var(--c-text-soft); margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li + li::before { content: "/"; color: var(--c-line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--c-text-soft); }

/* Filter-Leiste (Kategorien) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.filter-btn {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
  background: transparent;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  padding: 0.5em 1.05em;
  transition: color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--c-stone); color: var(--c-ink); }
.filter-btn[aria-pressed="true"] {
  color: #fff;
  background: var(--c-forest);
  border-color: var(--c-forest);
}
.filter-empty { color: var(--c-text-soft); padding: var(--sp-5) 0; }
/* Ausgeblendete Karten beim Filtern */
.card.is-hidden { display: none; }

/* Beitrags-Kopf */
.article-head { padding-top: var(--sp-7); padding-bottom: var(--sp-5); }
.article-head .tag { margin-bottom: var(--sp-4); }
.article-title { margin-top: var(--sp-2); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
}
.article-meta span + span::before { content: "·"; margin-right: var(--sp-3); color: var(--c-line); }

/* Titelbild Beitrag */
.article-cover { margin-block: var(--sp-6); }
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.article-cover figcaption { max-width: var(--content-max); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 2.5rem); }

/* Bildergalerie */
.gallery {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-block: var(--sp-6);
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* -------------------------------------------------------------------------
   8d · Flipbook «Ausgabe 2026» (Phase 4)
   ------------------------------------------------------------------------- */
.flipbook {
  --page-ratio: 620 / 877;      /* A4-Proportion je Seite */
  background: var(--c-forest-deep);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
}

/* Bühne mit den Seiten */
.flipbook__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-height: 200px;
}
.flipbook__spread {
  display: flex;
  gap: 2px;
  max-width: 100%;
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
  border-radius: 3px;
  overflow: hidden;
}
.flipbook__page {
  position: relative;
  background: var(--c-paper-2);
  width: min(46vw, 420px);
  aspect-ratio: var(--page-ratio);
  flex: none;
}
/* Einzelseite (Mobile / Cover) */
.flipbook[data-view="single"] .flipbook__page { width: min(86vw, 460px); }
.flipbook__page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flipbook__page.is-blank { background: var(--c-forest-deep); box-shadow: none; }
.flipbook__page.is-paywall { background: var(--c-paper-2); }
.fb-paywall { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--sp-6); background: var(--c-paper-2); }
.fb-paywall__inner { max-width: 32ch; display: grid; gap: var(--sp-3); }
.fb-paywall__eyebrow { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: var(--fs-sm); color: var(--c-red); }
.fb-paywall h3 { margin: 0; }
.fb-paywall p { margin: 0; color: var(--c-text-soft); }
.fb-paywall .btn { margin-top: var(--sp-2); }

/* 3D-Umblätter-Effekt */
.flipbook__stage { perspective: 2000px; perspective-origin: center 45%; }
.flipbook__spread { position: relative; }
/* Buchfalz: dezenter Schatten in der Mitte gibt der Doppelseite Tiefe */
.flipbook[data-view="spread"] .flipbook__spread::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, transparent 46%, rgba(0,0,0,0.14) 49.5%,
              rgba(0,0,0,0.22) 50%, rgba(0,0,0,0.14) 50.5%, transparent 54%);
}
/* das umblätternde Blatt */
.fb-leaf {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 6;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  pointer-events: none;
  border-radius: 1px 3px 3px 1px;
}
.fb-leaf__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
  background: var(--c-paper-2);
  border-radius: inherit;
}
.fb-leaf__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-leaf__face--back { transform: rotateY(180deg); }
/* Schattierung + Papier-Rundung: dunkel zum Falz, feiner Glanz zur Blattkante */
.fb-leaf__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.42), rgba(0,0,0,0.04) 58%, rgba(255,255,255,0.10));
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .fb-leaf { display: none; }
}

/* Steuerleiste */
.flipbook__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  color: color-mix(in srgb, #fff 88%, var(--c-forest));
}
.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-width: 44px;
  height: 44px;
  padding: 0 0.9em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  background: color-mix(in srgb, #fff 12%, transparent);
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  border-radius: 999px;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.fb-btn:hover { background: color-mix(in srgb, #fff 22%, transparent); color: #fff; }
.fb-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.flipbook__counter { font-variant-numeric: tabular-nums; min-width: 8ch; text-align: center; }
.flipbook__jump {
  height: 44px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  background: color-mix(in srgb, #fff 12%, transparent);
  color: #fff;
  padding: 0 0.6em;
}
.flipbook__jump option { color: var(--c-ink); }

/* Zoom-Overlay */
.flipbook__zoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,18,14,0.94);
  display: none;
  padding: var(--sp-4);
  overflow: auto;
  overscroll-behavior: contain;
}
.flipbook__zoom.is-open { display: block; }
.flipbook__zoom img { max-width: none; width: min(1600px, 96vw); margin: 0 auto; display: block; border-radius: 4px; }
.flipbook__zoom-close {
  position: fixed; top: var(--sp-4); right: var(--sp-4);
  z-index: 1001;
}

/* No-JS-Fallback: scrollbare Seitenliste */
.flipbook-fallback { display: grid; gap: var(--sp-4); }
.flipbook-fallback img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.js .flipbook-fallback { display: none; }
.no-js .flipbook { display: none; }

/* -------------------------------------------------------------------------
   8e · Inhaltsseiten & Formular (Phase 5)
   ------------------------------------------------------------------------- */

/* Zweispaltiges Layout: Text/Info + Formular */
.contact-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* Formular-Karte */
.form-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-row {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-row .field { margin-bottom: 0; }
.form-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}
.form-hint-persoenlich { color: var(--c-text-soft); font-size: var(--fs-sm); margin-top: var(--sp-4); }

/* Ladezustand (Spinner) im Button */
.btn__spinner {
  width: 1em; height: 1em;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: fb-spin 0.7s linear infinite;
}
.btn[aria-busy="true"] .btn__spinner { display: inline-block; }
.btn[aria-busy="true"] .btn__label { opacity: 0.85; }
@keyframes fb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn__spinner { animation-duration: 2s; } }

/* Kontaktangaben */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); }
.info-list li { display: grid; gap: var(--sp-1); }
.info-list .info-label {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--c-text-soft); font-weight: 600;
}
.info-list a { text-decoration: none; }

/* Statische Karte (kein Google-Embed → kein Cookie-Thema) */
.static-map {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  margin-top: var(--sp-5);
}
.static-map img { width: 100%; height: auto; display: block; }

/* Partnerbetriebe-Übersicht */
.partner-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.partner-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--c-forest) 22%, var(--c-line));
}
.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 64px;
}
.partner-card__logo img { max-height: 64px; width: auto; max-width: 100%; }
.partner-card__name { font-size: var(--fs-lg); margin: 0; }
.partner-card__text { color: var(--c-text-soft); font-size: var(--fs-sm); flex: 1; }
.partner-card__link { margin-top: auto; }

/* Pill-Links (z. B. Wetterorte auf der Startseite) */
.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: 999px;
  padding: var(--sp-2) var(--sp-4); text-decoration: none; color: var(--c-ink); background: var(--c-paper);
  font-size: var(--fs-sm); font-weight: 600; transition: border-color var(--dur) var(--ease); }
.pill:hover { border-color: var(--c-accent); }

/* Wetter-Kacheln (Startseite) – aus /wetter/featured.json */
.wx-tiles--loaded { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: var(--sp-4); }
.wx-tile { display: grid; justify-items: center; gap: 4px; text-align: center; text-decoration: none;
  color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: var(--sp-4); background: var(--c-paper);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.wx-tile:hover { border-color: var(--c-red); transform: translateY(-2px); }
.wx-tile__icon { width: 54px; height: 54px; }
.wx-tile__name { font-weight: 600; }
.wx-tile__temp { font-size: var(--fs-lg); font-weight: 700; }
.wx-tile__min { color: var(--c-text-soft); font-weight: 500; font-size: var(--fs-sm); }
.wx-tile__label { font-size: var(--fs-sm); color: var(--c-text-soft); }

/* Slider (Startseite: Wanderungen) */
.carousel { position: relative; }
.carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track { display: flex; gap: var(--sp-5); }
.carousel__slide { flex: 0 0 86%; scroll-snap-align: start; }
@media (min-width: 640px) { .carousel__slide { flex-basis: calc((100% - var(--sp-5)) / 2); } }
@media (min-width: 980px) { .carousel__slide { flex-basis: calc((100% - 2 * var(--sp-5)) / 3); } }
.carousel__nav { position: absolute; top: 38%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line);
  background: var(--c-paper); color: var(--c-ink); cursor: pointer; font-size: 1.5rem; line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.carousel__nav:hover { border-color: var(--c-red); }
.carousel__nav--prev { left: -8px; }
.carousel__nav--next { right: -8px; }
@media (max-width: 639px) { .carousel__nav { display: none; } }

/* Tourenübersicht: Anzahl-Anzeige + «Mehr anzeigen» */
.filter-count { margin: 0 0 var(--sp-5); color: var(--c-text-soft); font-size: var(--fs-sm); }
.more-wrap { text-align: center; margin-top: var(--sp-6); }

/* Portrait: Foto-Galerie + Standortkarte */
.partner-fotos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.partner-fotos img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); display: block; }
.partner-fotos__quelle { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--c-text-soft); }
.partner-map { height: 260px; max-width: 640px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); }
.partner-standort { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: baseline; margin-bottom: var(--sp-4); color: var(--c-text-soft); font-size: var(--fs-sm); }

/* Portrait: vertikale Rhythmik zwischen den Abschnitten */
.portrait-block { margin-top: var(--sp-8); }
.portrait-block h2 { margin-bottom: var(--sp-4); }
.portrait-block--standort { margin-bottom: var(--sp-8); }

/* Über-uns-Porträtbild */
.portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.portrait img { width: 100%; height: auto; display: block; }

/* -------------------------------------------------------------------------
   8f · Cookie-Hinweisleiste
   ------------------------------------------------------------------------- */
.cookiebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: var(--c-forest-deep);
  color: #fff;
  padding: var(--sp-3) clamp(1rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease);
  font-size: var(--fs-sm);
}
.cookiebar.is-visible { transform: translateY(0); }
.cookiebar p { margin: 0; max-width: 72ch; color: rgba(255,255,255,0.85); }
.cookiebar a { color: #fff; }
.cookiebar .btn { flex: none; }
@media (prefers-reduced-motion: reduce) { .cookiebar { transition: none; } }

/* -------------------------------------------------------------------------
   9 · Utilities
   ------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.stack-sm > * + * { margin-top: var(--sp-3); }
.stack    > * + * { margin-top: var(--sp-5); }
.stack-lg > * + * { margin-top: var(--sp-7); }
.lead { font-size: var(--fs-md); color: var(--c-text-soft); }
.mt-0 { margin-top: 0; }
.no-scroll { overflow: hidden; }
