/* Gemeinsames Stylesheet der Rechts- und Infoseiten.
 *
 * Vorher trug jede der sieben Seiten denselben <style>-Block im Kopf - sieben
 * Kopien, die schon auseinandergelaufen waren. Und die Schriften kamen von
 * fonts.googleapis.com: Damit ging bei jedem Aufruf die IP-Adresse des
 * Besuchers an Google in die USA, ohne Rechtsgrundlage und ohne dass Google in
 * der Datenschutzerklärung als Empfänger stand.
 *
 * Die Schriften liegen jetzt unter /fonts/ (siehe brand/build_webfonts.py).
 * Beim Wechseln der Dateien die ?v= in allen Seiten mit hochzählen.
 */

@font-face {
  font-family: 'Oswald';
  src: url('/fonts/oswald.woff2?v=1') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/work-sans.woff2?v=1') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono.woff2?v=1') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}

:root {
  --ink: #121212;
  --surface: #1c1c1c;
  --surface-2: #242424;
  --steel: #3a3a3a;
  --hairline: rgba(255, 255, 255, .07);
  --chalk: #ede9e2;
  --chalk-dim: #a8a49b;
  --plate: #ff5a1f;
  --plate-bright: #ff7a45;
  --warn: #e34848;
  --lime: #c7ff4a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  /* Ohne das rendert Safari die variable Schrift zu dünn. */
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px; margin: 0 auto; padding: 32px 20px 80px;
  overflow-wrap: anywhere;
}

/* Direkt als erstes fokussierbares Element: Tastaturnutzer muessen sich nicht
   auf jeder Seite erneut durch den Zurueck-Link bewegen. */
.skip-link {
  position: fixed; z-index: 1000; left: 16px; top: 12px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--ink); background: var(--lime); font-weight: 700;
  transform: translateY(-160%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--ink); }

a { color: var(--plate); }
a:hover { color: var(--plate-bright); }

/* Tastaturbedienung: Der Fokus muss sichtbar sein, sonst weiß niemand, wo er
   gerade ist. Kontrast gegen den dunklen Hintergrund geprüft. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--plate-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

h1 { font-family: 'Oswald', system-ui, sans-serif; font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
h2 {
  font-size: 18px; color: var(--chalk); margin-top: 40px;
  border-bottom: 1px solid var(--steel); padding-bottom: 6px;
}
/* Ausnahme: Ueberschrift direkt vor einer Ausklapp-Kartenliste (FAQ). Die
   Trennlinie plus die Kartenkante direkt darunter wirkten wie zwei
   Trenner uebereinander. */
h2:has(+ details) { border-bottom: none; padding-bottom: 0; }
h3 { font-size: 15.5px; color: var(--chalk); margin-top: 24px; margin-bottom: 6px; }

.back { display: inline-block; margin-bottom: 20px; font-size: 13px; color: var(--chalk-dim); text-decoration: none; }
.back:hover { color: var(--chalk); }

.lead { color: var(--chalk-dim); font-size: 15px; margin-top: 0; }
.stand { color: var(--chalk-dim); font-size: 13px; margin-top: 0; }
.en { color: var(--chalk-dim); font-size: 13px; font-style: italic; }

ul, ol { padding-left: 22px; margin: 8px 0; }
li { margin-bottom: 7px; }

/* Nummerierte Absätze in AGB und Richtlinien: a), b), c) … */
ol.lettered { list-style: none; padding-left: 0; counter-reset: agb-counter; }
ol.lettered > li { position: relative; padding-left: 30px; }
ol.lettered > li::before {
  content: counter(agb-counter, lower-alpha) ")"; counter-increment: agb-counter;
  position: absolute; left: 0; top: 0; color: var(--chalk); font-weight: 600;
}

ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
ol.steps > li { position: relative; padding-left: 30px; }
ol.steps > li::before {
  content: counter(step); counter-increment: step;
  position: absolute; left: 0; top: 0; color: var(--plate); font-weight: 700;
}

.box { background: var(--surface); border: 1px solid var(--steel); border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.box.alarm { border-color: var(--warn); }
.box.hint { border-color: rgba(255, 90, 31, .35); }
.box > h3:first-child { margin-top: 0; }
.box > p:last-child { margin-bottom: 0; }

.flag { color: var(--warn); font-weight: 600; }

.tag {
  display: inline-block; margin-bottom: 8px; padding: 2px 9px;
  border: 1px solid var(--steel); border-radius: 20px;
  color: var(--chalk-dim); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase;
}
.tag.zero { border-color: var(--warn); color: var(--warn); }

.toc {
  margin: 22px 0 8px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--steel); border-radius: 10px;
  font-size: 14px;
}
.toc b {
  display: block; margin-bottom: 8px; color: var(--chalk-dim);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding-left: 4px; }
.toc li { counter-increment: toc; margin-bottom: 5px; }
.toc li::before {
  content: counter(toc) "."; display: inline-block; min-width: 1.4em;
  margin-right: 10px; color: var(--plate); font-weight: 700;
}
h2[id] { scroll-margin-top: 16px; }

/* Breite Tabellen dürfen die Seite nicht seitlich schieben - sie scrollen in
   ihrem eigenen Kasten. */
.table-scroll { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--steel); vertical-align: top; }
th { color: var(--chalk-dim); font-weight: 600; }

.nav-legal { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--steel); font-size: 13px; }
.nav-legal a { margin-right: 16px; display: inline-block; margin-bottom: 6px; }

/* Ab 1. Oktober 2026 gesetzlich vorgeschriebene, aber bewusst zurueckhaltende
   Hervorhebung der Online-Ruecktrittsfunktion (§ 13a FAGG) - siehe
   legal-status.js. Dezenter Outline-Button in der Markenfarbe, kein
   Primary-CTA: kein Glow, keine Animation, kein abweichender Rahmen. */
.nav-legal a.widerruf-hervorgehoben {
  border: 1px solid var(--plate);
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 6px;
}

/* ---- Formulare (Widerruf, Meldung) ---- */

label { display: block; margin-top: 16px; margin-bottom: 6px; font-size: 13px; color: var(--chalk-dim); font-weight: 600; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  color: var(--chalk); background: var(--surface-2);
  border: 1px solid var(--steel); border-radius: 10px;
}
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6f6b64; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--chalk); }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--plate); }
.check span { line-height: 1.5; }

.btn {
  display: inline-block; width: 100%; margin-top: 22px; padding: 15px 20px;
  font-family: 'Oswald', system-ui, sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-align: center;
  color: #1a0a04; background: var(--plate);
  border: none; border-radius: 12px; cursor: pointer;
}
.btn:hover { background: var(--plate-bright); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.secondary { color: var(--chalk); background: transparent; border: 1px solid var(--steel); }

.hint { font-size: 13px; color: var(--chalk-dim); margin-top: 8px; }

/* Fehler werden nicht nur rot gefärbt, sondern benannt - Farbe allein ist für
   Screenreader und bei Farbfehlsichtigkeit keine Information. */
.err { color: var(--warn); font-size: 13.5px; margin-top: 10px; min-height: 1px; }
.ok { border-color: var(--lime); }

.result { display: none; }
.result pre {
  white-space: pre-wrap; word-break: break-word;
  background: var(--surface-2); border: 1px solid var(--steel); border-radius: 10px;
  padding: 14px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px;
  color: var(--chalk);
}

.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;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
