/*
 * Öffentliche Seiten (/home, /datenschutz, /impressum).
 *
 * Bewusst eine eigene Datei neben style.css: Die Dienstplan-Ansicht ist eine
 * App hinter dem Login mit eigener Tab-Leiste und eigenem Farbschema-Umschalter.
 * Diese Seiten hier sind das Gegenteil – sie werden von fremden Leuten und von
 * den App-Store-Prüfern aufgerufen und sollen immer gleich aussehen.
 *
 * Farben und Typografie entsprechen der PDF-Funktionsübersicht.
 */

/* Inter, selbst gehostet (statt Google-Fonts-CDN): Diese Seite wirbt mit
   "keine Tracking-Bibliotheken" – ein CDN-Font-Request würde bei jedem
   Aufruf die IP an Google senden (in Deutschland dazu einschlägige
   Rechtsprechung). Die vier Schnitte liegen als eigene Dateien in
   static/fonts/, nur die tatsächlich genutzten Schriftschnitte. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/static/fonts/inter-400.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/static/fonts/inter-600.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/static/fonts/inter-700.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/static/fonts/inter-800.woff2") format("woff2");
}

:root {
    --navy: #104A8A;
    --navy-deep: #0A2E52;
    --navy-darker: #071F38;
    --cream: #F5EEE2;
    --bg: #F4F5F7;
    --ink: #14181D;
    --gray: #5A6270;
    --gray-soft: #6B7280;
    --line: #E3E5E9;
    --gold: #E8A94A;
    --akzent-weich: #E3ECF7;

    --schatten-sm: 0 1px 2px rgba(10, 46, 82, .06);
    --schatten-md: 0 10px 28px rgba(10, 46, 82, .10);
    --schatten-lg: 0 24px 56px rgba(7, 31, 56, .18);
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a:focus-visible, button:focus-visible, .knopf:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
    border-radius: 6px;
}
.hero :focus-visible { outline-color: #fff; }

.huelle { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Kopfleiste ---------- */

.kopf {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.kopf.kopf--gescrollt {
    border-color: var(--line);
    box-shadow: 0 8px 24px rgba(10, 46, 82, .06);
}
.kopf .huelle {
    display: flex; align-items: center; gap: 16px;
    height: 62px;
}
.kopf .marke {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none;
    letter-spacing: -.2px;
}
.kopf .marke img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.kopf nav { margin-left: auto; display: flex; gap: 26px; }
.kopf nav a {
    position: relative;
    color: var(--gray); text-decoration: none; font-size: 15px; font-weight: 500;
    padding: 4px 0;
    transition: color .2s ease;
}
.kopf nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.kopf nav a:hover, .kopf nav a.aktiv { color: var(--navy); }
.kopf nav a:hover::after, .kopf nav a.aktiv::after { transform: scaleX(1); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--navy-darker), var(--navy-deep) 60%, var(--navy));
    color: #fff;
    padding: 100px 0 108px 0;
    text-align: center;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(60px);
}
.hero::before {
    width: 520px; height: 520px; top: -220px; right: -140px;
    background: radial-gradient(circle, rgba(232, 169, 74, .22), transparent 70%);
}
.hero::after {
    width: 460px; height: 460px; bottom: -260px; left: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 70%);
}
.hero .huelle { position: relative; z-index: 1; }
.hero img.symbol {
    width: 96px; height: 96px; border-radius: 24px; display: block; margin: 0 auto 28px auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .12);
}
.hero h1 {
    font-size: 54px; line-height: 1.1; margin: 0 0 16px 0; letter-spacing: -.7px;
    font-weight: 800;
}
.hero p.unter { font-size: 21px; color: var(--cream); opacity: .95; margin: 0 auto; max-width: 640px; }
.hero .knoepfe { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.vertrauen-reihe {
    margin-top: 34px; display: flex; gap: 10px 16px; justify-content: center; flex-wrap: wrap;
}
.vertrauen {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    padding: 7px 14px; border-radius: 999px;
}
.vertrauen b { color: var(--gold); font-weight: 700; }

.knopf {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 26px; border-radius: 999px;
    font-size: 16px; font-weight: 600; text-decoration: none;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}
.knopf.hell { background: #fff; color: var(--navy-deep); box-shadow: 0 10px 26px rgba(4, 18, 33, .32); }
.knopf.hell:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(4, 18, 33, .38); }
.knopf.rand { border-color: rgba(255, 255, 255, .4); color: #fff; }
.knopf.rand:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.knopf:hover { filter: brightness(1.04); }
.knopf:active { transform: translateY(0); }

/* ---------- Abschnitte ---------- */

section.block { padding: 92px 0; }
section.block.grau { background: var(--bg); }

.augenbraue {
    font-size: 13px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase;
    color: var(--navy); margin: 0 0 12px 0;
}
.augenbraue::before {
    content: ""; display: inline-block; width: 16px; height: 2px;
    background: var(--gold); border-radius: 2px; margin-right: 9px; vertical-align: middle;
}
h2.titel { font-size: 38px; line-height: 1.15; margin: 0 0 14px 0; letter-spacing: -.5px; font-weight: 800; }
p.fuehrung { font-size: 18px; color: var(--gray); margin: 0; max-width: 720px; }

/* Kleines Hinweis-Abzeichen über einer Überschrift -- für Funktionen, die
   es noch nicht ins fertige Release geschafft haben ("Bald verfügbar"),
   oder um frisch veröffentlichte Funktionen kurz hervorzuheben ("Neu"). */
.abzeichen {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gold), #c98a34);
    color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .3px;
}
.abzeichen::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}

/* ---------- Merkmale (als Karten) ---------- */

.merkmale {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px; margin-top: 46px;
}
.merkmal {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.merkmal:hover {
    transform: translateY(-4px);
    box-shadow: var(--schatten-md);
    border-color: rgba(16, 74, 138, .18);
}
.merkmal h3 { font-size: 18px; margin: 0 0 6px 0; letter-spacing: -.1px; }
.merkmal p { font-size: 15px; color: var(--gray); margin: 0; }
.sinnbild {
    width: 44px; height: 44px; border-radius: 13px;
    background: linear-gradient(135deg, #EEF4FC, var(--akzent-weich));
    box-shadow: inset 0 0 0 1px rgba(16, 74, 138, .08);
    color: var(--navy); display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px; font-size: 20px; font-weight: 700;
}
.sinnbild svg { width: 22px; height: 22px; }

/* Zwei hervorgehobene Kacheln im Funktionsraster (RIS-Live-Daten, Gehalt) –
   sonst ist ein 12er-Raster aus lauter gleich großen Kacheln eher eine
   Liste als eine gestaltete Fläche. */
.merkmal--betont {
    background: linear-gradient(160deg, #fff, var(--akzent-weich) 260%);
    border-color: rgba(16, 74, 138, .16);
}
.merkmal--betont .sinnbild {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    color: #fff;
    box-shadow: 0 6px 16px rgba(16, 74, 138, .28);
}
.merkmal--betont .sinnbild svg { width: 24px; height: 24px; }

/* ---------- Wechselnde Bild/Text-Reihen ---------- */

.reihe {
    display: flex; align-items: center; gap: 64px; margin-top: 64px;
}
.reihe:first-of-type { margin-top: 46px; }
.reihe.gedreht { flex-direction: row-reverse; }
.reihe .text { flex: 1.05; }
.reihe .bild { flex: .95; display: flex; justify-content: center; position: relative; }
.reihe .bild::before {
    content: ""; position: absolute; top: 50%; left: 50%; z-index: 0;
    width: 320px; height: 320px; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(16, 74, 138, .09), transparent);
    filter: blur(6px); pointer-events: none;
}
.reihe h3 { font-size: 27px; margin: 0 0 12px 0; letter-spacing: -.3px; font-weight: 800; }
.reihe p { font-size: 16px; color: var(--gray); margin: 0 0 10px 0; }
.reihe ul { margin: 16px 0 0 0; padding: 0; list-style: none; }
.reihe li {
    font-size: 15px; color: var(--gray); padding-left: 26px; position: relative;
    margin-bottom: 10px;
}
.reihe li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 18px; height: 18px; border-radius: 6px;
    background: var(--akzent-weich); color: var(--navy);
    font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}

/* ---------- Mitteilungs-Karten ---------- */
/* Bewusst nachgezeichnet statt abfotografiert: Eine echte Mitteilung lässt
   sich nur auslösen, wenn draußen gerade wirklich ein Gleis wechselt.
   Wortlaut und Aufbau entsprechen dem, was die App sendet (siehe auch
   Dokumentation/quelle/deck.html, Folien "Benachrichtigungen" und
   "Nachrichten & Meldungen"). */
.meldungen { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin: 0 auto; position: relative; z-index: 1; }
.meldung {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start;
    box-shadow: var(--schatten-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.meldung:hover { transform: translateY(-3px); box-shadow: var(--schatten-md); }
.meldung .melde-symbol {
    width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(10, 46, 82, .18);
}
.meldung .melde-symbol img { width: 100%; height: 100%; display: block; }
.meldung .kopf {
    font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
    color: var(--gray-soft); margin: 0 0 3px 0;
}
.meldung h4 { font-size: 17px; font-weight: 700; margin: 0 0 3px 0; }
.meldung p { font-size: 15px; color: var(--gray); margin: 0; line-height: 1.35; }

/* ---------- Gerät ---------- */

.geraet {
    width: 258px; border-radius: 42px; padding: 10px; flex-shrink: 0;
    background: linear-gradient(155deg, #3a3b3e, #0a0a0b 55%);
    box-shadow: var(--schatten-lg);
    position: relative; z-index: 1;
    transition: transform .35s ease;
}
.reihe .geraet:hover { transform: translateY(-6px); }
.geraet .schirm {
    border-radius: 33px; overflow: hidden; background: #000; display: block;
}
.geraet img { display: block; width: 100%; }
.geraete-reihe { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.geraete-reihe .geraet { width: 218px; }

/* ---------- Bezug / Installation ---------- */

.bezug { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 40px; }
.karte {
    flex: 1 1 300px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.karte:hover {
    transform: translateY(-4px);
    box-shadow: var(--schatten-md);
    border-color: rgba(16, 74, 138, .18);
}
.karte h3 { margin: 0 0 6px 0; font-size: 19px; }
.karte p { margin: 0 0 18px 0; font-size: 15px; color: var(--gray); }
.karte .knopf {
    background: var(--navy); color: #fff; padding: 11px 20px; font-size: 15px;
    box-shadow: 0 8px 18px rgba(16, 74, 138, .22);
}
.karte .knopf:hover { box-shadow: 0 12px 26px rgba(16, 74, 138, .3); }

/* ---------- Kostenlos-Hinweis als Karte ---------- */

.kosten-karte {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 24px; padding: 48px 40px;
}

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

.fuss {
    background: var(--navy-darker); color: rgba(255, 255, 255, .62);
    padding: 44px 0; font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.fuss .huelle { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss .rechts { margin-left: auto; display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Fließtext-Seiten (Datenschutz, Impressum) ---------- */

.dokument { padding: 64px 0 96px 0; max-width: 820px; }
.dokument h1 { font-size: 40px; margin: 0 0 8px 0; letter-spacing: -.5px; font-weight: 800; }
.dokument .stand { color: var(--gray-soft); font-size: 14px; margin: 0 0 40px 0; }
.dokument h2 {
    font-size: 22px; margin: 46px 0 12px 0; padding-top: 24px;
    border-top: 1px solid var(--line);
}
.dokument h3 { font-size: 17px; margin: 26px 0 8px 0; }
.dokument p, .dokument li { font-size: 16px; color: #2C333D; }
.dokument ul { padding-left: 22px; }
.dokument li { margin-bottom: 7px; }
.dokument table {
    width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px;
}
.dokument th, .dokument td {
    text-align: left; vertical-align: top; padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
.dokument th { background: var(--bg); font-weight: 600; }
.dokument a { color: var(--navy); }
.hinweis {
    background: var(--akzent-weich); border-left: 4px solid var(--navy);
    padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 22px 0;
}
.hinweis p { margin: 0; font-size: 15px; }

/* ---------- Anleitung (Schritt-für-Schritt-Kapitel) ---------- */

.pfad {
    display: inline-block; background: var(--akzent-weich); color: var(--navy);
    font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px;
    margin: 4px 0 20px 0;
}
.warnung {
    background: #FDECEC; border-left: 4px solid #C0392B;
    padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 22px 0;
}
.warnung p { margin: 0; font-size: 15px; color: #7B241C; }
.pruefliste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pruefliste li { padding-left: 32px; position: relative; font-size: 16px; color: #2C333D; }
.pruefliste li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
    border: 2px solid var(--navy); border-radius: 5px;
}

/* ---------- Inhaltsverzeichnis ---------- */

.inhalt {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 16px; padding: 22px 26px; margin-bottom: 36px;
}
.inhalt strong { display: block; margin-bottom: 8px; font-size: 15px; }
.inhalt ol { margin: 0; padding-left: 20px; font-size: 15px; }
.inhalt li { margin-bottom: 4px; }

/* ---------- Sanftes Einblenden beim Scrollen ---------- */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.sichtbar {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .knopf, .karte, .merkmal, .meldung, .reihe .geraet { transition: none; }
}

/* ---------- Schmale Fenster ---------- */

@media (max-width: 820px) {
    .hero { padding: 64px 0 72px 0; }
    .hero h1 { font-size: 36px; }
    .hero p.unter { font-size: 18px; }
    h2.titel { font-size: 28px; }
    .reihe, .reihe.gedreht { flex-direction: column; gap: 36px; }
    .reihe .bild::before { display: none; }
    .kopf nav { gap: 14px; }
    .kopf nav a { font-size: 14px; }
    .dokument h1 { font-size: 30px; }
    .kosten-karte { padding: 36px 24px; }
}
