/* site.css — gemeinsame Gestaltung für den Fußbereich aller Seiten sowie
   für recht.html und kontakt.html. Angelegt am 30.07.2026 beim Seitenumbau:
   vorher lag jede Regel in 16 einzelnen <style>-Blöcken, eine Footer-Änderung
   war damit 16 Bearbeitungen. Wird im <head> VOR dem seiteneigenen
   <style>-Block eingebunden, damit bestehende Seiten ihre Regeln behalten. */

:root, [data-theme="light"] {
  --bg: #f3f5fc;
  --bg2: #ffffff;
  --bg3: #eaeefb;
  --border: rgba(70,80,140,0.14);
  --text: #171a26;
  --text2: #4a5168;
  --text3: #7a8099;
  --gold: #6d28d9;
  --gold2: #7c3aed;
  --red: #e11d48;
  --red2: #be123c;
  --blue: #0891b2;
  --blue2: #0e7490;
  --green2: #047857;
  --amber: #b45309;
  --grad: linear-gradient(135deg, #7c3aed 0%, #0891b2 100%);
  --radius: 14px;
  --radius-sm: 8px;
}
[data-theme="dark"] {
  --bg: #0a0c14;
  --bg2: #10131f;
  --bg3: #171b2c;
  --border: rgba(148,163,216,0.14);
  --text: #eef0f8;
  --text2: #9aa1b5;
  --text3: #5d6478;
  --gold: #8b5cf6;
  --gold2: #a78bfa;
  --red: #fb7185;
  --red2: #fda4af;
  --blue: #22d3ee;
  --blue2: #67e8f9;
  --green2: #6ee7b7;
  --amber: #fbbf24;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
}

/* Für .legal-responsible auf recht.html — die Unterseiten führen diese
   beiden Variablen bisher nicht, die Startseiten schon. */
:root, [data-theme="light"] {
  --notice-bg: rgba(124,58,237,0.06);
  --notice-border: rgba(124,58,237,0.22);
  --border2: rgba(70,80,140,0.24);
}
[data-theme="dark"] {
  --notice-bg: rgba(139,92,246,0.08);
  --notice-border: rgba(139,92,246,0.25);
  --border2: rgba(148,163,216,0.20);
}

/* ── Grundgerüst (aus den Unterseiten übernommen) ──────────────────
   Steht hier, damit recht.html und kontakt.html ohne eigenen
   Style-Block auskommen. Die bestehenden 16 Seiten bringen dieselben
   Regeln in ihrem <style> mit und überschreiben diese hier — deshalb
   wird site.css im <head> VOR dem Style-Block eingebunden. */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 28px 18px 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 15px;
}
.theme-toggle {
  width: 52px; height: 28px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg3); position: relative; cursor: pointer; padding: 0; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: transform 0.2s ease;
  /* Sonne und Mond stehen auf dem farbigen Knopf und müssen hell sein. Ohne
     diese Zeile erben sie die Schaltflächenfarbe des Browsers (schwarz) —
     nur die Startseite hatte sie, alle übrigen Seiten nicht (31.07.2026). */
  color: #fff;
}
[data-theme="dark"] .theme-toggle-thumb { transform: translateX(24px); }
.traffic-lights { display: flex; gap: 5px; }
.tl-ball {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff 0%, #f1f2f7 45%, #c7cad7 100%);
  box-shadow: inset -2px -3px 4px rgba(25,28,55,0.20), 0 1px 3px rgba(0,0,0,0.35);
  border: 1px solid rgba(20,24,48,0.18);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700; color: #1d2030;
  user-select: none; flex-shrink: 0;
}
[data-theme="light"] .tl-ball {
  box-shadow: inset -2px -3px 4px rgba(25,28,55,0.16), 0 1px 2px rgba(40,50,90,0.28);
}
h1 {
  font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700;
  margin: 0 0 10px; letter-spacing: -0.01em;
}
.intro { color: var(--text2); font-size: 15.5px; margin: 0 0 24px; }

/* ── Fußbereich, einheitlich auf allen Seiten (31.07.2026) ─────────
   Ersetzt die bisherigen Fließtext-Footer. Drei Zeilen: die Linkreihe zu
   den Rechtsseiten, der Verweis auf die Schwesterseite, und genau eine
   Pflichtzeile, die sichtbar bleiben muss (Unabhängigkeit, 18+,
   Hilfeangebot). Alles Weitere steht hinter den Links auf recht.html. */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 18px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
  margin-bottom: 12px;
}
.foot-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 12px;          /* großzügige Tippfläche auf dem Handy */
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.foot-links a:hover { color: var(--gold2); background: var(--bg3); }
.foot-links a:focus-visible { outline: 2px solid var(--gold2); outline-offset: 1px; }
/* Trennpunkte kommen aus dem CSS, nicht aus dem Markup — dann bleibt der
   Umbruch auf schmalen Displays sauber und der Punkt hängt nie allein. */
.foot-links a + a::before {
  content: "·";
  color: var(--text3);
  margin-right: 12px;
  margin-left: -12px;
}
/* Der Schwesterseiten-Link steht bewusst in einer eigenen Zeile: er gehört
   nicht zu den Rechtsverweisen, und in der Reihe darüber würde er den Umbruch
   erzwingen — dann hinge der Trennpunkt allein am Zeilenanfang. */
.foot-sister-row { text-align: center; margin: 0 0 12px; }
.foot-sister-row a {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.foot-sister-row a:hover { background: var(--bg3); }
.foot-sister-row a:focus-visible { outline: 2px solid var(--gold2); outline-offset: 1px; }
.foot-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text3);
}
.foot-note a { color: var(--text2); }
/* Sobald die Reihe umbricht, sind die Trennpunkte mehr Schaden als Nutzen —
   einer landet dann als erstes Zeichen der zweiten Zeile. Unterhalb dieser
   Breite tragen die Tippflächen die Gliederung allein. */
@media (max-width: 560px) {
  .foot-links { gap: 2px 4px; }
  .foot-links a + a::before { content: none; }
}
@media (max-width: 380px) {
  .foot-links a { padding: 6px 9px; font-size: 13px; }
}

/* ── Verantwortungshinweis als Seitenabschluss (31.07.2026) ────────
   Steht auf jeder Seite direkt über dem Fußbereich. Vorher stand der
   Hinweis nur klein und grau in der Pflichtzeile; er richtet sich als
   einziger Rechtsbaustein an den Leser statt an die Rechtslage und
   gehört deshalb sichtbar ans Seitenende. Die Pflichtzeile darunter
   nennt seitdem nur noch die Unabhängigkeit — sonst stünde dasselbe
   zweimal untereinander. Auf recht.html fehlt die Kachel bewusst: dort
   ist „Spielen mit Verantwortung" ein Abschnitt im Lesefluss. */
.responsible-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 14px 16px;
  border: 1px solid var(--notice-border);
  border-radius: var(--radius-sm);
  background: var(--notice-bg);
}
.responsible-note p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text2); }
.responsible-note strong { color: var(--text); font-weight: 600; }
.responsible-note a { color: var(--gold2); text-decoration: none; }
.responsible-note a:hover { text-decoration: underline; }
.rn-age {
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  border: 1px solid var(--notice-border);
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--bg);
}
/* Der Abstand steckt schon in der Kachel — der Fußbereich rückt nach. */
.responsible-note + .site-footer { margin-top: 22px; }
@media (max-width: 420px) {
  .responsible-note { gap: 10px; padding: 13px 14px; }
}

/* ── Rechtsseite (recht.html) ──────────────────────────────────────
   Übernimmt die Gestaltung des bisherigen Startseiten-Fußbereichs, damit
   die verschobenen Texte unverändert aussehen. */
.legal-page {
  max-width: 880px;
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text2);
}
.legal-section { scroll-margin-top: 20px; }
.legal-section + .legal-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.legal-page h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 10px;
}
.legal-page p { margin: 0 0 10px; }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-page a { color: var(--gold2); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.legal-responsible {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
}
.legal-marks { font-size: 11.5px; color: var(--text3); }
.legal-impressum-note { font-size: 11.5px; color: var(--text3); margin-top: 4px; }
/* Sprungmarken-Leiste am Kopf der Rechtsseite */
.legal-toc {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 30px;
}
.legal-toc a {
  font-size: 13px; color: var(--gold); text-decoration: none;
  border: 1px solid var(--border); padding: 7px 12px; border-radius: 20px;
}
.legal-toc a:hover { background: var(--bg3); }

/* ── Kontaktformular (kontakt.php) ─────────────────────────────────
   16px Schriftgröße in den Feldern ist kein Geschmack, sondern Pflicht:
   iOS zoomt beim Antippen automatisch hinein, sobald ein Feld kleiner
   gesetzt ist. Tippflächen mindestens 44px hoch. */
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-row .hint { font-weight: 400; color: var(--text3); }
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border2, var(--border));
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 46px;
}
.form-row textarea { min-height: 160px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold2);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.14);
}
.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] { border-color: var(--red); }
.btn-send {
  display: inline-block; width: 100%;
  background: var(--grad); color: #fff; border: none;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px;
  padding: 15px; border-radius: var(--radius-sm); cursor: pointer;
  min-height: 50px;
}
.btn-send:hover { filter: brightness(1.06); }
/* Honigtopf: für Menschen unsichtbar, für Formularroboter ein Pflichtfeld.
   Kein display:none — manche Roboter überspringen genau das. */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.form-note { font-size: 12.5px; color: var(--text3); margin: 14px 0 0; }
.form-note a { color: var(--text2); }
.form-msg {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 22px;
}
.form-msg.ok { background: rgba(52,211,153,0.10); border: 1px solid rgba(52,211,153,0.35); }
.form-msg.err { background: rgba(225,29,72,0.08); border: 1px solid rgba(225,29,72,0.35); }
.form-msg strong { color: var(--text); }
.contact-alt {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 26px;
  font-size: 14px;
}
.contact-alt p { margin: 0 0 6px; }
.contact-alt p:last-child { margin-bottom: 0; }
.contact-alt a { color: var(--gold2); }
