/* FREIHEITSPILOT — Ratgeber (Blog-Index + Rubriken)
   Vom Entwurf "Editorial" kommt das GERUEST (Masthead, Titelgeschichte mit Bild,
   Start-hier-Leiste, Karten-Raster). Die Optik ist die der Seite: dunkles Navy,
   Gold als einziger Akzent, Fraunces + Inter selbst gehostet (kein Google-CDN).
   Die Creme-Flaechen des Entwurfs werden bewusst NICHT uebernommen.

   Eigenstaendig wie start.css — laedt NUR tokens.css dazu, nicht main.css.
   Grund: main.css versteckt .reveal-Elemente und braucht GSAP zum Einblenden. */

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(233, 196, 106, 0.07), transparent 62%),
    radial-gradient(900px 700px at -5% 30%, rgba(42, 61, 102, 0.35), transparent 60%),
    var(--navy-900);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Feines Korn ueber der ganzen Seite — gibt dem Papier Textur. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--gold-400); color: var(--navy-900); }

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

.wrap { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 10000;
  background: var(--gold-400); color: var(--navy-900);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 500; color: var(--gold-400);
}

/* ---------- Kopfzeile ---------- */

.bnav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(10, 15, 28, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.bnav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: 0.9rem;
}
.bnav__brand img { height: 32px; width: auto; }
.bnav__menu { display: flex; gap: 1.8rem; align-items: center; }
.bnav__menu a {
  font-size: 0.9rem; font-weight: 500; position: relative; padding-block: 0.25rem;
}
.bnav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--gold-400);
  transition: width var(--dur-med) var(--ease-out);
}
.bnav__menu a:hover::after, .bnav__menu a[aria-current]::after { width: 100%; }
.bnav__menu a[aria-current] { color: var(--gold-400); }
.bnav__cta {
  background: var(--gold-400); color: var(--navy-900);
  padding: 0.7rem 1.25rem; border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.bnav__cta:hover { background: var(--gold-300); transform: translateY(-1px); }
.bnav__burger { display: none; flex-direction: column; gap: 5px; padding: 0.4rem; }
.bnav__burger span { width: 24px; height: 2px; background: var(--paper); transition: var(--dur-fast); }

/* ---------- Masthead ---------- */

.masthead { padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0 1.9rem; border-bottom: 2px solid var(--gold-400); }
.masthead__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.9rem; flex-wrap: wrap;
}
.masthead h1 {
  font-size: clamp(3.25rem, 1rem + 9vw, 7.5rem);
  font-weight: 600;
  font-optical-sizing: auto;
}
.masthead p { max-width: 38ch; color: var(--paper-muted); font-size: 1.0625rem; }
.masthead__line {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--paper-faint); letter-spacing: 0.04em;
  border-top: 1px solid var(--line-dark-soft); padding-top: 0.5rem; margin-top: 1.4rem;
}

/* ---------- Titelgeschichte ---------- */

.lead { display: grid; grid-template-columns: 1.15fr 0.85fr; border-bottom: 1px solid var(--line-dark-soft); }
.lead__txt { padding: 2.9rem 3.25rem 2.9rem 0; align-self: center; }
.lead__pic { position: relative; overflow: hidden; min-height: 420px; background: var(--navy-800); border-radius: var(--radius-md); }
.lead__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.lead:hover .lead__pic img { transform: scale(1.04); }
.lead h2 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem);
  margin: 1.1rem 0;
  font-optical-sizing: auto;
}
.lead__dek { font-size: 1.2rem; color: rgba(237, 240, 247, 0.82); max-width: 44ch; }
.lead__meta {
  margin-top: 1.6rem; font-size: 0.85rem; color: var(--paper-faint);
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
}

.kick {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.kick__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }

.readmore {
  display: inline-flex; gap: 0.55rem; align-items: center; margin-top: 1.6rem;
  font-weight: 600; color: var(--gold-400);
  border-bottom: 2px solid var(--gold-400); padding-bottom: 3px;
  transition: gap var(--dur-fast) var(--ease-out);
}
.lead:hover .readmore, .readmore:hover { gap: 1rem; }

/* ---------- Abschnittskopf ---------- */

.shead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem;
  margin: clamp(2.75rem, 2rem + 3vw, 4.4rem) 0 1.6rem;
}
.shead h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem); }
.shead__hr { flex: 1; height: 1px; background: var(--line-dark-soft); margin: 0 0.4rem 0.5rem; }

/* ---------- Start hier ---------- */

.starthier {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-dark-soft); border-bottom: 1px solid var(--line-dark-soft);
}
.sh-item {
  padding: 1.6rem 1.35rem; border-right: 1px solid var(--line-dark-soft);
  transition: background var(--dur-med) var(--ease-out);
}
.sh-item:last-child { border-right: 0; }
.sh-item:hover { background: rgba(233, 196, 106, 0.07); }
.sh-item .n { font-family: var(--font-display); font-size: 0.95rem; color: var(--gold-400); font-weight: 600; }
.sh-item h4 { font-size: 1.15rem; margin: 0.7rem 0 0.5rem; line-height: 1.15; }
.sh-item p { font-size: 0.85rem; color: var(--paper-muted); line-height: 1.5; }

/* ---------- Rubrik-Filter ---------- */

.filter { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.9rem 0 2.1rem; }
.chip {
  border: 1px solid var(--line-dark); border-radius: var(--radius-pill);
  padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.45rem;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--gold-400); }
.chip[aria-pressed="true"] { background: var(--gold-400); color: var(--navy-900); border-color: var(--gold-400); }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; }
.chip__n { font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.65; }

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

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.9rem; }
.card { grid-column: span 4; display: flex; flex-direction: column; position: relative; }
.card--wide { grid-column: span 6; }
.card__thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  margin-bottom: 1rem; background: var(--navy-800); border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark-soft);
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card:hover .card__thumb img { transform: scale(1.05); }
.card h4 { font-size: 1.35rem; line-height: 1.16; margin-bottom: 0.55rem; transition: color var(--dur-fast) var(--ease-out); }
.card--wide h4 { font-size: 1.6rem; }
.card:hover h4 { color: var(--gold-400); }
.card p { font-size: 0.9rem; color: var(--paper-muted); line-height: 1.5; }
.card__meta {
  margin-top: 0.75rem; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper-faint); display: flex; gap: 0.75rem; align-items: center;
}
/* Ganze Karte klickbar, ohne den Titel-Link zu verschachteln. */
.card__link { position: absolute; inset: 0; z-index: 1; }

/* ---------- Erzeugte Rubrik-Kachel (statt Foto) ----------
   Es gibt keine 376 Artikelfotos und wird es nicht geben. Statt Platzhalter-Stock
   bekommt jede Karte eine gebaute Kachel: Rubrik-Farbe aus der Navy-Familie,
   grosse Fraunces-Ziffer, Rubrikname. Skaliert auf beliebig viele Artikel. */
.gen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.25rem;
  background: linear-gradient(145deg, var(--cat-a, var(--navy-700)), var(--cat-b, var(--navy-900)));
}
.gen::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.gen__big {
  position: absolute; right: -0.4rem; top: -1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 9.4rem; line-height: 1;
  color: rgba(233, 196, 106, 0.16);
}
.gen__ico { position: absolute; top: 1.1rem; left: 1.1rem; color: rgba(250, 248, 245, 0.85); }
.gen__ico svg { width: 1.5rem; height: 1.5rem; }
.gen__lab {
  position: relative; color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}

/* ---------- Autoren-Band ---------- */

.astrip {
  margin: clamp(3rem, 2rem + 4vw, 5rem) 0;
  background: linear-gradient(180deg, rgba(27, 42, 74, 0.62), rgba(13, 21, 38, 0.82));
  border: 1px solid var(--line-dark); color: var(--paper);
  border-radius: var(--radius-md);
  display: grid; grid-template-columns: auto 1fr auto; gap: 2.1rem;
  align-items: center; padding: 2.4rem 2.75rem;
}
.astrip__photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(233, 196, 106, 0.6);
}
.astrip .eyebrow { color: var(--gold-400); }
.astrip h4 { font-size: 1.6rem; margin: 0.4rem 0 0.5rem; color: #fff; }
.astrip p { font-size: 0.95rem; color: var(--paper-muted); max-width: 60ch; }
.astrip__go {
  white-space: nowrap; border: 1px solid rgba(237, 240, 247, 0.35);
  border-radius: var(--radius-pill); padding: 0.75rem 1.4rem;
  font-size: 0.875rem; font-weight: 600;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.astrip__go:hover { background: var(--gold-400); color: var(--navy-900); border-color: var(--gold-400); }

/* ---------- Abschluss-Block ---------- */

.bcta {
  background: linear-gradient(180deg, rgba(27, 42, 74, 0.55), rgba(13, 21, 38, 0.8));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md); padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  text-align: center; margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.bcta h3 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); margin: 0.85rem 0 0.75rem; }
.bcta p { color: var(--paper-muted); max-width: 52ch; margin: 0 auto 1.6rem; }
.bcta .btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold-400); color: var(--navy-900);
  padding: 1rem 1.75rem; border-radius: var(--radius-pill); font-weight: 600;
  box-shadow: var(--shadow-gold);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.bcta .btn:hover { background: var(--gold-300); transform: translateY(-2px); }
.bcta .btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Fuss ---------- */

.bfoot { background: var(--navy-950); color: var(--paper-muted); padding: 4.5rem 0 2.5rem;
  border-top: 1px solid var(--line-dark-soft); }
.bfoot__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark-soft);
}
.bfoot__mission { font-family: var(--font-display); font-size: 1.35rem; color: var(--paper); line-height: 1.3; max-width: 34ch; }
.bfoot h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 1rem;
}
.bfoot li { margin-bottom: 0.7rem; }
.bfoot li a { font-size: 0.9rem; transition: color var(--dur-fast) var(--ease-out); }
.bfoot li a:hover { color: var(--paper); }
.bfoot__btm {
  display: flex; justify-content: space-between; padding-top: 1.6rem;
  font-size: 0.8rem; color: var(--paper-faint); flex-wrap: wrap; gap: 0.75rem;
}

/* ---------- Einblenden (gleiches Netz wie /start/) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js-fade .rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js-fade .rv.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .bnav__menu, .bnav__cta { display: none; }
  .bnav__burger { display: flex; }
  .bnav[data-open] .bnav__menu {
    display: flex; position: fixed; inset: 0; background: var(--navy-950);
    flex-direction: column; justify-content: center; gap: 1.6rem; z-index: 800;
  }
  .bnav[data-open] .bnav__menu a { font-size: 1.5rem; font-family: var(--font-display); }
  .bnav[data-open] .bnav__cta { display: inline-flex; }
  .lead { grid-template-columns: 1fr; }
  .lead__txt { padding: 2rem 0 2.25rem; order: 2; }
  .lead__pic { order: 1; min-height: 300px; }
  .starthier { grid-template-columns: 1fr 1fr; }
  .sh-item:nth-child(2n) { border-right: 0; }
  .grid { gap: 1.6rem 1.4rem; }
  .card, .card--wide { grid-column: span 6; }
  .astrip { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.6rem; }
  .astrip__photo { margin-inline: auto; }
  .bfoot__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .card, .card--wide { grid-column: span 1; }
  .starthier { grid-template-columns: 1fr; }
  .sh-item { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .masthead h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .lead__txt { padding-bottom: 1.75rem; }
  .bfoot__top { grid-template-columns: 1fr; }
}
