/* GigAdmin-Webseite (gigadmin.de). Ein Farbsystem über Variablen, hell und dunkel.
   Formen: Knöpfe rund (999px), Karten und Bildschirme 16px, kleine Elemente 10px.
   Akzent: Koralle aus dem Logo, Schrift auf dem Akzent immer Nachtblau (Kontrast über 5:1). */

@font-face {
    font-family: "Geist";
    src: url("../schriften/Geist-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f7f8fb;
    --flaeche: #ffffff;
    --flaeche-2: #eef1f7;
    --text: #121831;
    --leise: #4f5873;
    --linie: #dfe3ee;
    --akzent: #f2603c;
    --akzent-text: #b8401c;
    --auf-akzent: #121831;
    --nacht: #1b2242;
    --nacht-2: #262f5a;
    --creme: #fff6ea;
    --schatten: 0 1px 2px rgb(18 24 49 / .06), 0 12px 32px -12px rgb(18 24 49 / .18);
    --schatten-gross: 0 2px 6px rgb(18 24 49 / .06), 0 40px 80px -30px rgb(18 24 49 / .35);
    --r-karte: 16px;
    --r-klein: 10px;
    --kopf-h: 68px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-thema="hell"]) {
        --bg: #0d1226;
        --flaeche: #141a33;
        --flaeche-2: #19203e;
        --text: #eef0f8;
        --leise: #a6aec8;
        --linie: #283056;
        --akzent-text: #ff8b68;
        --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
        --schatten-gross: 0 2px 6px rgb(0 0 0 / .3), 0 40px 80px -30px rgb(0 0 0 / .8);
        color-scheme: dark;
    }
}
:root[data-thema="dunkel"] {
    --bg: #0d1226;
    --flaeche: #141a33;
    --flaeche-2: #19203e;
    --text: #eef0f8;
    --leise: #a6aec8;
    --linie: #283056;
    --akzent-text: #ff8b68;
    --schatten: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
    --schatten-gross: 0 2px 6px rgb(0 0 0 / .3), 0 40px 80px -30px rgb(0 0 0 / .8);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px; line-height: 1.6; font-feature-settings: "ss01";
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent-text); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 650; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.18em; }

.rahmen { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.rahmen.schmal { max-width: 820px; }
@media (max-width: 640px) { .rahmen { padding: 0 16px; } }

.sprung { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--flaeche); color: var(--text); padding: 8px 14px; border-radius: var(--r-klein); }
.sprung:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Kopf ---------- */
.kopf {
    position: sticky; top: 0; z-index: 50; height: var(--kopf-h);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
}
.kopf.gescrollt { border-bottom-color: var(--linie); }
@media (prefers-reduced-transparency: reduce) { .kopf { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.kopf-innen { height: 100%; display: flex; align-items: center; gap: 24px; }
.marke { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.marke img { width: 36px; height: 36px; border-radius: 9px; }
.menue { display: flex; gap: 4px; margin-left: 12px; }
.menue a { color: var(--leise); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .15s, background-color .15s; }
.menue a:hover { color: var(--text); background: var(--flaeche-2); }
.kopf-aktionen { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.symbolknopf {
    width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px;
    border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); cursor: pointer; font: inherit;
}
.symbolknopf:hover { background: var(--flaeche-2); }
.symbolknopf .ic { width: 20px; height: 20px; }
.nur-dunkel { display: none; }
:root[data-thema="dunkel"] .nur-hell { display: none; }
:root[data-thema="dunkel"] .nur-dunkel { display: inline; }
@media (prefers-color-scheme: dark) {
    :root:not([data-thema="hell"]) .nur-hell { display: none; }
    :root:not([data-thema="hell"]) .nur-dunkel { display: inline; }
}
.menue-knopf { display: none; }
@media (max-width: 900px) {
    .menue-knopf { display: inline-grid; }
    .menue {
        position: absolute; top: var(--kopf-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
        padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--linie); box-shadow: var(--schatten);
        display: none;
    }
    .menue.offen { display: flex; }
    .menue a { padding: 12px; border-radius: var(--r-klein); font-size: 1.05rem; }
}
@media (max-width: 420px) { .kopf-aktionen .knopf-klein { display: none; } }

/* ---------- Knöpfe ---------- */
.knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
    min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s, background-color .2s;
}
.knopf:active { transform: translateY(1px) scale(.98); }
.knopf-haupt { background: var(--akzent); color: var(--auf-akzent); box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--akzent) 80%, transparent); }
.knopf-haupt:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--akzent) 90%, transparent); }
.knopf-zweit { background: var(--flaeche); color: var(--text); border-color: var(--linie); }
.knopf-zweit:hover { background: var(--flaeche-2); }
.knopf-leise { background: transparent; color: var(--text); }
.knopf-leise:hover { background: var(--flaeche-2); }
.knopf-klein { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopfreihe.mitte { justify-content: center; margin-top: 40px; }

/* ---------- Einstieg ---------- */
.held { padding: 56px 0 72px; overflow: hidden; }
.held-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.augenbraue { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--akzent-text); margin-bottom: 18px; }
.held h1 { font-size: clamp(2.4rem, 3.9vw, 3.4rem); letter-spacing: -0.035em; font-weight: 700; }
.held h1 span { display: block; }
.held-unter { margin-top: 22px; font-size: 1.15rem; color: var(--leise); max-width: 40ch; }
.held .knopfreihe { margin-top: 32px; }
.held-bild { position: relative; padding-bottom: 40px; }
.fenster { margin: 0; border-radius: var(--r-karte); overflow: hidden; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten-gross); }
.fenster-leiste { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--flaeche-2); border-bottom: 1px solid var(--linie); }
.fenster-leiste span { width: 10px; height: 10px; border-radius: 50%; background: var(--linie); }
.held-fenster { width: 118%; }
.telefon {
    margin: 0; border-radius: 30px; overflow: hidden; background: #0b0f1f; padding: 8px;
    box-shadow: var(--schatten-gross); border: 1px solid color-mix(in srgb, var(--linie) 60%, #000);
}
.telefon img { border-radius: 22px; }
.held-telefon { position: absolute; width: 26%; min-width: 150px; left: -6%; bottom: 0; }
@media (max-width: 1023px) {
    .held { padding-top: 32px; }
    .held-raster { grid-template-columns: 1fr; gap: 40px; }
    .held-fenster { width: 100%; }
    .held-telefon { left: auto; right: 4%; width: 30%; min-width: 120px; bottom: -8px; }
}
@media (max-width: 640px) {
    .held h1 { font-size: 2.35rem; }
    .held-unter { font-size: 1.05rem; }
    .held .knopf { flex: 1 1 100%; }
    .held-telefon { width: 34%; min-width: 0; }
}

/* ---------- Fakten ---------- */
.fakten { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.fakten-reihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fakt { display: flex; gap: 14px; align-items: flex-start; padding: 26px 20px; }
.fakt + .fakt { border-left: 1px solid var(--linie); }
.fakt .ic { width: 26px; height: 26px; color: var(--akzent-text); margin-top: 2px; }
.fakt strong { display: block; font-size: .98rem; font-weight: 600; }
.fakt span { display: block; color: var(--leise); font-size: .9rem; }
@media (max-width: 900px) {
    .fakten-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fakt:nth-child(3) { border-left: 0; }
    .fakt:nth-child(n+3) { border-top: 1px solid var(--linie); }
}
@media (max-width: 520px) {
    .fakten-reihe { grid-template-columns: 1fr; }
    .fakt + .fakt { border-left: 0; border-top: 1px solid var(--linie); }
    .fakt { padding: 18px 0; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 104px 0; }
.abschnitt-getoent { background: var(--flaeche-2); }
.kopfzeile { max-width: 680px; margin-bottom: 48px; }
.kopfzeile p { margin-top: 14px; color: var(--leise); font-size: 1.1rem; max-width: 60ch; }
.mitte-titel { text-align: center; margin-bottom: 36px; }
@media (max-width: 640px) { .abschnitt { padding: 72px 0; } .kopfzeile { margin-bottom: 32px; } }

/* ---------- Funktionen: Raster ---------- */
.kacheln {
    display: grid; gap: 20px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
        "editor editor editor editor handy handy"
        "editor editor editor editor handy handy"
        "helfer helfer helfer screen screen screen"
        "geld geld geld geld rechte rechte";
}
.kachel {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px;
    padding: 28px; border-radius: var(--r-karte); background: var(--flaeche); border: 1px solid var(--linie);
}
.kachel-text h3 { display: flex; align-items: center; gap: 10px; }
.kachel-text h3 .ic { color: var(--akzent-text); width: 22px; height: 22px; }
.kachel-text p { margin-top: 8px; color: var(--leise); font-size: .98rem; max-width: 52ch; }
.bild-rand { border-radius: 12px; overflow: hidden; border: 1px solid var(--linie); box-shadow: var(--schatten); background: var(--flaeche); }
.k-editor { grid-area: editor; background: linear-gradient(160deg, var(--flaeche) 40%, color-mix(in srgb, var(--akzent) 10%, var(--flaeche))); }
.k-editor .kachel-bild { margin: 0 -28px -28px 0; border-bottom-right-radius: 0; border-right: 0; border-bottom: 0; flex: 1; }
.k-handy { grid-area: handy; align-items: stretch; background: var(--nacht); border-color: var(--nacht); color: var(--creme); }
.k-handy .kachel-text p { color: color-mix(in srgb, var(--creme) 78%, transparent); }
.k-handy .kachel-text h3 .ic { color: var(--akzent); }
.telefon-klein { margin: auto auto -60px; width: min(78%, 280px); border-radius: 26px; padding: 7px; background: #070a16; border: 1px solid #2f386a; }
.telefon-klein img { border-radius: 20px; }
.k-helfer { grid-area: helfer; }
.k-helfer .kachel-bild { margin-right: -28px; border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.k-screen { grid-area: screen; background: radial-gradient(120% 90% at 85% 100%, var(--nacht-2), var(--nacht)); border-color: var(--nacht); color: var(--creme); }
.k-screen .kachel-text p { color: color-mix(in srgb, var(--creme) 78%, transparent); }
.k-screen .kachel-text h3 .ic { color: var(--akzent); }
.screens { display: flex; gap: 16px; justify-content: center; align-items: flex-end; margin-bottom: -28px; }
.screens img { width: 34%; max-width: 170px; border-radius: 8px 8px 0 0; border: 6px solid #05070f; border-bottom: 0; box-shadow: 0 20px 40px -20px #000; }
.k-geld { grid-area: geld; }
.k-geld .kachel-bild { margin-bottom: -28px; border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.k-rechte {
    grid-area: rechte;
    background:
        radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 0) 0 0 / 18px 18px,
        var(--flaeche);
}
.rechte-liste { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rechte-liste li {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500;
    background: var(--flaeche); border: 1px solid var(--linie);
}
.rechte-liste .ic { color: var(--akzent-text); }
@media (max-width: 1023px) {
    .kacheln {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "editor editor" "handy helfer" "screen screen" "geld rechte";
    }
}
@media (max-width: 700px) {
    .kacheln { grid-template-columns: 1fr; grid-template-areas: "editor" "handy" "helfer" "screen" "geld" "rechte"; }
    .kachel { padding: 22px; }
    .k-editor .kachel-bild { margin: 0 -22px -22px 0; }
    .k-helfer .kachel-bild { margin-right: -22px; }
    .k-geld .kachel-bild, .screens { margin-bottom: -22px; }
    .telefon-klein { width: 62%; margin-bottom: -80px; }
}

/* ---------- Reiter ---------- */
.reiter-leiste {
    display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie);
    margin-bottom: 36px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.reiter-leiste::-webkit-scrollbar { display: none; }
.reiter-leiste button {
    font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 18px; border-radius: 999px; border: 0;
    background: transparent; color: var(--leise); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s;
}
.reiter-leiste button[aria-selected="true"] { background: var(--nacht); color: var(--creme); }
:root[data-thema="dunkel"] .reiter-leiste button[aria-selected="true"] { background: var(--akzent); color: var(--auf-akzent); }
@media (prefers-color-scheme: dark) { :root:not([data-thema="hell"]) .reiter-leiste button[aria-selected="true"] { background: var(--akzent); color: var(--auf-akzent); } }
.reiter-flaeche { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 48px; align-items: center; }
.reiter-flaeche[hidden] { display: none; }
.reiter-flaeche.neu > * { animation: einblenden .5s cubic-bezier(.16, 1, .3, 1) both; }
.reiter-flaeche.neu > *:nth-child(2) { animation-delay: .06s; }
.haken { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.haken li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.08rem; font-weight: 500; }
.haken .ic { color: var(--akzent-text); width: 24px; height: 24px; margin-top: 1px; }
.telefon-paar { display: flex; gap: 20px; justify-content: center; }
.telefon-paar img { width: min(44%, 300px); border-radius: 26px; border: 7px solid #070a16; box-shadow: var(--schatten-gross); }
.telefon-paar img:last-child { transform: translateY(32px); }
@media (max-width: 900px) {
    .reiter-flaeche { grid-template-columns: 1fr; gap: 32px; }
    .telefon-paar img:last-child { transform: translateY(20px); }
}

/* ---------- Laufband (einziges auf der Seite) ---------- */
.laufband-abschnitt { padding: 28px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.laufband { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.laufband-spur { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; width: max-content; }
.laufband-spur li {
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--linie); background: var(--bg);
    font-size: .92rem; font-weight: 500; white-space: nowrap; color: var(--text);
}
@media (prefers-reduced-motion: no-preference) {
    .laufband.laeuft .laufband-spur { animation: laufen 70s linear infinite; }
    .laufband.laeuft:hover .laufband-spur { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
    .laufband { -webkit-mask-image: none; mask-image: none; }
    .laufband-spur { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
    .laufband-spur li[aria-hidden="true"] { display: none; }
}
@keyframes laufen { to { transform: translateX(-50%); } }

/* ---------- Demo ---------- */
.demo-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.demo-text p { margin-top: 16px; color: var(--leise); font-size: 1.1rem; max-width: 46ch; }
.demo-text .knopf { margin-top: 28px; }
.demo-text .klein { font-size: .92rem; margin-top: 14px; }
.zugaenge { display: grid; gap: 12px; }
.zugang {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
    padding: 18px 20px; border-radius: var(--r-karte); background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten);
}
.zugang > .ic { width: 28px; height: 28px; color: var(--akzent-text); }
.zugang strong { display: block; }
.zugang span { display: block; color: var(--leise); font-size: .92rem; }
.zugang code, .zugang-passwort code { padding: 5px 10px; border-radius: 8px; background: var(--flaeche-2); border: 1px solid var(--linie); color: var(--text); }
.zugang-passwort { display: flex; align-items: center; gap: 10px; color: var(--leise); margin-top: 6px; padding-left: 4px; }
.zugang-passwort .ic { color: var(--akzent-text); }
@media (max-width: 900px) { .demo-raster { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Installation ---------- */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.schritte::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--linie) 0 10px, transparent 10px 18px); }
.schritte li { position: relative; padding: 0 24px; text-align: center; }
.schritt-symbol {
    display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: var(--nacht); color: var(--creme); border: 6px solid var(--flaeche-2); margin-bottom: 14px;
}
.schritt-symbol .ic { width: 24px; height: 24px; }
.schritte p { color: var(--leise); margin-top: 8px; max-width: 30ch; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
    .schritte { grid-template-columns: 1fr; gap: 28px; }
    .schritte::before { top: 0; bottom: 0; left: 28px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--linie) 0 10px, transparent 10px 18px); }
    .schritte li { text-align: left; padding: 0 0 0 80px; }
    .schritt-symbol { position: absolute; left: 0; top: -6px; }
    .schritte p { margin-left: 0; }
}

/* ---------- Fragen ---------- */
.fragen { display: grid; gap: 12px; }
.fragen details { border-radius: var(--r-karte); background: var(--flaeche); border: 1px solid var(--linie); }
.fragen summary {
    list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 1.05rem;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary .ic { transition: transform .25s cubic-bezier(.16, 1, .3, 1); color: var(--leise); }
.fragen details[open] summary .ic { transform: rotate(45deg); }
.fragen details p { padding: 0 22px 22px; color: var(--leise); max-width: 65ch; }

/* ---------- Abschluss ---------- */
.schluss { padding: 24px 0 104px; }
.schluss-innen {
    text-align: center; padding: 64px 24px; border-radius: 24px;
    background: radial-gradient(90% 120% at 50% 0%, var(--nacht-2), var(--nacht)); color: var(--creme);
}
.schluss-innen img { margin: 0 auto 20px; border-radius: 16px; }
.schluss-innen .knopf-zweit { background: transparent; color: var(--creme); border-color: color-mix(in srgb, var(--creme) 30%, transparent); }
.schluss-innen .knopf-zweit:hover { background: color-mix(in srgb, var(--creme) 10%, transparent); }
.schluss-innen .knopfreihe { margin-top: 28px; }

/* ---------- Fußzeile ---------- */
.fuss { border-top: 1px solid var(--linie); padding: 48px 0 40px; font-size: .95rem; color: var(--leise); }
.fuss-raster { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.fuss .marke { margin-bottom: 12px; }
.fuss h3 { font-size: .9rem; color: var(--text); margin-bottom: 12px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fuss a { color: var(--leise); text-decoration: none; }
.fuss a:hover { color: var(--text); text-decoration: underline; }
.fuss-unten { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--linie); font-size: .88rem; }
@media (max-width: 760px) { .fuss-raster { grid-template-columns: 1fr 1fr; } .fuss-raster > :first-child { grid-column: 1 / -1; } }

/* ---------- Rechtliche Seiten ---------- */
.recht { padding: 56px 0 96px; }
.recht h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 8px; }
.recht .stand { color: var(--leise); margin-bottom: 40px; }
.recht h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.recht h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.recht p, .recht li { color: var(--leise); max-width: 70ch; }
.recht p + p { margin-top: 12px; }
.recht ul { padding-left: 20px; display: grid; gap: 6px; }
.recht strong { color: var(--text); }
.recht .karte { padding: 24px; border-radius: var(--r-karte); background: var(--flaeche); border: 1px solid var(--linie); }
.recht .karte p { color: var(--text); }
.recht-tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 12px; }
.recht-tabelle th, .recht-tabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.recht-tabelle th { color: var(--text); font-weight: 600; }
.recht-tabelle td { color: var(--leise); }
@media (max-width: 640px) { .recht-tabelle { display: block; overflow-x: auto; } }

/* ---------- Einblenden beim Scrollen ---------- */
@keyframes einblenden { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .js .zeige { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
    .js .zeige.sichtbar { opacity: 1; transform: none; }
    .js .held-text > * { animation: einblenden .8s cubic-bezier(.16, 1, .3, 1) both; }
    .js .held-text > *:nth-child(2) { animation-delay: .06s; }
    .js .held-text > *:nth-child(3) { animation-delay: .12s; }
    .js .held-text > *:nth-child(4) { animation-delay: .18s; }
    .js .held-fenster { animation: einblenden 1s .1s cubic-bezier(.16, 1, .3, 1) both; }
    .js .held-telefon { animation: einblenden 1s .3s cubic-bezier(.16, 1, .3, 1) both; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .kopf, .laufband-abschnitt, .schluss { display: none; } body { background: #fff; color: #000; } }

/* ---------- Einwilligung: Knopf in Fußzeile und Datenschutz ---------- */
.fuss-knopf { font: inherit; color: var(--leise); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.fuss-knopf:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.recht .recht-knopf { margin-top: 12px; display: inline-flex; }
.knopf-gefahr { background: color-mix(in srgb, #d92d20 12%, var(--flaeche)); color: #b42318; border-color: color-mix(in srgb, #d92d20 35%, transparent); }
.knopf-gefahr:hover { background: color-mix(in srgb, #d92d20 18%, var(--flaeche)); }
:root[data-thema="dunkel"] .knopf-gefahr { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-thema="hell"]) .knopf-gefahr { color: #ff8a80; } }

/* ---------- Verwaltung (/admin) ---------- */
.verwaltung { padding: 40px 0 96px; }
.verwaltung h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.verwaltung h2 { font-size: 1.2rem; margin-bottom: 12px; }
.vw-unterzeile { color: var(--leise); margin: 8px 0 28px; max-width: 70ch; }
.vw-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); padding: 24px; box-shadow: var(--schatten); }
.vw-karte p + p, .vw-karte p + form, .vw-karte pre + p { margin-top: 12px; }
.vw-schmal { max-width: 520px; }
.vw-leise { color: var(--leise); font-size: .93rem; }
.vw-code { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r-klein); padding: 12px 14px; overflow-x: auto; font-size: .85rem; white-space: pre; margin: 12px 0 0; }
.vw-formular { display: grid; gap: 10px; margin-top: 16px; }
.vw-formular label { font-weight: 600; font-size: .95rem; }
.vw-formular input, .vw-suche input {
    font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--linie); border-radius: var(--r-klein);
    min-height: 44px; padding: 0 14px; width: 100%;
}
.vw-formular input:focus, .vw-suche input:focus { outline: 2px solid var(--akzent-text); outline-offset: 1px; }
.vw-formular .knopf { justify-self: start; margin-top: 4px; }
.vw-meldung { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-klein); margin-bottom: 20px; font-weight: 500; border: 1px solid; }
.vw-meldung-ok { background: color-mix(in srgb, #12b76a 10%, var(--flaeche)); border-color: color-mix(in srgb, #12b76a 35%, transparent); }
.vw-meldung-fehler { background: color-mix(in srgb, #d92d20 10%, var(--flaeche)); border-color: color-mix(in srgb, #d92d20 35%, transparent); }
.vw-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.vw-zahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); padding: 18px 20px; display: grid; gap: 2px; }
.vw-zahl strong { font-size: 1.7rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vw-zahl span { color: var(--leise); font-size: .9rem; }
.vw-suche { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.vw-suche input { flex: 1 1 280px; width: auto; }
.vw-versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vw-gefahr { margin-bottom: 16px; border: 1px solid color-mix(in srgb, #d92d20 30%, var(--linie)); border-radius: var(--r-klein); padding: 10px 14px; background: var(--flaeche); }
.vw-gefahr summary { cursor: pointer; font-weight: 600; }
.vw-gefahr form { margin-top: 10px; display: grid; gap: 10px; justify-items: start; }
.vw-gefahr p { color: var(--leise); }
.vw-leer { color: var(--leise); padding: 32px 0; text-align: center; }
.vw-tabelle-rahmen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); overflow-x: auto; }
.vw-tabelle { width: 100%; border-collapse: collapse; font-size: .93rem; }
.vw-tabelle th, .vw-tabelle td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.vw-tabelle th { color: var(--leise); font-weight: 600; font-size: .85rem; background: var(--flaeche-2); }
.vw-tabelle tr:last-child td { border-bottom: 0; }
.vw-tabelle td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vw-id { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; word-break: break-all; }
.vw-pille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.vw-ja { background: color-mix(in srgb, #12b76a 16%, transparent); color: var(--text); }
.vw-nein { background: var(--flaeche-2); color: var(--leise); }
.vw-loeschen { position: relative; }
.vw-loeschen summary { list-style: none; cursor: pointer; color: var(--leise); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; }
.vw-loeschen summary::-webkit-details-marker { display: none; }
.vw-loeschen summary:hover, .vw-loeschen[open] summary { background: var(--flaeche-2); color: var(--text); }
.vw-loeschen form { position: absolute; right: 0; top: 40px; z-index: 5; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-klein); padding: 8px; box-shadow: var(--schatten); }
.vw-blaettern { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; color: var(--leise); }
.vw-einstellungen { margin-top: 32px; }
.vw-einstellungen ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; color: var(--leise); }
.kopf-aktionen form { margin: 0; }
@media (max-width: 760px) {
    .vw-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vw-tabelle thead { display: none; }
    .vw-tabelle, .vw-tabelle tbody, .vw-tabelle tr, .vw-tabelle td { display: block; }
    .vw-tabelle tr { padding: 10px 14px; border-bottom: 1px solid var(--linie); position: relative; }
    .vw-tabelle td { border: 0; padding: 3px 44px 3px 0; }
    .vw-tabelle td[data-titel]::before { content: attr(data-titel) ": "; color: var(--leise); font-size: .85rem; }
    .vw-tabelle td:last-child { position: absolute; right: 8px; top: 8px; padding: 0; }
}
