/* Ratgeber-Seiten (Magazin-Aufbau, 10.11.2026). Farben und Schriften wie die
   Landing Page (--y-Variablen oben in static/index.html, DESIGN.md).
   Cormorant Garamond spricht (Ueberschriften, Ziffern, Zitate), Inter erklaert. */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --y-grund: #0B0C0B; --y-flaeche: #171815; --y-flaeche-hoch: #22211D;
  --y-text: #EAE3D6; --y-text-2: #AAA59B;
  --y-bronze: #826748; --y-gold: #B99A70; --y-champagner: #D6BE97; --y-linie: #34312A;
  --y-glas-rand: rgba(214, 190, 151, .17);
  --y-schrift-gross: 'Cormorant Garamond', 'Times New Roman', serif;
  --y-schrift: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --r-rand: clamp(16px, 5vw, 72px);
  --r-spalte: 640px;
  --r-breit: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scrollbar-color: var(--y-bronze) var(--y-grund); }
body {
  margin: 0;
  background: var(--y-grund);
  color: var(--y-text-2);
  font-family: var(--y-schrift);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--y-champagner);
}
::selection { background: var(--y-champagner); color: var(--y-grund); }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--y-champagner); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .15s ease; }
a:hover { color: var(--y-text); }
:focus-visible { outline: 2px solid var(--y-champagner); outline-offset: 3px; border-radius: 3px; }

/* ---------- Kopfzeile ---------- */
.r-kopf {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 12, 11, .78);
  border-bottom: 1px solid var(--y-linie);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .r-kopf { background: rgba(11, 12, 11, .96); } }
@media (prefers-reduced-transparency: reduce) { .r-kopf { background: var(--y-grund); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.r-kopf-innen {
  max-width: var(--r-breit); margin: 0 auto; padding: 13px var(--r-rand);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.r-marke { font-family: var(--y-schrift-gross); font-size: 1.55rem; color: var(--y-text); text-decoration: none; line-height: 1; }
.r-kopf nav { display: flex; align-items: center; gap: 22px; font-size: .92rem; }
.r-kopf nav a { color: var(--y-text-2); text-decoration: none; }
.r-kopf nav a:hover, .r-kopf nav a[aria-current="page"] { color: var(--y-text); }
.r-kopf nav a.r-knopf-rand {
  color: var(--y-text); border: 1px solid var(--y-bronze); border-radius: 10px; padding: 8px 15px;
  transition: border-color .15s ease, background-color .15s ease;
}
.r-kopf nav a.r-knopf-rand:hover { border-color: var(--y-gold); background: rgba(185, 154, 112, .08); }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--y-schrift-gross); font-weight: 500; color: var(--y-text); text-wrap: balance; }
h1 em, h2 em { color: var(--y-champagner); }
strong { color: var(--y-text); font-weight: 600; }
p { margin: 0 0 1.15em; }
code {
  font-family: var(--y-schrift); font-size: .9em; white-space: nowrap;
  background: var(--y-flaeche-hoch); border: 1px solid var(--y-linie);
  padding: 1px 7px; border-radius: 6px; color: var(--y-champagner);
}

/* ---------- Artikel: Eroeffnung ---------- */
.r-oeffner { max-width: var(--r-breit); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--r-rand) 0; }
.r-pfad { font-size: .84rem; margin: 0 0 clamp(20px, 3vw, 36px); }
.r-pfad a { color: var(--y-text-2); }
.r-pfad a:hover { color: var(--y-text); }
.r-oeffner h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.012em;
  margin: 0 0 clamp(18px, 2.4vw, 28px); max-width: 15em;
}
.r-lead { font-size: 1.06rem; line-height: 1.6; color: var(--y-text); max-width: 34em; margin: 0 0 18px; }
.r-meta { font-size: .84rem; color: var(--y-text-2); margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

.r-held { max-width: var(--r-breit); margin: clamp(28px, 4vw, 52px) auto 0; padding: 0 var(--r-rand); }
.r-held figure, .r-bild { margin: 0; }
.r-held .r-rahmen {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--y-linie);
  aspect-ratio: 16 / 9; background: var(--y-flaeche);
}
.r-held img { width: 100%; height: 100%; object-fit: cover; animation: r-auftakt 1.1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes r-auftakt { from { transform: scale(1.035); filter: brightness(.72); } to { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .r-held img { animation: none; } }
figcaption { font-size: .84rem; line-height: 1.45; color: var(--y-text-2); margin-top: 12px; }

/* ---------- Artikel: Rumpf mit Inhaltsleiste ---------- */
.r-rumpf {
  max-width: var(--r-breit); margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) var(--r-rand) clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, var(--r-spalte)); justify-content: center;
}
.r-text { min-width: 0; }
.r-text > :first-child { margin-top: 0; }
.r-text h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.4rem); line-height: 1.08; letter-spacing: -.008em;
  margin: 2.1em 0 .55em; display: flex; align-items: baseline; gap: .45em;
}
.r-ziffer { font-family: var(--y-schrift-gross); color: var(--y-gold); font-size: .8em; min-width: 1.6em; flex: none; font-variant-numeric: lining-nums; }
.r-text h3 { font-size: 1.55rem; line-height: 1.15; margin: 1.6em 0 .4em; }
.r-text ul, .r-text ol { padding-left: 1.25em; margin: 0 0 1.4em; }
.r-text li { margin-bottom: .55em; }
.r-text li::marker { color: var(--y-gold); }
.r-text ol li::marker { font-family: var(--y-schrift-gross); font-size: 1.15em; }

.r-inhalt { font-size: .9rem; line-height: 1.4; margin: 0 0 clamp(36px, 5vw, 56px); padding: 18px 20px; background: var(--y-flaeche); border: 1px solid var(--y-linie); border-radius: 18px; }
.r-inhalt-titel { font-family: var(--y-schrift-gross); font-size: 1.55rem; color: var(--y-text); margin: 0 0 10px; }
.r-inhalt ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.r-inhalt a { display: block; padding: 6px 0 6px 18px; color: var(--y-text-2); text-decoration: none; position: relative; }
.r-inhalt a::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--y-linie); transition: background-color .2s ease, transform .2s ease;
}
.r-inhalt a:hover { color: var(--y-text); }
.r-inhalt a[aria-current="true"] { color: var(--y-text); }
.r-inhalt a[aria-current="true"]::before { background: var(--y-champagner); transform: scale(1.35); }

@media (min-width: 1100px) {
  .r-rumpf { grid-template-columns: 220px minmax(0, var(--r-spalte)); column-gap: clamp(56px, 6vw, 96px); justify-content: center; }
  .r-inhalt {
    grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 100px;
    background: none; border: 0; padding: 4px 0 0; margin: 0;
  }
  .r-text { grid-column: 2; grid-row: 1; }
}

/* Bilder im Text */
.r-bild { margin: 2.2em 0 2.4em; }
.r-bild .r-rahmen { border-radius: 18px; overflow: hidden; border: 1px solid var(--y-linie); background: var(--y-flaeche); }
.r-bild img { width: 100%; }
.r-bild svg { display: block; width: 100%; height: auto; }
/* Grafiken mit Beschriftung: auf schmalen Bildschirmen seitlich wischen statt winzig schrumpfen */
.r-bild .r-grafik { overflow-x: auto; overscroll-behavior-x: contain; }
.r-bild .r-grafik svg { min-width: 560px; }

/* Zitat */
.r-zitat {
  margin: 2.2em 0; padding: 1.1em 0; border-top: 1px solid var(--y-linie); border-bottom: 1px solid var(--y-linie);
  font-family: var(--y-schrift-gross); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.3;
  color: var(--y-champagner); text-wrap: balance;
}
.r-zitat p { margin: 0; }

/* Kaesten */
.r-kasten {
  background: var(--y-flaeche); border: 1px solid var(--y-linie);
  border-radius: 18px; padding: clamp(20px, 3vw, 30px); margin: 2em 0;
}
.r-text .r-kasten h3 { margin: 0 0 .5em; font-size: 1.55rem; }
.r-kasten > :last-child { margin-bottom: 0; }
.r-liste-haken { list-style: none; padding-left: 0 !important; }
.r-liste-haken li { position: relative; padding-left: 30px; }
.r-liste-haken li::before {
  content: ""; position: absolute; left: 3px; top: .68em; width: 12px; height: 7px;
  border-left: 1.5px solid var(--y-champagner); border-bottom: 1.5px solid var(--y-champagner);
  transform: translateY(-50%) rotate(-45deg);
}

/* Tabellen */
.r-tabelle-wrap { overflow-x: auto; margin: 1.4em 0 2em; border: 1px solid var(--y-linie); border-radius: 18px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.5; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--y-linie); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
thead th { color: var(--y-text-2); font-weight: 500; font-size: .84rem; background: var(--y-flaeche); }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
td strong { font-weight: 500; }

/* ---------- Weiterlesen ---------- */
.r-weiter { max-width: var(--r-breit); margin: 0 auto; padding: 0 var(--r-rand) clamp(64px, 8vw, 112px); }
.r-weiter-titel { font-size: clamp(1.85rem, 3.4vw, 2.4rem); line-height: 1.06; margin: 0 0 clamp(20px, 3vw, 32px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--y-linie); }
.r-weiter-liste { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.r-geschichte { display: block; text-decoration: none; color: inherit; }
.r-geschichte .r-rahmen { border-radius: 18px; overflow: hidden; border: 1px solid var(--y-linie); aspect-ratio: 16 / 9; background: var(--y-flaeche); }
.r-geschichte img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease; }
.r-geschichte:hover img { filter: brightness(1.08); }
.r-geschichte:hover .r-rahmen { border-color: var(--y-bronze); }
.r-geschichte h3 { font-size: clamp(1.55rem, 2.4vw, 1.9rem); line-height: 1.1; margin: 16px 0 8px; transition: color .15s ease; }
.r-geschichte:hover h3 { color: var(--y-champagner); }
.r-geschichte p { margin: 0 0 8px; color: var(--y-text-2); }
.r-geschichte .r-meta { margin-top: 4px; }

/* ---------- Uebersicht: Aufmacher ---------- */
.r-kopfbereich { max-width: var(--r-breit); margin: 0 auto; padding: clamp(36px, 6vw, 88px) var(--r-rand) clamp(28px, 4vw, 48px); }
.r-kopfbereich h1 { font-size: clamp(3.1rem, 6vw, 6rem); line-height: .98; letter-spacing: -.012em; margin: 0 0 20px; }
.r-aufmacher { max-width: var(--r-breit); margin: 0 auto; padding: 0 var(--r-rand) clamp(48px, 6vw, 80px); }
.r-aufmacher .r-geschichte { display: grid; gap: clamp(20px, 3vw, 48px); align-items: center; }
@media (min-width: 900px) { .r-aufmacher .r-geschichte { grid-template-columns: 7fr 5fr; } }
.r-aufmacher .r-geschichte h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.02; margin: 0 0 14px; transition: color .15s ease; }
.r-aufmacher .r-geschichte:hover h2 { color: var(--y-champagner); }
.r-aufmacher .r-geschichte p { font-size: 1.08rem; }
.r-mehr { max-width: var(--r-breit); margin: 0 auto; padding: 0 var(--r-rand) clamp(72px, 9vw, 128px); }
.r-mehr .r-weiter-liste { padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--y-linie); }

/* ---------- Abschluss in der goldenen Szene ---------- */
.r-finale {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(420px, 56vw, 620px); display: grid; place-items: center; text-align: center;
  padding: clamp(64px, 9vw, 120px) var(--r-rand);
}
.r-finale-bild { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.r-finale::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--y-grund) 0%, rgba(11, 12, 11, .55) 28%, rgba(11, 12, 11, .5) 72%, var(--y-grund) 100%),
    radial-gradient(ellipse at 50% 55%, rgba(11, 12, 11, .55), transparent 70%);
}
.r-finale-innen { max-width: 36em; }
.r-finale h2 { font-size: clamp(2.7rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 16px; text-shadow: 0 2px 26px rgba(11, 12, 11, .6); }
.r-finale p { color: var(--y-text); text-shadow: 0 1px 14px rgba(11, 12, 11, .9); margin: 0 auto 26px; max-width: 30em; }
.r-knopf {
  display: inline-block; background: var(--y-champagner); color: var(--y-flaeche);
  font-weight: 600; font-size: 1rem; text-decoration: none; padding: 15px 26px; border-radius: 12px;
  transition: background-color .15s ease;
}
.r-knopf:hover { background: var(--y-text); color: var(--y-flaeche); }
.r-finale .r-klein { font-size: .84rem; margin: 14px auto 0; color: var(--y-text); }

/* ---------- Fusszeile ---------- */
.r-fuss { padding: 26px var(--r-rand); text-align: center; font-size: .84rem; color: var(--y-text-2); }
.r-fuss a { color: var(--y-text-2); margin: 0 9px; text-decoration: none; }
.r-fuss a:hover { color: var(--y-text); text-decoration: underline; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .r-kopf nav a:not(.r-knopf-rand) { display: none; }
  .r-held { padding: 0; }
  .r-held .r-rahmen { border-radius: 0; border-left: 0; border-right: 0; }
  .r-held figcaption { padding: 0 var(--r-rand); }
  code { white-space: normal; }
}
