/* frankdavidlee.com — eine Datei, Systemschriften, keine fremden Quellen.
   © 2026 Frank David Lee. Alle Rechte vorbehalten. */

/* ---------- Grundwerte ---------- */
:root {
  --bg: #fbfbfd;
  --flaeche: #ffffff;
  --flaeche-2: #f2f2f5;
  --getoent: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #45454c;
  --text-3: #66666e;
  --rand: rgba(0, 0, 0, 0.09);
  --rand-stark: rgba(0, 0, 0, 0.16);
  --akzent: #2457d6;
  --akzent-auf: #ffffff;
  --akzent-weich: rgba(36, 87, 214, 0.1);
  --verlauf-a: #2457d6;
  --verlauf-b: #6d3ef0;
  --glas: rgba(251, 251, 253, 0.74);
  --schatten: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.14);
  --schatten-gross: 0 2px 4px rgba(15, 23, 42, 0.04), 0 40px 80px -32px rgba(15, 23, 42, 0.32);
  --ph-hell: 97%;
  --ph-dunkel: 91%;
  --ph-balken: rgba(255, 255, 255, 0.78);
  --gruen: #15803d;
  --violett: #6d3ef0;
  --bernstein: #b45309;
  --grau: #6b7280;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --kopf-h: 56px;
  --unten-h: 64px;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-gross: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --kurve: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light dark;
}
/* Bewusste Wahl über den Schalter im Kopf (data-theme am <html>, nichts wird gespeichert). */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --bg: #000000;
    --flaeche: #111113;
    --flaeche-2: #1c1c1f;
    --getoent: #0a0a0c;
    --text: #f5f5f7;
    --text-2: #c2c2c8;
    --text-3: #9a9aa2;
    --rand: rgba(255, 255, 255, 0.11);
    --rand-stark: rgba(255, 255, 255, 0.2);
    --akzent: #7aa2ff;
    --akzent-auf: #000000;
    --akzent-weich: rgba(122, 162, 255, 0.14);
    --verlauf-a: #7aa2ff;
    --verlauf-b: #b79cff;
    --glas: rgba(10, 10, 12, 0.72);
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
    --schatten-gross: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 80px -32px rgba(0, 0, 0, 0.9);
    --ph-hell: 16%;
    --ph-dunkel: 9%;
    --ph-balken: rgba(255, 255, 255, 0.1);
    --gruen: #4ade80;
    --violett: #b79cff;
    --bernstein: #fbbf24;
    --grau: #9ca3af;
  }
 }
:root[data-theme="dark"] {
    --bg: #000000;
    --flaeche: #111113;
    --flaeche-2: #1c1c1f;
    --getoent: #0a0a0c;
    --text: #f5f5f7;
    --text-2: #c2c2c8;
    --text-3: #9a9aa2;
    --rand: rgba(255, 255, 255, 0.11);
    --rand-stark: rgba(255, 255, 255, 0.2);
    --akzent: #7aa2ff;
    --akzent-auf: #000000;
    --akzent-weich: rgba(122, 162, 255, 0.14);
    --verlauf-a: #7aa2ff;
    --verlauf-b: #b79cff;
    --glas: rgba(10, 10, 12, 0.72);
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
    --schatten-gross: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 80px -32px rgba(0, 0, 0, 0.9);
    --ph-hell: 16%;
    --ph-dunkel: 9%;
    --ph-balken: rgba(255, 255, 255, 0.1);
    --gruen: #4ade80;
    --violett: #b79cff;
    --bernstein: #fbbf24;
    --grau: #9ca3af;
  }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 16px); }
/* Kein Weiterziehen über das Seitenende: auf iOS wanderte die feste untere Leiste dabei mit dem
   Inhalt nach oben und darunter blieb leere Fläche (Franks Befund 13.11.2026, im Prüfbrowser nicht
   nachstellbar). */
html, body { overscroll-behavior-y: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--schrift);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
/* Überschriften werden nicht automatisch mitten im Wort getrennt (wirkt unruhig, v. a. in großer
   Schrift): ganze Wörter rutschen in die nächste Zeile. Ausnahme sind die Rechtstexte mit langen
   Wörtern wie „Datenschutzerklärung“; ein einzelnes zu langes Wort bricht notfalls um. */
h1, h2, h3 { font-family: var(--schrift-gross); color: var(--text); margin: 0; overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
.rechtstext h1, .rechtstext h2, .rechtstext h3 { hyphens: auto; -webkit-hyphens: auto; }
p { margin: 0; }
a { color: var(--akzent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
button { font: inherit; color: inherit; }
.sym { width: 1.25em; height: 1.25em; flex: none; }
::selection { background: var(--akzent-weich); }

.sprunglink {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.sprunglink:focus { top: 12px; }

.huelle { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 16px; }
/* Schmaler Inhalt, aber linksbündig mit den übrigen Abschnitten (keine versetzte Spalte). */
.huelle-schmal > * { max-width: 52rem; }
.huelle-text { max-width: 64rem; }
@media (min-width: 640px) { .huelle { padding-inline: 24px; } }
@media (min-width: 1024px) { .huelle { padding-inline: 32px; } }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 40;
  background: var(--glas);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rand);
  padding-top: env(safe-area-inset-top);
}
.kopf-innen {
  max-width: 72rem; margin-inline: auto; height: var(--kopf-h);
  display: flex; align-items: center; gap: 12px; padding-inline: 16px;
}
@media (min-width: 640px) { .kopf-innen { padding-inline: 24px; } }
@media (min-width: 1024px) { :root { --kopf-h: 64px; } .kopf-innen { padding-inline: 32px; } }
.marke {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em;
  white-space: nowrap;
}
.marke .monogramm { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(59, 108, 246, 0.6); }
.nav-oben { display: none; }
.nav-oben ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-oben a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.nav-oben a:hover { color: var(--text); background: var(--flaeche-2); }
.nav-oben a[aria-current="page"] { color: var(--text); background: var(--flaeche-2); font-weight: 600; }
.sprachwahl {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--rand-stark); color: var(--text); text-decoration: none;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
}
.sprachwahl:hover { background: var(--flaeche-2); }
.sprachwahl .sym { width: 18px; height: 18px; }
/* Hell/Dunkel-Schalter: nur mit JavaScript sichtbar (ohne folgt die Seite dem Gerät). */
.themawahl {
  display: none; margin-left: auto; flex: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid var(--rand-stark);
  background: transparent; color: var(--text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.js .themawahl { display: inline-flex; }
.themawahl:hover { background: var(--flaeche-2); }
.themawahl .sym { width: 20px; height: 20px; }
.themawahl .sym-sonne { display: none; }
.themawahl + .sprachwahl { margin-left: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .themawahl .sym-sonne { display: block; } :root:not([data-theme="light"]) .themawahl .sym-mond { display: none; }
 }
:root[data-theme="dark"] .themawahl .sym-sonne { display: block; } :root[data-theme="dark"] .themawahl .sym-mond { display: none; }
@media (max-width: 359px) {
  .kopf-innen { gap: 8px; padding-inline: 12px; }
  .sprachwahl { padding: 0 10px; }
}
@media (min-width: 1024px) {
  .nav-oben { display: block; margin-left: auto; }
  .themawahl { margin-left: 8px; }
  .sprachwahl { margin-left: 8px; }
  .themawahl + .sprachwahl { margin-left: 0; }
}

/* ---------- Untere Navigation (unter 1024 px) ---------- */
.nav-unten {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  background: var(--glas);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--rand);
  padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
}
.nav-unten ul { list-style: none; margin: 0 auto; padding: 0; max-width: 32rem; display: grid; grid-template-columns: repeat(4, 1fr); }
.nav-unten a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--unten-h); padding: 6px 4px; color: var(--text-3); text-decoration: none;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.01em;
}
.nav-unten a .sym { width: 44px; height: 30px; padding: 3px 10px; border-radius: 999px; transition: background-color 0.2s, color 0.2s; }
.nav-unten a[aria-current="page"] { color: var(--akzent); }
.nav-unten a[aria-current="page"] .sym { background: var(--akzent-weich); }
.nav-unten a:focus-visible { outline-offset: -4px; border-radius: 14px; }
/* Wischen und Drücken wie in Arbeitseule (09.11.2026): angepeiltes Ziel leicht kleiner, kein Linkmenü. */
.nav-unten ul { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.nav-unten a { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-drag: none; }
.nav-unten a .sym, .nav-unten a span { transition: transform 0.15s ease-out, background-color 0.2s, color 0.2s; }
.nav-unten a[data-angepeilt] { color: var(--text-2); }
.nav-unten a[data-angepeilt] .sym { transform: scale(0.9); background: var(--akzent-weich); }
.nav-unten a[data-angepeilt] span { transform: scale(0.96); }
@media (prefers-reduced-motion: reduce) { .nav-unten a[data-angepeilt] .sym, .nav-unten a[data-angepeilt] span { transform: none; } }
body { padding-bottom: calc(var(--unten-h) + 1px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  .nav-unten { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Knöpfe, Pillen, Marken ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) {
  .knoepfe { flex-direction: column; gap: 10px; }
  .knoepfe .knopf { width: 100%; }
}
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--kurve), background-color 0.2s, box-shadow 0.2s, filter 0.2s;
}
.knopf .sym { width: 18px; height: 18px; transition: transform 0.2s var(--kurve); }
.knopf:hover .sym { transform: translateX(2px); }
.knopf.primaer { background: var(--akzent); color: var(--akzent-auf); box-shadow: 0 8px 20px -10px var(--akzent); }
.knopf.primaer:hover { filter: brightness(1.08); }
.knopf.zweit { background: var(--flaeche); color: var(--text); border-color: var(--rand-stark); }
.knopf.zweit:hover { background: var(--flaeche-2); }
.knopf.hell { background: #ffffff; color: #0b0b0f; }
.knopf.glas { background: rgba(255, 255, 255, 0.12); color: #ffffff; border-color: rgba(255, 255, 255, 0.28); }
.knopf.glas:hover { background: rgba(255, 255, 255, 0.2); }
.knopf:active { transform: scale(0.98); }

.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--flaeche-2); border: 1px solid var(--rand); color: var(--text-2);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--grau); }
.status-produktion i { background: var(--gruen); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gruen) 22%, transparent); }
.status-opensource i { background: var(--violett); }
.status-in-arbeit i { background: var(--bernstein); }
.status-geplant i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li {
  padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500;
  background: var(--flaeche-2); color: var(--text-2); border: 1px solid var(--rand);
}
.tags .tag-rest { color: var(--text-3); }
.tags-gross li { font-size: 0.9375rem; padding: 6px 14px; }

/* ---------- Aurora (rein dekorativ) ---------- */
.aurora {
  position: absolute; inset: -30% -10% auto -10%; height: 130%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(59, 108, 246, 0.28), transparent 70%),
    radial-gradient(35% 45% at 75% 20%, rgba(124, 77, 255, 0.22), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, rgba(20, 184, 166, 0.14), transparent 70%);
  filter: blur(40px);
}
.aurora-leise { opacity: 0.6; }
.aurora-projekt {
  background:
    radial-gradient(40% 55% at 25% 30%, hsl(var(--farbton) 90% 60% / 0.26), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, hsl(calc(var(--farbton) + 45) 90% 62% / 0.2), transparent 70%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aurora { opacity: 0.75; } :root:not([data-theme="light"]) .aurora-leise { opacity: 0.5; }  }
:root[data-theme="dark"] .aurora { opacity: 0.75; } :root[data-theme="dark"] .aurora-leise { opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .aurora { animation: aurora 28s ease-in-out infinite alternate; }
  @keyframes aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.06); } }
}

/* ---------- Held (Startseite) ---------- */
.held { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(32px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.held-raster { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 1024px) { .held-raster { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; } .held-video { padding-top: 8px; } }
.verfuegbar {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--rand);
  box-shadow: var(--schatten); font-size: 0.875rem; font-weight: 600; color: var(--text-2);
}
.verfuegbar i { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .verfuegbar i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gruen); animation: puls 2.4s ease-out infinite; }
  @keyframes puls { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }
}
.held h1 { display: flex; flex-direction: column; gap: 16px; }
.held-name { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; color: var(--text-2); }
.held-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--flaeche), 0 0 0 3px var(--rand-stark), var(--schatten); }
@media (min-width: 768px) { .held-avatar { width: 72px; height: 72px; } }
.held-satz {
  max-width: 23ch; font-size: clamp(2.375rem, 1.2rem + 5vw, 5.25rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em;
  text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal;
}
/* Lange Überschrift (eine Zeile über 30 Zeichen, z. B. die deutsche): etwas kleinere Schrift und
   volle Breite, damit sie am Desktop wie die englische in zwei Zeilen steht. */
.held-satz-lang { max-width: none; font-size: clamp(1.9rem, 0.96rem + 4vw, 4.2rem); }
.held-satz-laenger { font-size: clamp(1.76rem, 0.89rem + 3.7vw, 3.88rem); } /* eine Zeile über 38 Zeichen */
/* Jede Satzhälfte beginnt eine eigene Zeile; innerhalb wird ausgeglichen umbrochen. */
.held-zeile { display: block; text-wrap: balance; }
/* Verlaufszeile: der Hintergrund trägt die Schrift — etwas Platz nach unten, sonst sind die
   Unterlängen der letzten Zeile (g, p, y) abgeschnitten. Der Abstand zum Folgenden bleibt gleich. */
.held-zeile.verlauf { padding-bottom: 0.16em; margin-bottom: -0.16em; }
.verlauf {
  background: linear-gradient(100deg, var(--verlauf-a) 0%, var(--verlauf-b) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.held-rolle { margin-top: 0; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.held-lead { margin-top: 16px; max-width: 40rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.held .knoepfe { margin-top: 24px; }

.kennzahlen { margin-top: 32px; }
.kennzahlen dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.25rem), 1fr)); gap: 16px 20px; margin: 0; }
.kennzahlen dl > div { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--rand-stark); }
.kennzahlen dd { order: -1; margin: 0; font-family: var(--schrift-gross); font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kennzahlen dl > div { min-width: 0; }
.kennzahlen dt { overflow-wrap: break-word; hyphens: auto; font-size: 0.875rem; color: var(--text-2); line-height: 1.4; }
.kennzahlen .stand { margin-top: 12px; font-size: 0.8125rem; color: var(--text-3); }

/* ---------- Video ---------- */
.video { margin: 0; }
.video video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-l); background: #000; box-shadow: var(--schatten-gross); }
.video-flaeche {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 80% at 25% 20%, rgba(91, 132, 255, 0.55), transparent 70%),
    radial-gradient(50% 70% at 85% 85%, rgba(146, 102, 255, 0.5), transparent 70%),
    linear-gradient(160deg, #10162b, #090b14);
  box-shadow: var(--schatten-gross);
}
.video-flaeche::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 48px);
}
.video-flaeche .video-folgt {
  position: absolute; z-index: 1; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3);
}
.video-play {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.video-play .sym { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.video figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.video figcaption strong { font-family: var(--schrift-gross); font-size: 1.25rem; letter-spacing: -0.02em; }
.video figcaption span { color: var(--text-2); }
.video figcaption em {
  align-self: flex-start; margin-top: 8px; font-style: normal; font-size: 0.8125rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--rand-stark); color: var(--text-3);
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(40px, 6vw, 80px); position: relative; }
.abschnitt-eng { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.abschnitt-getoent { background: var(--getoent); }
.abschnitt-band { padding-top: 0; }
.abschnitt-kopf { max-width: 46rem; margin-bottom: clamp(24px, 3.5vw, 40px); }
.abschnitt-kopf h2, .rechtstext h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; }
.abschnitt-kopf p { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); color: var(--text-2); line-height: 1.5; text-wrap: pretty; }
.abschnitt-fuss { margin-top: clamp(20px, 3vw, 32px); }
.unterkopf { margin: clamp(40px, 5vw, 56px) 0 16px; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -0.03em; }

/* ---------- Geräterahmen + Platzhalter ---------- */
.geraet { position: relative; --farbton: 222; }
.geraet-desktop {
  border-radius: 14px; overflow: hidden; background: var(--flaeche);
  box-shadow: 0 0 0 1px var(--rand-stark), var(--schatten-gross);
}
.geraet-leiste {
  height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: var(--flaeche-2); border-bottom: 1px solid var(--rand);
}
.geraet-leiste i { width: 9px; height: 9px; border-radius: 50%; background: var(--rand-stark); }
.geraet-leiste span {
  margin-inline: auto; transform: translateX(-16px); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.6875rem; color: var(--text-3); padding: 2px 12px; border-radius: 6px; background: var(--flaeche);
}
.geraet-schirm { position: relative; overflow: hidden; }
.geraet-desktop .geraet-schirm { aspect-ratio: 16 / 10; }
.geraet-mobil {
  width: min(100%, 300px); margin-inline: auto; padding: 9px; border-radius: 44px;
  background: linear-gradient(145deg, #2a2a2e, #0c0c0e); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, var(--schatten-gross);
}
/* Handy: Statusleiste mit Aussparung über der Aufnahme (wie auf einem echten Telefon) — die
   Aussparung liegt nie über der Kopfzeile der gezeigten App. Größen in cqw der Glasfläche. */
.geraet-glas { border-radius: 35px; overflow: hidden; background: var(--flaeche); container-type: inline-size; }
.geraet-mobil .geraet-schirm { aspect-ratio: 800 / 1732; background: var(--flaeche); }
.geraet-status {
  position: relative; aspect-ratio: 430 / 59; display: flex; align-items: center; justify-content: space-between; padding-inline: 8cqw;
  background: var(--status-bg, #ffffff); color: var(--status-fg, #0f172a);
  font-size: 4cqw; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.geraet-insel { position: absolute; left: 50%; top: 50%; width: 29%; height: 62%; transform: translate(-50%, -50%); border-radius: 999px; background: #0c0c0e; }
.geraet-zeichen { display: flex; align-items: center; gap: 1cqw; }
.geraet-zeichen .sym { width: 4.4cqw; height: 4.4cqw; stroke-width: 2.4; }
.geraet-zeichen .sym:last-child { width: 5.6cqw; height: 5.6cqw; stroke-width: 1.8; }
.geraet-schirm img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.geraet-schirm picture { display: contents; }

.platzhalter {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 6%;
  background:
    radial-gradient(70% 60% at 15% 0%, hsl(var(--farbton) 92% 66% / 0.42), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, hsl(calc(var(--farbton) + 50) 92% 66% / 0.36), transparent 70%),
    linear-gradient(160deg, hsl(var(--farbton) 40% var(--ph-hell)), hsl(var(--farbton) 35% var(--ph-dunkel)));
}
.ph-skelett { position: absolute; inset: 7% 6% auto 6%; display: grid; grid-template-columns: 22% 1fr 1fr; grid-template-rows: 14px 1fr 1fr; gap: 6%; height: 66%; }
.ph-skelett span { border-radius: 8px; background: var(--ph-balken); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset; }
.ph-skelett span:nth-child(1) { grid-column: 1 / -1; border-radius: 999px; width: 46%; }
.ph-skelett span:nth-child(2) { grid-row: 2 / 4; }
.geraet-mobil .ph-skelett { inset: 15% 8% auto 8%; grid-template-columns: 1fr 1fr; grid-template-rows: 12px 1fr 1fr; height: 60%; gap: 5%; }
.geraet-mobil .ph-skelett span:nth-child(1) { width: 60%; }
.geraet-mobil .ph-skelett span:nth-child(2) { grid-row: auto; grid-column: 1 / -1; }
.ph-label {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
  color: var(--text); background: var(--glas); border: 1px solid var(--rand);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--schatten);
}
.ph-sym { width: 16px; height: 16px; }

/* ---------- Ausgewählte Projekte ---------- */
.features { display: grid; gap: clamp(16px, 3vw, 32px); }
.feature {
  position: relative; display: grid; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(20px, 4.5vw, 56px); border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(60% 80% at 100% 0%, hsl(var(--farbton) 90% 60% / 0.12), transparent 70%),
    var(--flaeche);
  border: 1px solid var(--rand); box-shadow: var(--schatten);
  transition: transform 0.4s var(--kurve), box-shadow 0.4s var(--kurve);
}
@media (min-width: 1024px) {
  .feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .feature-bild { order: 0; }
  .feature:nth-child(even) .feature-bild { order: -1; }
}
.feature-bild { order: -1; }
.feature-nr { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-3); margin-bottom: 12px; letter-spacing: 0.08em; }
.feature h3 { margin-top: 14px; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 1; font-weight: 700; letter-spacing: -0.045em; }
.feature-unter { margin-top: 12px; font-family: var(--schrift-gross); font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--text); font-weight: 500; }
.feature-text > p:not(.feature-nr):not(.feature-unter) { margin-top: 16px; color: var(--text-2); max-width: 34rem; }
.feature .tags { margin-top: 20px; }
.mehr { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; color: var(--akzent); }
.mehr .sym { width: 18px; height: 18px; transition: transform 0.3s var(--kurve); }
.karten-link { color: inherit; text-decoration: none; }
.karten-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.karten-link:focus-visible { outline: none; }
.feature:has(.karten-link:focus-visible), .karte:has(.karten-link:focus-visible) { outline: 3px solid var(--akzent); outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
  .feature:hover .mehr .sym { transform: translateX(4px); }
  .karte:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
}

/* ---------- Projektkarten ---------- */
.karten { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2.5vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.karten-kompakt { grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 16px; }
/* Genau fünf weitere Projekte: 2 + 3 statt 4 + 1 (ohne :has bleibt das automatische Raster). */
@media (min-width: 1024px) {
  .karten-kompakt:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
  .karten-kompakt:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .karten-kompakt:has(> li:nth-child(5):last-child) > li:nth-child(-n+2) { grid-column: span 3; }
}
.karte {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden;
  background: var(--flaeche); border: 1px solid var(--rand); box-shadow: var(--schatten);
  transition: transform 0.4s var(--kurve), box-shadow 0.4s var(--kurve);
}
.karte[hidden] { display: none; }
.karte-bild {
  aspect-ratio: 16 / 10.5; overflow: hidden; display: flex; justify-content: center; align-items: flex-start;
  padding: 24px 24px 0;
  background: radial-gradient(80% 90% at 50% 0%, hsl(var(--farbton) 85% 60% / 0.16), transparent 75%), var(--getoent);
  border-bottom: 1px solid var(--rand);
}
.karte-bild .geraet-desktop { width: 100%; }
/* Karte: Telefon nur 46 % breit — Rahmen, Rundung und Glas im selben Verhältnis wie in voller
   Größe (300 px), sonst schneidet die feste Rundung die Uhrzeit der Statusleiste an. */
.karte-bild { container-type: inline-size; position: relative; }
/* Kennzeichen „Neu“ (Feld `neu` am Projekt): sitzt oben links über dem Bild der Karte. */
.neu-marke {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 11px; border-radius: 999px;
  background: var(--akzent); color: var(--akzent-auf); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
}
.karte-bild .geraet-mobil { width: 46cqw; padding: 1.38cqw; border-radius: 6.75cqw; }
.karte-bild .geraet-mobil .geraet-glas { border-radius: 5.37cqw; }
.karte-text { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
/* Status und Zeitraum stehen immer in einer Zeile, damit die Titel aller Karten auf derselben Höhe beginnen. */
.karte-meta { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; font-size: 0.8125rem; color: var(--text-3); white-space: nowrap; min-width: 0; }
.karte-meta .status { flex: none; }
.karte-meta > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.karte h2, .karte h3 { font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1.15; }
.karte-text > p:not(.karte-meta) { color: var(--text-2); font-size: 0.9375rem; }
.karte .tags { padding-top: 8px; }
.karten-kompakt .karte-bild { padding: 18px 18px 0; }

/* Filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter[hidden] { display: none; }
.filter-knopf {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rand-stark); background: var(--flaeche); color: var(--text-2); font-size: 0.9375rem; font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter-knopf:hover { color: var(--text); }
.filter-knopf[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter-anzahl { margin-bottom: 24px; font-size: 0.875rem; color: var(--text-3); }

/* ---------- Schwerpunkte (Bento) ---------- */
.bento { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento li:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .bento li { grid-column: span 2; }
  .bento li.bento-0, .bento li.bento-1 { grid-column: span 3; }
  .bento li:last-child { grid-column: span 2; }
}
.bento li {
  position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-l);
  background: var(--flaeche); border: 1px solid var(--rand); box-shadow: var(--schatten);
}
.bento li.bento-0 { background: radial-gradient(70% 90% at 100% 0%, rgba(59, 108, 246, 0.14), transparent 70%), var(--flaeche); }
.bento li.bento-1 { background: radial-gradient(70% 90% at 100% 0%, rgba(124, 77, 255, 0.14), transparent 70%), var(--flaeche); }
.bento-sym {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 24px;
  color: var(--akzent); background: var(--akzent-weich);
}
.bento-sym .sym { width: 26px; height: 26px; }
.bento h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); letter-spacing: -0.025em; line-height: 1.2; }
.bento p { margin-top: 10px; color: var(--text-2); }

/* ---------- Zeitleiste ---------- */
.zeitleiste { list-style: none; margin: 0; padding: 0; position: relative; }
.zeitleiste::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--rand-stark), var(--rand)); }
.zeitleiste li { position: relative; padding: 0 0 28px 36px; display: grid; gap: 6px; }
.zeitleiste li:last-child { padding-bottom: 0; }
.zeitleiste li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--akzent);
}
.zeitleiste .zl-bildung::before { border-color: var(--violett); }
.zeitleiste .zl-projekt::before { border-color: var(--gruen); background: var(--gruen); }
.zl-zeit { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-3); letter-spacing: 0.02em; }
.zl-inhalt h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }
.zl-ort { margin-top: 2px; font-weight: 600; color: var(--text-2); font-size: 0.9375rem; }
.zl-inhalt p:not(.zl-ort) { margin-top: 8px; color: var(--text-2); max-width: 44rem; }
@media (min-width: 768px) {
  .zeitleiste::before { left: 199px; }
  .zeitleiste li { grid-template-columns: 160px 1fr; gap: 0 72px; padding-left: 0; }
  .zeitleiste li::before { left: 192px; }
  .zl-zeit { text-align: right; padding-top: 2px; }
}

/* ---------- Kontaktband ---------- */
.kontakt-band {
  position: relative; overflow: hidden; isolation: isolate; color: #ffffff; text-align: center;
  padding: clamp(36px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: var(--r-xl);
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(91, 132, 255, 0.6), transparent 70%),
    radial-gradient(55% 75% at 90% 100%, rgba(146, 102, 255, 0.55), transparent 70%),
    linear-gradient(160deg, #0f1631, #07080f);
  box-shadow: var(--schatten-gross);
}
.kontakt-band h2 { color: #ffffff; font-size: clamp(2.5rem, 1.5rem + 5vw, 5rem); line-height: 1; letter-spacing: -0.05em; }
/* Kurzer Aufruf („Lass uns sprechen.“): ausgeglichen umbrochen; gilt auch für die Kontaktseite. */
.kontakt-band h2, .seitenkopf h1.gross { text-wrap: balance; }
.kontakt-band > p { margin-inline: auto; max-width: 36rem; color: rgba(255, 255, 255, 0.82); }
.kontakt-band > p:nth-of-type(1) { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); }
.kontakt-band-mail { margin-top: 24px; font-family: var(--schrift-gross); font-size: clamp(1.125rem, 0.9rem + 1.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.kontakt-band-mail a { color: #ffffff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--kurve); }
.kontakt-band-mail a:hover { background-size: 100% 1px; }
.kontakt-band .knoepfe { justify-content: center; margin-top: 24px; }
.kontakt-band :focus-visible { outline-color: #ffffff; }
.kontakt-band .kontakt-band-rollen { margin-top: 24px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.seitenkopf { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(32px, 7vw, 96px) clamp(16px, 3vw, 40px); }
.seitenkopf h1 { font-size: clamp(2.75rem, 1.5rem + 5.5vw, 5.5rem); line-height: 1; font-weight: 700; letter-spacing: -0.05em; }
.seitenkopf-lead { margin-top: 20px; max-width: 42rem; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }

/* ---------- Fallstudie ---------- */
.fs-kopf { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(24px, 4vw, 48px) clamp(32px, 5vw, 56px); }
.zurueck { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 12px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.zurueck:hover { color: var(--text); }
.zurueck .sym { width: 18px; height: 18px; }
.fs-kopf h1 { margin-top: 20px; font-size: clamp(2.5rem, 1.4rem + 6vw, 6rem); line-height: 0.98; font-weight: 700; letter-spacing: -0.05em; }
.fs-unter { margin-top: 16px; max-width: 46rem; font-family: var(--schrift-gross); font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); line-height: 1.25; letter-spacing: -0.025em; color: var(--text-2); text-wrap: balance; }
.fs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 16px 32px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--rand-stark); }
.fs-meta dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.fs-meta dd { margin: 6px 0 0; font-weight: 500; }
.fs-meta-technik { grid-column: 1 / -1; }
.fs-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.fs-buehne { margin-block: clamp(8px, 2vw, 24px) clamp(32px, 5vw, 56px); }
.fs-buehne .geraet-mobil { width: min(100%, 320px); }
.huelle-text > .kennzahlen { margin: 0 0 clamp(24px, 4vw, 48px); }
.fs-abschnitt { display: grid; gap: 16px; padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--rand); }
.fs-abschnitt h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; }
@media (min-width: 1024px) {
  .fs-abschnitt { grid-template-columns: 15rem 1fr; gap: 48px; }
  .fs-abschnitt h2 { position: sticky; top: calc(var(--kopf-h) + 32px); align-self: start; }
}
.fs-text { display: grid; gap: 16px; max-width: 42rem; font-size: 1.125rem; line-height: 1.65; color: var(--text-2); }
.punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.punkte li { position: relative; padding-left: 28px; }
.punkte li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--verlauf-a), var(--verlauf-b)); }
.hinweis-platzhalter { padding: 14px 18px; border-radius: var(--r-m); border: 1px dashed var(--rand-stark); color: var(--text-3); font-size: 0.9375rem; }
.fs-galerie { padding-block: clamp(32px, 5vw, 64px); }
.fs-galerie h2, .fs-video h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.03em; margin-bottom: 24px; }
.galerie { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.galerie-figur { margin: 0; }
.galerie-figur figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--text-3); text-align: center; }
.galerie-knopf { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; text-align: inherit; }
.galerie-knopf .geraet-mobil { width: min(100%, 280px); }
.galerie-lupe {
  position: absolute; top: 44px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text); background: var(--glas); border: 1px solid var(--rand);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.2s;
}
.galerie-lupe .sym { width: 20px; height: 20px; }
.galerie-knopf:hover .galerie-lupe, .galerie-knopf:focus-visible .galerie-lupe { opacity: 1; }
@media (hover: none) { .galerie-lupe { opacity: 1; } }
.fs-video { padding-block: 0 clamp(32px, 5vw, 52px); }
.fs-video .video figcaption span { font-size: 0.9375rem; color: var(--text-3); }
.fs-weiter { display: grid; gap: 12px; padding-block: clamp(32px, 5vw, 64px); }
@media (min-width: 640px) { .fs-weiter { grid-template-columns: 1fr 1fr; } .fs-weiter a[rel="next"] { text-align: right; } .fs-weiter a[rel="next"] span { justify-content: flex-end; } }
.fs-weiter a {
  display: grid; gap: 6px; padding: 24px; border-radius: var(--r-l); text-decoration: none;
  background: var(--flaeche); border: 1px solid var(--rand); box-shadow: var(--schatten); transition: box-shadow 0.3s;
}
.fs-weiter a:hover { box-shadow: var(--schatten-gross); }
.fs-weiter span { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.fs-weiter span .sym { width: 16px; height: 16px; }
.fs-weiter strong { font-family: var(--schrift-gross); font-size: 1.375rem; letter-spacing: -0.03em; color: var(--text); }

/* ---------- Bildansicht (Lightbox) ---------- */
.lightbox {
  width: min(calc(100vw - 24px), 1200px); max-width: none; max-height: calc(100dvh - 24px);
  padding: 12px 16px 16px; border: 1px solid var(--rand); border-radius: var(--r-l);
  background: var(--flaeche); color: var(--text); box-shadow: var(--schatten-gross); overflow: auto;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lightbox[open] { display: flex; flex-direction: column; gap: 12px; }
.lb-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-position { font-size: 0.875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lb-knopf {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--rand-stark); background: var(--flaeche-2); color: var(--text);
}
.lb-knopf:hover { background: var(--rand); }
.lb-buehne { display: flex; justify-content: center; }
.lb-buehne .geraet-desktop { width: min(100%, calc((100dvh - 210px) * 1.55)); box-shadow: 0 0 0 1px var(--rand-stark); }
.lb-buehne .geraet-mobil { width: min(100%, calc((100dvh - 230px) * 0.43)); box-shadow: none; }
.lb-unterschrift { text-align: center; color: var(--text-2); min-height: 1.6em; }
.lb-nav { display: flex; justify-content: center; gap: 12px; }
.lb-nav[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-auf 0.28s var(--kurve); }
  @keyframes lb-auf { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
}

/* ---------- Über ---------- */
.ueber-raster { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .ueber-raster { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); } }
.ueber-portrait img, .portrait-platzhalter { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; border-radius: var(--r-xl); object-fit: cover; }
.ueber-portrait img { display: block; height: auto; box-shadow: var(--schatten-gross); }
@media (max-width: 1023px) { .ueber-portrait img { max-width: 280px; } }
.portrait-platzhalter {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background:
    radial-gradient(70% 60% at 20% 0%, rgba(91, 132, 255, 0.35), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, rgba(146, 102, 255, 0.3), transparent 70%),
    var(--flaeche-2);
  border: 1px solid var(--rand); box-shadow: var(--schatten-gross); color: var(--text-3); font-weight: 600; font-size: 0.875rem;
}
.portrait-platzhalter span { padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--rand-stark); background: var(--glas); }
.monogramm-gross { width: 112px; height: 112px; border-radius: 30px; box-shadow: 0 24px 48px -16px rgba(59, 108, 246, 0.6); }
.ueber-text > p:not(.held-rolle):not(.seitenkopf-lead) { margin-top: 16px; color: var(--text-2); max-width: 42rem; }
.ueber-text .held-rolle { margin-top: 20px; }
.ueber-text .knoepfe { margin-top: 24px; }
.mt { margin-top: 32px; }
.abschnitt-eng h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.lead-klein { color: var(--text-2); font-size: 1.125rem; }
.ausbildung { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.ausbildung li { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--r-m); background: var(--flaeche); border: 1px solid var(--rand); }
.ausbildung strong { font-weight: 600; }
.ausbildung span { color: var(--text-2); font-size: 0.9375rem; }

/* ---------- Kontakt ---------- */
.seitenkopf h1.gross { font-size: clamp(3rem, 1.5rem + 7vw, 7rem); }
.kontakt-raster { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 768px) { .kontakt-mail { grid-column: 1 / -1; } }
.kontakt-karte {
  display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-l);
  background: var(--flaeche); border: 1px solid var(--rand); box-shadow: var(--schatten);
}
.kontakt-mail { background: radial-gradient(60% 90% at 100% 0%, rgba(59, 108, 246, 0.14), transparent 70%), var(--flaeche); }
.kontakt-sym { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 8px; color: var(--akzent); background: var(--akzent-weich); }
.kontakt-sym .sym { width: 26px; height: 26px; }
.kontakt-karte h2 { font-size: 1.375rem; letter-spacing: -0.025em; }
.kontakt-karte > p { color: var(--text-2); }
.kontakt-adresse { font-family: var(--schrift-gross); font-size: clamp(1.25rem, 0.9rem + 2vw, 2.25rem) !important; font-weight: 600; letter-spacing: -0.03em; color: var(--text) !important; overflow-wrap: anywhere; user-select: all; }
.kontakt-karte .knoepfe { margin-top: 12px; }
.kopier-meldung:empty { display: none; }
.kopier-meldung { margin-top: 4px; font-size: 0.875rem; color: var(--text-2) !important; }
.kontakt-link { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.kontakt-link:hover span { text-decoration: underline; }
.kontakt-link .sym { width: 18px; height: 18px; }
.knopf[hidden] { display: none; }
.hinweis-klein { margin-top: 20px; font-size: 0.9375rem; color: var(--text-3); max-width: 46rem; }
.hinweis-klein + .hinweis-klein { margin-top: 8px; }

/* ---------- Rechtstexte ---------- */
.rechtstext { padding-block: clamp(40px, 7vw, 96px); max-width: 48rem; }
.rechtstext h1 { margin-bottom: 24px; }
.rechtstext h2 { margin: 40px 0 12px; font-size: 1.25rem; letter-spacing: -0.02em; }
.rechtstext p { margin: 0 0 14px; color: var(--text-2); line-height: 1.7; }
.rechtstext a { overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.code-404 {
  font-family: var(--schrift-gross); font-size: clamp(6rem, 3rem + 14vw, 12rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em;
  background: linear-gradient(120deg, var(--verlauf-a), var(--verlauf-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.seite-404 .knoepfe { margin-top: 24px; }
.en-404 { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rand); color: var(--text-2); }
.en-404 h2 { font-size: 1.25rem; margin-bottom: 8px; }

/* ---------- Fußzeile ---------- */
.fuss { margin-top: 0; border-top: 1px solid var(--rand); background: var(--getoent); font-size: 0.875rem; color: var(--text-3); }
.fuss-innen { max-width: 72rem; margin-inline: auto; padding: 32px 16px 28px; display: grid; gap: 16px; }
@media (min-width: 640px) { .fuss-innen { padding-inline: 24px; } }
@media (min-width: 1024px) { .fuss-innen { padding-inline: 32px; grid-template-columns: 1fr auto; align-items: start; } .fuss-recht, .fuss-gebaut { grid-column: 1 / -1; } }
.fuss-marke { display: flex; align-items: center; gap: 12px; }
.fuss-marke div { display: grid; }
.fuss-marke strong { color: var(--text); font-size: 0.9375rem; }
.monogramm-fuss { width: 36px; height: 36px; border-radius: 10px; }
.fuss-nav { display: grid; gap: 8px; }
.fuss-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; }
.fuss-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-2); text-decoration: none; }
.fuss-nav li:first-child a { padding-left: 0; }
@media (min-width: 1024px) { .fuss-nav ul { justify-content: flex-end; } .fuss-nav li:first-child a { padding-left: 10px; } .fuss-nav li:last-child a { padding-right: 0; } }
.fuss-nav a:hover { color: var(--text); text-decoration: underline; }
.fuss-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.fuss-recht { padding-top: 16px; border-top: 1px solid var(--rand); }
.fuss-recht span { display: inline-block; }

/* ---------- Einblenden (nur mit Bewegung erlaubt, nur mit JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bewegung .einblenden { transition: opacity 0.8s var(--kurve), transform 0.8s var(--kurve); }
  .bewegung .einblenden:not(.sichtbar) { opacity: 0; transform: translateY(24px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */
@media print {
  :root { --bg: #fff; --flaeche: #fff; --flaeche-2: #f3f3f3; --getoent: #fff; --text: #000; --text-2: #222; --text-3: #444; --rand: #ccc; --rand-stark: #999; --akzent: #000; --schatten: none; --schatten-gross: none; color-scheme: light; }
  body { padding: 0 !important; font-size: 11pt; background: #fff; }
  .kopf { position: static; backdrop-filter: none; background: #fff; }
  .nav-oben, .nav-unten, .sprachwahl, .themawahl, .sprunglink, .aurora, .knoepfe, .filter, .lightbox, .galerie-lupe, .fs-weiter, .video-flaeche, .fs-video { display: none !important; }
  .abschnitt, .held, .seitenkopf { padding-block: 16pt; }
  .feature, .karte, .bento li, .kontakt-karte, .kontakt-band { box-shadow: none; break-inside: avoid; }
  .kontakt-band { background: #fff; color: #000; border: 1px solid #999; }
  .kontakt-band h2, .kontakt-band a, .kontakt-band p { color: #000 !important; }
  .verlauf, .code-404 { color: #000; background: none; }
  .fs-text a[href^="http"]::after, .rechtstext a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .einblenden { opacity: 1 !important; transform: none !important; }
}
.geraet-mobil .platzhalter { align-items: center; padding-top: 30%; }
/* Schmaler Handyrahmen: Hinweis darf umbrechen statt abgeschnitten zu werden. */
.geraet-mobil .ph-label { max-width: 88%; white-space: normal; text-align: center; justify-content: center; padding: 6px 10px; font-size: 0.75rem; line-height: 1.25; }
.geraet-mobil .ph-label .ph-sym { display: none; }

/* ---------- Seitenwechsel ----------
   Kopf und untere Navigation bleiben beim Wechsel stehen, nur der Inhalt blendet kurz über
   (View Transitions zwischen Dokumenten, reines CSS). Bei reduzierter Bewegung aus. */
@view-transition { navigation: auto; }
.kopf { view-transition-name: kopf; }
.nav-unten { view-transition-name: nav-unten; }
::view-transition-group(kopf), ::view-transition-group(nav-unten) { animation: none; }
::view-transition-old(kopf), ::view-transition-old(nav-unten) { display: none; }
::view-transition-new(kopf), ::view-transition-new(nav-unten) { animation: none; }
/* Eine einzige, ruhige Bewegung beim Wechsel: alter Inhalt blendet kurz aus, neuer gleitet von
   leicht unten herein. Einblend-Animationen der Elemente pausieren dabei (.sofort). */
::view-transition-old(root) { animation: vt-raus 0.14s ease-out both; }
::view-transition-new(root) { animation: vt-rein 0.42s var(--kurve) both; }
@keyframes vt-raus { to { opacity: 0; } }
@keyframes vt-rein { from { opacity: 0; transform: translateY(14px); } }
.sofort .einblenden { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
@media (max-width: 379px) {
  .karte-meta { gap: 8px; font-size: 0.75rem; }
  .karte-meta .status { padding: 3px 9px 3px 8px; gap: 6px; font-size: 0.75rem; }
  .karte-text { padding-left: 18px; padding-right: 18px; }
}

/* ---------- Ladegerüst beim Seitenwechsel ----------
   Erscheint nur, wenn das Laden länger als 150 ms dauert: schmaler Fortschrittsbalken unter dem
   Kopf und ein ruhiges Platzhalter-Gerüst statt eines leeren oder springenden Bereichs. */
.seite-laedt .kopf::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--verlauf-a), var(--verlauf-b));
  transform-origin: left; animation: lade-balken 1.6s var(--kurve) infinite;
}
.seite-laedt main { position: relative; min-height: 70vh; }
.seite-laedt main > * { visibility: hidden; }
.seite-laedt main::before {
  content: ""; position: absolute; top: clamp(32px, 7vw, 88px);
  left: max(16px, calc((100% - 72rem) / 2 + 24px)); right: max(16px, calc((100% - 72rem) / 2 + 24px));
  height: 460px; border-radius: var(--r-m);
  background:
    linear-gradient(var(--flaeche-2) 0 0) 0 0 / min(420px, 70%) 48px no-repeat,
    linear-gradient(var(--flaeche-2) 0 0) 0 80px / min(640px, 92%) 16px no-repeat,
    linear-gradient(var(--flaeche-2) 0 0) 0 108px / min(520px, 78%) 16px no-repeat,
    linear-gradient(var(--flaeche-2) 0 0) 0 168px / 100% 280px no-repeat;
  animation: lade-puls 1.2s ease-in-out infinite alternate;
}
@keyframes lade-balken { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes lade-puls { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .seite-laedt .kopf::after, .seite-laedt main::before { animation: none; }
}

/* Nur mit JavaScript sinnvolle Bedienelemente (Filter, Kopieren). Die Klasse "js" setzt ein
   Einzeiler im <head> vor dem ersten Bild – so ist der Platz von Anfang an da und nichts springt. */
html:not(.js) .nur-js { display: none !important; }

/* ---------- Geschützter Download (Projektseite) ---------- */
.fs-download { margin-top: 40px; margin-bottom: 8px; }
.fs-download h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-version { font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--flaeche-2); color: var(--text-2, var(--text)); }
.dl-form label { display: block; font-weight: 600; margin: 14px 0 8px; }
.dl-zeile { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-zeile input { flex: 1 1 220px; min-height: 44px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--flaeche); border: 1px solid var(--rand-stark); border-radius: 12px; }
.dl-zeile input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.dl-meldung { min-height: 1.5em; margin: 10px 0 0; font-size: 0.95rem; }
.dl-meldung.fehler { color: #d14343; }

/* LinkedIn-QR auf der Kontaktseite (09.11.2026): Karte über die volle Breite, QR auf Weiß mit Ruhezone. */
.kontakt-linkedin { display: grid; gap: 20px; align-items: center; }
@media (min-width: 768px) { .kontakt-linkedin { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; } }
.linkedin-text { display: flex; flex-direction: column; gap: 10px; }
.linkedin-text > p { color: var(--text-2); max-width: 34rem; }
.qr-rahmen { margin: 0; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-rahmen img { display: block; width: 164px; height: 164px; padding: 10px; background: #ffffff; border-radius: 14px; box-shadow: 0 0 0 1px var(--rand), var(--schatten); }
.qr-rahmen figcaption { font-size: 0.8125rem; color: var(--text-3); }
.qr-dialog { border: 0; padding: 0; margin: auto; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #ffffff; color: #111827; }
.qr-dialog::backdrop { background: #ffffff; }
.qr-dialog-innen { height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 20px; padding: 24px 16px; text-align: center; }
/* Querformat/niedrige Fenster: kompakter, damit Umschalter und QR gleichzeitig sichtbar sind. */
@media (max-height: 520px) { .qr-dialog-innen { gap: 10px; padding-block: 12px; } .qr-dialog-name { font-size: 1.125rem; } .qr-dialog-innen img { width: min(60vw, 52dvh); } .qr-dialog-hinweis { font-size: 0.8125rem; } }
.qr-dialog-innen img { width: min(78vw, 56dvh, 440px); height: auto; aspect-ratio: 1; }
.qr-dialog-name { margin: 0; font-family: var(--schrift-gross); font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; color: #111827; }
.qr-dialog-hinweis { margin: 0; color: #4b5563; font-size: 0.9375rem; }
.qr-dialog .knopf.zweit { color: #111827; background: #f3f4f6; border-color: #d1d5db; }
.qr-wahl { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: #f3f4f6; border: 1px solid #e5e7eb; }
.qr-wahl button { min-height: 44px; min-width: 112px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: #374151; font: inherit; font-weight: 600; cursor: pointer; }
.qr-wahl button[aria-pressed="true"] { background: #ffffff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.qr-wahl button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.qr-ansicht { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qr-ansicht[hidden] { display: none; }

/* ---------- Architektur-Seite (10.11.2026) ----------
   Zeichnung als eingebettetes SVG (Quelle: workbench/architektur/diagramm.mjs), Farben über --d-…,
   damit Hell und Dunkel stimmen. Eigene Strichsymbole, keine Markenlogos. */
.arch {
  --d-text: #0f172a; --d-text2: #475569; --d-linie: #334155; --d-halo: #ffffff;
  --d-abz: #2563eb; --d-abz-text: #ffffff; --d-abz-rand: #ffffff;
  --d-kasten: #ffffff; --d-kasten-rand: #cbd5e1; --d-dienst-rand: #94a3b8; --d-app-rand: #2563eb;
  --d-mensch: #0f172a; --d-mensch-text: #ffffff; --d-mensch-text2: #cbd5e1;
  --d-cf-bg: #fff6ec; --d-cf-rand: #f0a35c; --d-cf-text: #9a4d07;
  --d-aws-bg: #f0f5ff; --d-aws-rand: #7ea2e8; --d-aws-text: #1e3f8a;
  --d-gh-bg: #f3f4f6; --d-gh-rand: #9aa3af; --d-gh-text: #30363d;
  --d-server-bg: rgba(255, 255, 255, 0.55); --d-server-rand: #1e3f8a;
  --d-chip-cf: #ffe9d2; --d-chip-cf-text: #9a4d07; --d-chip-aws: #e1eafc; --d-chip-aws-text: #1e3f8a;
  --d-chip-gh: #e9ebee; --d-chip-gh-text: #30363d; --d-chip-app: #dbe7ff; --d-chip-app-text: #1d4ed8;
  --d-chip-extern: #eef1f5; --d-chip-extern-text: #475569; --d-chip-mensch: rgba(255, 255, 255, 0.14); --d-chip-mensch-text: #ffffff;
  margin: 0;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .arch {
    --d-text: #f5f5f7; --d-text2: #c2c2c8; --d-linie: #c2c2c8; --d-halo: #111113;
    --d-abz: #7aa2ff; --d-abz-text: #000000; --d-abz-rand: #111113;
    --d-kasten: #1c1c1f; --d-kasten-rand: rgba(255, 255, 255, 0.2); --d-dienst-rand: rgba(255, 255, 255, 0.32); --d-app-rand: #7aa2ff;
    --d-mensch: #f5f5f7; --d-mensch-text: #000000; --d-mensch-text2: #3a3a40;
    --d-cf-bg: rgba(240, 163, 92, 0.1); --d-cf-rand: rgba(240, 163, 92, 0.6); --d-cf-text: #f3b680;
    --d-aws-bg: rgba(126, 162, 232, 0.1); --d-aws-rand: rgba(126, 162, 232, 0.6); --d-aws-text: #a9c1f5;
    --d-gh-bg: rgba(255, 255, 255, 0.05); --d-gh-rand: rgba(255, 255, 255, 0.28); --d-gh-text: #e5e7eb;
    --d-server-bg: rgba(255, 255, 255, 0.03); --d-server-rand: #a9c1f5;
    --d-chip-cf: rgba(240, 163, 92, 0.2); --d-chip-cf-text: #f3b680; --d-chip-aws: rgba(126, 162, 232, 0.2); --d-chip-aws-text: #a9c1f5;
    --d-chip-gh: rgba(255, 255, 255, 0.1); --d-chip-gh-text: #e5e7eb; --d-chip-app: rgba(122, 162, 255, 0.2); --d-chip-app-text: #a9c1f5;
    --d-chip-extern: rgba(255, 255, 255, 0.1); --d-chip-extern-text: #c2c2c8; --d-chip-mensch: rgba(0, 0, 0, 0.1); --d-chip-mensch-text: #000000;
  }
 }
:root[data-theme="dark"] .arch {
    --d-text: #f5f5f7; --d-text2: #c2c2c8; --d-linie: #c2c2c8; --d-halo: #111113;
    --d-abz: #7aa2ff; --d-abz-text: #000000; --d-abz-rand: #111113;
    --d-kasten: #1c1c1f; --d-kasten-rand: rgba(255, 255, 255, 0.2); --d-dienst-rand: rgba(255, 255, 255, 0.32); --d-app-rand: #7aa2ff;
    --d-mensch: #f5f5f7; --d-mensch-text: #000000; --d-mensch-text2: #3a3a40;
    --d-cf-bg: rgba(240, 163, 92, 0.1); --d-cf-rand: rgba(240, 163, 92, 0.6); --d-cf-text: #f3b680;
    --d-aws-bg: rgba(126, 162, 232, 0.1); --d-aws-rand: rgba(126, 162, 232, 0.6); --d-aws-text: #a9c1f5;
    --d-gh-bg: rgba(255, 255, 255, 0.05); --d-gh-rand: rgba(255, 255, 255, 0.28); --d-gh-text: #e5e7eb;
    --d-server-bg: rgba(255, 255, 255, 0.03); --d-server-rand: #a9c1f5;
    --d-chip-cf: rgba(240, 163, 92, 0.2); --d-chip-cf-text: #f3b680; --d-chip-aws: rgba(126, 162, 232, 0.2); --d-chip-aws-text: #a9c1f5;
    --d-chip-gh: rgba(255, 255, 255, 0.1); --d-chip-gh-text: #e5e7eb; --d-chip-app: rgba(122, 162, 255, 0.2); --d-chip-app-text: #a9c1f5;
    --d-chip-extern: rgba(255, 255, 255, 0.1); --d-chip-extern-text: #c2c2c8; --d-chip-mensch: rgba(0, 0, 0, 0.1); --d-chip-mensch-text: #000000;
  }
.huelle.huelle-weit { max-width: 92rem; }
.arch-karte { border-radius: var(--r-xl); background: var(--flaeche); border: 1px solid var(--rand); box-shadow: var(--schatten-gross); overflow: hidden; }

/* Kopf der Karte: Schrittwahl, Text zum gewählten Schritt, Blättern. Ohne JavaScript stehen alle Schritte als Liste da. */
.arch-kopf { display: grid; gap: 16px 28px; padding: clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--rand); }
.arch-wahl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.arch-wahl[hidden], .arch-blaettern[hidden] { display: none; }
.arch-w {
  min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--rand-stark); background: var(--flaeche);
  color: var(--text); font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--kurve);
}
.arch-w-alle { grid-column: span 2; padding: 0 14px; }
.arch-w:hover { border-color: var(--akzent); }
.arch-w[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-auf); }
.arch-w:focus-visible, .arch-b:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.arch-text h2, .arch-text h3 { font-family: var(--schrift-gross); font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); letter-spacing: -0.025em; line-height: 1.25; margin: 0; }
.arch-text p { margin-top: 6px; color: var(--text-2); line-height: 1.55; max-width: 60rem; text-wrap: pretty; }
.arch-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 32px; }
.arch-eintrag[hidden] { display: none; }
.arch-schritte .arch-eintrag { position: relative; padding-left: 48px; }
.arch-nr {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.9375rem; font-variant-numeric: tabular-nums; color: var(--akzent-auf); background: var(--akzent);
}
.arch:not(.arch-js) .arch-schritte { margin-top: 20px; }
@media (min-width: 900px) { .arch:not(.arch-js) .arch-schritte { grid-template-columns: 1fr 1fr; } }
.arch-blaettern { display: flex; gap: 8px; }
.arch-b {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rand-stark);
  background: var(--flaeche); color: var(--text); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.arch-b:hover { border-color: var(--akzent); color: var(--akzent); }
.arch-b .sym { width: 20px; height: 20px; }
@media (max-width: 899px) { .arch-js .arch-blaettern { justify-content: flex-end; margin-top: -4px; } }
@media (min-width: 560px) {
  .arch-wahl { display: flex; flex-wrap: wrap; }
  .arch-w-alle { flex: none; }
  .arch-js .arch-text { min-height: 10.5rem; }
}
@media (min-width: 900px) {
  .arch-js .arch-kopf { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .arch-js .arch-wahl { grid-column: 1 / -1; }
  .arch-js .arch-text { min-height: 7.75rem; }
}

/* Zeichnung: seitlich verschiebbar, wenn der Platz nicht reicht. */
.arch-rahmen { overflow-x: auto; overscroll-behavior-x: contain; padding: clamp(10px, 1.6vw, 24px); scrollbar-width: thin; }
.arch-rahmen:focus-visible { outline: 3px solid var(--akzent); outline-offset: -3px; }
.arch-bild svg { display: block; width: 100%; min-width: 1180px; height: auto; font-family: var(--schrift); }
.arch-karte figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 8px clamp(16px, 2.4vw, 28px) 12px;
  border-top: 1px solid var(--rand); font-size: 0.9375rem; color: var(--text-3);
}
/* Kleine Bildschirme mit JavaScript: statt der großen Zeichnung die Vorschau ohne Beschriftung, der gewählte
   Weg wird darin hervorgehoben; die Stationen stehen als Kette im Text. Ohne JavaScript: große Zeichnung, seitlich verschiebbar. */
.arch-klein { display: none; }
.arch-klein svg { display: block; width: 100%; height: auto; }
@media (max-width: 899px) {
  .arch-js .arch-bild { display: none; }
  .arch-js .arch-klein { display: block; }
  .arch-js .arch-text { min-height: 13.5rem; }
}
.arch-weg { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px !important; }
.arch-kette { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.arch-kette > span { padding: 4px 11px; border-radius: 999px; background: var(--akzent-weich); color: var(--text); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.arch-kette i { display: grid; color: var(--text-3); }
.arch-kette .sym { width: 15px; height: 15px; }
.arch:not(.arch-js) .arch-weg { display: none; }
.arch-rahmen svg [data-s] { transition: opacity 0.35s var(--kurve); }
.arch-rahmen[data-schritt] svg [data-s] { opacity: 0.16; }
.arch-rahmen[data-schritt="1"] svg [data-s~="1"], .arch-rahmen[data-schritt="2"] svg [data-s~="2"], .arch-rahmen[data-schritt="3"] svg [data-s~="3"], .arch-rahmen[data-schritt="4"] svg [data-s~="4"], .arch-rahmen[data-schritt="5"] svg [data-s~="5"], .arch-rahmen[data-schritt="6"] svg [data-s~="6"], .arch-rahmen[data-schritt="7"] svg [data-s~="7"], .arch-rahmen[data-schritt="8"] svg [data-s~="8"] { opacity: 1; }
.arch-fluss { stroke: var(--d-abz); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 0.1 16; opacity: 0; }
.arch-klein .arch-fluss { stroke-width: 11; stroke-dasharray: 0.1 32; }
.arch-mini .arch-fluss { display: none; }
.arch-klein [data-k] rect { stroke-width: 2.5; }
.arch-rahmen[data-schritt="1"] .arch-klein [data-k][data-s~="1"] rect, .arch-rahmen[data-schritt="2"] .arch-klein [data-k][data-s~="2"] rect, .arch-rahmen[data-schritt="3"] .arch-klein [data-k][data-s~="3"] rect, .arch-rahmen[data-schritt="4"] .arch-klein [data-k][data-s~="4"] rect, .arch-rahmen[data-schritt="5"] .arch-klein [data-k][data-s~="5"] rect, .arch-rahmen[data-schritt="6"] .arch-klein [data-k][data-s~="6"] rect, .arch-rahmen[data-schritt="7"] .arch-klein [data-k][data-s~="7"] rect, .arch-rahmen[data-schritt="8"] .arch-klein [data-k][data-s~="8"] rect { stroke: var(--d-abz) !important; stroke-width: 5; }
.arch-rahmen[data-schritt="1"] svg [data-s~="1"] .arch-fluss, .arch-rahmen[data-schritt="2"] svg [data-s~="2"] .arch-fluss, .arch-rahmen[data-schritt="3"] svg [data-s~="3"] .arch-fluss, .arch-rahmen[data-schritt="4"] svg [data-s~="4"] .arch-fluss, .arch-rahmen[data-schritt="5"] svg [data-s~="5"] .arch-fluss, .arch-rahmen[data-schritt="6"] svg [data-s~="6"] .arch-fluss, .arch-rahmen[data-schritt="7"] svg [data-s~="7"] .arch-fluss, .arch-rahmen[data-schritt="8"] svg [data-s~="8"] .arch-fluss { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .arch-rahmen[data-schritt="1"] svg [data-s~="1"] .arch-fluss, .arch-rahmen[data-schritt="2"] svg [data-s~="2"] .arch-fluss, .arch-rahmen[data-schritt="3"] svg [data-s~="3"] .arch-fluss, .arch-rahmen[data-schritt="4"] svg [data-s~="4"] .arch-fluss, .arch-rahmen[data-schritt="5"] svg [data-s~="5"] .arch-fluss, .arch-rahmen[data-schritt="6"] svg [data-s~="6"] .arch-fluss, .arch-rahmen[data-schritt="7"] svg [data-s~="7"] .arch-fluss, .arch-rahmen[data-schritt="8"] svg [data-s~="8"] .arch-fluss { animation: arch-fluss 1.8s linear infinite; }
}
@keyframes arch-fluss { to { stroke-dashoffset: -32.2; } }
.arch-abschnitt-zahlen, .huelle-weit + .huelle > .kennzahlen { margin-top: clamp(28px, 4vw, 48px); }

/* Karten: Bausteine, Grundsätze, Abwägungen. */
.arch-karten { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 1024px) { .arch-karten { gap: 20px; } .arch-grundsaetze, .arch-abwaegung { grid-template-columns: repeat(3, 1fr); } .arch-bausteine { grid-template-columns: repeat(4, 1fr); } }
.arch-karten > li { padding: clamp(20px, 2.5vw, 28px); border-radius: var(--r-l); background: var(--flaeche); border: 1px solid var(--rand); box-shadow: var(--schatten); }
.arch-karten .bento-sym { margin-bottom: 18px; }
.arch-karten h3 { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); letter-spacing: -0.025em; line-height: 1.25; }
.arch-karten > li > p { margin-top: 8px; color: var(--text-2); line-height: 1.55; }
.arch-karten .punkte { margin-top: 14px; gap: 10px; color: var(--text-2); font-size: 0.9875rem; line-height: 1.5; }
.arch-ton-cf .bento-sym { color: #9a4d07; background: #ffe9d2; }
.arch-ton-aws .bento-sym { color: #1e3f8a; background: #e1eafc; }
.arch-ton-gh .bento-sym { color: #30363d; background: #e9ebee; }
.arch-ton-ki .bento-sym { color: #5b2fd6; background: #ece5ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .arch-ton-cf .bento-sym { color: #f3b680; background: rgba(240, 163, 92, 0.18); } :root:not([data-theme="light"]) .arch-ton-aws .bento-sym { color: #a9c1f5; background: rgba(126, 162, 232, 0.18); } :root:not([data-theme="light"]) .arch-ton-gh .bento-sym { color: #e5e7eb; background: rgba(255, 255, 255, 0.1); } :root:not([data-theme="light"]) .arch-ton-ki .bento-sym { color: #c9b8ff; background: rgba(183, 156, 255, 0.18); }
 }
:root[data-theme="dark"] .arch-ton-cf .bento-sym { color: #f3b680; background: rgba(240, 163, 92, 0.18); } :root[data-theme="dark"] .arch-ton-aws .bento-sym { color: #a9c1f5; background: rgba(126, 162, 232, 0.18); } :root[data-theme="dark"] .arch-ton-gh .bento-sym { color: #e5e7eb; background: rgba(255, 255, 255, 0.1); } :root[data-theme="dark"] .arch-ton-ki .bento-sym { color: #c9b8ff; background: rgba(183, 156, 255, 0.18); }

/* Verweis auf die Architektur-Seite: Karte mit Vorschau der Zeichnung. */
.arch-hinweis {
  position: relative; display: grid; gap: 20px 40px; align-items: center; overflow: hidden; padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-l); background: var(--flaeche); border: 1px solid var(--rand); box-shadow: var(--schatten); margin-top: clamp(20px, 3vw, 32px);
  transition: transform 0.4s var(--kurve), box-shadow 0.4s var(--kurve);
}
.arch-hinweis:has(.karten-link:focus-visible) { outline: 3px solid var(--akzent); outline-offset: 4px; }
.arch-hinweis-marke { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent); }
.arch-hinweis-marke .sym { width: 18px; height: 18px; }
.arch-hinweis h2, .arch-hinweis h3 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
.arch-hinweis p:not(.arch-hinweis-marke) { margin-top: 10px; color: var(--text-2); max-width: 34rem; }
.arch-hinweis .mehr { margin-top: 16px; }
.arch-mini { border-radius: var(--r-m); background: var(--getoent); border: 1px solid var(--rand); padding: 10px; }
.arch-mini svg { display: block; width: 100%; height: auto; }
@media (min-width: 760px) { .arch-hinweis { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }
.karten-drei { grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr)); }
.arch-app .punkte { margin-top: 14px; gap: 10px; color: var(--text-2); font-size: 0.9875rem; line-height: 1.5; }
.arch-app .mehr { margin-top: 16px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .arch-app:hover .mehr .sym { transform: translateX(4px); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .arch-hinweis:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
  .arch-hinweis:hover .mehr .sym { transform: translateX(4px); }
}
.fallstudie .arch-hinweis { margin-top: clamp(28px, 4vw, 44px); }
@media print { .arch-wahl, .arch-blaettern { display: none !important; } .arch-eintrag[hidden] { display: block !important; } .arch-bild svg { min-width: 0; } }

/* ---------- Startseite: Produkt im Kopf, solange kein Video hinterlegt ist ---------- */
.held-schau { position: relative; margin: 0; container-type: inline-size; }
.held-schau-buehne { position: relative; padding: 0 8cqw 6cqw 0; }
.held-schau-buehne .geraet-mobil { position: absolute; z-index: 1; right: 0; bottom: 0; width: 22cqw; margin: 0; padding: 0.66cqw; border-radius: 3.25cqw; }
.held-schau-buehne .geraet-mobil .geraet-glas { border-radius: 2.6cqw; }
.held-schau figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 18px; }
.held-schau figcaption strong { font-family: var(--schrift-gross); font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.2; margin-top: 4px; }
.held-schau figcaption > span:not(.status):not(.mehr) { color: var(--text-2); }
.held-schau .mehr { margin-top: 6px; }
.held-schau:has(.karten-link:focus-visible) { outline: 3px solid var(--akzent); outline-offset: 6px; border-radius: var(--r-m); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .held-schau-buehne { transition: transform 0.5s var(--kurve); }
  .held-schau:hover .held-schau-buehne { transform: translateY(-4px); }
  .held-schau:hover .mehr .sym { transform: translateX(4px); }
}

/* ---------- Projektseite: Ablauf in Schritten ---------- */
.ablauf-abschnitt { padding-block: 0 clamp(28px, 4vw, 44px); }
.ablauf-abschnitt h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: clamp(20px, 3vw, 28px); }
.ablauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.ablauf li { position: relative; padding-left: 64px; min-height: 46px; }
.ablauf-sym { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--akzent); background: color-mix(in srgb, var(--akzent) 12%, var(--bg)); }
.ablauf-sym .sym { width: 24px; height: 24px; }
.ablauf li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: -16px; width: 2px; border-radius: 2px; background: var(--rand-stark); }
.ablauf h3 { font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.3; }
.ablauf-nr { display: block; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-3); }
.ablauf p { margin-top: 4px; color: var(--text-2); font-size: 0.9875rem; line-height: 1.5; }
@media (min-width: 760px) {
  .ablauf { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
  .ablauf li { padding: 62px 0 0; }
  .ablauf li:not(:last-child)::after { left: 54px; right: -8px; top: 22px; bottom: auto; width: auto; height: 2px; }
}

/* Kontakt: zwei Spalten, damit die kleinen Karten die Zeile füllen. */
@media (min-width: 768px) { .kontakt-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Klassisches Telefon (`"rahmen": "klassisch"`): helles Gehäuse mit Hörer oben und Taste unten,
   eckiger Bildschirm ohne Statusleiste. Höhen über aspect-ratio der Leisten, damit alles mit der
   Rahmenbreite skaliert. Steht am Dateiende, damit es die Rundungen der Kontexte übersteuert. */
.geraet-mobil.geraet-klassisch {
  background: linear-gradient(145deg, #f4f5f7, #c8ccd5);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14) inset, var(--schatten-gross);
}
.geraet-mobil.geraet-klassisch .geraet-glas { border-radius: 3px; background: #1c1a19; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35); }
.geraet-ohr, .geraet-taste { display: flex; align-items: center; justify-content: center; }
.geraet-ohr { aspect-ratio: 100 / 16; gap: 4%; }
.geraet-ohr i { width: 20%; aspect-ratio: 9 / 1; border-radius: 999px; background: #4a4e57; }
.geraet-ohr b { width: 3%; aspect-ratio: 1; border-radius: 50%; background: #4a4e57; }
.geraet-taste { aspect-ratio: 100 / 19; }
.geraet-taste i { width: 12.5%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(15, 23, 42, 0.28); background: linear-gradient(145deg, #e3e5ea, #f7f8fa); }
