/* =========================================================================
   Submit One – Willkommensseite
   Ein Stylesheet, keine Abhängigkeiten. Dieselbe Farbskala wie die Module,
   damit der Übergang von der Seite in die Anwendung nicht auffällt.
   ========================================================================= */

:root {
    --v-50:  #f6f4ff;
    --v-100: #ece7fe;
    --v-200: #dbd2fd;
    --v-300: #c0affb;
    --v-400: #a184f7;
    --v-500: #8455f0;
    --v-600: #7132e3;
    --v-700: #5f22c4;
    --v-800: #4d1c9c;
    --v-900: #2f1160;

    --ink: #0b0a12;          /* der dunkle Grund des Auftakts */
    --ink-2: #171621;

    --bg: #ffffff;
    --bg-2: #f6f5fa;
    --line: #e3e1ee;

    --text: #16161f;
    --muted: #4d4d62;
    --subtle: #71718c;

    --gold: #d9a441;

    --radius: 14px;
    --radius-lg: 22px;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-brand: "Quicksand", var(--font);

    --ease: cubic-bezier(.32, .72, 0, 1);
    --wide: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Muss vor allen Regeln mit eigener display-Angabe stehen und stärker sein: Sonst
   überstimmt etwa .btn { display: inline-flex } das hidden-Attribut, und die
   Installieren-Schaltfläche steht da, bevor der Browser überhaupt anbietet zu
   installieren – ein Knopf, der nichts tut. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
img { max-width: 100%; display: block; }

/* ---------- Kopfleiste ----------
   Schmal, milchig, immer da. Sie soll die Seite nicht anführen, sondern
   nur den Weg zurück offen halten. */

.bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 52px;
    padding: 0 1.5rem;
    background: color-mix(in srgb, var(--ink) 82%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    color: #f3f1fa;
}

.bar-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-brand);
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: inherit;
    text-decoration: none;
}

.bar-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.bar-nav a {
    font-size: .8125rem;
    color: color-mix(in srgb, #f3f1fa 78%, transparent);
    text-decoration: none;
    transition: color .15s var(--ease);
}
.bar-nav a:hover { color: #fff; }

.bar-install {
    padding: .3125rem .875rem;
    border: 0;
    border-radius: 999px;
    background: var(--v-600);
    color: #fff;
    font: inherit;
    font-size: .8125rem;
    font-weight: 560;
    cursor: pointer;
    transition: background .15s var(--ease);
}
.bar-install:hover { background: var(--v-700); }

@media (max-width: 640px) {
    .bar-nav { display: none; }
    .bar-install { margin-left: auto; }
}

/* ---------- Auftakt ----------
   Eine Aussage, sonst nichts. Der dunkle Grund trägt die goldene Marke,
   wie das Zeichen selbst auf seinem dunklen Feld steht. */

.hero {
    background:
        radial-gradient(1100px 520px at 50% -10%, #2a1a55 0%, transparent 62%),
        var(--ink);
    color: #f4f2fb;
    padding: clamp(4rem, 11vh, 7.5rem) 1.5rem clamp(4.5rem, 12vh, 8rem);
    text-align: center;
}

.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-mark {
    margin: 0 auto 2rem;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    letter-spacing: -.035em;
}

.hero-lead {
    margin: 1.375rem auto 0;
    max-width: 34rem;
    font-size: clamp(1rem, 2.1vw, 1.1875rem);
    color: color-mix(in srgb, #f4f2fb 72%, transparent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 2.25rem;
}

.hero-note { margin-top: 1rem; font-size: .8125rem; color: color-mix(in srgb, #f4f2fb 58%, transparent); }

/* ---------- Schaltflächen ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6875rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: .9375rem;
    font-weight: 560;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: translateY(1px); }

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

.btn-ghost {
    background: transparent;
    border-color: color-mix(in srgb, #f4f2fb 34%, transparent);
    color: #f4f2fb;
}
.btn-ghost:hover { border-color: #f4f2fb; }

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

.section { max-width: var(--wide); margin: 0 auto; padding: clamp(3.5rem, 9vh, 6rem) 1.5rem; }
.band { max-width: none; background: var(--bg-2); border-block: 1px solid var(--line); }
.band > * { max-width: var(--wide); margin-inline: auto; }

/* Die Breite begrenzen die Zeilen selbst, nicht der Kopf – sonst zentriert ihn das
   Band mitsamt seiner engen Maximalbreite und er steht nicht mehr über den Kacheln. */
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { max-width: 20ch; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.section-head p { max-width: 34rem; margin-top: .75rem; color: var(--muted); font-size: 1.0625rem; }

/* ---------- Die drei Kacheln ----------
   Das Herz der Seite. Jede trägt ihre eigene Farbe, sonst sind sie gleich
   gebaut – drei Geschwister, keine Rangordnung. */

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
}

.tile {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 42%),
        var(--bg);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.tile:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 14%, transparent);
    transform: translateY(-2px);
}

.tile-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }

.tile-glyph {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}
.tile-glyph svg { width: 22px; height: 22px; }

.chip {
    margin-left: auto;
    padding: .1875rem .625rem;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 620;
    letter-spacing: .01em;
}
.chip.live { background: #e3f6ec; color: #0f7a4a; }
.chip.soon { background: var(--bg-2); color: var(--subtle); border: 1px solid var(--line); }

.tile h3 { font-size: 1.375rem; }
.tile-claim { margin-top: .1875rem; font-size: .8125rem; font-weight: 620; color: var(--accent); letter-spacing: .01em; }
.tile-text { margin-top: .875rem; color: var(--muted); font-size: .9375rem; }

.tile-points { margin: 1.125rem 0 0; padding: 0; list-style: none; }
.tile-points li {
    position: relative;
    padding-left: 1.25rem;
    font-size: .875rem;
    color: var(--muted);
}
.tile-points li + li { margin-top: .375rem; }
.tile-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5625rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.tile-cta {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: .9375rem;
    font-weight: 560;
    color: var(--accent);
    text-decoration: none;
}
.tile-cta::after { content: " →"; }
.tile-cta.disabled { color: var(--subtle); pointer-events: none; }
.tile-cta.disabled::after { content: ""; }

/* ---------- Die drei Stufen ----------
   Nummeriert, weil es eine Reihenfolge ist: Jede Stufe enthält die vorige. */

.stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    counter-reset: stufe;
}

.stage {
    position: relative;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
}

/* Die dritte Stufe ist die grösste – sie darf das auch zeigen. */
.stage:last-child { border-color: color-mix(in srgb, var(--v-600) 30%, var(--line)); }

.stage-step {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--v-600);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.stage h3 { font-size: 1.1875rem; }
.stage-who {
    margin-top: .1875rem;
    font-size: .75rem;
    font-weight: 620;
    color: var(--v-600);
    letter-spacing: .01em;
}
.stage > p:not(.stage-who) { margin-top: .875rem; color: var(--muted); font-size: .9375rem; }

.stage-list { margin: 1.125rem 0 0; padding: 0; list-style: none; }
.stage-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: .875rem;
    color: var(--muted);
}
.stage-list li + li { margin-top: .375rem; }
.stage-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5rem;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--v-600) 45%, transparent);
}

.stages-note {
    max-width: 46rem;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--muted);
    font-size: .9375rem;
}
.stages-note strong { color: var(--text); }

/* =========================================================================
   Die drei Ebenen
   ========================================================================= */

.ebenen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }

.ebene {
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
}
.ebene-num {
    position: absolute;
    top: -14px;
    left: 1.5rem;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--v-600);
    color: #fff;
    font-size: .8125rem;
    font-weight: 700;
}
.ebene h3 { margin-top: .375rem; font-size: 1.125rem; }
.ebene-sub { font-size: .75rem; font-weight: 620; color: var(--v-600); letter-spacing: .02em; margin-top: .125rem; }
.ebene > p:not(.ebene-sub) { margin-top: .875rem; color: var(--muted); font-size: .9375rem; }

/* =========================================================================
   Die Werkzeuge
   Dichter als die früheren Kacheln: Es sind viele, und sie werden mehr.
   ========================================================================= */

.wz { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }

.w {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
    color: inherit;
    text-decoration: none;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease);
}
.w h3 { margin-top: .875rem; font-size: 1.0625rem; }
.w > p { margin-top: .4375rem; color: var(--muted); font-size: .875rem; }

/* Nur was heute läuft, ist anklickbar – und sieht auch so aus. */
.w-live { border-color: color-mix(in srgb, var(--v-600) 40%, var(--line)); }
.w-live:hover {
    border-color: var(--v-600);
    box-shadow: 0 10px 34px color-mix(in srgb, var(--v-600) 16%, transparent);
    transform: translateY(-2px);
}
.w-mehr { margin-top: auto; padding-top: 1rem; font-size: .875rem; font-weight: 560; color: var(--v-600); }

.w-kopf { display: flex; align-items: center; gap: .625rem; }
.w-glyph {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--v-600) 11%, transparent);
    color: var(--v-600);
    flex: none;
}
.w-glyph svg { width: 19px; height: 19px; }
.w-kopf .chip { margin-left: auto; }

.chip.work { background: color-mix(in srgb, var(--v-600) 12%, transparent); color: var(--v-700); }
@media (prefers-color-scheme: dark) { .chip.work { color: var(--v-300); } }

/* Was noch nicht da ist, tritt zurück – ohne zu verschwinden. */
.w:not(.w-live) .w-glyph { background: var(--bg-2); color: var(--subtle); }
.w:not(.w-live) h3 { color: var(--muted); }

/* =========================================================================
   Die Verknüpfung: ein Gewerk, viele Sichten
   ========================================================================= */

.vk {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
}
@media (max-width: 720px) { .vk { grid-template-columns: 1fr; gap: 1.25rem; } }

.vk-mitte {
    display: grid;
    place-items: center;
    gap: .25rem;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--v-700), var(--v-500));
    color: #fff;
    text-align: center;
}
.vk-bkp { font-size: 1.5rem; font-weight: 680; letter-spacing: -.02em; }
.vk-name { font-size: .8125rem; opacity: .85; }

.vk-liste { display: flex; flex-direction: column; }
.vk-zeile {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
    padding: .625rem 0;
    align-items: baseline;
}
.vk-zeile + .vk-zeile { border-top: 1px solid var(--line); }
@media (max-width: 560px) { .vk-zeile { grid-template-columns: 1fr; gap: .125rem; } }

.vk-wo { font-size: .875rem; font-weight: 620; color: var(--v-600); }
.vk-was { font-size: .9375rem; color: var(--muted); }

/* =========================================================================
   Rollen
   ========================================================================= */

.rollen { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .75rem; }
.rolle {
    display: flex;
    flex-direction: column;
    gap: .1875rem;
    padding: .875rem 1.125rem;
    border-left: 3px solid var(--v-400);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--bg);
}
.rolle strong { font-size: .9375rem; font-weight: 620; }
.rolle span { font-size: .8125rem; color: var(--muted); }

/* ---------- Haltung ---------- */

.reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem 2.5rem;
}
.reasons h3 { font-size: 1.0625rem; }
.reasons p { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }

/* =========================================================================
   Programmseiten
   Eine Seite je Modul, gleich gebaut. Der Unterschied liegt allein in der
   Abstufung des Violetts – drei Geschwister, nicht drei Marken.
   ========================================================================= */

.p-hero {
    background:
        radial-gradient(900px 440px at 22% -20%, color-mix(in srgb, var(--accent) 42%, transparent) 0%, transparent 64%),
        var(--ink);
    color: #f4f2fb;
    padding: clamp(3rem, 8vh, 5rem) 1.5rem clamp(3.5rem, 9vh, 5.5rem);
}
.p-hero-inner { max-width: var(--wide); margin: 0 auto; }

.p-back {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .8125rem;
    color: color-mix(in srgb, #f4f2fb 62%, transparent);
    text-decoration: none;
}
.p-back:hover { color: #fff; }

.p-title { display: flex; align-items: center; gap: .875rem; margin-top: 1.75rem; }
.p-glyph {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 30%, transparent);
    color: #fff;
    flex: none;
}
.p-glyph svg { width: 27px; height: 27px; }

.p-hero h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
.p-claim { margin-top: .3125rem; font-size: .875rem; font-weight: 620; color: var(--v-300); letter-spacing: .02em; }

.p-lead {
    margin-top: 1.5rem;
    max-width: 40rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: color-mix(in srgb, #f4f2fb 74%, transparent);
}

.p-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; align-items: center; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Zwei Spalten: was dafür spricht, was dagegen. Nebeneinander, weil das Ehrliche
   nicht unten im Kleingedruckten stehen soll. */
.p-balance { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }

.p-col {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
}
.p-col.pro { border-color: color-mix(in srgb, var(--v-600) 32%, var(--line)); }

.p-col h3 { font-size: 1rem; margin-bottom: .875rem; }
.p-col ul { margin: 0; padding: 0; list-style: none; }
.p-col li {
    position: relative;
    padding-left: 1.5rem;
    font-size: .9375rem;
    color: var(--muted);
}
.p-col li + li { margin-top: .625rem; }
.p-col li::before {
    position: absolute;
    left: 0;
    top: -.0625rem;
    font-size: .9375rem;
    font-weight: 700;
}
.p-col.pro li::before { content: "+"; color: var(--v-600); }
.p-col.con li::before { content: "–"; color: var(--subtle); }

/* Die Anwendungsfälle: wer, und wozu. */
.p-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }

.p-case {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
}
.p-case-who {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--v-600);
}
.p-case h3 { margin-top: .5rem; font-size: 1.0625rem; }
.p-case p { margin-top: .625rem; color: var(--muted); font-size: .9375rem; }

/* Der Funktionsumfang, dicht gesetzt. */
.p-features { columns: 2; column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 700px) { .p-features { columns: 1; } }
.p-features li {
    break-inside: avoid;
    position: relative;
    padding-left: 1.375rem;
    margin-bottom: .625rem;
    font-size: .9375rem;
    color: var(--muted);
}
.p-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5rem;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--v-400);
}
.p-features strong { color: var(--text); font-weight: 600; }

/* Wie man damit arbeitet – drei Schritte, wie bei einem Dokument. */
.p-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem; }
.p-step-num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--v-600);
    color: var(--v-600);
    font-size: .8125rem;
    font-weight: 700;
    margin-bottom: .875rem;
}
.p-step h3 { font-size: 1rem; }
.p-step p { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }

.p-note {
    margin-top: 2rem;
    padding: 1.125rem 1.25rem;
    border-left: 3px solid var(--v-400);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--bg-2);
    color: var(--muted);
    font-size: .875rem;
}
.p-note strong { color: var(--text); }

/* =========================================================================
   Fahrplan-Streifen ganz oben
   Die wichtigste Aussage der Seite steht vor allem anderen: Es kostet nichts.
   ========================================================================= */

.streifen {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding: .5rem 1.25rem;
    background: linear-gradient(90deg, var(--v-700), var(--v-500));
    color: #fff;
    font-size: .8125rem;
    text-align: center;
}
.streifen strong { font-weight: 650; }
.streifen a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 560;
}
.streifen-punkt { opacity: .55; }
@media (max-width: 620px) { .streifen-punkt { display: none; } }

/* Die Leiste klebt unter dem Streifen, nicht am Fensterrand. */
.bar { top: 0; }

.bar-login {
    padding: .3125rem .875rem;
    border: 1px solid color-mix(in srgb, #f3f1fa 34%, transparent);
    border-radius: 999px;
    background: transparent;
    color: #f3f1fa;
    font: inherit;
    font-size: .8125rem;
    font-weight: 560;
    cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease);
}
.bar-login:hover { background: color-mix(in srgb, #f3f1fa 14%, transparent); border-color: #f3f1fa; }
.bar-install + .bar-login { margin-left: .5rem; }

/* =========================================================================
   Fahrplan als Zeitstrahl
   ========================================================================= */

.fahrplan { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.fp {
    position: relative;
    padding-top: 1.75rem;
    border-top: 2px solid var(--line);
}
.fp.jetzt { border-top-color: var(--v-600); }
.fp::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--line);
}
.fp.jetzt::before { background: var(--v-600); border-color: var(--v-600); }

.fp-zeit { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.fp.jetzt .fp-zeit { color: var(--v-600); }
.fp h3 { margin-top: .375rem; font-size: 1.0625rem; }
.fp p { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }

/* =========================================================================
   Zugang: Anmelden und Registrieren
   ========================================================================= */

.z-scrim {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(11, 10, 18, .62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-y: auto;
}

.z-box {
    position: relative;
    width: min(440px, 100%);
    margin: auto;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--bg);
    box-shadow: 0 24px 70px rgba(11, 10, 18, .45);
}

.z-schliessen {
    position: absolute;
    top: .875rem;
    right: .875rem;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--subtle);
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
}
.z-schliessen:hover { background: var(--bg-2); color: var(--text); }

.z-kopf { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.z-kopf img { border-radius: 9px; }
.z-kopf h2 { font-size: 1.25rem; }
.z-sub { margin-top: .125rem; font-size: .8125rem; color: var(--muted); }

.z-tabs { display: flex; gap: .25rem; margin-bottom: 1.25rem; padding: 3px; background: var(--bg-2); border-radius: 999px; }
.z-tabs button {
    flex: 1;
    padding: .4375rem .5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: .8125rem;
    font-weight: 560;
    cursor: pointer;
}
.z-tabs button.active { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(30, 24, 60, .12); }

.z-feld { display: block; margin-bottom: .875rem; }
.z-feld > span { display: block; margin-bottom: .3125rem; font-size: .8125rem; font-weight: 560; }
.z-feld em { font-style: normal; font-weight: 400; color: var(--subtle); }

.z-feld input, .z-feld select {
    width: 100%;
    padding: .5625rem .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: .9375rem;
}
.z-feld input:focus, .z-feld select:focus {
    outline: none;
    border-color: var(--v-600);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--v-600) 22%, transparent);
}

.z-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 420px) { .z-zwei { grid-template-columns: 1fr; gap: 0; } }

.z-fehler {
    margin-bottom: .875rem;
    padding: .5625rem .75rem;
    border-radius: var(--radius);
    background: #fdeaea;
    color: #a81f1f;
    font-size: .8125rem;
}
@media (prefers-color-scheme: dark) { .z-fehler { background: #3a1a1c; color: #f0837d; } }

.z-senden { width: 100%; }
.z-klein { margin-top: .875rem; font-size: .75rem; color: var(--subtle); text-align: center; }

/* =========================================================================
   Auswertung
   ========================================================================= */

.d-range { display: flex; gap: .375rem; margin-bottom: 1.5rem; }
.d-range a {
    padding: .375rem .875rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .8125rem;
    text-decoration: none;
}
.d-range a.active { background: var(--v-600); border-color: var(--v-600); color: #fff; font-weight: 560; }

.d-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.d-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.d-card-label { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.d-card-value { margin-top: .375rem; font-size: 2.25rem; font-weight: 640; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.d-card-hint { font-size: .75rem; color: var(--subtle); }

.d-panel { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); margin-bottom: 1.25rem; }
.d-panel h3 { font-size: 1rem; margin-bottom: 1rem; }
.d-leer { color: var(--subtle); font-size: .875rem; }

.d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.d-grid .d-panel { margin-bottom: 0; }

/* Der Verlauf als Balken – ohne Diagrammbibliothek. */
.d-chart { display: flex; align-items: flex-end; gap: 2px; height: 150px; }
.d-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 3px; }
.d-bar span {
    width: 100%;
    background: var(--v-500);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: background .12s var(--ease);
}
.d-bar:hover span { background: var(--v-700); }
.d-chart-axis { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .6875rem; color: var(--subtle); }

.d-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; align-items: center; gap: .625rem; padding: .3125rem 0; }
.d-row-name { font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-row-bar { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.d-row-bar i { display: block; height: 100%; background: var(--v-400); }
.d-row-num { font-size: .8125rem; font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); }

.d-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.d-table th {
    text-align: left;
    padding: .5rem .625rem;
    border-bottom: 1.5px solid var(--line);
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--subtle);
    white-space: nowrap;
}
.d-table td { padding: .5rem .625rem; border-bottom: 1px solid var(--line); }
.d-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.d-table a { color: var(--v-600); text-decoration: none; }
.d-table code, .d-leer code {
    padding: .0625rem .3125rem;
    border-radius: 4px;
    background: var(--bg-2);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: .9em;
}

/* Der Trichter: jede Stufe ein Balken, darüber wie viele der vorigen ankamen. */
.tr + .tr { margin-top: .875rem; }
.tr-kopf { display: flex; align-items: baseline; gap: .625rem; margin-bottom: .3125rem; }
.tr-name { font-size: .875rem; font-weight: 560; }
.tr-anteil { font-size: .75rem; color: var(--subtle); }
.tr-anteil.schwach { color: #c02626; font-weight: 600; }
@media (prefers-color-scheme: dark) { .tr-anteil.schwach { color: #f0837d; } }
.tr-zahl { margin-left: auto; font-size: .9375rem; font-weight: 640; font-variant-numeric: tabular-nums; }

.tr-balken { height: 26px; border-radius: var(--radius-sm); background: var(--bg-2); overflow: hidden; }
.tr-balken i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--v-600), var(--v-400));
    border-radius: var(--radius-sm);
    min-width: 2px;
}

/* Korrekturquote: die Farbe sagt, ob es ein Problem ist. */
.quote { padding: .125rem .4375rem; border-radius: 999px; font-weight: 620; font-size: .75rem; }
.quote.tief   { background: #e3f6ec; color: #0f7a4a; }
.quote.mittel { background: #fdf1dc; color: #9a6206; }
.quote.hoch   { background: #fdeaea; color: #c02626; }
@media (prefers-color-scheme: dark) {
    .quote.tief   { background: #10301f; color: #55c98e; }
    .quote.mittel { background: #322311; color: #e0ab54; }
    .quote.hoch   { background: #3a1a1c; color: #f0837d; }
}

/* ---------- Abschluss und Fuss ---------- */

.closing { text-align: center; }
.closing h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.closing p { margin: .75rem 0 2rem; color: var(--muted); font-size: 1.0625rem; }

.foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-brand);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--subtle);
}
.foot-sep { opacity: .5; }

/* ---------- Dunkles Systemthema ----------
   Wer sein Gerät dunkel gestellt hat, soll nicht geblendet werden. */

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #100f18;
        --bg-2: #171621;
        --line: #2c2940;
        --text: #eeecf6;
        --muted: #a9a4c2;
        --subtle: #7d78a0;
    }
    .chip.live { background: #10301f; color: #55c98e; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Beta: erreichbar, aber ausdrücklich noch nicht fertig. */
.chip.beta { background: var(--v-100); color: var(--v-700); border: 1px solid var(--v-300); }
@media (prefers-color-scheme: dark) { .chip.beta { background: #251c46; color: var(--v-300); border-color: #453473; } }

.w-beta { border-style: dashed; border-color: color-mix(in srgb, var(--v-600) 32%, var(--line)); }
.w-beta:hover {
    border-style: solid;
    border-color: var(--v-600);
    box-shadow: 0 10px 34px color-mix(in srgb, var(--v-600) 14%, transparent);
    transform: translateY(-2px);
}
.w-beta .w-glyph { background: color-mix(in srgb, var(--v-600) 11%, transparent); color: var(--v-600); }
.w-beta h3 { color: var(--text); }
/* =====================================================================
   Das Universum · Kern-Apps · Investoren
   Ergaenzung — verwendet nur bestehende Variablen, damit Hell und Dunkel
   ohne Zutun stimmen.
   ===================================================================== */

/* ---- Universum: die Mitte, umgeben von den Gruppen ---- */
.uni { display: grid; gap: 1rem; grid-template-columns: 1fr; }

.uni-gruppe {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1.125rem 1.25rem 1.25rem;
}
.uni-titel {
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--v-600); margin-bottom: .875rem;
}
.uni-pillen { display: flex; flex-wrap: wrap; gap: .4375rem; }
.uni-pille {
  display: inline-block; padding: .375rem .625rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-2); color: var(--muted);
  font-size: .78125rem; line-height: 1.25; font-weight: 500;
}

.uni-mitte {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--v-600), var(--v-800));
  color: #fff;
  box-shadow: 0 18px 48px -20px color-mix(in srgb, var(--v-700) 75%, transparent);
}
.uni-marke { font-family: var(--font-brand); font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
.uni-marke span { color: var(--v-200); }
.uni-mitte p { margin: 0; font-size: .875rem; color: color-mix(in srgb, #fff 78%, transparent); }
.uni-chip {
  margin-top: .375rem; padding: .3125rem .75rem; border-radius: 999px;
  background: color-mix(in srgb, #fff 18%, transparent);
  font-size: .75rem; font-weight: 620;
}

@media (min-width: 900px) {
  .uni { grid-template-columns: 1fr 1.1fr 1fr; align-items: stretch; }
  .uni-mitte { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

/* ---- Kern-Apps ---- */
.kern { display: grid; gap: 1.125rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.kern-app {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); padding: 1.375rem; text-decoration: none; color: inherit;
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
a.kern-app:hover { border-color: var(--v-400); transform: translateY(-2px); }
.kern-kopf { display: flex; align-items: center; gap: .875rem; margin-bottom: 1rem; }
.kern-glyph {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; color: #fff;
}
.kern-glyph svg { width: 22px; height: 22px; }
.kern-v { background: linear-gradient(150deg, var(--v-500), var(--v-700)); }
.kern-g { background: linear-gradient(150deg, #2fa36a, #17724a); }
.kern-o { background: linear-gradient(150deg, #e8952f, #c56a12); }
.kern-app h3 { margin: 0; font-size: 1.0625rem; }
.kern-claim { margin: .125rem 0 0; font-size: .8125rem; font-weight: 620; color: var(--v-600); }
.kern-g + div .kern-claim { color: #17724a; }
.kern-o + div .kern-claim { color: #c56a12; }
.kern-text { margin: 0; color: var(--muted); font-size: .9375rem; }
.kern-marken { display: flex; gap: .375rem; margin-top: 1.125rem; }
.kern-marken span {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--subtle); font-size: .8125rem;
}
.kern-bald { opacity: .82; }
.kern-status { position: absolute; top: 1rem; right: 1rem; }

/* ---- Investoren ---- */
.inv { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.inv-kachel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); padding: 1.25rem 1.375rem;
}
.inv-label {
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--v-600);
}
.inv-zahl { margin-top: .5rem; font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.inv-zahl-klein { font-size: 1.0625rem; line-height: 1.3; }
.inv-fuss { margin-top: .3125rem; font-size: .8125rem; color: var(--subtle); }
.inv-ch { background: linear-gradient(160deg, color-mix(in srgb, var(--v-600) 12%, var(--bg)), var(--bg)); }
.inv-flagge {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  background: #d52b1e; color: #fff; font-weight: 700; font-size: 1.125rem; line-height: 1;
}
.inv-argumente {
  display: grid; gap: 1.125rem; margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.inv-arg h3 { margin: 0 0 .5rem; font-size: 1rem; }
.inv-arg p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* =====================================================================
   Speichern: die Mutterdatei
   Der Vertrauensabschnitt. Bewusst kraeftiger gesetzt als der Rest.
   ===================================================================== */

.sp { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .sp { grid-template-columns: minmax(340px, 420px) 1fr; gap: 2.25rem; } }

/* ---- Die Datei ---- */
.sp-datei {
  border: 1px solid color-mix(in srgb, var(--v-600) 30%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 1.375rem;
  box-shadow: 0 14px 40px -24px color-mix(in srgb, var(--v-700) 70%, transparent);
}
.sp-datei-kopf { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.sp-glyph { font-size: 1.5rem; line-height: 1; }
.sp-datei-kopf strong { display: block; font-size: .9375rem; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.sp-datei-sub { font-size: .75rem; font-weight: 620; letter-spacing: .04em; text-transform: uppercase; color: var(--v-600); }

.sp-baum { margin: 1rem 0 0; padding: 0; list-style: none; font-size: .875rem; }
.sp-baum > li { padding: .5rem 0; }
.sp-ast { color: var(--subtle); font-family: ui-monospace, Consolas, monospace; margin-right: .25rem; }
.sp-baum b { font-weight: 620; }
.sp-baum em { display: block; margin: .1875rem 0 0 1.5rem; font-style: normal; font-size: .8125rem; color: var(--subtle); }
.sp-geteilt { border-left: 2px solid transparent; }
.sp-kern { background: color-mix(in srgb, var(--v-600) 7%, transparent); border-radius: 10px; padding: .625rem .75rem !important; margin: .25rem 0; }
.sp-marke {
  display: inline-block; margin: .4375rem 0 0 1.5rem; padding: .1875rem .5rem;
  border-radius: 999px; background: var(--v-600); color: #fff;
  font-size: .6875rem; font-weight: 700; letter-spacing: .02em;
}
.sp-module { margin: .5rem 0 0 1.5rem; padding: 0; list-style: none; }
.sp-module li { display: flex; align-items: center; gap: .5rem; padding: .3125rem 0; font-size: .875rem; }
.sp-module em { display: inline; margin: 0; font-style: normal; font-size: .75rem; color: var(--subtle); }
.sp-punkt { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.sp-p1 { background: #7132e3; } .sp-p2 { background: #0ea5e9; }
.sp-p3 { background: #0f7a4a; } .sp-p4 { background: #c8871f; }

/* ---- Die drei Aussagen ---- */
.sp-punkte { display: grid; gap: 1.25rem; }
.sp-satz { position: relative; padding-left: 3rem; }
.sp-nr {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; border: 1.5px solid var(--v-600);
  color: var(--v-600); font-weight: 700; font-size: .875rem;
}
.sp-satz h3 { margin: .25rem 0 .375rem; font-size: 1.0625rem; }
.sp-satz p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---- Die Reise eines Moduls ---- */
.sp-reise {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem;
  margin-top: 2rem; padding: 1.125rem;
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg);
}
.sp-schritt { flex: 1 1 190px; }
.sp-schritt-nr { color: var(--v-600); font-weight: 700; margin-right: .3125rem; }
.sp-schritt strong { font-size: .9375rem; }
.sp-schritt em { display: block; margin-top: .1875rem; font-style: normal; font-size: .8125rem; color: var(--subtle); }
.sp-pfeil { align-self: center; color: var(--v-400); font-size: 1.125rem; }
@media (max-width: 700px) { .sp-pfeil { display: none; } }

/* ---- Die vier Zusagen ---- */
.sp-garantien {
  display: grid; gap: 1rem; margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.sp-g {
  border-top: 2px solid var(--v-600); padding-top: .75rem;
  font-size: .875rem; color: var(--muted);
}
.sp-g strong { display: block; margin-bottom: .25rem; color: var(--text); font-size: .9375rem; }

/* Ueberschrift dieses Abschnitts darf hervorstechen. */
#speichern .section-head h2 em { font-style: normal; color: var(--v-600); }
