/* =====================================================================
   Erich-Fill-Triathlon Taunusstein — gemeinsames Stylesheet
   Wird von index.html, galerie.html und briefing-*.html eingebunden.
   Enthaelt Tokens, Sektions-Kontexte, Grundgeruest und alle
   Komponenten, die auf mehr als einer Seite vorkommen.
   Seitenspezifisches bleibt in der jeweiligen Datei.
   ===================================================================== */

/* =========================================================
   DESIGN TOKENS — UTRR Markenfarben
   ========================================================= */
:root {
  /* Markenfarben */
  --volt:       #BFE03A;   /* abgemildert; UTRR-Original ist #CCFF00 */
  --volt-deep:  #A9CB22;
  --blue:       #0D4F84;   /* Blau aus der Logo-Hügellinie */
  --blue-light: #5A9BD0;   /* dieselbe Farbe aufgehellt für dunkle Flächen */
  --orange:     #FF4600;   /* UTRR-Primärfarbe */
  --orange-dark:#CC3800;   /* abgedunkelt für Kleintext auf hellem Grund */

  /* Deep Navy / Anthrazit */
  --navy:       #10141A;
  --navy-deep:  #080B0F;
  --navy-soft:  #1A202A;

  /* Neutral hell */
  --off:        #F3F5F2;
  --pure:       #FFFFFF;

  /* Textfarben je Untergrund */
  --t-dark:       #F3F5F2;
  --t-dark-mute:  #9BA5B4;
  --t-light:      #10141A;
  --t-light-mute: #5B6673;

  /* Kontextvariablen — werden pro Section überschrieben */
  --bg:      var(--navy);
  --surface: var(--navy-soft);
  --txt:     var(--t-dark);
  --mute:    var(--t-dark-mute);
  --line:    rgba(255,255,255,.10);
  --line-hi: rgba(255,255,255,.20);
  /* Orange als Textfarbe — auf hellem Grund abgedunkelt, sonst fällt es durch AA */
  --orange-text: var(--orange);
  /* Zweitakzent: übernimmt alles, was vorher Volt machte.
     Auf Dunkel die aufgehellte Variante, auf Hell das Logo-Blau. */
  --accent2: var(--blue-light);

  /* Typografie */
  --fd: 'Barlow Condensed', sans-serif;
  --fu: 'Barlow', sans-serif;
  --fb: 'DM Sans', sans-serif;

  --r:    .75rem;
  --pill: 9999px;
}

/* Sektions-Kontexte */
.ctx-dark {
  --bg: var(--navy); --surface: var(--navy-soft);
  --txt: var(--t-dark); --mute: var(--t-dark-mute);
  --line: rgba(255,255,255,.10); --line-hi: rgba(255,255,255,.22);
  background: var(--bg); color: var(--txt);
}
.ctx-deep {
  --bg: var(--navy-deep); --surface: var(--navy-soft);
  --txt: var(--t-dark); --mute: var(--t-dark-mute);
  --line: rgba(255,255,255,.08); --line-hi: rgba(255,255,255,.18);
  background: var(--bg); color: var(--txt);
}
.ctx-light {
  --orange-text: var(--orange-dark);
  --accent2: var(--blue);
  --bg: var(--off); --surface: var(--pure);
  --txt: var(--t-light); --mute: var(--t-light-mute);
  --line: rgba(16,20,26,.12); --line-hi: rgba(16,20,26,.28);
  background: var(--bg); color: var(--txt);
}
.ctx-white {
  --orange-text: var(--orange-dark);
  --accent2: var(--blue);
  --bg: var(--pure); --surface: var(--off);
  --txt: var(--t-light); --mute: var(--t-light-mute);
  --line: rgba(16,20,26,.10); --line-hi: rgba(16,20,26,.26);
  background: var(--bg); color: var(--txt);
}

/* ========= RESET ========= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb); background: var(--navy); color: var(--t-dark);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 3px solid var(--volt); outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(16,20,26,.55); border-radius: 4px;
}

/* ========= LAYOUT ========= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 6rem 0; position: relative; }
@media(max-width:640px){ .section { padding: 4rem 0; } }
/* Platz schaffen für eine absolut positionierte Hügellinie am Sectionsende */
.has-divider { padding-bottom: calc(4rem + clamp(44px, 5.5vw, 88px)); }
@media(max-width:640px){ .has-divider { padding-bottom: calc(2rem + clamp(44px, 5.5vw, 88px)); } }

/* ========= TAUNUS-HÜGELLINIE =========
   Zentrales Gestaltungselement. Drei Einsatzformen:
   .hill-divider  — Übergang zwischen Sections
   .hill-canvas   — großflächig als Hintergrundgrafik
   .brand-logo    — im Logo
   ===================================== */
/* Sitzt bündig am unteren Rand der Section — unabhängig vom Padding.
   Die Füllfarbe entspricht der FOLGENDEN Section. */
.hill-divider {
  position: absolute; left: 0; right: 0; bottom: 0;
  line-height: 0; z-index: 2; pointer-events: none;
}
.hill-divider svg { display: block; width: 100%; height: clamp(44px, 5.5vw, 88px); }
.hill-divider .hill-line { fill: none; stroke: var(--blue-light); stroke-width: 2.5; opacity: .5; }
.to-light .hill-fill { fill: var(--off); }
.to-white .hill-fill { fill: var(--pure); }
.to-dark  .hill-fill { fill: var(--navy); }
.to-deep  .hill-fill { fill: var(--navy-deep); }

.hill-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  display: flex; align-items: center;
}
.hill-canvas svg { width: 100%; height: auto; min-height: 100%; }
.hill-canvas path { fill: none; stroke-linecap: round; }

/* ========= LOGO =========
   Original-Logo als freigestelltes PNG (transparent, für dunkle
   Flächen). Kleine Variante für Nav/Footer, große für den Hero.
   ========================= */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 2.9rem; width: auto; display: block; }
@media(max-width:520px){ .brand-logo { height: 2.3rem; } }
@media(max-width:380px){ .brand-logo { height: 2rem; } }

/* ========= TYPO-HELFER ========= */
.pretitle {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--fu); font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: var(--txt);
}
.pretitle::before {
  content: ''; display: block; width: 1.5rem; height: 3px;
  background: var(--accent2); border-radius: 2px;
}
.sec-title {
  font-family: var(--fd); font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 900; font-style: italic; text-transform: uppercase;
  letter-spacing: -.015em; line-height: 1.02; margin-top: .6rem;
}
.sec-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.sec-head .pretitle::before { display: none; }
.sec-sub { color: var(--mute); margin-top: 1rem; font-size: 1rem; line-height: 1.75; }
.volt { color: var(--accent2); }

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--fu); font-size: .875rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .09em;
  padding: .85rem 1.9rem; border-radius: var(--pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }

/* Primär — ANMELDUNG */
.btn-primary { background: var(--volt); color: var(--navy); border-color: var(--volt); }
.btn-primary:hover {
  background: var(--volt-deep); border-color: var(--volt-deep);
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
/* Sekundär — passt sich dem Untergrund an */
.btn-outline { background: transparent; color: var(--txt); border-color: var(--line-hi); }
.btn-outline:hover { border-color: var(--txt); transform: translateY(-2px); }
/* Dunkel — auf hellen Flächen */
.btn-dark { background: var(--navy); color: var(--off); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-soft); border-color: var(--navy-soft); transform: translateY(-2px); }
/* Rot — sparsam, nur für einzelne Akzente */
.btn-orange { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 1rem 2.3rem; font-size: .9375rem; }
.btn-xl { padding: 1.15rem 2.8rem; font-size: 1rem; }

/* ========= BADGE ========= */
.badge {
  display: inline-flex; align-items: center;
  padding: .25rem .75rem; border-radius: var(--pill);
  font-family: var(--fu); font-size: .625rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  border: 1px solid var(--line-hi); color: var(--mute);
}
.badge-volt { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.badge-orange { background: transparent; border-color: var(--orange-text); color: var(--orange-text); }

/* ========= NAV ========= */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,11,15,.90);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  --mute: var(--t-dark-mute);
  color: var(--t-dark);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; gap: 1rem; }
.nav-links { display: none; list-style: none; gap: 1.6rem; align-items: center; }
@media(min-width:1040px){ .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--fu); font-size: .8125rem; font-weight: 700;
  color: var(--t-dark-mute); text-transform: uppercase; letter-spacing: .08em;
  padding: .4rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-light); border-bottom-color: var(--blue-light); }
.nav-end { display: flex; align-items: center; gap: .75rem; }
#navCta { display: none; }
.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; color: var(--t-dark); }
@media(min-width:1040px){ .hamburger { display: none; } }
.hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; background: rgba(8,11,15,.99); border-top: 1px solid rgba(255,255,255,.06); }
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 1rem 1.5rem; font-family: var(--fu); font-size: .9375rem; font-weight: 700;
  color: var(--t-dark-mute); text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 1px solid rgba(255,255,255,.05); transition: color .2s, background .2s;
}
.mobile-menu a:hover { color: var(--blue-light); background: rgba(90,155,208,.08); }
.mobile-menu .btn { margin: 1rem 1.5rem; width: calc(100% - 3rem); }

/* ========= STATS ========= */
.stats-bar { padding: 2.5rem 0; position: relative; z-index: 2; }
.stats-row { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.stat { text-align: center; }
.stat-num-wrap { display: flex; align-items: baseline; justify-content: center; gap: .08rem; }
.stat-num { font-family: var(--fd); font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 900; line-height: 1; color: var(--txt); }
.stat-sfx { font-family: var(--fd); font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 900; color: var(--blue-light); line-height: 1; }
.stat-lbl { font-family: var(--fu); font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .17em; color: var(--mute); margin-top: .4rem; }
.stats-div { width: 1px; height: 2.5rem; background: var(--line); }
@media(max-width:599px){ .stats-div { display: none; } }

/* ========= INFO-KARTEN ========= */
.info-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media(min-width:600px){ .info-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:960px){ .info-grid { grid-template-columns: repeat(3,1fr); } }
.info-card {
  padding: 1.7rem; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--accent2);
  border-radius: var(--r);
  transition: transform .3s, box-shadow .3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,20,26,.10); }
.info-title { font-family: var(--fu); font-size: 1.05rem; font-weight: 800; margin-bottom: .55rem; }
.info-text  { font-size: .85rem; color: var(--mute); line-height: 1.75; }
.info-detail {
  margin-top: .95rem; padding-top: .95rem; border-top: 1px solid var(--line);
  font-family: var(--fu); font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .11em; color: var(--txt);
}

/* Hervorhebung unter den Disziplinkarten: die gesperrte Radstrecke ist das
   Alleinstellungsmerkmal der Veranstaltung und verdient eine eigene Flaeche.
   Volt als Leiste, nicht als Flaeche — auf Dunkel traegt sonst der Text nicht. */
.disc-note {
  margin-top: 1.8rem; padding: 1.5rem 1.7rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--volt); border-radius: var(--r);
}
.disc-note-lbl {
  font-family: var(--fu); font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--volt-deep); margin-bottom: .5rem;
}
.ctx-dark .disc-note-lbl, .ctx-deep .disc-note-lbl { color: var(--volt); }
.disc-note-txt { font-size: .9rem; line-height: 1.75; color: var(--mute); max-width: 76ch; }
.disc-note-txt strong { color: var(--txt); font-weight: 700; }

/* ========= FORMATE & GEBÜHREN =========
   Zwei breite Karten mit je einer Gebuehrentabelle. Die Tabelle ist
   eine echte <table> — die Daten sind tabellarisch, und Screenreader
   brauchen die Zuordnung Zeitraum/Einzel/Staffel.
   ====================================== */
.fmt-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media(min-width:820px){ .fmt-grid { grid-template-columns: repeat(2,1fr); } }
.fmt-card {
  padding: 1.9rem; background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--orange);
  border-radius: var(--r);
}
.fmt-top { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.fmt-name {
  font-family: var(--fd); font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1; color: var(--txt);
}
.fmt-dist {
  margin-top: .5rem; font-family: var(--fu); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent2);
}
.fee-table { width: 100%; border-collapse: collapse; }
.fee-cap {
  text-align: left; font-family: var(--fu); font-size: .65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em; color: var(--mute);
  padding-bottom: .7rem;
}
.fee-table th, .fee-table td {
  padding: .6rem .5rem; text-align: right; font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.fee-table thead th {
  font-family: var(--fu); font-size: .65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--mute);
  border-bottom-color: var(--line-hi);
}
.fee-table tbody th { text-align: left; font-weight: 400; color: var(--mute); }
.fee-table tbody td { font-family: var(--fu); font-weight: 700; color: var(--txt); white-space: nowrap; }
.fee-table tbody td strong { color: var(--orange-text); font-weight: 800; }
.fee-table tbody tr:last-child th, .fee-table tbody tr:last-child td { border-bottom: none; }
.fmt-note { margin-top: 1.1rem; font-size: .84rem; line-height: 1.7; color: var(--mute); }
.fmt-note strong { color: var(--txt); font-weight: 700; }

/* Zwischenueberschrift innerhalb einer Section */
.sub-head {
  margin: 3.2rem 0 1.4rem;
  font-family: var(--fd); font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; color: var(--txt);
}
.sub-head::after {
  content: ''; display: block; width: 3rem; height: 3px;
  background: var(--orange); margin-top: .7rem; border-radius: 2px;
}
.info-text strong { color: var(--txt); font-weight: 700; }

/* Verweis unter den Karten: Die Startseite gibt bewusst nur das Noetigste;
   alles Verbindliche steht in der Ausschreibung. */
.info-foot {
  margin-top: 1.6rem; font-size: .875rem; color: var(--mute);
  max-width: 62ch;
}
.info-foot a { color: var(--orange-text); font-weight: 600; }

/* ========= FOOTER ========= */
.footer { position: relative; padding: 4rem 0 2.5rem; overflow: hidden; }
.footer-hills { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; }
.footer-hills svg { width: 100%; height: auto; display: block; }
.footer-hills path { fill: none; stroke: var(--blue-light); stroke-width: 2; opacity: .16; }
.footer-inner { position: relative; z-index: 1; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media(min-width:820px){ .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-meta { margin-top: 1.2rem; font-size: .82rem; color: var(--t-dark-mute); line-height: 1.8; }
.footer-meta .date { color: var(--blue-light); font-weight: 700; }
.footer-h {
  font-family: var(--fu); font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .16em; color: var(--t-dark);
  margin-bottom: 1rem;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-list a { font-size: .85rem; color: var(--t-dark-mute); transition: color .2s; }
.footer-list a:hover { color: var(--blue-light); }
/* Marke des Veranstalters: vier geneigte Balken, wie auf der
   UTRR-Seite. Farben unveraendert uebernommen — auch der dunkle
   Balken, den UTRR auf ihrem ebenso dunklen Footer genauso setzt. */
.veranstalter { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
/* Marke und Vereinsname bleiben zusammen, auch wenn die Zeile umbricht */
.utrr-org { display: inline-flex; align-items: center; gap: .5rem; }
.utrr-mark { display: inline-flex; gap: 2px; flex: none; }
.utrr-mark i { width: 3.5px; height: 15px; transform: skewX(-12deg); border-radius: 1px; }
.utrr-mark i:nth-child(1) { background: #2C2E35; }
.utrr-mark i:nth-child(2) { background: #FF4600; }
.utrr-mark i:nth-child(3) { background: #B0B1B3; }
.utrr-mark i:nth-child(4) { background: #CCFF00; }

.footer-bottom {
  position: relative; z-index: 1;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .78rem; color: var(--t-dark-mute);
}


/* ========= DOKUMENTSEITEN =========
   Fliesstext-Seiten wie Ausschreibung, Impressum, Datenschutz.
   Enthaelt auch die Druckgrundlage: ueber "Drucken -> Als PDF
   sichern" faellt aus jeder dieser Seiten ein A4-Dokument heraus.
   ================================== */
/* Dokumentseiten sind hell — deshalb muessen hier dieselben
   Kontextvariablen gelten wie bei .ctx-white. Ohne das bleibt
   --mute der helle Grauton fuer dunkle Flaechen, und Kleintext
   wie die Fusszeile faellt auf 2,5:1 durch. */
.doc {
  --orange-text: var(--orange-dark);
  --accent2: var(--blue);
  --bg: var(--pure); --surface: var(--off);
  --txt: var(--t-light); --mute: var(--t-light-mute);
  --line: rgba(16,20,26,.10); --line-hi: rgba(16,20,26,.26);
  background: var(--bg); color: var(--txt);
  padding: 4rem 0 5rem;
}
.doc .container { max-width: 860px; }
.doc-block { margin-bottom: 2.75rem; }
.doc-block:last-child { margin-bottom: 0; }
.doc h2 {
  font-family: var(--fd); font-style: italic; font-weight: 900;
  text-transform: uppercase; font-size: 1.5rem; letter-spacing: -.005em;
  margin-bottom: .9rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--blue);
}
.doc h3 {
  font-family: var(--fu); font-weight: 800; text-transform: uppercase;
  font-size: .82rem; letter-spacing: .1em; color: var(--blue);
  margin: 1.4rem 0 .45rem;
}
.doc p { margin-bottom: .8rem; line-height: 1.7; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { margin: 0 0 .8rem 1.1rem; }
.doc li { margin-bottom: .35rem; line-height: 1.65; }
.doc strong { font-weight: 600; color: var(--t-light); }
.doc a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }

/* Sachhinweis */
.note {
  border-left: 4px solid var(--blue); background: var(--off);
  padding: .9rem 1.1rem; border-radius: 0 var(--r) var(--r) 0;
  font-size: .875rem; margin: 1rem 0;
}
.note b { color: var(--blue); }

/* .todo entfernt am 02.10.2026: Die Hinweiskaesten waren interne Notizen
   und standen live im Netz. Die offenen Punkte stehen jetzt in
   EFT-OFFENE-PUNKTE.md ausserhalb des Deploy-Verzeichnisses. */

/* Fehlender Wert mitten im Fliesstext — muss beim Lesen auffallen, ohne
   den Satz unleserlich zu machen. Deshalb getoente Flaeche statt Farbe
   auf Farbe. Gehoert ins gemeinsame Stylesheet: die Luecken stehen in
   Ausschreibung UND AGB. */
.luecke {
  /* Nicht --orange-dark: auf der eigenen Toenung kommt #CC3800 nur auf
     4,23:1. #B33100 haelt 5,2:1. */
  background: rgba(255,70,0,.14); color: #B33100;
  padding: .05em .4em; border-radius: 3px;
  font-weight: 700; white-space: nowrap;
}
@media print { .luecke { background: none; border: 1px solid #111; color: #111; } }

.doc-foot {
  margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--mute);
}

.print-only { display: none; }

@media print {
  @page { size: A4; margin: 18mm 16mm 20mm; }
  html, body { background: #fff !important; color: #111 !important; font-size: 10.5pt; }
  header, .navbar, .doc-actions, .footer, footer { display: none !important; }
  .doc-hero { display: none !important; }
  .print-only { display: block; }
  .doc { padding: 0 !important; background: #fff !important; color: #111 !important; }
  .doc .container { max-width: none; padding: 0; }

  /* Kopf der ersten Druckseite — Wortmarke statt Logo-PNG, dessen
     Schrift weiss ist und auf Papier unsichtbar waere. */
  .print-head { border-bottom: 2.5pt solid #111; padding-bottom: 6pt; margin-bottom: 14pt; }
  .print-head .pm {
    font-family: var(--fd); font-style: italic; font-weight: 900;
    text-transform: uppercase; font-size: 20pt; line-height: 1; color: #111;
  }
  .print-head .ps {
    font-family: var(--fu); font-weight: 700; text-transform: uppercase;
    letter-spacing: .18em; font-size: 7.5pt; color: #444; margin-top: 3pt;
  }
  .print-head .pd { margin-top: 8pt; font-size: 9.5pt; color: #111; font-weight: 600; }

  .doc h2 {
    font-size: 12.5pt; color: #111; border-bottom: 1pt solid #111;
    margin-top: 14pt; margin-bottom: 6pt; padding-bottom: 3pt;
    break-after: avoid; page-break-after: avoid;
  }
  .doc h3 { font-size: 8.5pt; color: #333; margin: 9pt 0 3pt; break-after: avoid; }
  .doc p, .doc li { font-size: 10pt; line-height: 1.45; color: #111; }
  .doc a { color: #111 !important; }
  .doc-block { margin-bottom: 10pt; }
  .note, .todo {
    border-left: 2.5pt solid #111; background: #f2f2f2 !important;
    padding: 6pt 8pt; font-size: 9pt; break-inside: avoid;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .todo { border-left-color: #b03000; }
  .todo b, .note b { color: #111; }
  .doc-foot { margin-top: 14pt; font-size: 8.5pt; color: #444; }
}

/* ========= REVEAL ========= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .09s; } .d2 { transition-delay: .18s; }
.d3 { transition-delay: .27s; } .d4 { transition-delay: .36s; } .d5 { transition-delay: .45s; }

/* ========= LIGHTBOX ========= */
.lightbox { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(8,11,15,.97); backdrop-filter: blur(6px); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-inner img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--r); }
.lightbox-close, .lightbox-nav {
  position: fixed; background: none; border: 2px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.lightbox-close { top: 1.25rem; right: 1.5rem; width: 2.75rem; height: 2.75rem; font-size: 1.4rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 1.4rem; }
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--blue-light); background: rgba(90,155,208,.14); }
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }
@media(max-width:640px){ .lightbox-nav { display: none; } }

/* ========= SKIP-LINK ========= */
.skip-link {
  position: absolute; top: -999px; left: 1rem; z-index: 9999;
  padding: .75rem 1.5rem; background: var(--volt); color: var(--navy);
  font-family: var(--fu); font-size: .875rem; font-weight: 800;
  border-radius: var(--pill); text-transform: uppercase; letter-spacing: .07em;
}
.skip-link:focus { top: 1rem; }

/* ========= REDUCED MOTION ========= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
