/* ============================================================
   GEHSCHULE MITTELRHEIN – Stylesheet
   Farbpalette & Typografie: bewusst reduziert, aus dem Flyer
   übernommen (Papierton, warmes Schwarz, Gold der Spur).
   Überschriften: Cormorant Garamond
   Fließtext:     Arial Nova Condensed Light (lokal),
                  Fallback: Roboto Condensed Light (Webfont)
   ============================================================ */

:root {
  /* --- Farben (nur Flyer-Palette) --- */
  --papier:     #F5F6F5;   /* Hintergrund, wie Flyerpapier */
  --weiss:      #FDFDFC;   /* helle Wechselflächen */
  --ink:        #1A1714;   /* warmes Schwarz, Fließtext */
  --stein:      #6E6A63;   /* Sekundärtext */
  --gold:       #BF9A6A;   /* Gold der Spur / Trennlinie */
  --gold-hell:  #E2CDA9;   /* helle Goldlinie */
  --linie:      #DDDAD4;   /* Hairlines */

  /* --- Schrift --- */
  --font-head: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Arial Nova Cond Light", "Arial Nova Cond", "Arial Nova",
               "Roboto Condensed", "Arial Narrow", Arial, sans-serif;

  /* --- Maße --- */
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.075rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

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

.skiplink {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--papier); padding: .6rem 1rem; z-index: 100;
}
.skiplink:focus { left: 0; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1rem; max-width: 62ch; }
ul, ol { padding-left: 1.2rem; max-width: 62ch; }
li { margin-bottom: .45rem; }
strong { font-weight: 600; }

/* Vorspann/Eyebrow – wie die Kapitälchen des Flyers */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--stein);
  margin-bottom: 1rem;
}

/* Goldene Trennlinie – Zitat der Linie unter der Flyer-Headline */
.goldlinie {
  width: 64px; height: 2px;
  background: var(--gold);
  border: 0; margin: 1.4rem 0 1.6rem;
}
.zentriert .goldlinie { margin-left: auto; margin-right: auto; }

.lead { font-size: 1.22rem; color: var(--ink); }
.dezent { color: var(--stein); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.eng { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.feld-weiss { background: var(--weiss); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.feld-ink { background: var(--ink); color: var(--papier); }
.feld-ink h2, .feld-ink h3 { color: var(--papier); }
.feld-ink a { color: var(--papier); }
.feld-ink .eyebrow { color: var(--gold-hell); }

/* Asymmetrische Zweispalter (Editorial) */
.duo { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 860px) {
  .duo { grid-template-columns: 7fr 5fr; }
  .duo.umgekehrt { grid-template-columns: 5fr 7fr; }
  .duo.umgekehrt > :first-child { order: 2; }
}

/* Bildrahmen mit Bildunterschrift */
figure.bild { margin: 0; }
figure.bild img { width: 100%; border: 1px solid var(--linie); }
figure.bild figcaption { font-size: .85rem; color: var(--stein); padding-top: .5rem; letter-spacing: .04em; }

/* ---------- Header / Navigation ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 245, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem var(--pad);
  max-width: var(--max); margin: 0 auto;
}
.marke { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.marke img { height: 46px; width: auto; }
.marke .wortmarke { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.1; }
.marke .wortmarke small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .42em; color: var(--stein); }

nav.haupt ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
nav.haupt a {
  text-decoration: none; font-size: .95rem; letter-spacing: .06em;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
nav.haupt a:hover { border-bottom-color: var(--gold-hell); color: var(--ink); }
nav.haupt a[aria-current="page"] { border-bottom-color: var(--gold); }

.nav-knopf { display: none; background: none; border: 1px solid var(--linie); padding: .5rem .7rem; font-family: var(--font-body); font-size: .9rem; letter-spacing: .1em; cursor: pointer; }

@media (max-width: 920px) {
  .nav-knopf { display: block; }
  nav.haupt { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--papier); border-bottom: 1px solid var(--linie); }
  nav.haupt.offen { display: block; }
  nav.haupt ul { flex-direction: column; gap: 0; padding: .5rem var(--pad) 1rem; }
  nav.haupt li { border-bottom: 1px solid var(--linie); margin: 0; }
  nav.haupt a { display: block; padding: .85rem 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero .duo { align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 46ch; }

/* Die goldene Spur – Signaturelement aus dem Logo */
.spur { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; pointer-events: none; opacity: .9; }

/* ---------- Buttons ---------- */
.knopfleiste { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.knopf {
  display: inline-block; text-decoration: none;
  font-family: var(--font-body); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .95rem 1.7rem; border: 1px solid var(--ink); color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.knopf:hover { background: var(--ink); color: var(--papier); }
.knopf.gold { border-color: var(--gold); background: var(--gold); color: var(--papier); }
.knopf.gold:hover { background: var(--ink); border-color: var(--ink); }
.feld-ink .knopf { border-color: var(--gold-hell); color: var(--papier); }
.feld-ink .knopf:hover { background: var(--gold); border-color: var(--gold); }

/* ---------- Karten / Übersichten ---------- */
.raster { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .raster.zwei { grid-template-columns: 1fr 1fr; } .raster.drei { grid-template-columns: repeat(3, 1fr); } }

.karte {
  background: var(--weiss); border: 1px solid var(--linie);
  padding: 1.8rem 1.6rem; display: flex; flex-direction: column;
}
.karte h3 { margin-bottom: .5rem; }
.karte p { font-size: 1rem; }
.karte .mehr { margin-top: auto; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); align-self: flex-start; padding-bottom: .15rem; }

/* Leistungsverzeichnis (Editorial-Liste statt Kartenraster) */
.leistung { border-top: 1px solid var(--linie); padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.leistung:last-of-type { border-bottom: 1px solid var(--linie); }
.leistung .kennung { font-family: var(--font-head); font-size: 1rem; font-style: italic; color: var(--gold); letter-spacing: .05em; }
.leistung .fakten { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
@media (min-width: 760px) { .leistung .fakten { grid-template-columns: 1fr 1fr; } }
.leistung .fakten h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--stein); margin-bottom: .4rem; }
.leistung .fakten ul { margin: 0; font-size: 1rem; }

/* ---------- Tabellen (Verordnungsseite) ---------- */
.tab-scroll { overflow-x: auto; }
table.icd { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--weiss); border: 1px solid var(--linie); font-size: .98rem; }
table.icd caption { text-align: left; font-family: var(--font-head); font-size: 1.2rem; padding-bottom: .6rem; }
table.icd th, table.icd td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.icd th { font-family: var(--font-body); font-weight: 400; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stein); border-bottom: 2px solid var(--gold-hell); }
table.icd td.code { font-weight: 600; white-space: nowrap; }
table.icd tr.lhb td { background: #EFEDE8; }

.hinweis {
  border-left: 2px solid var(--gold); background: var(--weiss);
  padding: 1.2rem 1.4rem; margin: 1.6rem 0; max-width: 68ch;
}
.hinweis p:last-child { margin-bottom: 0; }

/* ---------- FAQ (aufklappbar) ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--linie); }
.faq details:last-child { border-bottom: 1px solid var(--linie); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 500;
  padding: 1.1rem 2.4rem 1.1rem 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%;
  transform: translateY(-50%); color: var(--gold);
  font-family: var(--font-head); font-size: 1.6rem; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.3rem; color: var(--ink); }
.faq details > div p, .faq details > div ul { font-size: 1.02rem; }

/* ---------- Ablauf / Schritte ---------- */
.schritte { list-style: none; padding: 0; counter-reset: schritt; max-width: 760px; }
.schritte li { counter-increment: schritt; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--linie); margin: 0; }
.schritte li::before {
  content: counter(schritt, decimal-leading-zero);
  font-family: var(--font-head); font-size: 1.7rem; color: var(--gold); line-height: 1;
}
.schritte h4 { margin-bottom: .3rem; }
.schritte p { margin-bottom: 0; font-size: 1rem; }

/* ---------- Standorte ---------- */
.standort { background: var(--weiss); border: 1px solid var(--linie); padding: 1.8rem; }
.standort address { font-style: normal; line-height: 1.7; }
.karten-platzhalter {
  margin-top: 1.2rem; border: 1px dashed var(--gold);
  background: var(--papier); min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--stein); font-size: .95rem; padding: 1rem;
}

/* ---------- Zitat / Patientenstimmen ---------- */
blockquote.stimme {
  margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--gold);
  font-family: var(--font-head); font-size: 1.35rem; font-style: italic; line-height: 1.4;
}
blockquote.stimme footer { font-family: var(--font-body); font-style: normal; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stein); margin-top: .8rem; }

/* ---------- CTA-Band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band .knopfleiste { justify-content: center; }

/* ---------- Footer ---------- */
footer.fuss { background: var(--ink); color: var(--papier); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .98rem; }
footer.fuss a { color: var(--papier); text-decoration-color: var(--gold); }
footer.fuss a:hover { color: var(--gold-hell); }
.fuss-raster { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .fuss-raster { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.fuss-raster h3 { color: var(--gold-hell); font-size: 1.15rem; }
.fuss-raster ul { list-style: none; padding: 0; margin: 0; }
.fuss-raster li { margin-bottom: .5rem; }
.fuss-unten { border-top: 1px solid rgba(245,246,245,.25); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #B9B6B0; }
.fuss-unten a { color: #B9B6B0; }

/* ---------- Sanftes Einblenden (respektiert reduced motion) ---------- */
.blende { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.blende.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .blende { opacity: 1; transform: none; transition: none; } }

/* ---------- Druck ---------- */
@media print { .kopf, footer.fuss, .knopfleiste { display: none; } body { background: #fff; } }
