/* ==========================================================================
   about.p-weitkamp.de
   Eigenes Stylesheet, keine externen Abhaengigkeiten. Warmes Neutral-System
   mit Blau als Akzent, hell und dunkel gleichwertig ausgearbeitet.
   ========================================================================== */

/* --- Farben, Masse, Rhythmus ------------------------------------------- */
:root {
    color-scheme: light;

    --plane:        #f7f7f4;
    --surface:      #fdfdfc;
    --surface-2:    #f2f2ee;
    --ink:          #0b0b0b;
    --ink-2:        #52514e;
    --ink-3:        #898781;
    --line:         #e4e3dc;
    --line-strong:  #c9c8c0;

    --accent:       #2a78d6;
    --accent-deep:  #1c5cab;
    --accent-wash:  rgba(42, 120, 214, 0.09);
    --accent-2:     #eb6834;
    --good:         #006300;

    --shadow-sm: 0 1px 2px rgba(11, 11, 11, .04);
    --shadow-md: 0 4px 16px -6px rgba(11, 11, 11, .10);
    --shadow-lg: 0 18px 48px -24px rgba(11, 11, 11, .22);

    --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;

    --breit: 1140px;
    --schmal: 760px;
    --kopf-hoehe: 64px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --plane:        #0d0d0d;
        --surface:      #171716;
        --surface-2:    #202020;
        --ink:          #ffffff;
        --ink-2:        #c3c2b7;
        --ink-3:        #898781;
        --line:         #2a2a28;
        --line-strong:  #3d3d3a;

        --accent:       #3987e5;
        --accent-deep:  #86b6ef;
        --accent-wash:  rgba(57, 135, 229, 0.13);
        --accent-2:     #d95926;
        --good:         #0ca30c;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow-md: 0 4px 16px -6px rgba(0, 0, 0, .5);
        --shadow-lg: 0 18px 48px -24px rgba(0, 0, 0, .8);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --plane:        #0d0d0d;
    --surface:      #171716;
    --surface-2:    #202020;
    --ink:          #ffffff;
    --ink-2:        #c3c2b7;
    --ink-3:        #898781;
    --line:         #2a2a28;
    --line-strong:  #3d3d3a;

    --accent:       #3987e5;
    --accent-deep:  #86b6ef;
    --accent-wash:  rgba(57, 135, 229, 0.13);
    --accent-2:     #d95926;
    --good:         #0ca30c;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 16px -6px rgba(0, 0, 0, .5);
    --shadow-lg: 0 18px 48px -24px rgba(0, 0, 0, .8);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--kopf-hoehe) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-2);
    background: var(--plane);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.022em;
    margin: 0 0 .5em;
    font-weight: 660;
}

h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
h4 { font-size: 1.075rem; font-weight: 640; }

/* Die Ueberschriften folgen der Gliederung, nicht der Schriftgroesse: in einer
   Karte steht eine H3, weil darueber eine H2 den Abschnitt eroeffnet. Optisch
   bleibt sie klein. Wo eine Karte einen Abschluss bildet, hebt .gross sie wieder an. */
.karte h3,
.viz-kopf h3 { font-size: 1.075rem; font-weight: 640; }
.karte h3.gross { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; height: auto; display: block; }

strong, b { color: var(--ink); font-weight: 620; }

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

::selection { background: var(--accent-wash); color: var(--ink); }

/* --- Layout ------------------------------------------------------------ */
.huelle {
    width: 100%;
    max-width: var(--breit);
    margin-inline: auto;
    padding-inline: 22px;
}
.huelle-schmal { max-width: var(--schmal); }

section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { padding-top: 0; }

.trenner {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0;
}

/* --- Sprungmarke ------------------------------------------------------- */
.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 200;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-weight: 600;
}
.skip:focus { left: 16px; color: #fff; }

/* --- Kopfzeile --------------------------------------------------------- */
.kopf {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--kopf-hoehe);
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--plane) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .25s ease;
}
.kopf.gescrollt { border-bottom-color: var(--line); }

.kopf .huelle {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.marke {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 640;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-right: auto;
    font-size: 1rem;
    white-space: nowrap;
}
.marke:hover { color: var(--ink); }
.marke .zeichen {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--ink);
    color: var(--plane);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.menue {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menue a {
    display: block;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: .935rem;
    font-weight: 520;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease;
}
.menue a:hover { color: var(--ink); background: var(--surface-2); }
.menue a[aria-current="page"] { color: var(--ink); background: var(--surface-2); font-weight: 600; }

/* Umschalter der Sprache */
.sprache {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 620;
    letter-spacing: .04em;
    flex-shrink: 0;
    transition: color .16s ease, border-color .16s ease, transform .16s ease;
}
.sprache:hover { color: var(--ink); border-color: var(--line-strong); }
.sprache:active { transform: scale(.94); }

/* Umschalter Hell/Dunkel */
.thema {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    transition: color .16s ease, border-color .16s ease, transform .16s ease;
}
.thema:hover { color: var(--ink); border-color: var(--line-strong); }
.thema:active { transform: scale(.94); }
.thema svg { width: 17px; height: 17px; }
.thema .mond { display: none; }
:root[data-theme="dark"] .thema .sonne,
:root:not([data-theme="light"]) .thema .sonne { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .thema .sonne { display: none; }
    :root:not([data-theme="light"]) .thema .mond { display: block; }
}
:root[data-theme="dark"] .thema .sonne { display: none; }
:root[data-theme="dark"] .thema .mond { display: block; }
:root[data-theme="light"] .thema .sonne { display: block; }
:root[data-theme="light"] .thema .mond { display: none; }

/* Menue auf kleinen Schirmen */
.menue-knopf {
    display: none;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    cursor: pointer;
}
.menue-knopf svg { width: 18px; height: 18px; }

@media (max-width: 800px) {
    .menue-knopf { display: grid; }
    .menue {
        position: fixed;
        inset: var(--kopf-hoehe) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px 22px 22px;
        background: var(--plane);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease;
    }
    .menue.offen { opacity: 1; transform: none; pointer-events: auto; }
    .menue a { padding: 11px 14px; border-radius: var(--r-sm); font-size: 1rem; }
}

/* --- Hero -------------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(64px, 11vw, 132px) 0 clamp(52px, 8vw, 96px);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -280px;
    left: 50%;
    width: 1000px;
    height: 640px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, var(--accent-wash), transparent 66%);
    pointer-events: none;
    z-index: -1;
}

.augenbraue {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: .765rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 6px 14px 6px 11px;
    border-radius: 999px;
    margin-bottom: 26px;
}
.punkt {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--good);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 18%, transparent);
}

.hero .fuehrung {
    font-size: clamp(1.06rem, .98rem + .45vw, 1.28rem);
    color: var(--ink-2);
    max-width: 60ch;
    margin-bottom: 1.3em;
}

.knopfreihe {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.knopf {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 570;
    font-size: .96rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
    white-space: nowrap;
}
.knopf svg { width: 16px; height: 16px; flex-shrink: 0; }
.knopf-voll {
    background: var(--ink);
    color: var(--plane);
    box-shadow: var(--shadow-sm);
}
.knopf-voll:hover {
    color: var(--plane);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.knopf-leer {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}
.knopf-leer:hover {
    color: var(--ink);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

/* --- Karten ------------------------------------------------------------ */
.karte {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 26px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.karte-hebt:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}
.karte h3 { margin-bottom: .4em; }
.karte p { color: var(--ink-2); font-size: .95rem; margin-bottom: 0; }

.gitter {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}
.gitter-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Fuenf Faehigkeitskarten lassen in der letzten Zeile eine Luecke. Die letzte
   Karte fuellt sie auf, sobald mehrere Spalten nebeneinander passen. Die
   Grenzen entsprechen den Punkten, an denen auto-fit umbricht. */
@media (min-width: 1040px) {
    .karten-koennen > .karte:last-child { grid-column: span 2; }
}
@media (min-width: 700px) and (max-width: 1039px) {
    .karten-koennen > .karte:last-child { grid-column: 1 / -1; }
}
.gitter-4 { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }

/* Symbol in Karten */
.symbol {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent-wash);
    color: var(--accent);
    margin-bottom: 16px;
}
.symbol svg { width: 20px; height: 20px; }

/* --- Abschnittskopf ---------------------------------------------------- */
.kopfzeile {
    max-width: 62ch;
    margin-bottom: 40px;
}
.kopfzeile.mitte { margin-inline: auto; text-align: center; }
.kopfzeile .marker {
    font-family: var(--mono);
    font-size: .77rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}
.kopfzeile p {
    color: var(--ink-3);
    font-size: 1.03rem;
    margin-bottom: 0;
}

/* --- Kennzahlen -------------------------------------------------------- */
.zahl {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px;
    text-align: center;
}
.zahl .wert {
    font-size: clamp(1.85rem, 1.4rem + 1.5vw, 2.5rem);
    font-weight: 680;
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.035em;
    display: block;
    margin-bottom: 6px;
}
.zahl .wert.betont { color: var(--accent); }
.zahl .schild {
    font-size: .845rem;
    color: var(--ink-3);
    line-height: 1.35;
}

/* --- Zeitstrahl -------------------------------------------------------- */
.strahl {
    position: relative;
    padding-left: 34px;
}
.strahl::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--line-strong), var(--line) 85%, transparent);
}

.etappe { position: relative; padding-bottom: 46px; }
.etappe:last-child { padding-bottom: 0; }
.etappe::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--line-strong);
    box-shadow: 0 0 0 4px var(--plane);
}
.etappe.aktiv::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--plane), 0 0 0 7px var(--accent-wash);
}

.etappe .spanne {
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    display: block;
    margin-bottom: 7px;
}
.etappe h2 { margin-bottom: .5em; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }

/* --- Faehigkeiten ------------------------------------------------------ */
.stufe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 620;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-family: var(--mono);
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-3);
    background: var(--surface-2);
    white-space: nowrap;
}
.stufe.expert  { color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 34%, transparent); background: var(--accent-wash); }
.stufe.fortgeschritten { color: var(--ink-2); border-color: var(--line-strong); }

.koennen { display: grid; gap: 12px; }
.koennen-punkt {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.koennen-punkt:last-child { border-bottom: 0; padding-bottom: 0; }
.koennen-punkt .name { color: var(--ink); font-weight: 570; font-size: .97rem; }
.koennen-punkt .text { grid-column: 1 / -1; color: var(--ink-3); font-size: .89rem; line-height: 1.55; }

/* --- Marken / Schlagworte ---------------------------------------------- */
.marken { display: flex; flex-wrap: wrap; gap: 8px; }
.schlagwort {
    font-family: var(--mono);
    font-size: .8rem;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
}

/* --- Tabelle ----------------------------------------------------------- */
.tabelle-rahmen {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
    min-width: 660px;
}
thead th {
    text-align: left;
    padding: 14px 18px;
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: var(--mono);
    font-weight: 620;
    color: var(--ink-3);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr.jetzt { background: var(--accent-wash); }
tbody tr.jetzt td { color: var(--ink); font-weight: 560; }
td.zahl-zelle, th.zahl-zelle {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
tfoot td {
    padding: 15px 18px;
    background: var(--surface-2);
    color: var(--ink);
    font-weight: 620;
    border-top: 1px solid var(--line-strong);
}

.wachstum { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.wachstum.rauf { color: var(--good); }
.wachstum.runter { color: var(--ink-3); }

/* --- Diagramme --------------------------------------------------------- */
.viz {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px 22px 18px;
}
.viz-kopf { margin-bottom: 20px; }
.viz-kopf h3 { margin-bottom: 3px; }
.viz-kopf .unter { color: var(--ink-3); font-size: .875rem; }

.viz svg { display: block; width: 100%; height: auto; overflow: visible; }

.gitterlinie { stroke: var(--line); stroke-width: 1; }
.achse       { stroke: var(--line-strong); stroke-width: 1; }
.achstext    { fill: var(--ink-3); font-size: 11.5px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.reihe-linie { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.reihe-flaeche { fill: var(--accent); opacity: .1; }
.punkt-mark  { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.balken      { fill: var(--accent); }
.balken.neg  { fill: var(--ink-3); }
.fuellung-1  { fill: var(--accent); }
.fuellung-2  { fill: var(--accent-2); }
.direktwert  { fill: var(--ink); font-size: 12.5px; font-weight: 640; font-family: var(--sans); font-variant-numeric: tabular-nums; }

.legende {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.legende span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--ink-2);
}
.legende i {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Hinweisfeld am Zeiger */
.wolke {
    position: fixed;
    z-index: 150;
    pointer-events: none;
    background: var(--ink);
    color: var(--plane);
    padding: 9px 13px;
    border-radius: var(--r-sm);
    font-size: .84rem;
    line-height: 1.45;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translate(-50%, -118%);
    transition: opacity .12s ease;
    white-space: nowrap;
    max-width: 260px;
}
.wolke.sichtbar { opacity: 1; }
.wolke b { color: var(--plane); font-weight: 660; display: block; }
.wolke .klein { opacity: .72; font-size: .79rem; }

.treffer { fill: transparent; cursor: pointer; }
.treffer:hover + .mark-hebt,
.gruppe:hover .mark-hebt { filter: brightness(1.12); }

/* --- Zitat ------------------------------------------------------------- */
.zitat {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 22px;
    margin: 30px 0;
    font-size: 1.13rem;
    line-height: 1.65;
    color: var(--ink);
    font-style: italic;
}
.zitat cite {
    display: block;
    margin-top: 10px;
    font-size: .87rem;
    font-style: normal;
    color: var(--ink-3);
}

/* --- Hinweisfeld ------------------------------------------------------- */
.merk {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--r-md);
    background: var(--accent-wash);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    font-size: .95rem;
    color: var(--ink-2);
}
.merk svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.merk p:last-child { margin-bottom: 0; }

/* --- Profilbild -------------------------------------------------------- */
.portrait {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    background: var(--surface-2);
    /* Quadratisch, damit vom Querformat nur seitlich beschnitten wird */
    aspect-ratio: 1 / 1;
}
.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Phillip steht rechts im Bild, deshalb der Ausschnitt nach rechts */
    object-position: 78% center;
}

.steckbrief {
    display: grid;
    gap: 11px;
    margin-top: 22px;
}
.steckbrief div {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: .93rem;
    color: var(--ink-2);
}
.steckbrief svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }

/* --- Zweispalter ------------------------------------------------------- */
.zwei {
    display: grid;
    grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 62px);
    align-items: start;
}
@media (max-width: 860px) {
    .zwei { grid-template-columns: 1fr; }
    .zwei .links { max-width: 330px; }
}

/* --- Fusszeile --------------------------------------------------------- */
.fuss {
    border-top: 1px solid var(--line);
    padding: 52px 0 40px;
    margin-top: clamp(56px, 8vw, 96px);
    background: var(--surface);
}
.fuss-oben {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}
.fuss-oben p { color: var(--ink-3); font-size: .93rem; max-width: 42ch; margin: 10px 0 0; }
.fuss-menue {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Mit Polsterung, damit die Trefferflaeche auf dem Telefon gross genug ist.
   Ohne sie waeren die Zeilen nur 20px hoch, was auf kleinen Schirmen zu wenig ist. */
.fuss-menue a {
    display: inline-block;
    padding: 7px 0;
    color: var(--ink-2);
    font-size: .93rem;
}
.fuss-menue a:hover { color: var(--ink); }
.fuss-unten {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: .87rem;
    color: var(--ink-3);
}
.sozial { display: flex; gap: 8px; }
.sozial a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-2);
    transition: color .16s ease, border-color .16s ease, transform .16s ease;
}
.sozial a:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-2px); }
.sozial svg { width: 17px; height: 17px; }

/* --- Einblenden beim Scrollen ------------------------------------------ */
/* Ohne JavaScript ist alles sichtbar. Erst wenn site.js laeuft, wird
   ausgeblendet und beim Scrollen wieder eingeblendet. So bleibt der Inhalt
   auch dann lesbar, wenn das Skript blockiert wird oder fehlschlaegt. */
.js .taucht {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
.js .taucht.da { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .taucht { opacity: 1; transform: none; }
}

/* --- Druck ------------------------------------------------------------- */
@media print {
    .kopf, .thema, .menue-knopf, .knopfreihe, .fuss .sozial { display: none; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .karte, .viz, .tabelle-rahmen { break-inside: avoid; border-color: #ccc; }
    section { padding: 18px 0; }
}
