/* ==========================================================================
   michel-abele.de – Stylesheet
   1. Tokens & Themes     5. Hero
   2. Base                6. Komponenten
   3. Utilities           7. Seiten
   4. Chrome (Overlays, Navigation, Footer)
   8. Animationen & Bewegung
   ========================================================================== */

/* 1. Tokens & Themes ======================================================= */

:root {
  --y: #ff2a2a;            /* Signalfarbe */
  --ink: #09090a;          /* Schwarz auf Signalfarbe, themenunabhängig */
  --paper: #f1f1ec;        /* Weiß auf Schwarz, themenunabhängig */

  --bg: #0b0606;
  --bg2: #150c0c;
  --bg3: #1f1313;
  --fg: #f1f1ec;
  --mut: #9a9a93;
  --line: #3a2525;
  --acc: var(--y);
  --grid: rgba(255, 60, 60, .07);

  --font-display: Oxanium, "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans JP", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --glow: drop-shadow(0 0 36px rgba(255, 30, 30, .35));
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #e6e6e0;
  --bg2: #f3f3ef;
  --bg3: #d9d9d2;
  --fg: #0b0b0c;
  --mut: #4f4f4a;
  --line: #b9b9b1;
  --acc: #0b0b0c;
  --grid: rgba(0, 0, 0, .05);
  color-scheme: light;
}

/* 2. Base ================================================================== */

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg) radial-gradient(var(--grid) 1.2px, transparent 1.2px) 0 0 / 22px 22px;
  color: var(--fg);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s, color .5s;
}

h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
input::placeholder { color: var(--mut); }
::selection { background: var(--y); color: var(--ink); }

:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 400;
  background: var(--y); color: var(--ink); padding: 10px 16px;
  font: 700 13px var(--font-mono);
}
.skip-link:focus { top: 12px; }

/* 3. Utilities ============================================================= */

.mono { font-family: var(--font-mono); }
.upper { text-transform: uppercase; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Abgeschrägte Ecken. Größe über --c steuern. */
.cut    { --c: 14px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); }
.cut-tr { --c: 10px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.cut-tl-br { --c: 22px; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }

/* Strichcode-Deko */
.barcode {
  display: inline-block; flex: none;
  --bar: currentColor;
  background: repeating-linear-gradient(90deg, var(--bar) 0 2px, transparent 2px 4px, var(--bar) 4px 7px, transparent 7px 8px, var(--bar) 8px 9px, transparent 9px 13px);
}
.barcode--wide {
  background: repeating-linear-gradient(90deg, var(--bar) 0 3px, transparent 3px 5px, var(--bar) 5px 6px, transparent 6px 10px, var(--bar) 10px 14px, transparent 14px 16px);
}
.barcode--fine {
  background: repeating-linear-gradient(90deg, var(--bar) 0 2px, transparent 2px 4px, var(--bar) 4px 6px, transparent 6px 9px);
}

/* Blinkender Block-Cursor */
.caret {
  display: inline-block; width: .42em; height: .12em; margin-left: .06em;
  vertical-align: baseline; background: currentColor;
  animation: blink 1s steps(1) infinite;
}

/* Status-Quadrat */
.led { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--y); outline: 1px solid var(--fg); animation: blink 1s steps(1) infinite; }

/* Warndreieck — Phosphor „warning“ (Fill-Variante, Glyph \e4e0 aus icons.css).
   Das „!“ ist im Glyph ausgespart und zeigt den Untergrund durch: auf --ink
   (.alert, .ticker) schwarz wie bisher, sonst die Seitenfarbe --bg.
   Groesse steuert font-size, nicht mehr width/height. */
.warn-tri {
  font-size: 30px;
}

/* Niete */
.rivet { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--rivet, var(--bg)); }

/* 4. Chrome ================================================================ */

/* CRT-Überlagerung */
.crt {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;
  animation: crtflicker 4s steps(1) infinite;
}
.crt > span { position: absolute; inset: 0; }
.crt__lines { background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.crt__rgb { background: repeating-linear-gradient(90deg, rgba(255,0,0,.05) 0 1px, rgba(0,255,0,.035) 1px 2px, rgba(0,90,255,.05) 2px 3px); mix-blend-mode: screen; }
.crt > .crt__roll { bottom: auto; height: 22vh; background: linear-gradient(180deg, transparent, rgba(255,255,255,.035) 45%, rgba(255,255,255,.06) 50%, transparent); animation: crtroll 9s linear infinite; }
.crt__vignette { background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.28) 85%, rgba(0,0,0,.55) 100%); }
.crt__glow { box-shadow: inset 0 0 80px rgba(0,0,0,.45), inset 0 0 12px rgba(255,40,40,.12); }

.scanlines {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
}

.progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  width: 100%; height: 4px; transform-origin: left; transform: scaleX(0);
  background: var(--y); box-shadow: 0 0 14px var(--y);
}

/* Fadenkreuz-Cursor (wird per JS erzeugt) */
html[data-cursor="on"], html[data-cursor="on"] * { cursor: none !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; }
.cursor__ring {
  position: absolute; left: 0; top: 0; width: 38px; height: 38px;
  border: 1.5px solid var(--y); outline: 1px solid var(--ink); outline-offset: -3px;
  transition: width .2s, height .2s;
}
.cursor__cross { position: absolute; left: 0; top: 0; }
.cursor__cross::before, .cursor__cross::after {
  content: ""; position: absolute; background: var(--y); box-shadow: 0 0 0 1px var(--ink);
}
.cursor__cross::before { left: -10px; top: -1px; width: 20px; height: 2px; }
.cursor__cross::after { top: -10px; left: -1px; width: 2px; height: 20px; }
.cursor__label {
  position: absolute; left: 16px; top: 14px; padding: 3px 5px;
  background: var(--ink); color: var(--y);
  font: 10px var(--font-mono); letter-spacing: .08em; white-space: nowrap;
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: stretch; justify-content: space-between; flex-wrap: wrap;
  background: var(--ink); color: var(--paper);
  border-bottom: 2px solid var(--y);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 26px 12px 18px;
  background: var(--y); color: var(--ink);
  font-weight: 800; font-size: 18px; letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}
.nav__logo { display: grid; grid-template-columns: repeat(2, 5px); gap: 2px; }
.nav__logo i { width: 5px; height: 5px; background: var(--ink); }
.nav__logo i:last-child { background: none; border: 1px solid var(--ink); }
.nav__links {
  display: flex; align-items: center; flex-wrap: wrap;
  margin: 0; padding: 0; list-style: none;
  font: 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
}
.nav__links a {
  display: block; padding: 14px 16px;
  color: #a9a9a2; border-bottom: 3px solid transparent;
  transition: color .2s;
}
.nav__links a:hover { color: var(--y); }
.nav__links a[aria-current="page"] { color: var(--y); border-bottom-color: var(--y); }
.nav__tools {
  display: flex; align-items: center; gap: 14px; padding: 0 16px;
  font: 11px var(--font-mono); letter-spacing: .1em;
}
.nav__clock { color: #77776f; font-variant-numeric: tabular-nums; }

.theme-toggle {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: transparent; border: 1px solid #3a3a3e; color: var(--paper);
  font: inherit; letter-spacing: .1em; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--y); }
html:not(.js) .theme-toggle,
html:not(.js) .filterbar,
html:not(.js) .project__toggle { display: none; }
.theme-toggle__segs { display: flex; gap: 2px; }
.theme-toggle__segs i { width: 9px; height: 12px; border: 1px solid var(--y); }
:root:not([data-theme="light"]) .theme-toggle__segs i:first-child,
:root[data-theme="light"] .theme-toggle__segs i:last-child { background: var(--y); }
.theme-toggle__label::before { content: "DARK"; }
:root[data-theme="light"] .theme-toggle__label::before { content: "LIGHT"; }

/* Nach-oben-Button */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 110;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border: 0; cursor: pointer;
  background: var(--y); color: var(--ink);
  font: 700 13px var(--font-mono);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity .3s, translate .3s;
}
.to-top::before { content: ""; width: 8px; height: 8px; background: var(--ink); }
.to-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }

/* Footer */
.footer {
  display: flex; flex-direction: column; gap: 36px;
  padding: clamp(40px, 5vw, 64px) var(--gutter) 28px;
}
.footer__decals {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
  font: 700 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
}
.footer__decals > * { padding: 8px 12px; border: 2px solid var(--fg); }
.footer__decals .is-accent { --c: 10px; padding: 10px 14px; border: 0; background: var(--y); color: var(--ink); }
.footer__decals .is-invert { padding: 10px 14px; border: 0; background: var(--fg); color: var(--bg); }
.footer__decals .is-serial { display: flex; align-items: center; gap: 10px; padding: 6px 10px; }
.footer__decals .barcode { width: 90px; height: 16px; }
.footer__grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.footer__note {
  grid-column: span 2; min-width: min(100%, 220px); max-width: 460px;
  color: var(--mut); font-size: 14px; line-height: 1.6;
}
.footer__col { display: flex; flex-direction: column; gap: 9px; font: 13px var(--font-mono); }
.footer__col h2 { margin-bottom: 4px; color: var(--acc); font-size: 11px; font-weight: 400; letter-spacing: .14em; }
.footer__col a { color: var(--mut); }
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 18px; border-top: 2px solid var(--fg);
  color: var(--mut); font: 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
}

/* 5. Hero ================================================================== */

.hero { padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px) 0; filter: var(--glow); }
.hero__slab {
  --notch: 32px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: clamp(18px, 2.5vw, 28px);
  padding: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) clamp(64px, 6vw, 84px);
  background: var(--y); color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), 78% calc(100% - var(--notch)), calc(78% - var(--notch)) 100%, calc(22% + var(--notch)) 100%, 22% calc(100% - var(--notch)), 0 calc(100% - var(--notch)));
}
.hero__slab > * { position: relative; z-index: 1; }
.hero__slab > .hero__mech {
  position: absolute; z-index: 0; right: clamp(-60px, -2vw, 0px); top: -6%;
  width: clamp(300px, 42vw, 620px); height: auto;
  mix-blend-mode: multiply; opacity: .55; pointer-events: none;
  animation: floaty 8s ease-in-out infinite;
}
.hero--home .hero__slab {
  --notch: 40px;
  gap: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(72px, 7vw, 96px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), 80% calc(100% - var(--notch)), calc(80% - var(--notch)) 100%, calc(20% + var(--notch)) 100%, 20% calc(100% - var(--notch)), 0 calc(100% - var(--notch)));
}
.hero--home .hero__slab > .hero__mech {
  right: -3%; top: 2%; width: auto; height: 104%; max-width: none; opacity: .6;
  animation-duration: 7s;
}

.hero__top {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 8px; align-items: stretch;
}
.hero__top > * { border: 2px solid var(--ink); }
.hero__label { padding: 10px 14px; font: 700 11px/1.5 var(--font-mono); letter-spacing: .08em; }
.hero__hatch { background: repeating-linear-gradient(-45deg, var(--ink) 0 2px, transparent 2px 9px); }
.hero__nest { display: flex; padding: 6px; }
.hero__nest > i { display: flex; padding: 5px; border: 2px solid var(--ink); }
.hero__nest > i > i { width: 40px; border: 2px solid var(--ink); }

.hero__cross {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 8%; font: 22px/1 var(--font-mono);
}
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 7px solid var(--ink); border-bottom-color: transparent;
  animation: spin 3s linear infinite;
}

.hero__title {
  font-weight: 800; font-size: clamp(52px, 11.5vw, 200px); line-height: .86;
  letter-spacing: -.045em; text-transform: uppercase;
}
.hero__title > span { display: block; }
.hero__title .nowrap { white-space: nowrap; }
.hero__title--long { font-size: clamp(34px, 7.4vw, 128px); }
.hero--home .hero__title { font-size: clamp(60px, 14.5vw, 250px); line-height: .84; }

/* Glitch-Ebenen über dem Titel */
.glitch > span { display: block; }
.hero__title > .sticker { display: flex; }
/* Riss-Effekt: Die Ebene deckt mit der Signalfarbe einen schmalen Streifen des
   Titels ab und zeigt darin den Text horizontal versetzt (--tear). */
@property --tear { syntax: "<length>"; inherits: true; initial-value: 0px; }
.hero__title > .glitch {
  position: absolute; inset: 0 auto 0 0; pointer-events: none;
  background: var(--y); color: var(--ink);
  clip-path: inset(0 0 100% 0);
}
.glitch > span { translate: var(--tear) 0; text-shadow: calc(var(--tear) / -4) 0 rgba(0, 200, 255, .55), calc(var(--tear) / 4) 0 rgba(255, 255, 255, .5); }
.glitch--a { animation: tear-a 7.2s steps(1, end) infinite; }
.glitch--b { animation: tear-b 7.2s steps(1, end) infinite; }

.sticker {
  position: absolute; right: 0; top: 4%;
  display: flex; flex-direction: column; gap: 4px; padding: 10px 14px;
  background: var(--ink); color: var(--y);
  font: 700 clamp(10px, 1vw, 13px)/1.3 var(--font-mono); letter-spacing: .1em;
  animation: wobble 4s ease-in-out infinite;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.sticker span + span { color: var(--paper); }

.hero__deco {
  display: flex; align-items: center; flex-wrap: wrap; gap: clamp(12px, 2.5vw, 32px);
  font-family: var(--font-mono); font-weight: 700;
}
.hero__deco .barcode { --bar: var(--ink); width: clamp(90px, 12vw, 150px); height: 26px; }
.hero__deco .times { font-size: 28px; line-height: 1; }
.hero__deco .target {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: 3px solid var(--ink);
}
.hero__deco .target::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.hero__deco .num { font-size: clamp(20px, 2.4vw, 32px); letter-spacing: .06em; }
.hero__deco .jp { font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: clamp(18px, 2vw, 28px); }
.hero__deco .stamp { padding: 6px 12px; background: var(--ink); color: var(--y); font-size: 13px; }
.hero--home .hero__deco .barcode { height: 30px; }

.hero__lead { max-width: 760px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; font-weight: 500; text-align: justify; hyphens: auto; }

/* 6. Komponenten =========================================================== */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 12px 18px; border: 0; cursor: pointer;
  font: 700 13px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  transition: translate .2s, background-color .2s, color .2s, border-color .2s;
}
.btn--ink { background: var(--ink); color: var(--y); }
.btn--accent { background: var(--y); color: var(--ink); }
.btn--lift:hover { translate: 0 -3px; }
.btn--nudge:hover { translate: 4px 0; }
.btn--outline { background: transparent; border: 1px solid var(--fg); padding: 10px 16px; }
.btn--outline:hover { background: var(--fg); color: var(--bg); }
.btn--outline-ink { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn--outline-ink:hover { background: var(--ink); color: var(--y); }
.btn--outline-paper { border: 2px solid var(--paper); padding: 11px 18px; }
.btn--outline-paper:hover { border-color: var(--y); color: var(--y); }
.btn--lg { gap: 16px; padding: 16px 24px; font-size: 14px; }
.btn--outline-ink.btn--lg { padding: 14px 22px; }

/* Tags */
.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font: 700 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.tag { padding: 6px 10px; border: 2px solid currentColor; }
.tag--solid { padding: 8px 10px; border: 0; background: var(--ink); color: var(--y); }

/* Abschnittsköpfe */
.kicker {
  display: flex; align-items: center; gap: 14px;
  color: var(--acc); font: 12px var(--font-mono); letter-spacing: .16em;
}
.kicker b { padding: 4px 8px; background: var(--y); color: var(--ink); }
.section-title {
  font-weight: 800; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.02;
  letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance;
  hyphens: auto; overflow-wrap: break-word;
}

/* Terminal */
.terminal {
  --c: 26px;
  position: relative; background: var(--ink); color: #e9e9e3;
  font: clamp(12px, 1vw, 14px)/1.55 var(--font-mono);
}
.terminal .rivet { --rivet: var(--y); }
.terminal .rivet:nth-of-type(1) { left: 12px; top: 12px; }
.terminal .rivet:nth-of-type(2) { right: 12px; bottom: 12px; }
.terminal__bar {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 40px 10px 32px; border-bottom: 1px dashed #3a3a3e;
  color: var(--y); font-size: 11px; letter-spacing: .1em;
}
.terminal__body {
  display: flex; flex-direction: column; gap: 5px;
  min-height: 280px; margin: 0; padding: 18px 24px 30px 32px;
  list-style: none;
}
.terminal__cmd { display: flex; gap: 10px; margin-top: 10px; color: #fff; }
.terminal__cmd::before { content: "$"; color: var(--y); }
.terminal__out { padding-left: 20px; color: #a7a79f; }
.terminal__cursor { display: inline-block; width: 9px; height: 17px; background: var(--y); animation: blink 1s steps(1) infinite; }
.terminal [hidden] { display: none; }

/* Laufband */
.ticker {
  margin-top: clamp(28px, 4vw, 48px);
  padding: 8px 0;
  background: repeating-linear-gradient(45deg, var(--y) 0 16px, var(--ink) 16px 32px);
}
/* Streifen nur oben und unten (kein seitliches Padding) -> Band statt Rahmen.
   .ticker__inner deckt als opake, unbewegte Flaeche die Mitte ab; der Track
   selbst taugt dafuer nicht, weil er animiert und max-content-breit ist. */
.ticker__inner { overflow: hidden; background: var(--ink); color: var(--y); }
.ticker__track {
  display: flex; align-items: center; width: max-content; padding: 28px 0;
  animation: marquee 190s linear infinite;
}
/* Logo-Ticker. Die SVGs in assets/img/icons/ sind monochrom (fill="currentColor"),
   als Maske geben sie die Silhouette daher verlustfrei wieder und lassen sich
   sauber in var(--y) einfaerben. Die --i-Zuordnung je Icon steht in der
   generierten stack-icons.css (tools/build-ticker.py).
   Abstand bewusst als margin-right am Item und NICHT als gap am Track: der
   marquee-Loop schiebt um -50%, das passt nur, wenn beide Haelften exakt
   gleich breit sind — ein gap zwischen den Haelften wuerde den Loop versetzen. */
.ticker__track i {
  flex: none;
  width: clamp(28px, 4vw, 52px); aspect-ratio: 1;
  margin-right: clamp(20px, 3vw, 40px);
  background-color: var(--y);
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}

/* Karten mit 1px-Rahmen und abgeschrägter Ecke */
.frame {
  --c: 18px;
  background: var(--line); padding: 1px;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
  transition: background-color .25s;
}
.frame > * {
  height: 100%; background: var(--bg2);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}
.frame--hover:hover { background: var(--y); }

/* Filterleiste (Skill-Profil, Projekte) */
.filterbar {
  position: sticky; top: var(--nav-h, 52px); z-index: 40;
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.chip {
  display: flex; align-items: center; min-height: 40px; padding: 8px 14px; cursor: pointer;
  background: transparent; color: var(--fg); border: 1px solid var(--line);
  font: 12px var(--font-mono); letter-spacing: .06em; text-align: left;
  transition: border-color .2s;
}
.chip:hover { border-color: var(--y); }
.chip .count { color: var(--mut); }
.chip[aria-pressed="true"] { background: var(--y); color: var(--ink); border-color: var(--y); font-weight: 700; }
.chip[aria-pressed="true"] .count { color: inherit; opacity: .7; }

/* Level-Anzeige aus drei Segmenten */
.segs { display: flex; gap: 2px; }
.segs i { width: 10px; height: 6px; outline: 1px solid var(--fg); }
.segs[data-level="1"] i:nth-child(-n+1),
.segs[data-level="2"] i:nth-child(-n+2),
.segs[data-level="3"] i:nth-child(-n+3) { background: var(--y); }

/* Scroll-Reveal (nur aktiv, wenn JS läuft) */
.js [data-reveal] {
  opacity: 0; translate: 0 28px;
  transition: opacity .8s var(--ease-out) var(--reveal-delay, 90ms), translate .8s var(--ease-out) var(--reveal-delay, 90ms);
}
.js [data-reveal="2"] { --reveal-delay: 180ms; }
.js [data-reveal="3"] { --reveal-delay: 270ms; }
.js [data-reveal="4"] { --reveal-delay: 360ms; }
.js [data-reveal].is-revealed { opacity: 1; translate: 0 0; }

/* 7. Seiten ================================================================ */

/* --- Start --------------------------------------------------------------- */

.hero__body {
  display: grid; gap: clamp(20px, 3vw, 40px); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.hero__intro { display: flex; flex-direction: column; gap: 22px; }
.hero__intro .hero__lead { max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.alert {
  display: flex; align-items: center; align-self: flex-start; padding-left: 10px;
  background: var(--ink); color: var(--y);
  font: 700 12px var(--font-mono); letter-spacing: .08em;
}
.alert .warn-tri { margin: 4px; font-size: 34px; }
.alert p { padding: 6px 14px 6px 8px; line-height: 1.35; }
.alert p span { color: var(--paper); }

.section { padding: clamp(64px, 8vw, 112px) var(--gutter) clamp(40px, 5vw, 64px); }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 16px; margin-bottom: 28px;
}
.section__head > div { display: flex; flex-direction: column; gap: 10px; }
.section__head .section-title { font-size: clamp(36px, 5vw, 76px); line-height: .95; letter-spacing: -.03em; }
.section__meta { color: var(--mut); font: 12px var(--font-mono); letter-spacing: .1em; }

/* Modul-Kacheln */
.modules {
  display: grid; gap: 14px; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
}
.module {
  position: relative; min-height: 170px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: 26px 22px 22px 34px;
  background: var(--y); color: var(--ink);
  transition: translate .25s;
}
.module:hover { translate: 0 -6px; }
.module:nth-child(4n+1) { clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
.module:nth-child(4n+2) { clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px); }
.module:nth-child(4n+3) { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.module:nth-child(4n+4) { clip-path: polygon(0 0, 55% 0, calc(55% + 18px) 18px, 100% 18px, 100% 100%, 0 100%); }
.module .rivet:nth-of-type(1) { left: 14px; top: 18px; }
.module .rivet:nth-of-type(2) { left: 14px; bottom: 14px; }
.module .rivet:nth-of-type(3) { right: 14px; bottom: 14px; }
.module__head { display: flex; justify-content: space-between; font: 700 11px var(--font-mono); letter-spacing: .1em; }
.module__head::after { content: ""; width: 26px; height: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px); }
.module__code { display: block; font-weight: 800; font-size: 46px; line-height: .9; letter-spacing: -.02em; animation: jitter var(--jitter, 5s) infinite; }
.module__label { display: block; margin-top: 4px; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.module:nth-child(2) { --jitter: 6.7s; }
.module:nth-child(3) { --jitter: 8.4s; }
.module:nth-child(4) { --jitter: 6.1s; }
.module:nth-child(5) { --jitter: 7.8s; }
.module:nth-child(6) { --jitter: 5.5s; }
.module:nth-child(7) { --jitter: 7.2s; }
.module:nth-child(8) { --jitter: 8.9s; }

/* Beruflich */
.about { padding: clamp(40px, 6vw, 80px) 0; }
.outline-marquee { overflow: hidden; white-space: nowrap; margin-bottom: clamp(32px, 5vw, 64px); }
.outline-marquee div {
  font-weight: 800; font-size: clamp(70px, 13vw, 220px); line-height: .9;
  letter-spacing: -.04em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 2px var(--fg);
  will-change: transform;
}
.about__grid {
  display: grid; gap: clamp(28px, 4vw, 56px); padding: 0 var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.about__main { grid-column: span 2; min-width: min(100%, 360px); display: flex; flex-direction: column; gap: 26px; }
.about__claim { max-width: 760px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; font-weight: 600; }
.about__cols {
  display: grid; gap: 24px; font-size: 16px; line-height: 1.7;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.about__cols > div { display: flex; flex-direction: column; gap: 16px; }

.career-log {
  position: relative; align-self: start; padding: 26px;
  border: 2px solid var(--fg); font: 13px var(--font-mono);
}
.career-log::before {
  content: ""; position: absolute; top: -2px; left: -2px; width: 22px; height: 22px;
  background: var(--y); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.career-log__head { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--mut); font-size: 11px; letter-spacing: .14em; }
.career-log ol { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.career-log li { display: flex; gap: 10px; overflow: hidden; white-space: nowrap; }
.career-log time { color: var(--acc); font-weight: 700; }
.career-log li::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--line); margin-bottom: 5px; }
.career-log li span { order: 2; }
.career-log__status { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 700; }

/* Consulting-Block */
.dark-block {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(80px, 9vw, 120px) var(--gutter) clamp(64px, 8vw, 100px);
  background: var(--ink); color: var(--paper);
  clip-path: polygon(0 0, 18% 0, calc(18% + 32px) 32px, calc(82% - 32px) 32px, 82% 0, 100% 0, 100% 100%, 0 100%);
}
.dark-block .kicker { color: var(--y); }
.dark-block__grid {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.dark-block__grid > div { display: flex; flex-direction: column; gap: 22px; }
.dark-block__grid > div + div { gap: 16px; }
.dark-block p.lead { color: #c9c9c2; font-size: 17px; line-height: 1.65; }
.dark-block p.lead a { color: var(--y); border-bottom: 1px solid var(--y); }
.dark-block .btn { font-size: 13px; }
.dark-block .btn--accent { padding: 13px 20px; }
.badge-law { display: flex; align-items: stretch; align-self: flex-start; border: 2px solid var(--y); }
.badge-law b { display: flex; align-items: center; padding: 0 12px; background: var(--y); color: var(--ink); font-size: 22px; font-weight: 800; }
.badge-law span { padding: 8px 14px; font: 700 11px/1.5 var(--font-mono); letter-spacing: .1em; }
.badge-law em { font-style: normal; color: var(--y); }

.service {
  --c: 36px; --rivet: var(--ink);
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 30px 28px 28px 38px; background: var(--y); color: var(--ink);
}
.service .rivet { width: 9px; height: 9px; }
.service:nth-child(odd)  .rivet:nth-of-type(1) { left: 16px; top: 18px; }
.service:nth-child(odd)  .rivet:nth-of-type(2) { right: 18px; bottom: 16px; }
.service:nth-child(even) .rivet:nth-of-type(1) { left: auto; right: 18px; }
.service:nth-child(even) .rivet:nth-of-type(2) { right: auto; left: 16px; bottom: 16px; }
.service h3 { font-weight: 800; font-size: clamp(20px, 2vw, 28px); line-height: 1.1; text-transform: uppercase; }
.service p { font-size: 16px; line-height: 1.6; font-weight: 500; }
.service__code { font: 700 11px var(--font-mono); letter-spacing: .14em; }

/* Platzhalter-Tafeln */
.placards {
  display: grid; gap: 20px; padding: clamp(64px, 8vw, 112px) var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.placard { padding: 12px; background: repeating-linear-gradient(45deg, var(--y) 0 16px, var(--ink) 16px 32px); }
.placard + .placard { background: repeating-linear-gradient(-45deg, var(--y) 0 16px, var(--ink) 16px 32px); }
.placard__inner { display: flex; flex-direction: column; gap: 18px; min-height: 100%; padding: 30px; background: var(--bg); }
.placard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.placard__num { font-weight: 800; font-size: clamp(64px, 7vw, 110px); line-height: .8; letter-spacing: -.04em; }
.placard .warn-tri { font-size: 64px; animation: flicker 3s infinite; }
.no-entry { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 6px solid var(--fg); border-radius: 50%; }
.no-entry::after { content: ""; position: absolute; width: 6px; height: 60px; background: var(--fg); transform: rotate(45deg); }
.placard h3 { font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; text-transform: uppercase; }
.loadbar { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.loadbar__label { display: flex; justify-content: space-between; font: 700 11px var(--font-mono); letter-spacing: .12em; }
.loadbar__label span:last-child { animation: blink 1s steps(1) infinite; }
.loadbar__track { height: 16px; padding: 2px; border: 2px solid var(--fg); }
.loadbar__track div { height: 100%; background: repeating-linear-gradient(90deg, var(--fg) 0 8px, transparent 8px 11px); animation: load 5s ease-in-out infinite; }
.placard + .placard .loadbar__label span:last-child { animation-duration: 1.4s; }
.placard + .placard .loadbar__track div { animation: load 7s ease-in-out infinite alternate-reverse; }

/* Kontakt-Block */
.launch { padding: 0 clamp(12px, 2vw, 24px); filter: var(--glow); }
.launch__slab {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 28px;
  padding: clamp(72px, 8vw, 110px) clamp(20px, 4vw, 48px) clamp(40px, 5vw, 64px);
  background: var(--y); color: var(--ink);
  clip-path: polygon(0 40px, 10% 40px, calc(10% + 40px) 0, calc(40% - 40px) 0, 40% 40px, 60% 40px, calc(60% + 40px) 0, calc(90% - 40px) 0, 90% 40px, 100% 40px, 100% 100%, 0 100%);
}
.launch .hero__cross { padding: 0 6%; }
.launch__meta { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.launch__signal { display: flex; align-items: center; gap: 10px; font: 700 12px var(--font-mono); letter-spacing: .16em; }
.launch__signal::before { content: ""; width: 10px; height: 10px; background: var(--ink); animation: blink .8s steps(1) infinite; }
.launch__meta .barcode { --bar: var(--ink); width: 140px; height: 26px; }
.launch h2 { font-weight: 800; font-size: clamp(56px, 12vw, 200px); line-height: .85; letter-spacing: -.045em; text-transform: uppercase; }
.launch__grid {
  display: grid; gap: 28px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.launch__grid > div { display: flex; flex-direction: column; gap: 12px; }
.launch__grid h3 { font-weight: 800; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; text-transform: uppercase; }
.launch__grid p { max-width: 560px; font-size: 17px; line-height: 1.6; font-weight: 500; }
.transmit {
  --c: 20px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px; background: var(--ink); color: var(--y);
  font: 700 clamp(15px, 1.6vw, 22px) var(--font-mono); overflow-wrap: anywhere;
  transition: translate .2s;
}
.transmit:hover { translate: 0 -3px; }
.transmit::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 42, .18), transparent);
  animation: sweep 2.6s linear infinite;
}
.transmit > span { position: relative; display: flex; flex-direction: column; gap: 6px; }
.transmit small { color: var(--paper); font-size: 11px; font-weight: 500; letter-spacing: .16em; }
.transmit > span:last-child { font-size: 28px; }

/* Boot-Sequenz (wird per JS erzeugt) */
.boot { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.boot__slats { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.boot__slats i { background: #0b0505; transition: transform 1s cubic-bezier(.8, 0, .2, 1); }
.boot__slats i:nth-child(2) { transition-delay: .09s; }
.boot__slats i:nth-child(3) { transition-delay: .18s; }
.boot__slats i:nth-child(4) { transition-delay: .27s; }
.boot__slats i:nth-child(5) { transition-delay: .36s; }
.boot__slats i:nth-child(6) { transition-delay: .45s; }
.boot.is-open .boot__slats i { transform: translateY(-101%); }
.boot__screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 4vw, 48px);
  color: var(--y); text-shadow: 0 0 10px rgba(255, 30, 30, .55);
  background: radial-gradient(ellipse at center, rgba(255, 20, 20, .16), transparent 65%);
  transition: opacity .25s;
}
.boot.is-fading .boot__screen { opacity: 0; }
.boot__corner { display: flex; justify-content: space-between; font: 700 12px var(--font-mono); letter-spacing: .1em; }
.boot__corner span:last-child { text-align: right; }
.boot__center { display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3vw, 32px); }
.boot__slots { display: flex; gap: clamp(8px, 1.6vw, 20px); }
.boot__slot { display: flex; flex-direction: column; align-items: center; gap: 10px; filter: drop-shadow(0 0 14px rgba(255, 30, 30, .55)); }
.boot__icon {
  --c: 16px;
  display: flex; align-items: center; justify-content: center;
  width: clamp(84px, 17vw, 220px); aspect-ratio: 1;
  background: #0b0505; color: var(--y); border: 2px solid var(--y);
  font-size: clamp(52px, 11vw, 150px); line-height: 1;
}
.boot__icon.is-inverted { background: var(--y); color: #0b0505; }
.boot__slot > span { font: 700 clamp(9px, 1vw, 12px) var(--font-mono); letter-spacing: .14em; }
.boot__title {
  font-weight: 800; font-size: clamp(28px, 6vw, 84px); line-height: .9;
  letter-spacing: -.03em; text-transform: uppercase;
  text-shadow: -3px 0 rgba(0, 190, 255, .55), 3px 0 rgba(255, 0, 70, .7), 0 0 24px rgba(255, 30, 30, .8);
  opacity: 0; transition: opacity .15s;
  animation: jitter 1.6s infinite;
}
.boot__title.is-visible { opacity: 1; }
.boot__status { align-self: flex-end; font: 700 13px/1.8 var(--font-mono); text-align: right; white-space: pre; }

/* --- Unterseiten ---------------------------------------------------------- */

/* Lebenslauf: Zeitleiste */
.timeline { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.timeline__entry, .timeline__end {
  --rail: clamp(28px, 5vw, 64px); --gap: clamp(12px, 2.5vw, 32px);
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--gap);
}
.timeline__rail { position: relative; display: flex; justify-content: center; }
.timeline__rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline__rail::after {
  content: ""; position: absolute; top: 13px; left: calc(50% + 13px); right: calc(-1 * var(--gap));
  height: 2px; background: var(--y); opacity: .5;
}
.timeline__marker {
  --c: 5px;
  position: relative; width: 26px; height: 12px; margin-top: 8px; background: var(--y);
}
.timeline__entry.is-current .timeline__rail > .timeline__ping {
  position: absolute; top: 8px; width: 26px; height: 12px; background: var(--y);
  animation: ping 1.8s ease-out infinite;
}
.timeline__content { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-bottom: clamp(40px, 5vw, 72px); }
.timeline__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font: 13px var(--font-mono); letter-spacing: .08em; }
.date-tag { --c: 8px; padding: 5px 12px; background: var(--y); color: var(--ink); font-weight: 700; }
.timeline__meta .idx { color: var(--mut); }
.status-badge { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--fg); font-size: 11px; }
.status-badge .led { width: 6px; height: 6px; }
.timeline h2 { font-weight: 800; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.2; text-transform: uppercase; text-wrap: balance; }
.timeline__place { color: var(--mut); font: 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.timeline__roles { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.role { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.2vw, 26px); }
.role__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.role h3 { font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.role__period { color: var(--mut); font: 12px var(--font-mono); }
.role p { line-height: 1.7; }
.role p.note { color: var(--mut); font-style: italic; }
.timeline__end .timeline__rail::before, .timeline__end .timeline__rail::after { display: none; }
.timeline__end .timeline__rail span { width: 26px; height: 12px; border: 2px solid var(--line); }
.timeline__end p { color: var(--mut); font: 12px var(--font-mono); letter-spacing: .14em; }

/* Skill-Profil */
.grep {
  flex: 1 1 240px; display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--bg2);
  font: 14px var(--font-mono);
}
.grep:focus-within { border-color: var(--y); }
.grep b { color: var(--acc); }
.grep input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--fg); font: inherit; }
.grep::after { content: ""; width: 8px; height: 16px; background: var(--y); animation: blink 1s steps(1) infinite; }
.chip--level { --c: 10px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 48px; padding: 6px 14px; }
.chip--level[aria-pressed="true"] { clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.chip--level > span:first-child { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chip--level small { color: var(--mut); font-size: 10px; letter-spacing: .04em; }
.chip--level[aria-pressed="true"] small { color: inherit; }
.chip[aria-pressed="true"] .segs i { outline-color: var(--ink); }
.chip[aria-pressed="true"] .segs[data-level] i:is(:nth-child(-n+3)) { background: transparent; }
.chip[aria-pressed="true"] .segs[data-level="1"] i:nth-child(-n+1),
.chip[aria-pressed="true"] .segs[data-level="2"] i:nth-child(-n+2),
.chip[aria-pressed="true"] .segs[data-level="3"] i:nth-child(-n+3) { background: var(--ink); }

.skills { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); padding: clamp(40px, 6vw, 80px) var(--gutter); }
.skill-cat { display: flex; flex-direction: column; gap: 28px; }
.skill-cat__head {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px);
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.outline-num {
  font-weight: 800; font-size: clamp(64px, 8vw, 120px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--fg);
}
.skill-cat .outline-num { animation: flicker 6s infinite; }
.skill-cat__head > div:last-child { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.skill-cat__meta { color: var(--mut); font: 12px var(--font-mono); letter-spacing: .14em; }
.skill-cat h2 { font-weight: 800; font-size: clamp(22px, 2.8vw, 40px); line-height: 1.15; text-transform: uppercase; text-wrap: balance; }
.skill-groups { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.skill-group { --c: 20px; }
.skill-group > div { display: flex; flex-direction: column; }
.skill-group h3 {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font: 700 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
}
.skill-group h3 span { color: var(--mut); font-weight: 400; }
.skill-group ul { margin: 0; padding: 0; list-style: none; }
.skill { display: flex; flex-direction: column; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.skill:hover { background: var(--bg3); }
.skill__head { display: flex; align-items: center; gap: 12px; }
.skill__name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; }
.skill .segs { gap: 3px; }
.skill .segs i { width: 14px; height: 8px; }
.skill__meta { display: flex; align-items: center; gap: 12px; color: var(--mut); font: 11px var(--font-mono); letter-spacing: .06em; }
.skill__level { flex: none; width: 17ch; white-space: nowrap; text-transform: uppercase; }
.skill__bar { position: relative; flex: 1; height: 3px; overflow: hidden; background: var(--line); }
.skill__bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w);
  background: var(--fg); transform-origin: left;
  animation: growx 1.2s var(--ease-out) both;
}
.skill__years { flex: none; }
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 48px 24px; border: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 14px; text-align: center;
}
.empty .btn { align-self: center; font-size: 12px; letter-spacing: .1em; padding: 10px 16px; }

/* Projekte */
.filterbar--projects { align-items: center; gap: 8px; font: 12px var(--font-mono); letter-spacing: .06em; }
.filterbar__label { margin-right: 6px; color: var(--mut); text-transform: uppercase; }
.chip--dashed { margin-left: auto; border: 1px dashed var(--fg); text-transform: uppercase; }
.projects { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(64px, 8vw, 112px); }
.project {
  display: grid; gap: clamp(20px, 4vw, 56px);
  padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.project__aside { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.project .outline-num { font-size: clamp(56px, 6vw, 96px); transition: color .3s; }
.project:hover .outline-num { color: var(--y); }
.project .date-tag { align-self: flex-start; font: 700 12px var(--font-mono); letter-spacing: .06em; padding: 5px 10px; }
.project__org { color: var(--mut); font: 12px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.project__main { grid-column: span 2; min-width: min(100%, 260px); max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.project h2 { font-weight: 800; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.25; text-transform: uppercase; text-wrap: balance; }
.project__lead { font-size: 17px; line-height: 1.7; }
.project__details {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 20px 22px; background: var(--bg2); border: 1px solid var(--line);
}
.project__details[hidden] { display: none; }
.project__details::before {
  content: ""; position: absolute; top: -1px; right: -1px; width: 18px; height: 18px;
  background: var(--y); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.project__details p { line-height: 1.7; }
.project__toggle { font-size: 12px; letter-spacing: .1em; }
.project__toggle::before { content: "[+]"; color: var(--acc); }
.project__toggle[aria-expanded="true"]::before { content: "[–]"; }
.project[hidden] { display: none; }

/* Rechtliches */
.legal a { border-bottom: 1px solid var(--y); }
.legal a:hover { background: var(--y); color: var(--ink); }

.legal-grid {
  display: grid; gap: clamp(24px, 4vw, 48px); max-width: 1300px;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.legal-grid > section { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.7; }
.legal-grid h2 { font-weight: 800; font-size: clamp(20px, 2vw, 28px); line-height: 1.25; text-transform: uppercase; }
.legal-grid .idx { color: var(--mut); font: 12px var(--font-mono); letter-spacing: .14em; }

.id-card { --c: 22px; padding: 2px; background: var(--y); }
.id-card > div { background: #0d0d0f; color: var(--paper); }
.id-card__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 16px 8px 30px; background: var(--y); color: var(--ink);
  font: 700 11px var(--font-mono); letter-spacing: .12em;
}
.id-card__body { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px; }
.id-card__name { font-weight: 800; font-size: 22px; text-transform: uppercase; }
.id-card address { font-size: 16px; font-style: normal; line-height: 1.7; }
.id-card dl {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0;
  padding-top: 16px; border-top: 1px solid #2c2c30; font: 14px var(--font-mono);
}
.id-card dt { color: var(--y); }
.id-card dd { margin: 0; overflow-wrap: anywhere; }
.id-card__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.id-card__foot .barcode { --bar: var(--paper); width: 140px; height: 22px; }
.id-card__foot span:last-child { color: #77776f; font: 10px var(--font-mono); letter-spacing: .14em; }

.legal-grid > .notice { grid-column: 1 / -1; gap: 0; border: 1px solid var(--fg); }
.notice__stripe {
  height: 14px; background: repeating-linear-gradient(45deg, var(--y) 0 14px, var(--ink) 14px 28px) 0 0 / 39.6px 14px;
  animation: hazard2 1s linear infinite;
}
.notice__body { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 20px; padding: clamp(20px, 3vw, 32px); }
.notice .warn-tri { font-size: 40px; }
.notice__body > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.notice h2 { font-size: clamp(18px, 1.8vw, 24px); }

/* Datenschutz */
.privacy {
  display: grid; gap: clamp(24px, 4vw, 64px); max-width: 1400px;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.toc {
  position: sticky; top: calc(var(--nav-h, 52px) + 20px); align-self: start;
  max-width: 340px; border: 1px solid var(--line); background: var(--bg2);
}
.toc__head {
  display: flex; justify-content: space-between; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font: 11px var(--font-mono); letter-spacing: .14em;
}
.toc__head span:first-child { font-weight: 700; }
.toc__head span:last-child { color: var(--mut); }
.toc ol { display: flex; flex-direction: column; max-height: calc(100vh - 220px); overflow: auto; margin: 0; padding: 8px 0; list-style: none; }
.toc a { display: flex; gap: 10px; padding: 7px 16px; color: var(--mut); font-size: 13px; line-height: 1.35; transition: color .2s; }
.toc a:hover { color: var(--fg); }
.toc a span { padding-top: 2px; color: var(--acc); font: 11px var(--font-mono); }
.toc a[aria-current="true"] { background: var(--y); color: var(--ink); font-weight: 600; }
.toc a[aria-current="true"] span { color: inherit; }

.prose { grid-column: span 2; min-width: min(100%, 280px); max-width: 820px; font-size: 16.5px; line-height: 1.75; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.3em; }
.prose h2 {
  display: flex; align-items: baseline; gap: 14px; margin: 56px 0 16px; scroll-margin-top: 120px;
  font-weight: 800; font-size: clamp(20px, 2vw, 28px); line-height: 1.25; text-transform: uppercase;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 span { color: var(--acc); font: 13px var(--font-mono); }
.prose h3 { margin: 28px 0 8px; color: var(--acc); font: 700 13px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

.prose .provider { margin: 12px 0; padding: 14px 20px; border: 1px solid var(--line); background: var(--bg2); }
.prose .provider ul { margin: 6px 0 0; }
.prose .provider p { margin: 12px 0 0; }
.prose .callout { margin: 20px 0; border: 1px solid var(--fg); }
.prose .callout p { margin: 0; padding: 16px 20px; }
.prose .contact-box { display: flex; flex-direction: column; gap: 12px; margin: 0 0 1em; padding: 20px 24px; border: 1px solid var(--fg); }
.prose .contact-box .mono { font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); }
.prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose thead tr { background: var(--y); color: var(--ink); font: 12px var(--font-mono); letter-spacing: .06em; text-align: left; }
.prose th, .prose td { padding: 10px 12px; }
.prose td { border-top: 1px solid var(--line); }
.prose td.mono { font-family: var(--font-mono); }
.prose td.strong { font-weight: 700; }
.prose td.muted { color: var(--mut); }

/* Schmale Bildschirme */
@media (max-width: 720px) {
  .nav__tools { padding: 8px 16px; }
  .chip--dashed { margin-left: 0; }
  .filterbar { position: static; }
  .toc { position: static; max-width: none; }
  .toc ol { max-height: 260px; }
}

/* 8. Animationen & Bewegung =============================================== */

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes load { 0% { width: 4%; } 60% { width: 78%; } 80% { width: 74%; } 100% { width: 96%; } }
@keyframes flicker { 0%, 41%, 43%, 75%, 77%, 100% { opacity: 1; } 42% { opacity: .3; } 76% { opacity: .5; } }
@keyframes tear-a {
  0%, 100% { clip-path: inset(0 0 100% 0); --tear: 0px; }
  92%   { clip-path: inset(10% -40px 68% -40px); --tear: -16px; }
  92.6% { clip-path: inset(44% -40px 38% -40px); --tear: 22px; }
  93.2% { clip-path: inset(66% -40px 18% -40px); --tear: -9px; }
  93.6% { clip-path: inset(0 0 100% 0); --tear: 0px; }
  94.2% { clip-path: inset(24% -40px 62% -40px); --tear: 12px; }
  94.7% { clip-path: inset(80% -40px 4% -40px); --tear: -24px; }
  95.2% { clip-path: inset(0 0 100% 0); --tear: 0px; }
}
@keyframes tear-b {
  0%, 100% { clip-path: inset(0 0 100% 0); --tear: 0px; }
  92.3% { clip-path: inset(56% -40px 30% -40px); --tear: 14px; }
  92.9% { clip-path: inset(4% -40px 86% -40px); --tear: -20px; }
  93.4% { clip-path: inset(0 0 100% 0); --tear: 0px; }
  94.5%   { clip-path: inset(36% -40px 52% -40px); --tear: -12px; }
  95%   { clip-path: inset(0 0 100% 0); --tear: 0px; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes hazard2 { to { background-position: 39.6px 0; } }
@keyframes crtflicker { 0%, 100% { opacity: .9; } 8% { opacity: .75; } 9% { opacity: .95; } 40% { opacity: .85; } 41% { opacity: 1; } 70% { opacity: .8; } 71% { opacity: .92; } }
@keyframes crtroll { from { transform: translateY(-30vh); } to { transform: translateY(130vh); } }
@keyframes wobble { 0%, 100% { rotate: -4deg; } 50% { rotate: -2deg; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes jitter {
  0%, 92%, 100% { transform: none; }
  93% { transform: translate(3px, -2px) skewX(-8deg); }
  95% { transform: translate(-4px, 1px); }
  97% { transform: translate(2px, 0) skewX(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
:root[data-motion="reduced"] .glitch { display: none; }
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after {
  animation: none !important;
  transition: none !important;
}

/* --- Sonstiges ---------------------------------------------------------- */

.text-hyphens {
  hyphens: auto;
}

.text-block {
  text-align: justify;
}
