/* =============================================================================
   Profilseiten (profil.<domain>/<name>). Vier Stile, je hell und dunkel; die Akzentfarben
   lassen sich im Bearbeiten-Bereich überschreiben (--a1, --a2). Keine externen Schriften.
   Bewegung nur über transform/opacity/filter; .still (Animationen aus oder „Bewegung
   reduzieren“) zeigt alles sofort, .sofort ist die Vorschau beim Tippen.
   ============================================================================= */
:root {
  --radius: 18px; --glas: blur(14px) saturate(140%); --schatten: 0 24px 60px -30px rgba(0, 0, 0, .55);
  --tempo: cubic-bezier(.2, .7, .2, 1);
  --modern: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --klassisch: Georgia, "Times New Roman", "Noto Serif", serif;
  --technisch: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --schrift: var(--modern); --titel-gewicht: 800; --titel-abstand: -.03em;
}
[data-schrift="klassisch"] { --schrift: var(--klassisch); --titel-gewicht: 500; --titel-abstand: -.02em; }
[data-schrift="technisch"] { --schrift: var(--technisch); --titel-gewicht: 700; --titel-abstand: -.04em; }

/* Stile */
[data-stil="aurora"][data-thema="dunkel"] { color-scheme: dark; --grund: #070b1a; --flaeche: rgba(255, 255, 255, .055); --rand: rgba(255, 255, 255, .13); --text: #eaeefb; --leise: #a2adcb; --a1: #8b6dff; --a2: #2ad4f0; --auf-a1: #ffffff; }
[data-stil="aurora"][data-thema="hell"] { color-scheme: light; --grund: #f3f5fe; --flaeche: rgba(255, 255, 255, .66); --rand: rgba(30, 40, 95, .13); --text: #141a33; --leise: #525c7c; --a1: #5a3df0; --a2: #0a8fb0; --auf-a1: #ffffff; --schatten: 0 24px 60px -34px rgba(40, 50, 120, .4); }
[data-stil="neon"][data-thema="dunkel"] { color-scheme: dark; --grund: #05060b; --flaeche: rgba(255, 255, 255, .035); --rand: rgba(0, 245, 212, .22); --text: #eef2f7; --leise: #94a1b3; --a1: #00f5d4; --a2: #f15bb5; --auf-a1: #03110e; --radius: 10px; }
[data-stil="neon"][data-thema="hell"] { color-scheme: light; --grund: #f6f8fa; --flaeche: #ffffff; --rand: rgba(0, 120, 105, .25); --text: #0f1720; --leise: #51606f; --a1: #008f7c; --a2: #cf1a82; --auf-a1: #ffffff; --radius: 10px; --schatten: 0 20px 50px -34px rgba(0, 60, 60, .4); }
[data-stil="terminal"][data-thema="dunkel"] { color-scheme: dark; --grund: #040806; --flaeche: rgba(8, 26, 15, .78); --rand: rgba(57, 255, 136, .28); --text: #c9f7d3; --leise: #7fb18c; --a1: #39ff88; --a2: #ffb000; --auf-a1: #03140a; --radius: 4px; --glas: none; }
[data-stil="terminal"][data-thema="hell"] { color-scheme: light; --grund: #f2f6ef; --flaeche: rgba(255, 255, 255, .84); --rand: rgba(14, 112, 56, .32); --text: #12301c; --leise: #4b6a55; --a1: #0b7038; --a2: #975700; --auf-a1: #ffffff; --radius: 4px; --glas: none; --schatten: none; }
[data-stil="editorial"][data-thema="hell"] { color-scheme: light; --grund: #f7f2e8; --flaeche: #fffdf8; --rand: rgba(50, 35, 15, .16); --text: #1f1a13; --leise: #6a5f4e; --a1: #a9481f; --a2: #806233; --auf-a1: #ffffff; --radius: 3px; --glas: none; --schatten: 0 18px 40px -32px rgba(60, 40, 10, .45); }
[data-stil="editorial"][data-thema="dunkel"] { color-scheme: dark; --grund: #15120d; --flaeche: #1e1a13; --rand: rgba(240, 225, 195, .16); --text: #f0e9db; --leise: #b0a58f; --a1: #e7935f; --a2: #d6ba7c; --auf-a1: #1b1208; --radius: 3px; --glas: none; }

/* Wandel: Text und Flächen bleiben gleich, Grund und Akzente setzt die Szene (seite.js, SZENEN) */
[data-stil="wandel"][data-thema="dunkel"] { color-scheme: dark; --grund: #070b1a; --flaeche: rgba(255, 255, 255, .06); --rand: rgba(255, 255, 255, .14); --text: #eff2fb; --leise: #b4bdd3; --a1: #8b6dff; --a2: #2ad4f0; --auf-a1: #ffffff; }
[data-stil="wandel"][data-thema="hell"] { color-scheme: light; --grund: #f0f2ff; --flaeche: rgba(255, 255, 255, .68); --rand: rgba(25, 30, 60, .15); --text: #141827; --leise: #4c5367; --a1: #5a3df0; --a2: #0a8fb0; --auf-a1: #ffffff; --schatten: 0 24px 60px -34px rgba(30, 30, 80, .4); }
/* Akzente gleiten mit (Browser ohne @property wechseln sofort) */
@property --a1 { syntax: "<color>"; inherits: true; initial-value: #8b6dff; }
@property --a2 { syntax: "<color>"; inherits: true; initial-value: #2ad4f0; }
[data-stil="wandel"] { transition: --a1 1.1s ease, --a2 1.1s ease; }
.still[data-stil="wandel"] { transition: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html.still, html.sofort { scroll-behavior: auto; }
body { margin: 0; background: var(--grund); color: var(--text); font: 17px/1.65 var(--schrift); overflow-x: hidden; transition: background-color .4s; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: var(--titel-gewicht); letter-spacing: var(--titel-abstand); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 4px; }

/* --- Ebenen: Hintergrund, Lichtschein, Fortschritt --------------------------------------- */
.hintergrund-bild { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; transition: opacity .9s ease; }
.hintergrund-bild.aus { opacity: 0; }
.szenen-welle { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.lichtpunkt { position: fixed; left: 0; top: 0; width: 600px; height: 600px; border-radius: 50%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s;
              background: radial-gradient(circle, color-mix(in srgb, var(--a1) 22%, transparent), transparent 62%); will-change: transform; }
.lichtpunkt.an { opacity: 1; }
.fortschritt { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 30; transform: scaleX(0); transform-origin: 0 50%;
               background: linear-gradient(90deg, var(--a1), var(--a2)); }

/* --- Navigation -------------------------------------------------------------------------- */
.navigation { position: fixed; top: 14px; left: 50%; z-index: 20; display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 24px);
              transform: translateX(-50%); transition: transform .45s var(--tempo), background-color .3s, border-color .3s, box-shadow .3s;
              padding: 6px; border-radius: 999px; border: 1px solid transparent; }
.navigation.schwebt { background: color-mix(in srgb, var(--grund) 72%, transparent); border-color: var(--rand); backdrop-filter: blur(14px); box-shadow: var(--schatten); }
.navigation.eingefahren { transform: translate(-50%, -140%); }
.nav-liste { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-liste::-webkit-scrollbar { display: none; }
.nav-punkt { padding: 7px 14px; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--leise); white-space: nowrap; transition: color .25s, background-color .25s; }
.nav-punkt:hover { color: var(--text); }
.nav-punkt.aktiv { color: var(--auf-a1); background: var(--a1); }
.thema-knopf { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rand); background: var(--flaeche); color: var(--text); cursor: pointer; padding: 0; }
.thema-knopf svg { width: 17px; height: 17px; transition: transform .6s var(--tempo); }
.thema-knopf:hover svg { transform: rotate(90deg); }

/* --- Abschnitte -------------------------------------------------------------------------- */
.abschnitt { width: 100%; max-width: 1140px; margin: 0 auto; padding: clamp(64px, 11vh, 130px) clamp(18px, 4vw, 32px); position: relative; }
.abschnitt-kopf { max-width: 760px; margin-bottom: clamp(30px, 5vh, 54px); }
.oberzeile { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--a1); }
.abschnitt-titel { font-size: clamp(32px, 5.4vw, 58px); }
.einleitung { color: var(--leise); margin-top: 16px; font-size: 1.08rem; }
.fliesstext { font-size: 1.08rem; }
.fliesstext p + p { margin-top: 1em; }

/* Erscheinen beim Scrollen */
.erscheint { opacity: 0; transition: opacity .95s var(--tempo), transform .95s var(--tempo), filter .95s var(--tempo); transition-delay: calc(var(--i, 0) * 85ms); }
.erscheint[data-anim="hoch"] { transform: translateY(44px); }
.erscheint[data-anim="seite"] { transform: translateX(-60px); }
.erscheint[data-anim="seite-rechts"] { transform: translateX(60px); }
.erscheint[data-anim="zoom"] { transform: scale(.86); }
.erscheint[data-anim="unschaerfe"] { filter: blur(16px); transform: translateY(12px); }
.erscheint[data-anim="kippen"] { transform: perspective(900px) rotateX(26deg) translateY(36px); transform-origin: 50% 100%; }
.erscheint[data-anim="keine"] { opacity: 1; transform: none; transition: none; }
[data-staerke="ruhig"] .erscheint:not(.sichtbar):not([data-anim="keine"]) { transform: translateY(14px); filter: none; }
.erscheint.sichtbar { opacity: 1; transform: none; filter: none; }
.wort { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wort-innen { display: inline-block; transform: translateY(112%); transition: transform .95s var(--tempo); transition-delay: calc(var(--i, 0) * 60ms); }
.wortweise.sichtbar .wort-innen { transform: none; }
[data-staerke="ruhig"] .wort-innen { transition-duration: .5s; }
.ohne-erscheinen .wort-innen { transform: none; transition: none; }

/* --- Kopfbereich ------------------------------------------------------------------------- */
.art-kopf { min-height: 100svh; display: grid; align-items: center; max-width: 1240px; padding-top: 100px; }
.kopf-inhalt { display: grid; gap: clamp(28px, 5vw, 70px); align-items: center; will-change: transform, opacity; }
.kopf-inhalt.mit-bild { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.kopf-gruss { font-size: clamp(16px, 2vw, 21px); color: var(--leise); margin: 0 0 10px; animation: auftauchen .9s var(--tempo) both; }
.kopf-name { font-size: clamp(46px, 10.5vw, 128px); line-height: .98; margin-bottom: 22px; }
.kopf-wort { display: inline-block; white-space: nowrap; }
.kopf-zeichen { display: inline-block; color: color-mix(in oklch, var(--a1), var(--a2) var(--anteil, 0%));
                animation: zeichen-rein 1s var(--tempo) both; animation-delay: calc(var(--i) * 42ms + 120ms); }
@keyframes zeichen-rein { from { opacity: 0; transform: translateY(.7em) rotate(10deg) scale(.8); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes auftauchen { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.kopf-rolle { font-size: clamp(19px, 3vw, 30px); font-weight: 600; min-height: 1.5em; margin: 0 0 16px; animation: auftauchen 1s var(--tempo) .5s both; }
.schreibmarke { display: inline-block; width: .55ch; height: 1.05em; margin-left: 3px; vertical-align: -.14em; background: var(--a2); animation: blinken 1s steps(2) infinite; }
@keyframes blinken { 50% { opacity: 0; } }
.kopf-einleitung { max-width: 62ch; color: var(--leise); font-size: clamp(16px, 1.6vw, 19px); animation: auftauchen 1s var(--tempo) .7s both; }
.kopf-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: auftauchen 1s var(--tempo) .9s both; }
.kopf-foto { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 6px; max-width: 420px; justify-self: center; width: 100%; animation: auftauchen 1.2s var(--tempo) .4s both;
             background: conic-gradient(from var(--winkel, 0deg), var(--a1), var(--a2), var(--a1)); }
@property --winkel { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.kopf-foto { animation: auftauchen 1.2s var(--tempo) .4s both, ring 7s linear infinite; }
@keyframes ring { to { --winkel: 360deg; } }
.kopf-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid var(--grund); }
.kopf-pfeil { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid var(--rand); border-radius: 14px; }
.kopf-pfeil::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--a1); animation: rollen 1.8s var(--tempo) infinite; }
@keyframes rollen { from { transform: none; opacity: 1; } to { transform: translateY(14px); opacity: 0; } }

.knopf { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font: 600 16px/1.1 var(--schrift); text-decoration: none; color: var(--text); cursor: pointer;
         border: 1px solid var(--rand); border-radius: calc(var(--radius) * 2); background: var(--flaeche); backdrop-filter: var(--glas); transition: transform .35s var(--tempo), box-shadow .3s, border-color .3s; }
.knopf:hover { border-color: var(--a1); }
.knopf.voll { background: linear-gradient(120deg, var(--a1), color-mix(in oklab, var(--a1) 65%, var(--a2))); color: var(--auf-a1); border-color: transparent; box-shadow: 0 14px 36px -14px var(--a1); }

/* --- Karten-Grundform: Glas + Lichtkante unter der Maus ---------------------------------- */
.karte, .projekt, .station-karte, .code-fenster { position: relative; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--rand);
  backdrop-filter: var(--glas); box-shadow: var(--schatten); transition: transform .35s var(--tempo), border-color .3s; transform-style: preserve-3d; }
.karte::before, .projekt::before, .station-karte::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--a1) 20%, transparent), transparent 70%); }
.karte:hover::before, .projekt:hover::before, .station-karte:hover::before { opacity: 1; }
.karte:hover, .projekt:hover, .station-karte:hover { border-color: color-mix(in srgb, var(--a1) 55%, var(--rand)); }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.karte-huelle { display: grid; }
.karte { padding: 28px; }
.karte-symbol { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; color: var(--auf-a1);
                background: linear-gradient(135deg, var(--a1), var(--a2)); }
.karte-symbol svg { width: 26px; height: 26px; }
.karte-text { color: var(--leise); margin-top: 8px; }

/* --- Text --------------------------------------------------------------------------------- */
.text-raster.mit-bild { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.text-inhalt .abschnitt-kopf { margin-bottom: 22px; }
.text-bild img { width: 100%; border-radius: var(--radius); box-shadow: var(--schatten); }
.punkte { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.punkte li { position: relative; padding-left: 28px; }
.punkte li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 14px; height: 2px; background: linear-gradient(90deg, var(--a1), var(--a2)); }

/* --- Zahlen ------------------------------------------------------------------------------- */
.art-zahlen { padding-block: clamp(36px, 6vh, 70px); }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 26px; text-align: center; }
.zahl-wert { font-size: clamp(42px, 7vw, 76px); font-weight: var(--titel-gewicht); line-height: 1; letter-spacing: var(--titel-abstand); font-variant-numeric: tabular-nums;
             background: linear-gradient(120deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.zahl-text { color: var(--leise); margin-top: 8px; }

/* --- Zeitleiste --------------------------------------------------------------------------- */
.zeitleiste { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 26px; }
.zeitleiste-spur { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--rand); }
.zeitleiste-fuellung { position: absolute; inset: 0; transform: scaleY(0); transform-origin: 50% 0; background: linear-gradient(180deg, var(--a1), var(--a2)); box-shadow: 0 0 14px var(--a1); }
.station { position: relative; width: 50%; padding-right: 42px; }
.station.rechts { margin-left: 50%; padding: 0 0 0 42px; }
.station-punkt { position: absolute; top: 28px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--grund); border: 2px solid var(--rand); z-index: 1; transition: background-color .4s, border-color .4s, box-shadow .4s, transform .4s var(--tempo); }
.station.rechts .station-punkt { right: auto; left: -8px; }
.station.erreicht .station-punkt { background: var(--a1); border-color: var(--a1); box-shadow: 0 0 0 6px color-mix(in srgb, var(--a1) 22%, transparent); transform: scale(1.12); }
.station-karte { padding: 24px 26px; }
.station-zeit { margin: 0 0 6px; font: 600 13px/1.3 var(--technisch); letter-spacing: .04em; color: var(--a1); }
.station-ort { margin: 4px 0 0; color: var(--leise); font-size: .95rem; }
.station-text { margin-top: 10px; color: var(--leise); font-size: .98rem; }

/* --- Fähigkeiten -------------------------------------------------------------------------- */
.faehigkeiten.balken { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px 44px; }
.balken-kopf { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-weight: 600; font-size: .98rem; }
.balken-zahl { color: var(--leise); font-variant-numeric: tabular-nums; font-weight: 500; }
.balken-spur { height: 8px; border-radius: 8px; background: var(--rand); overflow: hidden; }
.balken-fuellung { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--a1), var(--a2)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.5s var(--tempo) .15s; }
.sichtbar .balken-fuellung { transform: none; }
.faehigkeiten.kreise { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 26px; text-align: center; }
.kreis-bild { position: relative; width: min(100%, 140px); margin: 0 auto 10px; }
.kreis-bild svg { display: block; width: 100%; transform: rotate(-90deg); }
.kreis-spur, .kreis-wert { fill: none; stroke-width: 7; }
.kreis-spur { stroke: var(--rand); }
.kreis-wert { stroke: var(--a1); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--tempo) .15s; }
.sichtbar .kreis-wert { stroke-dashoffset: calc(100 - var(--w)); }
.kreis-zahl { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.faehigkeiten.woerter { display: flex; flex-wrap: wrap; gap: 10px; }
.wort-marke { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--rand); background: var(--flaeche); font-weight: 600; transition: transform .3s var(--tempo), color .3s, border-color .3s; }
.wort-marke:hover { transform: translateY(-3px) scale(1.05); color: var(--a1); border-color: var(--a1); }

/* --- Programmieren ------------------------------------------------------------------------ */
.code-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(26px, 5vw, 60px); align-items: center; }
.code-sprachen { display: grid; gap: 14px; margin-top: 26px; }
.code-fenster { margin: 0; overflow: hidden; background: #0b0f19; border-color: rgba(255, 255, 255, .13); color: #dbe3f4; backdrop-filter: none; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75); }
.code-leiste { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code-leiste i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-leiste i:nth-child(2) { background: #febc2e; }
.code-leiste i:nth-child(3) { background: #28c840; }
.code-tabs { display: flex; gap: 2px; margin-left: 10px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab { padding: 4px 11px; border: 0; border-radius: 6px; background: none; color: #93a0ba; font: 13px/1.2 var(--technisch); white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.code-tab:hover { color: #dbe3f4; }
.code-tab[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .12); }
.c-befehl { color: #7ee787; }
.c-ausgabe { color: #9fb0cb; }
.code-datei { margin-left: 10px; font: 13px/1 var(--technisch); color: #93a0ba; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-pre { display: grid; margin: 0; padding: 20px 22px; overflow-x: auto; font: 14px/1.65 var(--technisch); tab-size: 4; }
.code-pre > code { grid-area: 1 / 1; font: inherit; white-space: pre; }
.code-geist { visibility: hidden; }
.c-kommentar { color: #71809c; font-style: italic; }
.c-text { color: #a5e3a0; }
.c-zahl { color: #ffb86c; }
.c-wort { color: #c49bff; }
.c-aufruf { color: #6cc7ff; }

/* --- Aktivität ---------------------------------------------------------------------------- */
[data-stufe="0"] { --aktiv: color-mix(in srgb, var(--text) 9%, transparent); }
[data-stufe="1"] { --aktiv: color-mix(in srgb, var(--a1) 32%, transparent); }
[data-stufe="2"] { --aktiv: color-mix(in srgb, var(--a1) 55%, transparent); }
[data-stufe="3"] { --aktiv: color-mix(in srgb, var(--a1) 78%, transparent); }
[data-stufe="4"] { --aktiv: var(--a1); }
.aktiv-rollen { overflow-x: auto; padding-bottom: 6px; }
.aktiv-raster { display: grid; grid-template-rows: repeat(7, 13px); grid-auto-flow: column; grid-auto-columns: 13px; gap: 3px; width: max-content; }
.aktiv-tag { border-radius: 3px; background: var(--aktiv); opacity: 0; transform: scale(.4); transition: opacity .45s var(--tempo), transform .45s var(--tempo); transition-delay: calc(var(--spalte) * 16ms); }
.aktiv-raster.da .aktiv-tag { opacity: 1; transform: none; }
.aktivitaet-stand { margin: 12px 0 0; color: var(--leise); font-size: .95rem; }
.aktivitaet-eigene { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px; }
.aktiv-eintrag { text-align: center; }
.aktiv-feld { aspect-ratio: 1; display: grid; place-items: center; border-radius: calc(var(--radius) * .6); background: var(--aktiv); font-weight: 700; font-variant-numeric: tabular-nums; }
.aktiv-feld[data-stufe="4"] { color: var(--auf-a1); }
.aktiv-text { margin-top: 7px; font-size: .9rem; color: var(--leise); }
.still .aktiv-tag, .sofort .aktiv-tag { opacity: 1; transform: none; }

/* --- Projekte ------------------------------------------------------------------------------ */
.projekte { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; }
.projekt { overflow: hidden; display: flex; flex-direction: column; width: 100%; }
.projekt-bild { aspect-ratio: 16 / 9; overflow: hidden; }
.projekt-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--tempo); }
.projekt:hover .projekt-bild img { transform: scale(1.07); }
.projekt-inhalt { padding: 24px 26px; display: flex; flex-direction: column; flex: 1; }
.projekt-text { color: var(--leise); margin-top: 8px; }
.marken { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0 0; }
.marken li { padding: 3px 11px; border-radius: 999px; font: 500 12.5px/1.6 var(--technisch); color: var(--a1); background: color-mix(in srgb, var(--a1) 12%, transparent); }
.projekt-links { display: flex; gap: 18px; margin-top: auto; padding-top: 16px; font-weight: 600; }
.projekt-links a { text-decoration: none; color: var(--a1); }
.projekt-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- Laufband, Zitat, Galerie, Kontakt ---------------------------------------------------- */
.art-laufband { max-width: none; padding-inline: 0; padding-block: 26px; }
.laufband { overflow: hidden; border-block: 1px solid var(--rand); padding-block: 16px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.laufband-spur { display: flex; width: max-content; animation: laufen 46s linear infinite; }
.laufband:hover .laufband-spur { animation-play-state: paused; }
[data-staerke="ruhig"] .laufband-spur { animation-duration: 110s; }
.laufband-teil { display: flex; }
.laufband-teil span { padding-inline: 26px; font-size: clamp(20px, 3vw, 32px); font-weight: var(--titel-gewicht); letter-spacing: -.01em; white-space: nowrap; color: var(--leise); position: relative; }
.laufband-teil span::after { content: "✦"; position: absolute; right: -8px; font-size: .5em; top: 50%; transform: translateY(-50%); color: var(--a1); }
@keyframes laufen { to { transform: translateX(-50%); } }
.zitat { margin: 0 auto; max-width: 900px; text-align: center; }
.zitat-text { font-size: clamp(26px, 4.6vw, 48px); line-height: 1.22; font-weight: var(--titel-gewicht); letter-spacing: -.02em; margin: 0; opacity: 1; }
.zitat-wort { display: inline-block; opacity: .1; transform: translateY(14px); transition: opacity .8s var(--tempo), transform .8s var(--tempo); transition-delay: calc(var(--i) * 55ms); }
.sichtbar .zitat-wort { opacity: 1; transform: none; }
.zitat-von { margin-top: 18px; color: var(--leise); }
.galerie { columns: 3 240px; column-gap: 16px; }
.galerie-bild { margin: 0 0 16px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); position: relative; }
.galerie-bild img { width: 100%; transition: transform .9s var(--tempo); }
.galerie-bild:hover img { transform: scale(1.05); }
.galerie-bild figcaption { pointer-events: none; position: absolute; inset: auto 0 0; padding: 26px 14px 12px; font-size: 14px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.kontakt { text-align: center; max-width: 760px; margin: 0 auto; }
.kontakt .abschnitt-kopf { margin-inline: auto; margin-bottom: 10px; }
.kontakt-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* --- Kontaktformular ------------------------------------------------------------------------ */
.kontakt-formular { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; text-align: left; }
.kontakt-feld:nth-of-type(3) { grid-column: 1 / -1; }
.kontakt-name { display: block; margin-bottom: 6px; font-size: .92rem; font-weight: 600; }
.kontakt-eingabe { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--rand);
                   border-radius: calc(var(--radius) * .6); backdrop-filter: var(--glas); transition: border-color .25s, box-shadow .25s; resize: vertical; }
.kontakt-eingabe:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 28%, transparent); }
.kontakt-formular .knopf { grid-column: 1 / -1; justify-self: center; }
.kontakt-formular .knopf:disabled { opacity: .6; cursor: wait; }
.kontakt-status { grid-column: 1 / -1; margin: 0; min-height: 1.4em; text-align: center; font-size: .95rem; color: var(--leise); }
.kontakt-status.fehler { color: var(--a2); font-weight: 600; }
.kontakt-hinweis { grid-column: 1 / -1; margin: 0; text-align: center; font-size: .85rem; color: var(--leise); }
/* Falle für Spam-Programme: für Menschen und Vorleser unsichtbar, aber nicht "display: none" */
.kontakt-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kontakt-danke { margin-top: 28px; padding: 28px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--a1); animation: auftauchen .6s var(--tempo) both; }
.kontakt-danke strong { font-size: 1.2rem; }
.kontakt-danke p { margin: 6px 0 0; color: var(--leise); }
@media (max-width: 560px) { .kontakt-formular { grid-template-columns: 1fr; } }

/* --- Fenster beim Anklicken, Bild groß ------------------------------------------------------ */
.hat-fenster { cursor: pointer; }
.mehr-knopf { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 .95rem/1.3 var(--schrift); color: var(--a1); position: relative; }
.mehr-knopf::after { content: "→"; transition: transform .3s var(--tempo); }
.hat-fenster:hover .mehr-knopf::after, .mehr-knopf:hover::after { transform: translateX(5px); }
.projekt-inhalt .mehr-knopf { align-self: flex-start; }
.projekt-links + .mehr-knopf { margin-top: 12px; }
html.fenster-offen { overflow: hidden; }
.fenster { width: min(calc(100% - 28px), 780px); max-height: min(88vh, 900px); max-height: min(88dvh, 900px); padding: 0; overflow: auto; overscroll-behavior: contain;
           color: var(--text); background: color-mix(in srgb, var(--grund) 90%, var(--text) 6%); border: 1px solid var(--rand); border-radius: calc(var(--radius) + 4px); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); }
.fenster::backdrop, .lichtbild::backdrop { background: rgba(4, 6, 14, .62); backdrop-filter: blur(8px); animation: blende-rein .3s ease both; }
@keyframes blende-rein { from { opacity: 0; } }
.fenster-inhalt { padding: clamp(24px, 5vw, 42px); }
.fenster-zu { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; padding: 0 0 3px; border-radius: 50%; border: 1px solid var(--rand);
              background: color-mix(in srgb, var(--grund) 85%, transparent); color: var(--text); font: 400 26px/1 var(--modern); cursor: pointer; transition: transform .25s var(--tempo), border-color .25s; }
.fenster-zu:hover { transform: rotate(90deg); border-color: var(--a1); }
.fenster-titel { font-size: clamp(26px, 4.4vw, 40px); margin: 0 48px 10px 0; }
.fenster-titelbild { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; }
.fenster-titelbild img { width: 100%; max-height: 380px; object-fit: cover; }
.fenster-einleitung { color: var(--leise); margin-top: 12px; font-size: 1.05rem; }
.fenster-text { margin-top: 18px; }
.fenster-text p + p { margin-top: 1em; }
.fenster .marken { margin-bottom: 4px; }
.fenster-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 22px; }
.fenster-bilder figure { margin: 0; }
.fenster-bilder figcaption { font-size: 13px; color: var(--leise); margin-top: 5px; }
.fenster-bild, .galerie-knopf { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: inherit; }
.fenster-bild { aspect-ratio: 4 / 3; border-radius: calc(var(--radius) * .7); }
.fenster-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--tempo); }
.fenster-bild:hover img { transform: scale(1.06); }
.fenster-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lichtbild { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lichtbild .fenster-zu { position: absolute; float: none; top: 14px; right: 14px; margin: 0; background: rgba(0, 0, 0, .5); color: #fff; border-color: rgba(255, 255, 255, .3); }
.lichtbild-rahmen { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 60px clamp(16px, 7vw, 90px) 18px; }
.lichtbild-bild { max-width: 100%; max-height: calc(100% - 40px); min-height: 0; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lichtbild-text { margin: 0; font-size: 14px; color: #e6e9f2; text-align: center; min-height: 1.4em; }
.lichtbild-pfeil { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; padding: 0 0 4px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .5); color: #fff; font: 400 30px/1 var(--modern); cursor: pointer; }
.lichtbild-pfeil.zurueck { left: 12px; }
.lichtbild-pfeil.vor { right: 12px; }

/* --- Fuß, Impressum, Hinweise ------------------------------------------------------------ */
.seitenfuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 28px 18px 36px; font-size: 13.5px; color: var(--leise); }
.seitenfuss a, .fuss-knopf { color: inherit; text-underline-offset: 3px; }
.fuss-knopf { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.impressum { max-width: 520px; width: calc(100% - 32px); color: var(--text); background: var(--grund); border: 1px solid var(--rand); border-radius: var(--radius); padding: 28px; }
.impressum::backdrop { background: rgba(0, 0, 0, .5); }
.impressum h2 { font-size: 26px; margin-bottom: 14px; }
.impressum .knopf { margin-top: 14px; }
.vorschau-hinweis { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; padding: 8px 18px; border-radius: 999px; background: var(--a1); color: var(--auf-a1); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ohne-skript, .uebersicht main { max-width: 760px; margin: 0 auto; padding: 60px 20px; }
.ohne-skript section { margin-top: 28px; }
body.uebersicht { --grund: #0b1020; --text: #e8ecf8; --leise: #a2adcb; --a1: #8b6dff; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--modern); }
@media (prefers-color-scheme: light) { body.uebersicht { --grund: #f3f5fe; --text: #141a33; --leise: #525c7c; --a1: #5a3df0; } }
.uebersicht main { flex: 1; width: 100%; }
.uebersicht h1 { font-size: clamp(40px, 8vw, 72px); margin-bottom: 26px; }
.uebersicht ul { list-style: none; padding: 0; margin: 0; font-size: 1.3rem; }
.uebersicht li { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 16%, transparent); }
.uebersicht li a { color: var(--a1); text-decoration: none; }
.uebersicht footer { text-align: center; padding: 26px; font-size: 14px; color: var(--leise); }

/* --- schmale Bildschirme ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .kopf-inhalt.mit-bild, .text-raster.mit-bild, .code-raster { grid-template-columns: minmax(0, 1fr); }
  .kopf-foto { order: -1; max-width: 200px; justify-self: start; }
  .zeitleiste-spur { left: 8px; }
  .station, .station.rechts { width: auto; margin-left: 0; padding: 0 0 0 36px; }
  .station .station-punkt, .station.rechts .station-punkt { left: 0; right: auto; }
  .erscheint[data-anim="seite"], .erscheint[data-anim="seite-rechts"] { transform: translateY(34px); }
  .erscheint.sichtbar[data-anim] { transform: none; }
  .navigation { left: 12px; right: 12px; max-width: none; transform: none; justify-content: space-between; }
  .navigation.eingefahren { transform: translateY(-140%); }
  .art-kopf { padding-top: 90px; }
}

/* --- still: Animationen aus oder „Bewegung reduzieren“; sofort: Vorschau beim Tippen ------ */
.still *, .still *::before, .still *::after,
.sofort .erscheint, .sofort .wort-innen, .sofort .zitat-wort, .sofort .kopf-zeichen, .sofort .kopf-gruss, .sofort .kopf-rolle,
.sofort .kopf-einleitung, .sofort .kopf-knoepfe, .sofort .kopf-foto, .sofort .balken-fuellung, .sofort .kreis-wert {
  animation-delay: 0s !important; transition: none !important;
}
.still *, .still *::before, .still *::after { animation: none !important; }
.sofort .kopf-zeichen, .sofort .kopf-gruss, .sofort .kopf-rolle, .sofort .kopf-einleitung, .sofort .kopf-knoepfe { animation: none !important; }
.still .laufband-spur { flex-wrap: wrap; width: auto; }
.still .laufband-teil[aria-hidden] { display: none; }
.still .laufband-teil { flex-wrap: wrap; justify-content: center; }
.still .kopf-pfeil, .still .schreibmarke { display: none; }
