/* ===========================================================================
   Homepage medocu.

   Moderner als die Anwendung, aber erkennbar dieselbe: Papierton, Tinte und
   Rasterrosa aus public/assets/css/app.css, dieselbe Systemschrift, die
   schwarze Haarlinie und die Abschnittsueberschrift des Bogens als Kopfzeile
   jeder Kachel. Neu sind Massstab, Rundungen, versetzte Schatten und die
   dunkle Flaeche fuer den MANV-Modus.

   Statisch, ohne Fremdbibliotheken, ohne Schriftnachladen - wie das uebrige
   Projekt. Eine Seite, die eine offlinefaehige Anwendung bewirbt, sollte
   nicht selbst an einem fremden Rechenzentrum haengen.
   =========================================================================== */
:root {
    /* Kopiert aus app.css - die Homepage wird ohne die Anwendung ausgeliefert. */
    --papier:        #f7dae0;
    --papier-hell:   #fdf1f4;
    --raster:        #eec3cd;
    --raster-tief:   #e3aab8;
    --tinte:         #14080b;
    --tinte-schwach: #6a4650;
    --linie:         #14080b;
    --linie-fein:    #c9909f;
    --warnung:       #8a0000;
    --fokus:         #0047ab;

    /* Nur hier. */
    --band:          #14080b;
    --band-text:     #fdf1f4;
    --band-schwach:  #c9a3ae;
    --gruen:         #2e7d32;

    --schrift: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --breite: 1180px;
    --rand: clamp(18px, 4vw, 40px);
    --rund: 16px;
    --rund-klein: 10px;
    --versatz: 6px 6px 0 var(--raster-tief);
    --versatz-gross: 10px 10px 0 var(--raster-tief);

    color-scheme: light;
}

/* Nachtmodus der Anwendung, ohne Umschalter: der Browser entscheidet. */
@media (prefers-color-scheme: dark) {
    :root {
        --papier:        #171113;
        --papier-hell:   #241b20;
        --raster:        #2b2027;
        --raster-tief:   #382a31;
        --tinte:         #f0dfe5;
        --tinte-schwach: #b394a0;
        --linie:         #d9c3cb;
        --linie-fein:    #6a505a;
        --warnung:       #ff9d9d;
        --fokus:         #7fb3ff;
        --band:          #0d090a;
        --band-text:     #f0dfe5;
        --band-schwach:  #a88995;
        --gruen:         #7cc47f;
        --versatz:       6px 6px 0 #000;
        --versatz-gross: 10px 10px 0 #000;
        color-scheme: dark;
    }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--schrift);
    font-size: 17px;
    line-height: 1.55;
    color: var(--tinte);
    background: var(--papier);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: .8em; }

code {
    font-family: var(--mono);
    font-size: .88em;
    background: var(--raster);
    padding: .08em .38em;
    border-radius: 5px;
}

.symbole { position: absolute; width: 0; height: 0; overflow: hidden; }

.mitte { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }

.sprung {
    position: absolute; left: 12px; top: -60px; z-index: 20;
    padding: 10px 14px; background: var(--tinte); color: var(--papier-hell);
    border-radius: var(--rund-klein); text-decoration: none; font-weight: 700;
}
.sprung:focus { top: 12px; }

/* --- Etikett: die Abschnittsueberschrift des Bogens, klein ---------------- */
.etikett {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tinte-schwach);
}
.etikett::before {                   /* ein angekreuztes Kaestchen */
    content: "";
    width: 11px; height: 11px;
    border: 1.5px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 5px 5px no-repeat;
}

/* --- Knoepfe ------------------------------------------------------------- */
.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;                /* Tippziel wie in der Anwendung */
    padding: 10px 18px;
    border: 1.5px solid var(--linie);
    border-radius: var(--rund-klein);
    background: var(--papier-hell);
    color: var(--tinte);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.knopf:hover { transform: translate(-2px, -2px); box-shadow: var(--versatz); }
.knopf:active { transform: none; box-shadow: none; }
.knopf-haupt { background: var(--tinte); color: var(--papier-hell); }
.knopf-hell { background: var(--band-text); color: var(--band); border-color: var(--band-text); }
.knopf-hell:hover { box-shadow: 6px 6px 0 var(--warnung); }
.knopf-gross { min-height: 54px; padding: 14px 24px; font-size: 16.5px; }
.ikon-klein { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2;
              stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .knopf, .kachel { transition: none; } }

/* --- Kopf ---------------------------------------------------------------- */
.kopf {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--papier) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1.5px solid var(--linie);
}
.kopf-innen { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.marke { display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
         font-weight: 700; font-size: 21px; letter-spacing: .05em; }
.marke img { width: 34px; height: 34px; border: 1.5px solid var(--linie); border-radius: 7px; }
.navigation { display: flex; gap: 4px; margin-left: auto; }
.navigation a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    color: var(--tinte-schwach);
}
.navigation a:hover { color: var(--tinte); background: var(--raster); }
.kopf-demo { min-height: 42px; padding: 8px 16px; }

@media (max-width: 860px) {
    .kopf-innen { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
    .kopf-demo { margin-left: auto; }
    .navigation {
        order: 3; width: 100%; margin: 6px calc(-1 * var(--rand)) 0;
        padding: 0 var(--rand) 8px; overflow-x: auto; scrollbar-width: none;
    }
    .navigation::-webkit-scrollbar { display: none; }
    .navigation a { padding: 6px 10px; white-space: nowrap; }
}

/* --- Aufmacher ----------------------------------------------------------- */
.aufmacher {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 110px);
    border-bottom: 1.5px solid var(--linie);
}
.aufmacher::before {                 /* Formularraster, zum Rand hin verblassend */
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--raster) 1px, transparent 1px),
        linear-gradient(90deg, var(--raster) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}
.aufmacher-raster {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 76px);
    align-items: center;
}
.aufmacher h1 {
    font-size: clamp(2.5rem, 5.6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    font-weight: 700;
}
.unterstrichen {
    background: linear-gradient(transparent 68%, var(--raster-tief) 68%, var(--raster-tief) 92%, transparent 92%);
    padding: 0 .04em;
}
.einleitung { margin-top: 26px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--tinte-schwach);
              max-width: 36em; }
.einleitung code { color: var(--tinte); }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.haken { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px;
         font-size: 15px; font-weight: 600; }
.haken li { display: inline-flex; align-items: center; gap: 7px; }
.haken svg { width: 18px; height: 18px; fill: none; stroke: var(--gruen); stroke-width: 2.6;
             stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 960px) {
    .aufmacher-raster { grid-template-columns: 1fr; }
    .vorschau { max-width: 620px; }
}

/* --- Vorschau des Bogens --------------------------------------------------
   Aus HTML und CSS, kein Bildschirmfoto. Farben wie in app.css; NACA-Reiter
   und Abschnittskoepfe mit denselben Werten. Beim Umgestalten des Bogens
   hier mitziehen. */
.vorschau { position: relative; padding: 26px 18px 30px 8px; }
.geraet {
    padding: 13px;
    border-radius: 30px;
    background: #1d1417;
    box-shadow: 0 40px 70px -30px rgba(20, 8, 11, .55), var(--versatz-gross);
    transform: rotate(-1.6deg);
}
@media (prefers-color-scheme: dark) { .geraet { background: #3a2c32; } }
.app {
    border-radius: 18px;
    overflow: hidden;
    background: var(--papier);
    color: var(--tinte);
    font-size: 11.5px;
    line-height: 1.3;
}
.app-kopf { display: flex; align-items: center; justify-content: space-between;
            padding: 8px 12px; border-bottom: 1.5px solid var(--linie); }
.app-marke { font-weight: 700; letter-spacing: .06em; font-size: 12.5px; }
.app-status { display: inline-flex; align-items: center; gap: 6px; color: var(--tinte-schwach); }
.app-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); }

.app-reiter { display: flex; border-bottom: 1.5px solid var(--linie); overflow: hidden; }
.app-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 9px;
    border-right: 1px solid var(--linie-fein);
    border-left: 4px solid transparent;
    font-weight: 600;
    white-space: nowrap;
}
.app-tab small { display: block; font-weight: 400; font-size: 9.5px; color: var(--tinte-schwach);
                 overflow: hidden; text-overflow: ellipsis; }
.app-tab.aktiv { background: var(--papier-hell) !important; font-weight: 700; }

[data-naca="1"] { border-left-color: #2e7d32; background: #dcecd9; }
[data-naca="2"] { border-left-color: #6d8f1e; background: #e6eecd; }
[data-naca="3"] { border-left-color: #b58900; background: #f6ecc4; }
[data-naca="5"] { border-left-color: #b3283f; background: #f7d2d8; }
[data-naca="6"] { border-left-color: #8a0000; background: #f2bcc4; }
@media (prefers-color-scheme: dark) {
    [data-naca="1"] { background: #22331f; }
    [data-naca="2"] { background: #2f3a1c; }
    [data-naca="3"] { background: #43391a; }
    [data-naca="5"] { background: #4d1c24; }
    [data-naca="6"] { background: #5c1418; }
}

/* Die Spalte muss die Beschriftungen tragen - sonst stehen sie ueber dem Balken. */
.app-flaeche { display: grid; grid-template-columns: minmax(0, 1fr) 104px; }
.app-bogen { padding: 8px 0 8px 8px; }
.app-abschnitt { border: 1.5px solid var(--linie); background: var(--papier-hell); }
.app-abschnitt + .app-abschnitt { margin-top: 8px; }
.app-titel {
    padding: 4px 8px;
    border-bottom: 1.5px solid var(--linie);
    background: var(--raster);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.app-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px 8px; }
.app-zeile + .app-zeile { border-top: 1px solid var(--linie-fein); }
.app-zeile b { min-width: 78px; }
.app-weg { color: var(--tinte-schwach); min-width: 22px; }
.app-gabe { display: inline-flex; flex-direction: column; padding: 2px 6px; border: 1px solid var(--linie);
            background: var(--papier); font-weight: 600; }
.app-gabe small { font-weight: 400; font-size: 9px; color: var(--tinte-schwach); }
.app-erneut { justify-content: center; border-style: dashed; color: var(--tinte-schwach); }

.app-kurve { width: 100%; height: auto; padding: 6px 8px 4px; fill: none; stroke-width: 2;
             stroke-linecap: round; stroke-linejoin: round; }
.k-raster { stroke: var(--linie-fein); stroke-width: 1; }
.k-rr { stroke: var(--tinte); stroke-width: 3; }
.k-hf { stroke: var(--warnung); }
.k-spo2 { stroke: var(--tinte-schwach); stroke-dasharray: 4 4; }
.k-strahl { stroke: var(--linie-fein); stroke-width: 1.5; }
.k-punkt { fill: var(--tinte); stroke: none; }
.k-text { fill: var(--tinte-schwach); stroke: none; font-size: 11px; font-family: var(--schrift); }

.app-kreuze { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 8px; }
.app-kreuze span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px;
                   border: 1px solid var(--linie); background: var(--papier); }
.app-kreuze span::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--linie); }
.app-kreuze .an { background: var(--tinte); color: var(--papier-hell); }
.app-kreuze .an::before { background: var(--papier-hell); border-color: var(--papier-hell); }

.app-schiene { display: flex; flex-direction: column; justify-content: space-between; margin: 8px;
               padding: 6px 0; background: var(--raster-tief); font-size: 8.5px; }
.app-schiene span { display: flex; align-items: center; gap: 4px; padding: 2px 4px;
                    white-space: nowrap; overflow: hidden; }
.app-schiene span::before { content: ""; flex: 0 0 8px; height: 2px; background: var(--tinte); }
.app-schiene .an { background: var(--tinte); color: var(--papier-hell); font-weight: 700; }
.app-schiene .an::before { background: var(--papier-hell); }

.plakette {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1.5px solid var(--linie);
    border-radius: 999px;
    background: var(--papier-hell);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--versatz);
}
.plakette i { width: 9px; height: 9px; border-radius: 50%; background: #c26a00; }
.plakette svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;
                stroke-linecap: round; stroke-linejoin: round; }
.plakette-oben { top: 0; right: 0; transform: rotate(2deg); }
.plakette-unten { bottom: 0; left: -6px; transform: rotate(-2deg); }
@media (max-width: 540px) {
    .app-schiene { display: none; }
    .app-flaeche { grid-template-columns: 1fr; }
    .app-bogen { padding-right: 8px; }
    .plakette { font-size: 12px; padding: 7px 11px; }
}

/* --- Abschnitte ---------------------------------------------------------- */
.abschnitt { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1.5px solid var(--linie); }
.abschnitt h2, .band h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -.025em;
}
.abschnitt-kopf { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.fliesstext-einzeln { margin-top: 20px; font-size: 1.08rem; color: var(--tinte-schwach); max-width: 38em; }

.zweispaltig {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}
@media (max-width: 860px) { .zweispaltig { grid-template-columns: 1fr; } }

.fliesstext { font-size: 1.1rem; max-width: 40em; }
.fliesstext p + p { margin-top: 1em; }
.merksatz {
    margin: 28px 0;
    padding: 22px 26px;
    border: 1.5px solid var(--linie);
    border-left-width: 7px;
    border-radius: 0 var(--rund) var(--rund) 0;
    background: var(--papier-hell);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -.01em;
    box-shadow: var(--versatz);
}

/* --- Kacheln: Kaesten des Bogens mit Kopfzeile ----------------------------- */
.gruppe {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tinte-schwach);
}
.kacheln + .gruppe { margin-top: 56px; }
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kacheln-drei .kachel { grid-column: auto; }
.kachel {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--linie);
    border-radius: var(--rund);
    background: var(--papier-hell);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.kachel:hover { transform: translate(-3px, -3px); box-shadow: var(--versatz-gross); }
.kachel.breit { grid-column: span 2; }
.kachel-titel {                      /* wie .abschnitt-titel in app.css */
    padding: 8px 16px;
    border-bottom: 1.5px solid var(--linie);
    background: var(--raster);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
/* "In Vorbereitung" in der Kopfzeile einer Kachel: was es noch nicht gibt,
   muss als solches erkennbar sein - auch beim Ueberfliegen. */
.kachel-titel .bald {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--tinte);
    color: var(--papier-hell);
    font-size: 10.5px;
    letter-spacing: .08em;
    vertical-align: 1px;
}
.kachel-inhalt { padding: 22px 22px 24px; flex: 1; }
.kachel h4 { font-size: 1.28rem; line-height: 1.2; letter-spacing: -.01em; margin: 14px 0 10px; }
.kachel p { font-size: .98rem; color: var(--tinte-schwach); }
.kachel p + p { margin-top: .7em; }
.kachel.breit h4 { font-size: 1.6rem; }
.ikon { width: 30px; height: 30px; fill: none; stroke: var(--tinte); stroke-width: 1.7;
        stroke-linecap: round; stroke-linejoin: round; }

.mini-reiter { display: flex; gap: 6px; margin-top: 16px; }
.mini-reiter span { flex: 1; padding: 5px 8px; border: 1px solid var(--linie-fein); border-left-width: 5px;
                    font-size: 12px; font-weight: 700; }

@media (max-width: 980px) {
    .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .kacheln { grid-template-columns: 1fr; }
    .kachel.breit { grid-column: auto; }
}

/* --- MANV: die dunkle Flaeche -------------------------------------------- */
.band {
    padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
    background: var(--band);
    color: var(--band-text);
    border-bottom: 1.5px solid var(--linie);
}
.band .etikett { color: var(--band-schwach); }
.band-text { margin-top: 20px; font-size: 1.1rem; color: var(--band-schwach); max-width: 32em; }
.sichtung { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 8px; max-width: 420px; }
.sichtung li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: var(--rund-klein);
    border: 1.5px solid rgba(255, 255, 255, .14);
    font-size: 15px;
}
.sichtung b { min-width: 58px; padding: 3px 8px; border-radius: 6px; text-align: center; font-size: 13.5px; }
/* Sichtungsfarben wie in der Anwendung */
.sichtung [data-sk="I"]   b { background: #c62828; color: #fff; }
.sichtung [data-sk="II"]  b { background: #f2b705; color: #14080b; }
.sichtung [data-sk="III"] b { background: #2e7d32; color: #fff; }
.sichtung [data-sk="IV"]  b { background: #1565c0; color: #fff; }
.sichtung [data-sk="tot"] b { background: #212121; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }

.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; gap: 14px; }
.schritte li {
    counter-increment: schritt;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 18px;
    padding: 22px 24px;
    border-radius: var(--rund);
    background: rgba(255, 255, 255, .06);
    border: 1.5px solid rgba(255, 255, 255, .14);
}
.schritte li::before {
    content: counter(schritt);
    grid-row: span 2;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--band-text);
    color: var(--band);
    font-size: 22px;
    font-weight: 700;
}
.schritte b { font-size: 1.25rem; letter-spacing: -.01em; }
.schritte span { color: var(--band-schwach); margin-top: 4px; }
.band-hinweis {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 14.5px;
    color: var(--band-schwach);
}

/* --- Sicherheit ---------------------------------------------------------- */
.leiste {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
    border: 1.5px solid var(--linie);
    border-radius: var(--rund);
    overflow: hidden;
}
.leiste p { margin: 0; padding: 20px 22px; font-size: .98rem; color: var(--tinte-schwach); }
.leiste p + p { border-left: 1.5px solid var(--linie); }
.leiste strong { display: block; color: var(--tinte); margin-bottom: 4px; }
@media (max-width: 860px) {
    .leiste { grid-template-columns: 1fr; }
    .leiste p + p { border-left: 0; border-top: 1.5px solid var(--linie); }
}

/* --- Betrieb: Kennzahlen ------------------------------------------------- */
.kennzahlen { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kennzahlen div {
    padding: 20px 22px;
    border: 1.5px solid var(--linie);
    border-radius: var(--rund);
    background: var(--papier-hell);
}
.kennzahlen dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
                 color: var(--tinte-schwach); }
.kennzahlen dd { margin: 6px 0 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700;
                 letter-spacing: -.02em; overflow-wrap: anywhere; }
@media (max-width: 420px) { .kennzahlen { grid-template-columns: 1fr; } }

/* --- Bezug --------------------------------------------------------------- */
.abschnitt-bezug { background: var(--raster); }
.bezug {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 6vw, 88px);
    align-items: center;
    padding: clamp(28px, 5vw, 52px);
    border: 1.5px solid var(--linie);
    border-radius: calc(var(--rund) + 6px);
    background: var(--papier-hell);
    box-shadow: var(--versatz-gross);
}
@media (max-width: 860px) { .bezug { grid-template-columns: 1fr; } }

/* --- Grenzen: Tabelle ---------------------------------------------------- */
.tabellenhuelle {
    overflow-x: auto;
    border: 1.5px solid var(--linie);
    border-radius: var(--rund);
    background: var(--papier-hell);
}
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 1rem; }
th, td { padding: 16px 22px; text-align: left; vertical-align: top; }
th { background: var(--raster); border-bottom: 1.5px solid var(--linie); font-size: 12.5px;
     letter-spacing: .09em; text-transform: uppercase; }
td { border-top: 1px solid var(--linie-fein); color: var(--tinte-schwach); }
tbody tr:first-child td { border-top: 0; }
td:first-child { width: 30%; color: var(--tinte); font-weight: 700; }
/* Schmal: jede Zeile als Block, Punkt ueber dem Stand - statt seitlich zu scrollen. */
@media (max-width: 640px) {
    table { min-width: 0; }
    thead { display: none; }
    tr, td { display: block; }
    td { border-top: 0; padding: 0 18px; }
    td:first-child { width: auto; padding-top: 16px; }
    td + td { padding-top: 4px; padding-bottom: 16px; }
    tbody tr + tr { border-top: 1px solid var(--linie-fein); }
}

/* --- Demo ---------------------------------------------------------------- */
.demo { padding: clamp(56px, 8vw, 104px) 0; }
.demo-kasten {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 48px;
    padding: clamp(32px, 6vw, 64px);
    border-radius: calc(var(--rund) + 8px);
    background: var(--band);
    color: var(--band-text);
    box-shadow: var(--versatz-gross);
}
.demo-kasten > div { max-width: 640px; }
.demo-kasten .etikett { color: var(--band-schwach); }
.demo-kasten h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -.025em; }
.demo-kasten p:not(.etikett) { margin-top: 16px; color: var(--band-schwach); font-size: 1.08rem; }
/* Bei Nacht liegt die dunkle Flaeche auf dunklem Grund - ohne Rahmen verschwaende sie. */
@media (prefers-color-scheme: dark) { .demo-kasten { border: 1.5px solid var(--linie-fein); } }

/* --- Fuss ---------------------------------------------------------------- */
.fuss { border-top: 1.5px solid var(--linie); background: var(--raster); padding: 40px 0 44px; }
.fuss-raster { display: grid; grid-template-columns: auto 1fr; gap: 22px 40px; align-items: center; }
.fuss-marke { display: flex; align-items: center; gap: 12px; }
.fuss-marke img { width: 30px; height: 30px; border: 1.5px solid var(--linie); border-radius: 6px; }
.fuss-marke b { display: block; letter-spacing: .05em; }
.fuss-marke span { display: block; font-size: 13px; color: var(--tinte-schwach); }
.fuss-navigation { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; font-size: 15px; }
.fuss-navigation a { text-decoration: none; color: var(--tinte-schwach); }
.fuss-navigation a:hover { color: var(--tinte); text-decoration: underline; }
.fuss-klein { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--linie-fein);
              font-size: 13px; color: var(--tinte-schwach); }

/* --- Häufige Fragen ------------------------------------------------------- */
.fragen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.frage { border-top: 1.5px solid var(--linie); padding-top: 18px; }
.frage h3 { font-size: 1.18rem; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 8px; }
.frage p { font-size: 1rem; color: var(--tinte-schwach); max-width: 44em; }
@media (max-width: 760px) { .fragen { grid-template-columns: 1fr; } }

/* --- Kontakt -------------------------------------------------------------- */
.kontakt-wege { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kontakt-weg {
    display: block;
    padding: 24px 24px 26px;
    border: 1.5px solid var(--linie);
    border-radius: var(--rund);
    background: var(--papier-hell);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
a.kontakt-weg:hover { transform: translate(-3px, -3px); box-shadow: var(--versatz-gross); }
.kontakt-etikett { display: block; margin-top: 16px; font-size: 12px; font-weight: 700;
                   letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-schwach); }
.kontakt-wert { display: block; margin-top: 6px; font-size: 1.24rem; font-weight: 700;
                letter-spacing: -.015em; overflow-wrap: anywhere; }
.kontakt-anschrift .kontakt-wert { font-size: 1.02rem; font-weight: 400; line-height: 1.45; }
@media (max-width: 860px) { .kontakt-wege { grid-template-columns: 1fr; } }

/* --- Rechtstexte: Impressum und Datenschutz ------------------------------- */
.rechtstext { padding: clamp(44px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.rechtstext .mitte { max-width: 820px; }
.rechtstext h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); line-height: 1.06; letter-spacing: -.025em; }
.rechtstext h2 { font-size: 1.16rem; margin: 40px 0 10px; letter-spacing: -.005em; }
.rechtstext p, .rechtstext ul { font-size: 1.02rem; color: var(--tinte-schwach); max-width: 70ch; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext li + li { margin-top: .35em; }
.rechtstext a { color: var(--tinte); }
.anschrift {
    margin-top: 24px;
    padding: 20px 22px;
    border: 1.5px solid var(--linie);
    border-radius: var(--rund);
    background: var(--papier-hell);
    box-shadow: var(--versatz);
    color: var(--tinte) !important;
}
.anschrift b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.stand { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--linie-fein);
         font-size: 13.5px; }
@media (max-width: 700px) {
    .fuss-raster { grid-template-columns: 1fr; }
    .fuss-navigation { justify-content: flex-start; }
}
