/* ==========================================================================
   B2D One – Design-System (Tokens aus design/DESIGN.md)
   Hell/Dunkel folgt dem Gerät; data-theme="hell"|"dunkel" am <html> übersteuert.
   Die Seitenleiste ist in beiden Varianten dunkel, die Anmeldeseite immer dunkel.
   ========================================================================== */

/* --- Schriften (lokal, variable woff2; Quelle und Lizenz: /fonts/QUELLEN.md) --- */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/jost-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/jost-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --- Tokens: Marke und Grundwerte ----------------------------------------- */
:root {
    --b2d-lila: #722E85;
    --b2d-lila-dunkel: #4F1E5E;
    --b2d-verlauf-start: #E00171;
    --b2d-verlauf-ende: #800180;
    --b2d-pink: #F58CC8;
    --b2d-pink-hell: #FFB4DC;
    --b2d-mint: #9AEDCA;
    --verlauf: linear-gradient(90deg, #E00171 0%, #800180 100%);
    --verlauf-avatar: linear-gradient(135deg, #E00171 0%, #800180 100%);

    --schrift-text: 'Jost', 'Century Gothic', system-ui, sans-serif;
    --schrift-titel: 'Cormorant Garamond', Georgia, serif;
    --schrift-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --radius-feld: 12px;
    --radius-nav: 10px;
    --radius-kachel: 16px;
    --radius-karte: 20px;
    --seitenleiste-breite: 248px;
    --fokus: #B44BD0;

    /* Seitenleiste: immer dunkel */
    --sl-bg: #0B0710;
    --sl-flaeche: #1A1120;
    --sl-aktiv: #241830;
    --sl-text: #F5EFF7;
    --sl-text-2: #BBAAC4;
    --sl-text-3: #907E9B;
    --sl-rahmen: rgba(255, 255, 255, 0.08);

    /* Variante B: Hell (Standard) */
    color-scheme: light;
    --bg: #F8F5F9;
    --flaeche: #FFFFFF;
    --flaeche-sanft: #EFE8F1;
    --flaeche-akzent: #F1E4F5;
    --flaeche-sanft-2: #EDE6F0;
    --rahmen: #E8E0EB;
    --rahmen-kraeftig: #DDD3E1;
    --text: #1F1524;
    --text-2: #5E5066;
    --text-3: #7A6B83;
    --link: #722E85;
    --link-hover: #4F1E5E;
    --violett: #9B2BB8;
    --feld-bg: #FFFFFF;
    --feld-rahmen: #DDD3E1;
    --feld-text: #1F1524;
    --chip-bg: #F1E4F5;
    --chip-text: #722E85;
    --knopf-sekundaer-bg: #FFFFFF;
    --pille-aktiv-text: #0F5C45;   --pille-aktiv-bg: #E1F5EC;
    --pille-pausiert-text: #7A4B00; --pille-pausiert-bg: #FFF0D2;
    --pille-probe-text: #9C1160;   --pille-probe-bg: #FBE3F1;
    --pille-neutral-text: #5E5066; --pille-neutral-bg: #EFEAF1;
    --erfolg: #0F5C45;  --erfolg-bg: #E1F5EC;
    --warnung: #7A4B00; --warnung-bg: #FFF0D2;
    --fehler: #A8103A;  --fehler-bg: #FBE3EA;
    --info: #4F1E5E;    --info-bg: #F1E4F5;
    --menue-bg: #FFFFFF;
    --menue-schatten: 0 12px 32px rgba(31, 21, 36, 0.14);
}

/* Variante A: Dunkel (Gerät) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="hell"]) {
        color-scheme: dark;
        --bg: #110A15;
        --flaeche: #1A1120;
        --flaeche-sanft: rgba(255, 255, 255, 0.06);
        --flaeche-akzent: #241830;
        --flaeche-sanft-2: rgba(255, 255, 255, 0.10);
        --rahmen: rgba(255, 255, 255, 0.08);
        --rahmen-kraeftig: rgba(255, 255, 255, 0.16);
        --text: #F5EFF7;
        --text-2: #BBAAC4;
        --text-3: #907E9B;
        --link: #F58CC8;
        --link-hover: #FFB4DC;
        --violett: #B44BD0;
        --feld-bg: rgba(255, 255, 255, 0.05);
        --feld-rahmen: rgba(255, 255, 255, 0.16);
        --feld-text: #F5EFF7;
        --chip-bg: rgba(224, 1, 113, 0.2);
        --chip-text: #FFB4DC;
        --knopf-sekundaer-bg: transparent;
        --pille-aktiv-text: #9AEDCA;   --pille-aktiv-bg: rgba(154, 237, 202, 0.12);
        --pille-pausiert-text: #FFC46B; --pille-pausiert-bg: rgba(255, 196, 107, 0.13);
        --pille-probe-text: #F58CC8;   --pille-probe-bg: rgba(245, 140, 200, 0.14);
        --pille-neutral-text: #BBAAC4; --pille-neutral-bg: rgba(255, 255, 255, 0.08);
        --erfolg: #9AEDCA;  --erfolg-bg: rgba(154, 237, 202, 0.12);
        --warnung: #FFC46B; --warnung-bg: rgba(255, 196, 107, 0.13);
        --fehler: #FF9DBA;  --fehler-bg: rgba(224, 1, 113, 0.16);
        --info: #FFB4DC;    --info-bg: rgba(224, 1, 113, 0.14);
        --menue-bg: #1A1120;
        --menue-schatten: 0 12px 32px rgba(0, 0, 0, 0.5);
    }
}

/* Variante A: Dunkel (Benutzerwahl oder Anmeldeseite) */
:root[data-theme="dunkel"] {
    color-scheme: dark;
    --bg: #110A15;
    --flaeche: #1A1120;
    --flaeche-sanft: rgba(255, 255, 255, 0.06);
    --flaeche-akzent: #241830;
    --flaeche-sanft-2: rgba(255, 255, 255, 0.10);
    --rahmen: rgba(255, 255, 255, 0.08);
    --rahmen-kraeftig: rgba(255, 255, 255, 0.16);
    --text: #F5EFF7;
    --text-2: #BBAAC4;
    --text-3: #907E9B;
    --link: #F58CC8;
    --link-hover: #FFB4DC;
    --violett: #B44BD0;
    --feld-bg: rgba(255, 255, 255, 0.05);
    --feld-rahmen: rgba(255, 255, 255, 0.16);
    --feld-text: #F5EFF7;
    --chip-bg: rgba(224, 1, 113, 0.2);
    --chip-text: #FFB4DC;
    --knopf-sekundaer-bg: transparent;
    --pille-aktiv-text: #9AEDCA;   --pille-aktiv-bg: rgba(154, 237, 202, 0.12);
    --pille-pausiert-text: #FFC46B; --pille-pausiert-bg: rgba(255, 196, 107, 0.13);
    --pille-probe-text: #F58CC8;   --pille-probe-bg: rgba(245, 140, 200, 0.14);
    --pille-neutral-text: #BBAAC4; --pille-neutral-bg: rgba(255, 255, 255, 0.08);
    --erfolg: #9AEDCA;  --erfolg-bg: rgba(154, 237, 202, 0.12);
    --warnung: #FFC46B; --warnung-bg: rgba(255, 196, 107, 0.13);
    --fehler: #FF9DBA;  --fehler-bg: rgba(224, 1, 113, 0.16);
    --info: #FFB4DC;    --info-bg: rgba(224, 1, 113, 0.14);
    --menue-bg: #1A1120;
    --menue-schatten: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* --- Grundlagen ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--schrift-text);
    font-size: 16px;
    line-height: 1.45;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { margin: 0; font-family: var(--schrift-titel); font-weight: 600; line-height: 1.05; }
p { margin: 0; }
img { max-width: 100%; }
button { font: inherit; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kennzeichnung { font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--b2d-pink); }
.kennzeichnung--gedaempft { color: var(--text-3); }
.seitentitel { font-size: 48px; }
.untertitel { font-size: 30px; }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.klein { font-size: 14px; }
.mittel { font-size: 15px; }
.fett { font-weight: 500; }
.mono { font-family: var(--schrift-mono); }
.zahl { font-variant-numeric: tabular-nums; }
.stapel { display: flex; flex-direction: column; gap: 16px; }
.stapel--eng { gap: 8px; }
.stapel--weit { gap: 24px; }
.reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reihe--zwischen { justify-content: space-between; }
.reihe--ende { justify-content: flex-end; }
.trenner { border-top: 1px solid var(--rahmen); }
.lesbar { max-width: 60ch; }

/* --- Anwendungs-Layout ----------------------------------------------------- */
.app { display: grid; grid-template-columns: var(--seitenleiste-breite) minmax(0, 1fr); min-height: 100vh; }

.seitenleiste {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 24px 16px;
    display: flex; flex-direction: column; gap: 28px;
    background: var(--sl-bg); color: var(--sl-text);
    border-right: 1px solid var(--sl-rahmen);
}
.seitenleiste__marke { display: flex; flex-direction: column; gap: 10px; padding: 4px 14px 0; }
.seitenleiste__logo { width: 128px; height: auto; display: block; }
.seitenleiste__marke .kennzeichnung { font-size: 12px; letter-spacing: 0.3em; }
.seitenleiste__fuss { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

.nav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__eintrag {
    display: flex; align-items: center; gap: 12px;
    min-height: 44px; padding: 0 14px;
    border-radius: var(--radius-nav);
    text-decoration: none; color: var(--sl-text-2);
}
.nav__eintrag:hover { color: var(--sl-text); background: rgba(255, 255, 255, 0.05); }
.nav__eintrag[aria-current="page"] { color: var(--sl-text); background: var(--sl-aktiv); font-weight: 500; }
.nav__eintrag[aria-current="page"] .symbol { color: var(--b2d-pink); }
.nav__eintrag--folgt, .nav__eintrag--folgt:hover { color: var(--sl-text-3); background: none; cursor: default; }
.nav__folgt {
    margin-left: auto; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--sl-text-3); border: 1px solid var(--sl-rahmen); border-radius: 10px; padding: 2px 8px;
}
.symbol { flex: 0 0 20px; width: 20px; height: 20px; }
.symbol--klein { flex-basis: 18px; width: 18px; height: 18px; }
.symbol--gross { flex-basis: 24px; width: 24px; height: 24px; }

.benutzer { position: relative; }
.benutzer__knopf {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 14px; border: 0; border-top: 1px solid var(--sl-rahmen); border-radius: 0;
    background: none; color: inherit; text-align: left; cursor: pointer;
}
.benutzer__knopf:hover { background: rgba(255, 255, 255, 0.04); }
.benutzer__text { min-width: 0; display: flex; flex-direction: column; }
.benutzer__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.benutzer__rolle { font-size: 14px; color: var(--sl-text-3); }
.benutzer__menue {
    position: absolute; left: 6px; right: 6px; bottom: calc(100% + 6px);
    padding: 6px; display: flex; flex-direction: column; gap: 2px;
    background: var(--sl-flaeche); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.benutzer__menue a, .benutzer__menue button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px;
    background: none; color: var(--sl-text); text-decoration: none; text-align: left; cursor: pointer;
}
.benutzer__menue a:hover, .benutzer__menue button:hover { background: var(--sl-aktiv); }
.avatar {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: #FFFFFF; background: var(--verlauf-avatar);
}
.avatar--klein { flex-basis: 36px; width: 36px; height: 36px; font-size: 13px; color: var(--chip-text); background: var(--chip-bg); }

.inhalt { padding: 28px 40px 48px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.inhalt--schmal { max-width: 920px; }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.titelblock { display: flex; flex-direction: column; gap: 6px; }

.mobilkopf { display: none; }
.abdunklung { display: none; }

@media (max-width: 899px) {
    .app { grid-template-columns: 1fr; }
    .mobilkopf {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px; position: sticky; top: 0; z-index: 20;
        background: var(--sl-bg); color: var(--sl-text); border-bottom: 1px solid var(--sl-rahmen);
    }
    .mobilkopf__logo { width: 96px; height: auto; display: block; }
    .mobilkopf__knopf {
        width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; background: none; color: var(--sl-text); cursor: pointer;
    }
    .seitenleiste {
        position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: min(300px, 86vw); z-index: 30;
        transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    }
    .seitenleiste.ist-offen { transform: none; }
    .abdunklung { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.5); }
    .inhalt { padding: 20px 16px 40px; gap: 22px; }
    .seitentitel { font-size: 38px; }
}

/* --- Karten, Kacheln, Listen ---------------------------------------------- */
.karte {
    padding: 24px 26px; min-width: 0;
    display: flex; flex-direction: column; gap: 16px;
    background: var(--flaeche); border: 1px solid var(--rahmen); border-radius: var(--radius-kachel);
}
.karte__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 16px; }
.karte__titel { font-size: 30px; }
.karte__text { color: var(--text-2); font-size: 15px; }
.karte--akzent { background: var(--flaeche-akzent); border-color: transparent; }
.leer { padding: 14px 0; border-top: 1px solid var(--rahmen); color: var(--text-3); font-size: 15px; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.kachel {
    padding: 20px 22px; display: flex; flex-direction: column; gap: 6px;
    background: var(--flaeche); border: 1px solid var(--rahmen); border-radius: var(--radius-kachel);
}
.kachel__titel { font-size: 15px; color: var(--text-2); }
.kachel__wert { font-size: 42px; font-weight: 500; line-height: 1.1; }
.kachel__wert--folgt { font-size: 24px; font-weight: 400; color: var(--text-3); line-height: 1.9; }
.kachel__hinweis { font-size: 14px; color: var(--text-3); }

.zweispaltig { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.zweispaltig > :first-child { flex: 3 1 440px; }
.zweispaltig > :last-child { flex: 2 1 320px; }

.zeile { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--rahmen); }
.zeile__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.zeile__neben { font-size: 14px; color: var(--text-2); }
.zaehler {
    flex: 0 0 44px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 15px; font-size: 15px; font-weight: 600; color: var(--chip-text); background: var(--chip-bg);
}

.definition { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 8px 16px; margin: 0; }
.definition dt { color: var(--text-2); font-size: 15px; }
.definition dd { margin: 0; }

/* --- Formulare ------------------------------------------------------------- */
.formular { display: flex; flex-direction: column; gap: 20px; }
.feld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feld__zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.feld__zeile a { font-size: 15px; }
.feld__label { font-size: 15px; font-weight: 500; color: var(--text-2); }
.feld__eingabe, .feld select, .feld textarea {
    width: 100%; height: 50px; padding: 0 16px;
    font-family: inherit; font-size: 17px; color: var(--feld-text);
    background: var(--feld-bg); border: 1px solid var(--feld-rahmen); border-radius: var(--radius-feld);
}
.feld textarea { height: auto; min-height: 120px; padding: 12px 16px; line-height: 1.45; }
.feld__eingabe:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--fokus); outline-offset: 1px; border-color: transparent; }
.feld__eingabe::placeholder { color: var(--text-3); opacity: 1; }
.feld__eingabe[readonly] { color: var(--text-2); background: var(--flaeche-sanft); }
.feld__eingabe[disabled] { opacity: 0.6; }
.feld--fehler .feld__eingabe { border-color: var(--fehler); }
.feld__fehler { font-size: 14px; color: var(--fehler); }
.feld__hilfe { font-size: 14px; color: var(--text-3); }
.feld--code .feld__eingabe { font-family: var(--schrift-mono); font-size: 24px; letter-spacing: 0.3em; text-align: center; height: 56px; }
.feld--kompakt .feld__eingabe { height: 46px; font-size: 16px; }
.formular__fehler { font-size: 15px; color: var(--fehler); }

.auswahl { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.auswahl input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--b2d-lila); }
.auswahl__text { display: flex; flex-direction: column; }
.auswahl__hinweis { font-size: 14px; color: var(--text-3); }
.auswahl-gruppe { display: flex; flex-direction: column; gap: 2px; }
.auswahl-gruppe--zeilen { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }

.kopierfeld { display: flex; gap: 8px; }
.kopierfeld .feld__eingabe { flex: 1 1 auto; min-width: 0; font-family: var(--schrift-mono); font-size: 14px; }

.suchfeld { position: relative; flex: 1 1 320px; max-width: 520px; display: flex; align-items: center; }
.suchfeld .symbol { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.suchfeld .feld__eingabe { height: 46px; padding-left: 44px; font-size: 16px; }

/* --- Knöpfe ---------------------------------------------------------------- */
.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 0 20px;
    border: 1px solid var(--rahmen-kraeftig); border-radius: var(--radius-feld);
    background: var(--knopf-sekundaer-bg); color: var(--text);
    font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.knopf:hover { color: var(--text); border-color: var(--text-3); }
.knopf--primaer { min-height: 50px; border: 0; background: var(--verlauf); color: #FFFFFF; font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.knopf--primaer:hover { color: #FFFFFF; filter: brightness(1.08); }
.knopf--gefaehrlich { border-color: var(--fehler); color: var(--fehler); background: transparent; }
.knopf--gefaehrlich:hover { color: var(--fehler); background: var(--fehler-bg); border-color: var(--fehler); }
.knopf--schlicht { border-color: transparent; background: transparent; color: var(--link); }
.knopf--schlicht:hover { color: var(--link-hover); border-color: transparent; background: var(--flaeche-sanft); }
.knopf--klein { min-height: 40px; padding: 0 14px; font-size: 15px; }
.knopf--block { width: 100%; }
.knopf[disabled], .knopf[aria-disabled="true"] { opacity: 0.5; cursor: default; pointer-events: none; }
.knopf--symbol { width: 46px; padding: 0; }

.chip {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 1px solid var(--rahmen-kraeftig); border-radius: 22px;
    background: var(--knopf-sekundaer-bg); color: var(--text-2); font-size: 15px; text-decoration: none; cursor: pointer;
}
.chip[aria-pressed="true"], .chip--aktiv { border-color: var(--link); background: var(--flaeche-akzent); color: var(--link-hover); font-weight: 500; }

/* --- Hinweise und Pillen ---------------------------------------------------- */
.hinweis { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.hinweis .symbol { margin-top: 1px; }
.hinweis--erfolg { color: var(--erfolg); background: var(--erfolg-bg); }
.hinweis--warnung { color: var(--warnung); background: var(--warnung-bg); }
.hinweis--fehler { color: var(--fehler); background: var(--fehler-bg); }
.hinweis--info { color: var(--info); background: var(--info-bg); }
.hinweis--schild { color: var(--text-2); background: none; padding: 0; }
.hinweis--schild .symbol { color: var(--b2d-mint); flex-basis: 22px; width: 22px; height: 22px; }

.pille {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
    border-radius: 14px; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.pille::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pille--aktiv { color: var(--pille-aktiv-text); background: var(--pille-aktiv-bg); }
.pille--pausiert { color: var(--pille-pausiert-text); background: var(--pille-pausiert-bg); }
.pille--probe { color: var(--pille-probe-text); background: var(--pille-probe-bg); }
.pille--neutral { color: var(--pille-neutral-text); background: var(--pille-neutral-bg); }

/* --- Tabellen -------------------------------------------------------------- */
.tabellen-karte { background: var(--flaeche); border: 1px solid var(--rahmen); border-radius: var(--radius-kachel); overflow: hidden; }
.tabellen-karte__scroll { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 16px; }
.tabelle th {
    text-align: left; padding: 14px 20px;
    font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); white-space: nowrap;
}
.tabelle td { padding: 12px 20px; border-top: 1px solid var(--rahmen); vertical-align: middle; }
.tabelle .rechts, .tabelle th.rechts { text-align: right; }
.tabelle .nowrap { white-space: nowrap; }
.tabelle a.zeile-link { color: var(--text); text-decoration: none; font-weight: 500; }
.tabelle a.zeile-link:hover { color: var(--link); }
.tabelle--breit { min-width: 860px; }
.tabelle__leer { padding: 28px 20px; color: var(--text-3); text-align: center; }
.seitenwechsel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.seitenwechsel ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* --- Matrix (Rollen × Rechte) ---------------------------------------------- */
.matrix th:first-child, .matrix td:first-child { position: sticky; left: 0; background: var(--flaeche); }
.matrix td.mitte, .matrix th.mitte { text-align: center; }
.matrix tr.bereich td { padding-top: 16px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); border-top: 0; }
.matrix input { width: 20px; height: 20px; accent-color: var(--b2d-lila); }

/* --- Gast-Layout (Anmeldung) ----------------------------------------------- */
.gast {
    position: relative; overflow: hidden; min-height: 100vh;
    display: flex; flex-wrap: wrap; align-items: stretch;
    color: #F5EFF7;
    background:
        radial-gradient(900px 620px at 88% 0%, rgba(128, 1, 128, 0.38), rgba(128, 1, 128, 0) 70%),
        radial-gradient(760px 520px at 0% 100%, rgba(224, 1, 113, 0.16), rgba(224, 1, 113, 0) 70%),
        #0B0710;
}
.gast__wellen { position: absolute; left: 0; bottom: 0; width: 100%; height: 340px; pointer-events: none; }
.gast__marke {
    position: relative; flex: 999 1 520px; min-width: 0;
    padding: 64px 80px; display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
}
.gast__logo { width: 190px; height: auto; display: block; }
.gast__titel { font-family: var(--schrift-titel); font-weight: 500; font-size: clamp(64px, 10vw, 120px); line-height: 0.92; letter-spacing: -0.01em; }
.gast__claim { max-width: 30rem; font-size: 20px; line-height: 1.5; color: #BBAAC4; }
.gast__adresse { font-size: 14px; color: #907E9B; }
.gast__bereich { position: relative; flex: 1 1 520px; min-width: 0; padding: 48px 56px; display: flex; align-items: center; justify-content: center; }
.anmeldekarte {
    width: 100%; max-width: 420px; padding: 40px;
    display: flex; flex-direction: column; gap: 24px;
    background: rgba(26, 17, 32, 0.86); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-karte);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.anmeldekarte--breit { max-width: 600px; }
.anmeldekarte__titel { font-size: 46px; }
.anmeldekarte__fuss { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; color: #BBAAC4; }
@media (max-width: 899px) {
    .gast__marke { padding: 36px 24px 8px; gap: 24px; }
    .gast__logo { width: 140px; }
    .gast__bereich { padding: 16px 16px 56px; }
    .anmeldekarte { padding: 28px 22px; }
    .anmeldekarte__titel { font-size: 38px; }
}

/* --- Zwei-Faktor ----------------------------------------------------------- */
.qr { display: inline-block; padding: 12px; background: #FFFFFF; border-radius: 12px; line-height: 0; }
.qr svg { display: block; width: 192px; height: 192px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.codes li {
    padding: 10px 12px; text-align: center;
    font-family: var(--schrift-mono); font-size: 15px; letter-spacing: 0.04em;
    background: var(--flaeche-sanft); border: 1px solid var(--rahmen); border-radius: 10px; user-select: all;
}
.schritte { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: schritt; }
.schritte > li { display: flex; gap: 14px; counter-increment: schritt; }
.schritte > li::before {
    content: counter(schritt); flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: #FFFFFF; background: var(--verlauf-avatar);
}
.schritte__inhalt { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 auto; }

/* --- Fehlerseiten ---------------------------------------------------------- */
.fehlercode { font-size: 13px; font-weight: 500; letter-spacing: 0.28em; color: #F58CC8; }
