/* ============================================================================
   BusdriverMP - Design "Modernist"
   ----------------------------------------------------------------------------
   Grundlage ist der Entwurf aus Claude Design (Fassung "v3 dunkel"): dunkler
   Grund, Archivo in Grossbuchstaben, roter Akzent, keine runden Ecken und
   ueberall 2px starke Trennlinien statt Schatten. Die Flaechen werden nicht
   durch Abstaende getrennt, sondern durch Linien - daher die vielen Raster mit
   border-top/left und Zellen mit border-right/bottom.

   WICHTIG: Diese Datei traegt zwei Namensvorraete.
     1. Die Klassen des Entwurfs (.btn-primary, .tag, .band, .raster ...).
     2. Die alten Klassen der bestehenden Seiten (.wrap, .card h2, .userbar,
        .cols, .list, .mpkey ...). Live-Karte, Leitstelle und Adminliste sind
        unveraendert geblieben - sie bekommen ihr neues Aussehen allein hierueber.
   Wer eine alte Klasse entfernt, bricht diese Seiten. Also stehen lassen.
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap");

:root {
    /* --- Grundfarben (dunkel) --- */
    --color-bg:        #0d1017;
    --color-surface:   #141922;
    --color-text:      #eef1f5;
    --color-divider:   #242b36;
    --color-accent:    #ec3013;
    --color-accent-2:  #e15b47;

    --color-neutral-100: #141922;
    --color-neutral-200: #1a2029;
    --color-neutral-300: #242b36;
    --color-neutral-400: #333c49;
    --color-neutral-500: #4d5766;
    --color-neutral-600: #8d97a5;
    --color-neutral-700: #a3adba;
    --color-neutral-800: #c3cbd6;
    --color-neutral-900: #eef1f5;

    --color-accent-100: #2a1210;
    --color-accent-200: #3a1613;
    --color-accent-600: #dd2b0f;
    --color-accent-700: #ff6a52;
    --color-accent-800: #ff8b77;

    --font-heading: "Archivo", system-ui, "Segoe UI", sans-serif;
    --font-body:    "Archivo", system-ui, "Segoe UI", sans-serif;

    --breite: 1240px;    /* Inhaltsbreite des Entwurfs */
    --rand: 32px;        /* seitlicher Rand darin */

    /* Altnamen der bisherigen Seiten - auf die neuen Werte gelegt. */
    --bg: var(--color-bg);
    --bg-2: var(--color-bg);
    --card: var(--color-surface);
    --card-2: var(--color-surface);
    --line: var(--color-divider);
    --line-soft: var(--color-divider);
    --input: var(--color-neutral-200);
    --text: var(--color-text);
    --muted: var(--color-neutral-700);
    --accent: var(--color-accent);
    --accent-hot: var(--color-accent-700);
    --ok: #22c55e;
    --radius: 0px;
    --shadow: none;
}

/* Helles Farbschema. Der Entwurf ist dunkel; hell ist die Wahl des Besuchers (Knopf in der
   Kopfzeile, gemerkt im Browserspeicher). Umgestellt werden NUR die Farbwerte - Abstaende,
   Linienstaerken und Schriften bleiben, sonst waeren es zwei Entwuerfe statt einem.
   Die Werte stammen aus dem hellen Grundschema des Design-Systems (Modernist). */
html.theme-light {
    --color-bg:        #f3f2f2;
    --color-surface:   #eae9e9;
    --color-text:      #201e1d;
    --color-divider:   #cdc9c9;

    --color-neutral-100: #f8f4f4;
    --color-neutral-200: #eae7e7;
    --color-neutral-300: #d7d3d3;
    --color-neutral-400: #bab6b6;
    --color-neutral-500: #9b9797;
    --color-neutral-600: #7d7979;
    --color-neutral-700: #605d5d;
    --color-neutral-800: #444141;
    --color-neutral-900: #2d2b2b;

    --color-accent-100: #fff2ef;
    --color-accent-200: #ffe0d9;
    --color-accent-600: #dd2b0f;
    --color-accent-700: #ae1800;
    --color-accent-800: #7c1405;

    --ok: #15803d;
}
/* Im Hellen brauchen die Farbmeldungen dunkle Schrift statt heller. */
html.theme-light .ok { background: rgba(21,128,61,.10); border-color: rgba(21,128,61,.45); color: #14532d; }
html.theme-light .tag-ok  { border-color: #2c7a4b; background: #e2f4e8; color: #14532d; }
html.theme-light .tag-wip { border-color: #b98a1f; background: #fdf3dd; color: #6b4a05; }
html.theme-light .bustip { background: rgba(248,244,244,.97); }
html.theme-light .bustip .vsp.null { color: #201e1d; }
html.theme-light .show, html.theme-light .bildband { background: #d7d3d3; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    /* Kein Abstand fuer eine feste Leiste mehr: die Kopfzeile ist sticky und
       schiebt den Inhalt selbst - so gibt es keine Luecke ueber dem Hero. */
    padding-top: 0;
}

a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); text-decoration: underline; }
::selection { background: var(--color-accent-200); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
p { margin: 0 0 12px; }

/* ==========================================================================
   1. Kopfzeile
   ========================================================================== */

.topnav {
    position: sticky; top: 0; z-index: 20;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-divider);
}
.topnav-inner {
    max-width: var(--breite); margin: 0 auto;
    padding: 16px var(--rand);
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.topnav .logo {
    display: flex; align-items: baseline; gap: 12px;
    font-family: var(--font-heading); font-weight: 800; font-size: 25px;
    letter-spacing: -0.02em; text-transform: uppercase;
    color: var(--color-text); text-decoration: none;
}
.topnav .logo:hover { color: var(--color-text); text-decoration: none; }
.topnav .logo .wort span { color: var(--color-accent); }
.topnav .logo em {
    font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--color-neutral-700);
}

.navlinks { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.navlinks a {
    font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
    padding: 10px 11px; color: var(--color-text); text-decoration: none;
    white-space: nowrap; box-shadow: inset 0 -2px 0 transparent;
}
.navlinks a:hover { background: var(--color-accent-100); color: var(--color-text); text-decoration: none; }
.navlinks a.active {
    background: var(--color-accent-100); color: var(--color-accent-700);
    box-shadow: inset 0 -2px 0 var(--color-accent);
}
.navlinks .nav-user {
    font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--color-neutral-700); padding: 0 4px 0 14px;
    border-left: 2px solid var(--color-divider); margin-left: 8px;
}
.navlinks .nav-logout { color: var(--color-neutral-700); }
/* Sprachwahl: zwei Fahnen, die gewaehlte in Farbe und mit rotem Rahmen, die andere
   zurueckgenommen. Abgetrennt durch eine senkrechte Linie - es ist keine Seite, sondern
   eine Einstellung. */
.sprachwahl {
    display: flex; align-items: center; gap: 6px;
    padding-left: 10px; margin-left: 6px;
    border-left: 2px solid var(--color-divider);
}
.sprachwahl-knopf {
    display: flex; align-items: center; padding: 5px;
    border: 2px solid var(--color-divider); opacity: .55;
}
.sprachwahl-knopf:hover { border-color: var(--color-accent); opacity: 1; background: transparent; }
.sprachwahl-knopf.an { border-color: var(--color-accent); background: var(--color-accent-100); opacity: 1; }
.sprachwahl-knopf svg { display: block; }

/* Hinweis in der Fusszeile der englischen Fassung: die Rechtstexte sind deutsch. */
.seitenfuss .nurdeutsch { display: block; margin-bottom: 6px; color: var(--color-neutral-600); }

/* Untermenue unter FAQ. Rein ueber CSS: :hover fuer die Maus, :focus-within fuer die
   Tastatur - so ist es ohne Skript erreichbar. Es sitzt am rechten Rand seines Traegers,
   damit es am Fensterrand nicht hinauslaeuft. */
.nav-gruppe { position: relative; display: inline-flex; }
.nav-unter {
    position: absolute; top: 100%; right: 0; min-width: 210px; z-index: 30;
    display: none; flex-direction: column;
    background: var(--color-bg); border: 2px solid var(--color-divider);
}
.nav-gruppe:hover .nav-unter, .nav-gruppe:focus-within .nav-unter { display: flex; }
.nav-unter a { padding: 12px 16px; box-shadow: none; }
.nav-unter a:hover { background: var(--color-accent-100); color: var(--color-accent-700); }

/* Hell/Dunkel. Gleiche Hoehe wie die Fahnen daneben, damit die Zeile ruhig bleibt. */
.theme-knopf {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 28px; flex: none; margin-left: 8px; padding: 0;
    font-size: 15px; line-height: 1;
    background: transparent; color: var(--color-text);
    border: 2px solid var(--color-divider);
}
.theme-knopf:hover { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }

.navlinks .nav-cta {
    background: var(--color-accent); color: #fff;
    font-family: var(--font-heading); font-weight: 800; font-size: 13px;
    padding: 10px 15px; border: 2px solid var(--color-accent);
}
.navlinks .nav-cta:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); color: #fff; }

/* ==========================================================================
   2. Flaechen und Raster
   ========================================================================== */

/* .wrap ist der alte Name des Inhaltsblocks. Die schmale Fassung bleibt
   schmal (Formulare), die weite bekommt die Entwurfsbreite. */
.wrap { max-width: 560px; margin: 0 auto; padding: 64px var(--rand); }
.wrap.wide, .wrap.landing { max-width: var(--breite); }
/* Rechtstexte: seitenlanger Fliesstext braucht mehr als 560px, aber keine 1240px -
   ueber etwa 80 Zeichen je Zeile verliert man beim Lesen den Anschluss. */
.wrap.lesen { max-width: 860px; }

.band { border-bottom: 2px solid var(--color-divider); }
.band-inner { max-width: var(--breite); margin: 0 auto; padding: 72px var(--rand); }
.band-accent { background: var(--color-accent); color: #fff; }
.band-accent a { color: #fff; }
.band-flach { background: var(--color-neutral-100); }

.kicker {
    font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--color-accent); margin-bottom: 24px;
}
.sec-kopf { display: flex; align-items: baseline; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-kopf h2 {
    font-size: clamp(26px, 2.8vw, 40px); text-transform: uppercase;
    letter-spacing: -0.03em; margin: 0;
}
.sec-kopf .nr {
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--color-neutral-600);
}

/* Zellenraster mit durchgezogenen Linien: aussen oben/links, je Zelle rechts/unten. */
.raster {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    border-top: 2px solid var(--color-divider); border-left: 2px solid var(--color-divider);
}
.raster.breit { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.raster > * {
    padding: 28px;
    border-right: 2px solid var(--color-divider);
    border-bottom: 2px solid var(--color-divider);
}
.raster h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 10px; }
.raster p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--color-neutral-800); }
.raster .num {
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
    color: var(--color-accent); margin-bottom: 16px;
}

/* Zweispaltig im Verhaeltnis 7:5 wie im Entwurf. */
.zwei { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
.zwei-gleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }

/* Liste mit Trennlinien (Busse, Roadmap, Voraussetzungen). */
.linienliste { border-top: 2px solid var(--color-divider); }
.linienliste > * {
    display: flex; align-items: baseline; gap: 20px;
    padding: 18px 4px; border-bottom: 2px solid var(--color-divider);
}
.linienliste .name {
    font-family: var(--font-heading); font-size: 20px; font-weight: 700;
    letter-spacing: -0.01em; min-width: 220px;
}
.linienliste .note { font-size: 13px; color: var(--color-neutral-700); }
.linienliste .rechts { margin-left: auto; }

/* ==========================================================================
   3. Karten
   ========================================================================== */

.card {
    background: var(--color-surface);
    border: 2px solid var(--color-divider);
    border-radius: 0;
    padding: 26px 28px;
    margin-bottom: 16px;
    box-shadow: none;
    color: var(--color-text);
}
.card::before { content: none; }          /* der alte rote Balken entfaellt */
.card > h2 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin: 0 0 18px;
}
.card-kicker {
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--color-accent); margin-bottom: 12px;
}
.card-title { font-family: var(--font-heading); font-weight: 800; font-size: 19px; margin-bottom: 8px; }
.card-body { font-size: 14px; color: var(--color-neutral-800); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.grid .card { margin: 0; }

/* ==========================================================================
   4. Knoepfe
   ========================================================================== */

button, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: auto; margin-top: 0;
    font-family: var(--font-heading); font-weight: 800; font-size: 14px; line-height: 1.2;
    padding: 12px 18px;
    border: 2px solid transparent; border-radius: 0;
    background: var(--color-accent); color: #fff;
    cursor: pointer; text-align: center; text-decoration: none;
    box-shadow: none; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
button:hover, .btn:hover { background: var(--color-accent-600); color: #fff; text-decoration: none; transform: none; }
button:active, .btn:active { background: var(--color-accent-700); color: #fff; }
button:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); }

/* Zweitrangig und Geist: im Dunkeln beide mit Linie statt Flaeche. */
.btn.secondary, .btn-secondary, button.ghost, .btn.ghost, .btn-ghost {
    background: transparent; color: var(--color-text); border-color: var(--color-divider);
}
.btn.secondary:hover, .btn-secondary:hover, button.ghost:hover, .btn.ghost:hover, .btn-ghost:hover {
    background: var(--color-accent-100); border-color: var(--color-accent); color: var(--color-text);
}
/* Auf dem roten Band kehrt sich alles um. */
.band-accent .btn { background: #fff; color: #b3210b; border-color: #fff; }
.band-accent .btn:hover { background: var(--color-neutral-800); color: #b3210b; }
.band-accent .btn.hell { background: transparent; color: #fff; border-color: #fff; }
.band-accent .btn.hell:hover { background: rgba(255,255,255,.14); color: #fff; }

.btn-block, button.block { width: 100%; }
button.small { width: auto; margin: 0; padding: 8px 14px; font-size: 13px; }

.knopfreihe { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ==========================================================================
   5. Formulare
   ========================================================================== */

label {
    display: block;
    font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--color-neutral-700);
    margin: 18px 0 6px;
}
input[type=text], input[type=email], input[type=password] {
    width: 100%;
    background: var(--color-neutral-200);
    border: 2px solid var(--color-divider);
    border-radius: 0;
    color: var(--color-text);
    padding: 11px 13px;
    font: inherit; font-size: 15px;
    caret-color: var(--color-accent);
}
input::placeholder { color: var(--color-neutral-500); }
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus {
    outline: none; border-color: var(--color-accent); background: var(--color-neutral-200);
    box-shadow: none;
}
form button[type=submit] { margin-top: 24px; width: 100%; }

/* ==========================================================================
   6. Meldungen, Marken, Kleinteile
   ========================================================================== */

.error {
    background: var(--color-accent-100);
    border: 2px solid var(--color-accent);
    color: var(--color-accent-800);
    padding: 12px 15px; border-radius: 0; font-size: 14px; margin-bottom: 12px;
}
.ok {
    background: rgba(34,197,94,.10);
    border: 2px solid rgba(34,197,94,.55);
    color: #b6f0c8;
    padding: 12px 15px; border-radius: 0; font-size: 14px;
}

.tag {
    display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
    letter-spacing: 0.02em; padding: 4px 10px; border-radius: 0;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-700); }
.tag-outline { border: 2px solid var(--color-divider); color: var(--color-text); }
/* Kasten beim Zeigen auf einen Bus (Live-Karte und Leitstelle).
   Liegt UEBER der Karte, faengt aber keine Maus ab - sonst zappelte er beim Bewegen
   zwischen "unter dem Zeiger" und "daneben".
   Diese Regeln standen zuerst nur in dashboard.php. Die Leitstelle nutzt dieselbe
   Karte, bekam den Kasten aber ohne Stil: ohne "position: absolute" rutschte er unter
   die Karte, und die Verspaetungsfarben fehlten ganz. Deshalb stehen sie jetzt hier,
   bei der Karte selbst. */
.bustip {
    position: absolute; z-index: 5; pointer-events: none;
    min-width: 150px; padding: 9px 11px;
    background: rgba(11,18,28,.96); border: 2px solid var(--color-divider);
    font-size: 12px; line-height: 1.45; color: var(--color-neutral-800);
}
.bustip .wer { font-weight: 700; color: var(--color-text); font-size: 13px; margin-bottom: 4px; }
.bustip .zeile { display: flex; justify-content: space-between; gap: 14px; }
.bustip .k { color: var(--color-neutral-700); }
.bustip .v { font-weight: 600; color: var(--color-text); }
.bustip .vsp { font-weight: 700; }
.bustip .vsp.null  { color: #ffffff; }
.bustip .vsp.rot   { color: #dc2632; }
.bustip .vsp.blau  { color: #4aa3ff; }
.bustip .vsp.gruen { color: #2ec77b; }
.bustip .vsp.grau  { color: #8a94a6; font-weight: 400; }

/* Zustand eines Busses. Gruen und Gelb sind hier die einzigen Farben ausserhalb der
   Palette - "laeuft" und "in Arbeit" muessen sich auf einen Blick unterscheiden, und
   zwei Rottoene nebeneinander taeten das nicht. */
.tag-ok  { border: 2px solid #2c7a4b; background: #10261a; color: #6ee7a0; }
.tag-wip { border: 2px solid #7a5a1e; background: #241c0d; color: #f0c469; }

/* Alter Name der Hero-Marke - jetzt eine schlichte Zeile. */
.pill {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--color-accent);
    background: transparent; border: 0; padding: 0; margin-bottom: 24px;
}

header.brand { text-align: left; margin-bottom: 30px; }
header.brand h1 {
    font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em;
    text-transform: uppercase; margin: 0; color: var(--color-text); text-shadow: none;
}
header.brand h1::first-letter { color: inherit; }
header.brand p {
    color: var(--color-neutral-700); margin: 8px 0 0;
    font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}

.muted, .text-muted { color: var(--color-neutral-700); }
.stamp { font-size: 12px; color: var(--color-neutral-700); font-weight: 400; letter-spacing: 0; text-transform: none; }

.mpkey {
    font-family: Consolas, "SF Mono", monospace;
    background: var(--color-neutral-200);
    border: 2px solid var(--color-divider);
    border-radius: 0; padding: 11px 13px;
    word-break: break-all; letter-spacing: 1px; color: var(--color-neutral-800);
}

.userbar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-bottom: 24px; padding: 12px 16px;
    font-size: 13px; color: var(--color-neutral-700);
    background: var(--color-surface);
    border: 2px solid var(--color-divider); border-radius: 0;
}
.userbar a { color: var(--color-accent-700); font-weight: 600; text-decoration: none; }

.foot {
    margin-top: 24px; font-size: 13px; color: var(--color-neutral-700); text-align: center;
}
.foot a { color: var(--color-neutral-700); text-decoration: none; }
.foot a:hover { color: var(--color-accent-700); }

/* ==========================================================================
   7. Fusszeile
   ========================================================================== */

.seitenfuss { border-top: 2px solid var(--color-divider); background: var(--color-bg); }
.seitenfuss-inner {
    max-width: var(--breite); margin: 0 auto; padding: 40px var(--rand);
    display: flex; gap: 32px; align-items: baseline; flex-wrap: wrap;
}
.seitenfuss .marke {
    font-family: var(--font-heading); font-weight: 800; font-size: 16px; text-transform: uppercase;
}
.seitenfuss .marke span { color: var(--color-accent); }
.seitenfuss .hinweis { font-size: 13px; color: var(--color-neutral-700); max-width: 52ch; }
.seitenfuss .links { margin-left: auto; font-size: 13px; }
.seitenfuss .links a { color: var(--color-neutral-700); }
.seitenfuss .links a:hover { color: var(--color-accent-700); }

/* ==========================================================================
   8. Bestehende Seiten: Live-Karte, Leitstelle, Rechtstexte
      (Markup unveraendert - nur das Aussehen kommt von hier.)
   ========================================================================== */

.cols { display: flex; flex-wrap: wrap; gap: 16px; }
.col { flex: 1 1 320px; }

.card .list { list-style: none; margin: 6px 0 0; padding: 0; }
.card .list li {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 14px; margin-bottom: 8px;
    background: var(--color-neutral-200);
    border: 2px solid var(--color-divider); border-radius: 0;
}
.card .list li .who { font-weight: 700; }
.row { display: flex; gap: 8px; margin-top: 8px; }
.row input[type=text] { flex: 1; }
.row button { width: auto; margin: 0; padding: 11px 18px; white-space: nowrap; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--color-neutral-700); padding: 10px 8px;
    border-bottom: 2px solid var(--color-divider);
}
.table td { padding: 10px 8px; border-bottom: 2px solid var(--color-divider); }
.table tbody tr:hover { background: var(--color-neutral-200); }

/* Rechtstexte: langer Fliesstext, deshalb weiter und ruhiger gesetzt. */
.terms h3 { margin: 26px 0 8px; font-size: 17px; }
.terms p, .terms li { color: var(--color-neutral-800); font-size: 15px; line-height: 1.65; }
.terms .todo { color: var(--color-text); }

/* ==========================================================================
   9. Startseite: Bilderfolge
   ========================================================================== */

.show {
    position: relative; overflow: hidden; border-radius: 0;
    border: 2px solid var(--color-divider); box-shadow: none;
    margin: 0; background: #05080d;
}
.show .dia { display: none; }
.show .dia.an { display: block; }
.show .dia img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.show .kasten {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 20px;
    background: linear-gradient(180deg, transparent, rgba(5,8,13,.94) 60%);
}
.show .kasten h3 { margin: 0 0 4px; font-size: 20px; text-transform: uppercase; letter-spacing: -0.02em; }
.show .kasten p { margin: 0; color: var(--color-neutral-800); font-size: 14px; }
.show .pfeil {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 0; cursor: pointer; user-select: none;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    background: rgba(5,8,13,.6); color: var(--color-text);
    border: 2px solid var(--color-divider);
}
.show .pfeil:hover { border-color: var(--color-accent); }
.show .pfeil.l { left: 0; } .show .pfeil.r { right: 0; }
.punkte { display: flex; gap: 6px; margin: 16px 0 0; }
.punkte span { width: 24px; height: 4px; border-radius: 0; background: var(--color-divider); cursor: pointer; }
.punkte span.an { background: var(--color-accent); }

/* Alte Merkmalskacheln der Startseite - werden jetzt vom .raster ersetzt,
   bleiben aber formatiert, falls sie irgendwo noch stehen. */
.merkmale { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.merkmale .card { padding: 22px 24px; margin: 0; }

/* ==========================================================================
   10. Schmale Fenster
   ========================================================================== */

@media (max-width: 900px) {
    .zwei { grid-template-columns: 1fr; gap: 40px; }
    /* Die senkrechte Trennlinie des Hero ergibt einspaltig keinen Sinn. */
    .zwei > .trennt-rechts { border-right: 0 !important; border-bottom: 2px solid var(--color-divider); padding-right: 0 !important; }
    .zwei > .trennt-links { padding-left: 0 !important; }
}
@media (max-width: 620px) {
    :root { --rand: 20px; }
    .wrap { padding: 40px var(--rand); }
    .band-inner { padding: 48px var(--rand); }
    .topnav-inner { padding: 12px var(--rand); gap: 12px; }
    .navlinks { gap: 0; }
    .navlinks a { padding: 8px 8px; font-size: 13px; }
    .navlinks .nav-user { display: none; }
    .linienliste > * { flex-wrap: wrap; gap: 8px; }
    .linienliste .name { min-width: 0; font-size: 18px; }
    .seitenfuss-inner { padding: 28px var(--rand); gap: 16px; }
    .seitenfuss .links { margin-left: 0; }
}

/* ==========================================================================
   11. Startseite und Unterseiten (Entwurfsfassung vom 06.09.)
   ========================================================================== */

/* Kopfbereich: links Text, rechts die Kennzahlen, dazwischen eine Linie. */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hero-text { padding: 80px 48px 72px 0; border-right: 2px solid var(--color-divider); }
.hero-text h1 {
    font-size: clamp(38px, 5.2vw, 76px); line-height: 0.94; letter-spacing: -0.035em;
    text-transform: uppercase; margin: 0 0 28px;
}
.hero-text .lauf { font-size: 19px; line-height: 1.5; max-width: 50ch; margin: 0 0 40px; color: var(--color-neutral-800); }
.hero-zahlen { padding: 80px 0 72px 48px; }
.hero-zahlen > div { padding: 24px 0; border-bottom: 2px solid var(--color-divider); }
.hero-zahlen .wert {
    font-family: var(--font-heading); font-size: clamp(32px, 3vw, 44px);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.hero-zahlen .was {
    font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-neutral-700); margin-top: 8px;
}
.fussnote { font-size: 13px; color: var(--color-neutral-700); line-height: 1.6; }

/* Naechstes Discord-Event in der rechten Spalte des Kopfbereichs.
   Untereinander statt nebeneinander: Die Spalte ist nur fuenf Zwoelftel breit, eine Zeile wie
   beim Band unten wuerde dort umbrechen. Der rote Punkt und die Schriftgroessen bleiben
   dieselben wie beim Band - es soll erkennbar dasselbe Ding sein, nur anders gesetzt. */
.heldenevent { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.heldenevent .eventtitel { font-size: 24px; line-height: 1.15; }
.heldenevent .eventwann { font-weight: 600; color: var(--color-text); }
.heldenevent .eventmeta { line-height: 1.5; }
.heldenevent .btn { margin-top: 6px; }

/* Eventband: eine Zeile, die Teile durch Abstand getrennt, der Knopf ganz rechts. */
.eventband {
    padding-top: 24px; padding-bottom: 24px;
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.eventkicker {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--color-accent);
}
.eventkicker .punkt { width: 9px; height: 9px; background: var(--color-accent); display: inline-block; }
.eventtitel { font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.eventwann { font-size: 14px; color: var(--color-neutral-800); }
.eventmeta { font-size: 13px; color: var(--color-neutral-700); }
.eventband .btn { margin-left: auto; white-space: nowrap; }

/* Bildband: die Bilder liegen uebereinander und blenden ueber, die Punkte sitzen im Bild. */
.bildband { position: relative; height: 520px; overflow: hidden; background: var(--color-neutral-100); }
.bildband .dia { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; z-index: 1; }
.bildband .dia.an { opacity: 1; z-index: 2; }
.bildband .dia img { width: 100%; height: 100%; object-fit: cover; }
.bildband .punkte { position: absolute; left: 24px; bottom: 24px; z-index: 3; display: flex; gap: 8px; margin: 0; }
.bildband .punkte button {
    width: 28px; height: 6px; padding: 0; border: 0; border-radius: 0;
    background: rgba(255, 255, 255, .45); cursor: pointer;
}
.bildband .punkte button:hover { background: rgba(255, 255, 255, .7); }
.bildband .punkte button.an { background: var(--color-accent); }
/* Fotos drucken im Entwurf schwarzweiss. */
.grayscale { filter: grayscale(1) contrast(1.08); }

/* ---- Das Video als erstes Dia -------------------------------------------------------
   Bis zum Klick ist es eine KARTE und kein Rahmen: Ein eingebundener YouTube-Rahmen wuerde
   schon beim Aufrufen der Startseite Daten an Google senden, und diese Seite hat kein
   Einwilligungsbanner. Das Vorschaubild liegt oertlich unter assets/ - es von YouTube zu
   holen waere derselbe Aufruf, den die Karte gerade vermeidet.

   Das Video bleibt FARBIG, waehrend die Fotos schwarzweiss drucken (.grayscale). Das ist
   Absicht: Es ist das einzige Dia, auf dem es etwas zu tun gibt. */
.bildband .dia-video { background: #000; }
.bildband .dia-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-karte {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%;
    padding: 0; margin: 0; border: 0; cursor: pointer; text-align: left;
    background-color: #111; background-position: center; background-size: cover;
    background-repeat: no-repeat;
}
/* Der dunkle Verlauf am UNTEREN Rand - ohne ihn ist die Zeile auf einem hellen
   Vorschaubild nicht zu lesen, und das faellt erst bei einem anderen Video auf. Er beginnt
   erst auf halber Hoehe: Das Vorschaubild soll zu sehen sein und nicht abgedunkelt werden. */
.video-karte::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
}
.video-karte > * { position: relative; z-index: 1; }

.video-knopf {
    position: absolute; left: 50%; top: 50%; width: 84px; height: 84px;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: var(--color-accent); box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
    transition: transform 180ms ease;
}
/* Das Dreieck aus Rahmen gebaut - so braucht es keine zweite Datei und kein Zeichensatzglyph,
   das auf dem einen oder anderen Rechner fehlt. */
.video-knopf::before {
    content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
    border-style: solid; border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent #fff;
}
.video-karte:hover .video-knopf { transform: translate(-50%, -50%) scale(1.08); }

/* EINE ZEILE, KEIN BLOCK. Der Titel steht schon im Vorschaubild; hier stehen nur die
   Angaben, die es NICHT hergibt: dass es ein Video ist, von wem es stammt, und dass
   YouTube erst auf Klick laedt. Links unten sitzen die Punkte des Bandes - die Zeile
   beginnt deshalb erst dahinter. */
.video-leiste {
    display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
    position: absolute; left: 132px; right: 24px; bottom: 22px; color: #fff;
}
.video-kicker {
    font-family: var(--font-heading); font-size: 11px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-200);
}
.video-kanal { font-size: 13px; font-weight: 600; }
.video-hinweis {
    margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, .72); text-align: right;
}

/* Auf dem Telefon ist fuer eine Zeile kein Platz - sie rutscht ueber die Punkte und bricht um. */
@media (max-width: 720px) {
    .video-knopf { width: 62px; height: 62px; }
    .video-knopf::before { border-width: 11px 0 11px 19px; }
    .video-leiste { left: 18px; right: 18px; bottom: 54px; gap: 8px; }
    .video-hinweis { margin-left: 0; text-align: left; flex-basis: 100%; }
}

/* Reiterleiste der drei Hilfeseiten. */
.hilfe-leiste { border-bottom: 2px solid var(--color-divider); background: var(--color-neutral-100); }
.hilfe-leiste-inner {
    max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand);
    display: flex; gap: 2px; flex-wrap: wrap;
}
.hilfe-leiste a {
    font-size: 14px; font-weight: 600; padding: 14px 16px;
    color: var(--color-text); box-shadow: inset 0 -2px 0 transparent; white-space: nowrap;
}
.hilfe-leiste a:hover { color: var(--color-accent-700); text-decoration: none; }
.hilfe-leiste a.an {
    background: var(--color-bg); color: var(--color-accent-700);
    box-shadow: inset 0 -2px 0 var(--color-accent);
}

/* Seitentitel und Vorspann der Unterseiten - bisher stand das als style="" in jeder Datei. */
.seitentitel {
    font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.035em;
    text-transform: uppercase; margin: 0 0 16px;
}
.seitentext { font-size: 18px; color: var(--color-neutral-800); max-width: 62ch; margin: 0 0 56px; }

/* Busseite: Gruppen zum Aufklappen, gebaut wie die Fragen der FAQ. */
.busgruppen { border-top: 2px solid var(--color-divider); }
.busgruppe { border-bottom: 2px solid var(--color-divider); }
.busgruppe > summary {
    display: flex; align-items: baseline; gap: 14px; padding: 22px 0;
    cursor: pointer; list-style: none;
    font-family: var(--font-heading); font-size: 24px; font-weight: 800;
    letter-spacing: -0.02em; text-transform: uppercase;
}
.busgruppe > summary::-webkit-details-marker { display: none; }
.busgruppe > summary:hover, .busgruppe[open] > summary { color: var(--color-accent-700); }
.busgruppe .zeichen {
    font-size: 22px; font-weight: 400; color: var(--color-accent);
    transition: transform 140ms ease; flex: none;
}
.busgruppe[open] .zeichen { transform: rotate(45deg); }
.busgruppe .zusammen {
    margin-left: auto; font-family: var(--font-body);
    font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--color-neutral-700);
}
.busgruppe .busse { padding: 0 0 20px 34px; }
.busgruppe .bus {
    display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
    padding: 14px 0; border-top: 2px solid var(--color-neutral-300);
}
.busgruppe .bus .name {
    font-family: var(--font-heading); font-size: 20px; font-weight: 700;
    letter-spacing: -0.01em; min-width: 260px;
}
.busgruppe .bus .note { font-size: 13px; color: var(--color-neutral-700); }
/* WAS AN EINEM BUS NOCH FEHLT (21.09.2026). In der Akzentfarbe und mit Rahmen, damit es
   neben der grauen Bauart auffaellt - aber KLEIN und ohne Flaeche: Der Bus ist fahrbar, es
   fehlt ihm nur etwas. Eine rote Flaeche wuerde ihn wie "geht nicht" aussehen lassen, und
   genau das stimmt ja nicht. */
.busgruppe .bus .mangel {
    font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
    color: var(--color-accent); border: 2px solid var(--color-accent);
    padding: 2px 8px; white-space: nowrap;
}
.busgruppe .bus .tag { margin-left: auto; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-text { padding: 56px 0 40px; border-right: 0; border-bottom: 2px solid var(--color-divider); }
    .hero-zahlen { padding: 0 0 48px; }
    .bildband { height: 360px; }
}
@media (max-width: 620px) {
    .eventband { gap: 14px; }
    .eventband .btn { margin-left: 0; }
    .bildband { height: 260px; }
    .busgruppe .bus .name { min-width: 0; font-size: 18px; }
    .busgruppe .busse { padding-left: 0; }
}


/* ===================================================================================
   NUTZERBLOCK IN DER KOPFZEILE
   Entwurf "BusdriverMP Website v3 dunkel". Kuerzel, Name und Stufe als Knopf; aufgeklappt
   Erfahrungsbalken, vier Kennzahlen und die Verweise.

   Aufklappen OHNE Skript, ueber :hover und :focus-within - dasselbe Verfahren wie beim
   FAQ-Untermenue nebenan. Damit ist es auch mit der Tastatur erreichbar, und es gibt keinen
   Zustand, der beim Seitenwechsel verlorengeht.
   =================================================================================== */
.nav-nutzer { position: relative; display: inline-flex; }

.nutzer-knopf {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;      /* er ist ein Verweis auf die Profilseite */
    padding: 4px 10px 4px 4px;
    background: transparent; color: var(--color-text);
    border: 2px solid var(--color-divider);
    font: inherit; cursor: pointer;
}
.nav-nutzer:hover .nutzer-knopf,
.nav-nutzer:focus-within .nutzer-knopf { border-color: var(--color-accent); }

.nutzer-kuerzel {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; flex: none;
    background: var(--color-accent); color: #fff;
    font-family: Archivo, var(--font-heading, inherit), sans-serif;
    font-size: 12px; font-weight: 800;
}
.nutzer-kuerzel.gross { width: 40px; height: 40px; font-size: 16px; }

.nutzer-name { font-size: 13px; font-weight: 600; }
.nutzer-stufe { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--color-accent-700); }

/* Die Tafel. Sichtbar wird sie nur beim Ueberfahren oder wenn etwas darin den Fokus hat. */
.nutzer-tafel {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 320px; z-index: 40;
    background: var(--color-bg); border: 2px solid var(--color-divider);
    visibility: hidden; opacity: 0;
}
.nav-nutzer:hover .nutzer-tafel,
.nav-nutzer:focus-within .nutzer-tafel { visibility: visible; opacity: 1; }

.nutzer-kopf { padding: 20px; border-bottom: 2px solid var(--color-divider); }
.nutzer-zeile { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.nutzer-vollname {
    display: block;
    font-family: Archivo, var(--font-heading, inherit), sans-serif;
    font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
}
.nutzer-rang { display: block; font-size: 12px; color: var(--color-neutral-700); }

.nutzer-xpzeile {
    display: flex; justify-content: space-between; margin-bottom: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--color-neutral-700);
}
.nutzer-balken { height: 8px; background: var(--color-neutral-300); }
.nutzer-balken > span { display: block; height: 100%; background: var(--color-accent); }
.nutzer-naechste { margin-top: 8px; font-size: 12px; color: var(--color-neutral-700); }

.nutzer-zahlen {
    display: grid; grid-template-columns: 1fr 1fr;
    border-bottom: 2px solid var(--color-divider);
}
.nutzer-zahlen > div {
    padding: 16px 20px;
    border-right: 2px solid var(--color-divider);
    border-bottom: 2px solid var(--color-divider);
}
/* Der Entwurf zeichnet auch aussen Linien; am Rand der Tafel liegen sie auf deren Rahmen und
   waeren doppelt. Deshalb rechts in der zweiten Spalte und unten in der letzten Reihe weg. */
.nutzer-zahlen > div:nth-child(2n) { border-right: 0; }
.nutzer-zahlen > div:nth-last-child(-n+2) { border-bottom: 0; }
.nutzer-zahlen .wert {
    display: block;
    font-family: Archivo, var(--font-heading, inherit), sans-serif;
    font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
}
.nutzer-zahlen .label {
    display: block; margin-top: 4px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--color-neutral-700);
}

.nutzer-wege { display: flex; flex-direction: column; }
.nutzer-wege a {
    padding: 13px 20px;
    font-size: 14px; font-weight: 600; color: var(--color-text);
}
.nutzer-wege a:hover { background: var(--color-accent-100); color: var(--color-accent-700); }
.nutzer-wege .nutzer-abmelden { color: var(--color-neutral-700); }

/* Schmale Fenster: Dort gibt es die Tafel gar nicht als Klappe, sondern nur die Wege.
   ==================================================================================
   ZWEI FEHLER AUS EINER WURZEL, gemeldet am 08.09.2026 mit dem Bild einer riesigen
   schwarzen Flaeche unter der Leiste:

   1. Die Tafel stand hier auf `position: static`, blieb aber `visibility: hidden`.
      Ein so verstecktes Element BELEGT SEINEN PLATZ WEITER - rund 400 Bildpunkte
      Leere zwischen Leiste und Seiteninhalt. `display: none` haette gefehlt.

   2. Aufgeklappt waere sie ohnehin nie: Ein Finger loest kein `:hover` aus, und
      `:focus-within` greift nicht, weil der Knopf ein VERWEIS ist - wer ihn antippt,
      landet auf der Profilseite, statt etwas aufzuklappen. Damit war "Abmelden" auf
      dem Handy nicht erreichbar; es steht nur in dieser Tafel.

   Deshalb hier kein Aufklappen, sondern: Kopf und Kennzahlen weg (Name und Stufe
   stehen schon im Knopf, alles Weitere auf der Profilseite), die drei Wege dafuer
   fest sichtbar unter dem Knopf. */
@media (max-width: 720px) {
    .nav-nutzer { display: block; }
    .nutzer-knopf { width: 100%; }
    .nutzer-tafel {
        position: static; width: 100%; border-width: 2px 0 0 0;
        visibility: visible; opacity: 1;      /* sonst bleibt die Leere stehen */
    }
    .nutzer-kopf, .nutzer-zahlen { display: none; }
}


/* ===================================================================================
   PROFILSEITE
   Entwurf "BusdriverMP Website v3 dunkel", zweite Fassung. Kopf mit Kuerzel und Namen,
   Kennzahlenraster, zwei Spalten (E-Mail, Passwort) und der Loeschbereich in Akzentrahmen.
   =================================================================================== */
.profil-seite { max-width: 1240px; margin: 0 auto; padding: 72px 32px; }

.profil-kopf { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.nutzer-kuerzel.riesig { width: 56px; height: 56px; font-size: 22px; }
.profil-kopf h1 {
    margin: 0;
    font-family: Archivo, var(--font-heading, inherit), sans-serif;
    font-size: clamp(32px, 4vw, 56px); font-weight: 800;
    letter-spacing: -0.035em; text-transform: uppercase;
}
.profil-unterzeile {
    margin: 0 0 48px; font-size: 18px; color: var(--color-neutral-700);
    max-width: 70ch; line-height: 1.5;
}

/* Das Raster fuellt sich selbst: vier Kennzahlen nebeneinander, auf schmalen Fenstern
   weniger. Linien oben und links am Raster, rechts und unten an jeder Zelle - so bleibt
   jede Zelle umrandet, ohne dass die Linien doppelt liegen. */
.profil-zahlen {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    border-top: 2px solid var(--color-divider);
    border-left: 2px solid var(--color-divider);
    margin-bottom: 64px;
}
.profil-zahlen > div {
    padding: 24px;
    border-right: 2px solid var(--color-divider);
    border-bottom: 2px solid var(--color-divider);
}
.profil-zahlen .wert {
    display: block; line-height: 1;
    font-family: Archivo, var(--font-heading, inherit), sans-serif;
    font-size: 34px; font-weight: 800; letter-spacing: -0.03em;
}
.profil-zahlen .label {
    display: block; margin-top: 8px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--color-neutral-700);
}

.profil-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.profil-spalten h2 {
    margin: 0 0 24px;
    font-family: Archivo, var(--font-heading, inherit), sans-serif;
    font-size: 15px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--color-neutral-700);
}
.profil-seite .feld { margin-bottom: 16px; }
.profil-seite .feld label {
    display: block; margin-bottom: 6px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--color-neutral-700);
}
.profil-seite .feld input {
    width: 100%; padding: 11px 12px;
    background: var(--color-bg); color: var(--color-text);
    border: 2px solid var(--color-divider); font: inherit; font-size: 15px;
}
.profil-seite .feld input:focus { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.profil-seite .feld input[readonly] { color: var(--color-neutral-700); }
.profil-notiz { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--color-neutral-700); }

/* Loeschbereich: Akzentrahmen, damit er sich vom Rest abhebt - hier wird etwas
   unwiderrufliches getan. */
.profil-loeschen { margin-top: 72px; border: 2px solid var(--color-accent); padding: 32px; }
.profil-loeschen h2 {
    margin: 0 0 12px;
    font-family: Archivo, var(--font-heading, inherit), sans-serif;
    font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
    text-transform: uppercase; color: var(--color-accent-700);
}
.profil-loeschen .warnung {
    margin: 0 0 20px; max-width: 70ch;
    font-size: 15px; line-height: 1.6; color: var(--color-neutral-700);
}
.loesch-bestaetigung { border: 2px solid var(--color-divider); padding: 20px; margin-bottom: 20px; }
.loesch-bestaetigung .bestaetigen {
    margin: 0 0 16px; max-width: 66ch;
    font-size: 15px; font-weight: 600; line-height: 1.6;
}
.loesch-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
    .profil-seite { padding: 40px 20px; }
    .profil-loeschen { padding: 20px; }
}


/* "Angemeldet bleiben" auf der Anmeldeseite. Kasten und Beschriftung in einer Zeile, damit
   auch der Text den Haken schaltet - das Label umschliesst beides. */
.merken-zeile { display: flex; align-items: center; gap: 9px; margin: 4px 0 18px; cursor: pointer; }
.merken-zeile input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--color-accent); }
.merken-zeile span { font-size: 14px; color: var(--color-neutral-700); }


/* Der Weg zur jeweils anderen Seite. Profil und Konto gehoeren zusammen, liegen aber
   bewusst getrennt: hier "wie fahre ich", dort "wie steht es um meinen Zugang". Ohne diesen
   Hinweis muesste man dafuer ins Menue zurueck. */
.profil-weiter { margin: 48px 0 0; font-size: 14px; }
.profil-weiter a { color: var(--color-neutral-700); text-decoration: none;
                   border-bottom: 2px solid var(--color-divider); padding-bottom: 2px; }
.profil-weiter a:hover, .profil-weiter a:focus-visible {
    color: var(--color-accent); border-color: var(--color-accent); }

/* Der Kontoteil haengt unter der Schluessel-Seite und braucht deren Luft nach oben nicht
   noch einmal - die Karten darueber haben schon welche. */
.konto-teil { padding-top: 0; }

/* Die letzten Fahrten mit ihrer Bewertung.
   Sieben Spalten sind fuer ein Handy zu viele, und Umbrechen macht sie unlesbar - deshalb
   rollt die Tabelle in ihrem eigenen Kasten waagerecht, statt die Seite mitzunehmen.
   Die Begruendung steht in einer eigenen Zeile unter der Fahrt: In einer achten Spalte
   waere sie der laengste Text der Tabelle und wuerde alles andere zusammendruecken. */
.fahrten { margin: 0 0 72px; }
.fahrten-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
                margin-bottom: 24px; }
.fahrten-kopf h2 { margin: 0; }
.fahrten-kopf span { font-size: 13px; color: var(--color-neutral-700); }
.fahrten-rolle { overflow-x: auto; }
.fahrten-tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.fahrten-tabelle th { text-align: left; font-size: 12px; letter-spacing: 0.1em;
                      text-transform: uppercase; color: var(--color-neutral-700);
                      font-weight: 700; padding: 0 16px 10px 0; }
.fahrten-tabelle td { padding: 14px 16px 14px 0; border-top: 2px solid var(--color-divider);
                      vertical-align: baseline; }
.fahrten-tabelle .eng { white-space: nowrap; }
.fahrten-tabelle .xp { text-align: right; padding-right: 0; font-weight: 700;
                       color: var(--color-accent-700, var(--color-accent)); }
/* Die Bewertung haengt an ihrer Fahrt - deshalb ohne eigene Trennlinie darueber. */
.fahrten-tabelle tr.grund td { border-top: 0; padding: 0 0 14px; font-size: 13px;
                               color: var(--color-neutral-700); }

/* Wann zuletzt gerechnet wurde und wann wieder - unter der Kopfzeile der Profilseite. */
.profil-lauf { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: -32px 0 40px;
               font-size: 13px; color: var(--color-neutral-700); }
