/* Netzwerkpiloten — Website.
   Das Material folgt der App: Apples Formensprache, die Kreis-Rampe aus
   Assets.xcassets, keine Emoji. Hell und Dunkel über `prefers-color-scheme`.

   Aufbau: Token · Grundregeln · Zugänglichkeit · Leiste · Fuß · Rechtsseiten.
   Die Startseite und „Über uns“ bringen ihre eigenen Regeln inline mit und
   benutzen die Token von hier. */

/* ---------- Token ---------- */

:root {
  color-scheme: light dark;

  --page: #FFFFFF;
  --card: #FFFFFF;
  --ink: #000000;
  --ink-2: #4B4B50;
  --ink-3: #6E6E73;  /* 5,1:1 auf Weiß — Fußtext und Standzeilen bleiben AA */
  --rule: rgba(60, 60, 67, 0.14);
  --brand: #005FB0;
  --brand-soft: #E8F0FA;

  --c1: #005FB0;  /* innerer Kreis */
  --c2: #4F93E6;  /* mittlerer Kreis */
  --c3: #8FB6E8;  /* äußerer Kreis */
  --c4: #AEBDD0;  /* loser Kontakt */

  --on-c1: #FFFFFF;
  --on-c2: #00243F;
  --on-c4: #16202B;

  --pill-ink: #FFFFFF;
  --focus: #005FB0;

  /* Schatten unter Geräten und Fotos, und der kleine unter Beschriftungen. */
  --shadow: 0 30px 70px rgba(10, 30, 60, 0.16);
  --tag-shadow: 0 2px 12px rgba(10, 30, 60, 0.09);

  --radius-l: 28px;
  --radius-m: 18px;
  --measure: 34rem;

  /* Höhe der Leiste plus Luft: Sprungziele und fokussierte Elemente landen
     darunter, nicht dahinter (WCAG 2.4.11). */
  --topbar-offset: 4.75rem;
}

/* Dunkel ist Marineblau, nicht Schwarz: die Nachtfarbe der Marke, wie in
   Entwurf 04 (`kleiner-vorsprung.html` im Backup vom 15.09.2026). Die Rampe
   der Kreise bleibt dieselbe wie dort. Kontraste auf #07131F: Text 15,7:1,
   Nebentext 8,5:1, Fußtext 7,0:1, Akzent 11:1. */
@media (prefers-color-scheme: dark) {
  :root {
    --page: #07131F;
    --card: #0E1E2F;
    --ink: #F4F7FB;
    --ink-2: #9FB0C6;
    --ink-3: #8FA0B4;
    --rule: rgba(160, 190, 220, 0.18);
    --brand: #A5C8FF;
    --brand-soft: #0F2640;

    --c1: #A5C8FF;
    --c2: #6FAEFF;
    --c3: #3B77B6;
    --c4: #62717F;

    --on-c1: #003060;
    --on-c2: #00243F;
    --on-c4: #FFFFFF;

    --pill-ink: #002647;
    --focus: #A5C8FF;

    --shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    --tag-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Grundregeln ---------- */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", system-ui, sans-serif;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
  font-weight: 700;
}

h1 { font-size: clamp(2.35rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

figure { margin: 0; }

section { padding: 5.5rem 0; }

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.narrow { width: min(100% - 2.5rem, 44rem); margin-inline: auto; }

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: var(--measure);
}

/* Kleine Vorzeile über einer Überschrift: „Über uns“, die Ordnungszahlen der
   Abschnitte. Wer Fließtext-Regeln auf `p` setzt, nimmt sie mit
   `:not(.eyebrow)` aus, sonst gewinnt die spätere, spezifischere Regel. */
.eyebrow {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
}

/* Die Pille ist kein Link — die App ist noch nicht da. */
.pill-primary {
  background: var(--brand);
  color: var(--pill-ink);
  cursor: default;
}

/* ---------- Zugänglichkeit ---------- */

/* Sichtbarer Fokus für Tastatur und Schaltergeräte; Mausklicks lösen ihn
   nicht aus. Der Versatz hält den Ring vom Text weg, damit er auf jedem
   Hintergrund als Ring lesbar bleibt. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sprungziele bekommen programmatisch den Fokus, sind aber keine
   Bedienelemente — dort kein Ring. */
main:focus,
[tabindex="-1"]:focus { outline: none; }

/* Sprunglink: erstes Element der Seite, sichtbar nur mit Fokus. */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--pill-ink);
  border: 1px solid transparent; /* bekommt im Kontrastmodus eine Farbe */
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Nur für Vorleseprogramme. Die Leiste versteckt ihren Markennamen bei sehr
   schmalen Fenstern ebenso, siehe .topbar .brand span. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Sprungziele und alles Fokussierbare landen unter der klebenden Leiste,
   nicht dahinter. Das Skript liest denselben Wert. */
main,
main * { scroll-margin-top: var(--topbar-offset); }

/* Wer weniger Bewegung wünscht, bekommt keine. Das Gleiten zu Ankern
   prüft dieselbe Einstellung im Skript. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* In erzwungenen Farbschemata (Windows-Kontrastmodus) fällt jede
   Hintergrundfarbe weg; ein Rand hält Pille und Plaketten sichtbar. */
@media (forced-colors: active) {
  .pill,
  .skip-link { border-color: CanvasText; }
}

/* ---------- Leiste ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }

/* Die Leiste trägt „Startseite“, „Über uns“ und den Zustand: die Startseite
   ist ein Weg von oben nach unten, mehr Menü wäre Möblierung. Beide Punkte
   bleiben auf jeder Breite sichtbar; die Rechtsseiten sind aus dem Fuß
   erreichbar. */
.topnav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
  font-size: 15px;
}
.topnav a {
  color: var(--ink-2);
  padding: 0.4rem 0.1rem; /* Zielgröße ≥ 24 px (WCAG 2.5.8) */
  white-space: nowrap;
}
.topnav a:hover { color: var(--ink); text-decoration: underline; }
.topnav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.topbar-pill {
  padding: 0.45rem 1.05rem;
  font-size: 14px;
}

/* Mit Navigation davor schiebt die Navigation nach rechts, nicht die Pille. */
.topnav + .topbar-pill { margin-left: 0; }

/* Auf schmalen Fenstern weicht zuerst die Pille — sie ist Zustand, kein Weg,
   und steht am Seitenende noch einmal —, dann rücken die Punkte enger, und
   auf den schmalsten Telefonen bleibt von der Marke nur das Zeichen; der
   Name steht für Vorleseprogramme weiter im Link. Geprüft bei 320, 360 und
   375 px: die Leiste bleibt einzeilig. */
@media (max-width: 600px) {
  .topbar-pill { display: none; }
}

@media (max-width: 400px) {
  .topbar .wrap { gap: 0.9rem; }
  .topnav { gap: 1rem; font-size: 14px; }
  .brand { font-size: 16px; }
}

@media (max-width: 345px) {
  /* Gleiche Technik wie .visually-hidden, wegen der Media-Query eigene Regel. */
  .topbar .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- Fuß ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 4rem;
  font-size: 15px;
  color: var(--ink-3);
}

/* Drei Spalten, die mittlere bleibt leer: Marke und Satz links, „Rechtliches“
   in der dritten Spalte — dort stand bis zum 17.09.2026 eine dritte Liste mit
   Sprungzielen, die die Leiste inzwischen abdeckt. */
footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

footer .cols nav { grid-column: 3; }

@media (max-width: 720px) {
  footer .cols { grid-template-columns: 1fr; gap: 1.5rem; }
  footer .cols nav { grid-column: auto; }
}

footer .brand { margin-bottom: 0.8rem; }

footer .claim { margin: 0; max-width: 24rem; }

/* Blocksatz mit Trennung, wie der Fließtext der Startseite — auf allen
   Seiten gleich, damit derselbe Fuß nicht anders umbricht. */
footer .claim,
.legal-note p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Der Spaltentitel ist eine Überschrift zweiter Ebene: unter der h1 der
   Seite, gleichrangig mit den Abschnitten davor. Klein gesetzt, aber in
   der Gliederung an ihrem Platz. */
footer h2 {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 0.7rem;
  font-weight: 600;
}

footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 0.35rem; }
footer a { color: var(--ink-2); display: inline-block; padding: 0.15rem 0; }

.legal-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
}

.legal-note p + p { margin-top: 0.8rem; }

/* ---------- Rechtsseiten ---------- */

.doc { padding: 3.5rem 0 5rem; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 0.6rem; }
.doc .stand { color: var(--ink-3); font-size: 15px; margin-bottom: 2.5rem; }
.doc h2 {
  font-size: 1.4rem;
  margin: 2.8rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.doc p, .doc li { color: var(--ink-2); }

/* Lange Wörter („Datenschutz-Grundverordnung“, `FileProtectionType.complete`)
   sprengen sonst auf 320 px die Spalte: Trennung für den Text, Umbruch an
   jeder Stelle für Code. */
.doc h1, .doc h2, .doc h3, .doc p, .doc li {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
.doc code { overflow-wrap: anywhere; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.doc strong { color: var(--ink); }
.doc code { font-size: 0.92em; }

.callout {
  background: var(--brand-soft);
  border-radius: var(--radius-m);
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}
.callout p { color: var(--ink); margin: 0; }
.callout.pruefen { margin-top: 3rem; }
