@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/red-hat-display.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/red-hat-text.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); }

/* Layout: dunkles Indigo-Hero mit Pipeline-Leiste, deren Linie als Strang links durch alle Inhaltsbänder bis zum dunklen Kontaktband läuft */
:root {
  --indigo: #1b1464;
  --deep: #120f45;
  --blue: #1c5fa6;
  --cyan: #29abe2;
  --magenta: #e01f7c;
  --violet: #93278f;

  --bg: #f5f6fb;
  --surface: #ffffff;
  --fg: #17163a;
  --muted: #565a78;
  --line: #dde0ee;
  --accent: #d4136f;
  --accent-2: #1c5fa6;
  --chip: #eceefa;
  --ok: #17864a;
  --node-ok: #1f9e55;
  --node-run: #1c8fd0;
  --node-wait: #f5a524;
  --node-pending: #b9bdd3;
  --node-bg: var(--bg);
  --pipe-track: rgba(28,95,166,.22);
  --pipe-start: #1c9bd6;
  --pipe-end: #e01f7c;
  --whale: #1c9bd6;
  --whale-belly: #8fd3f2;
  --whale-box: #e6f4fc;
  --fox: #fc6d26;
  --fox-light: #fca326;
  --fox-dark: #e24329;
  --helm: #326ce5;
  --helm-light: #8fb0f5;
  --bug: #2f9e44;
  --bug-dark: #1b5e2a;
  --laser: #e01f7c;
  --laser-glow: #29abe2;
  --spark: #e07a5f;

  --on-dark: #f2f3fc;
  --on-dark-muted: #b8bbe0;

  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1120px;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0b24; --surface: #15143a; --fg: #e9eaf7; --muted: #a2a5c9;
    --line: #2a2960; --accent: #ff4b9b; --accent-2: #58c6f2; --chip: #1e1d4a; --ok: #5ad48c; --node-ok: #34c26f; --node-run: #29abe2; --node-pending: #4a4980; --pipe-track: rgba(88,198,242,.2); --pipe-start: #29abe2; --pipe-end: #ff4b9b;
    --whale: #29abe2; --whale-belly: #9adcf7; --whale-box: #1e1d4a;
    --helm: #4f86f7; --helm-light: #a9c3fa;
    --bug: #4cc764; --bug-dark: #1f6b32; --laser: #ff4b9b; --laser-glow: #58c6f2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0b24; --surface: #15143a; --fg: #e9eaf7; --muted: #a2a5c9;
  --line: #2a2960; --accent: #ff4b9b; --accent-2: #58c6f2; --chip: #1e1d4a; --ok: #5ad48c; --node-ok: #34c26f; --node-run: #29abe2; --node-pending: #4a4980; --pipe-track: rgba(88,198,242,.2); --pipe-start: #29abe2; --pipe-end: #ff4b9b;
    --whale: #29abe2; --whale-belly: #9adcf7; --whale-box: #1e1d4a;
    --helm: #4f86f7; --helm-light: #a9c3fa;
    --bug: #4cc764; --bug-dark: #1f6b32; --laser: #ff4b9b; --laser-glow: #58c6f2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--deep);
}
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--deep) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--on-dark);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.mark {
  font: 900 1.05rem/1 var(--display); letter-spacing: .02em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.mark span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--magenta), var(--violet) 55%, var(--blue));
  font-size: .85rem; color: #fff;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav ul a {
  text-decoration: none; font: 500 .82rem/1 var(--mono); color: var(--on-dark-muted);
  text-transform: lowercase; transition: color .2s;
}
.nav ul a:hover { color: #fff; }
@media (max-width: 760px) { .nav ul { display: none; } }
.nav .cta-mini {
  font: 600 .85rem/1 var(--text); text-decoration: none; color: #fff;
  padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
}
.nav .cta-mini:hover { border-color: var(--magenta); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(41,171,226,.28), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(224,31,124,.22), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--indigo) 55%, #1a2f7c 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero .hero-main {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 80px); align-items: stretch;
  padding-block: clamp(56px, 9vw, 112px) 40px;
}
@media (max-width: 820px) { .hero .hero-main { grid-template-columns: 1fr; } }
.prompt { font: 400 .9rem/1.4 var(--mono); color: var(--on-dark-muted); margin-bottom: 18px; }
.prompt b { color: var(--cyan); font-weight: 500; }
.hero h1 {
  font-weight: 900; font-size: clamp(2.8rem, 7.4vw, 5.6rem); letter-spacing: -.025em; line-height: .98;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), #8fd8f7 40%, #ff6fb0 75%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.role { margin-top: 18px; font: 700 clamp(1.15rem, 2.2vw, 1.45rem)/1.3 var(--display); }
.pitch { margin-top: 14px; max-width: 54ch; color: var(--on-dark-muted); font-size: 1.08rem; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font: 500 .85rem/1 var(--mono); padding: 10px 14px; border-radius: 999px;
  background: rgba(224,31,124,.14); border: 1px solid rgba(224,31,124,.45); color: #ffd3e6;
}
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 0 rgba(224,31,124,.6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(224,31,124,.6); } 70%,100% { box-shadow: 0 0 0 10px rgba(224,31,124,0); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 600 .98rem/1 var(--text); padding: 14px 22px; border-radius: 999px; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--magenta); color: #fff; }
.btn.primary:hover { background: #f0338b; }
.btn.ghost { color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn.ghost:hover { border-color: var(--cyan); }

.portrait { position: relative; justify-self: center; width: min(100%, 360px); margin: 0; }
.portrait .frame {
  position: relative; border-radius: 22px; padding: 3px;
  background: linear-gradient(140deg, var(--cyan), var(--blue) 40%, var(--violet) 70%, var(--magenta));
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.portrait img { display: block; width: 100%; aspect-ratio: 595 / 720; object-fit: cover; border-radius: 19px; }
.portrait .tag {
  position: absolute; left: -14px; bottom: 26px;
  font: 500 .78rem/1.35 var(--mono); color: var(--on-dark);
  background: rgba(18,15,69,.88); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px); padding: 10px 12px; border-radius: 10px;
}
.portrait .tag b { color: var(--cyan); font-weight: 500; }
/* Nebeneinander ist das Bild so hoch wie der Textblock links */
@media (min-width: 821px) {
  .portrait .frame { height: 100%; box-sizing: border-box; }
  .portrait img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); }
}
@media (max-width: 820px) {
  .hero .hero-main { align-items: center; }
  .portrait { width: min(100%, 300px); } .portrait img { height: auto; } .portrait .tag { left: 8px; }
}

/* Pipeline-Leiste: Stages hängen an einer Linie, die das Skript zeichnet */
.pipeline { position: relative; padding-block: 8px 48px; }
/* Ohne eigene Ebene, damit die Knoten über der Linie liegen können */
.pipeline .label, .stage .st, .stage-card { position: relative; z-index: 1; }
.stage .pnode { z-index: 4; }
.pipeline .label { font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 22px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stage {
  display: grid; grid-template-areas: "st" "node" "card"; grid-template-rows: auto auto 1fr;
  row-gap: 10px; min-width: 0;
}
.stage .st {
  grid-area: st; margin-left: 4px; font: 500 .74rem/1 var(--mono); letter-spacing: .04em; color: var(--on-dark-muted);
}
.stage.done .st, .checkout-step.done .st { color: #8ff0b8; }
.stage.running .st { color: var(--cyan); }
.stage .pnode { grid-area: node; margin-left: 4px; }
.stage-card {
  grid-area: card; display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.stage.running .stage-card { border-color: rgba(41,171,226,.45); background: rgba(41,171,226,.08); }
.stage strong { font: 700 1rem/1.25 var(--display); color: #fff; }
.stage small { font-size: .85rem; color: var(--on-dark-muted); line-height: 1.35; }
@media (max-width: 760px) {
  .stages { grid-template-columns: 1fr; gap: 18px; }
  .stage { grid-template-areas: "node st" ". card"; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 8px; align-items: center; }
  .stage .st, .stage .pnode { margin-left: 0; }
}

/* Statusknoten wie in Jenkins: pending, running, done, paused */
.pnode {
  position: relative; display: block; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid var(--node-pending); background: var(--node-bg);
  transition: background-color .3s, border-color .3s, transform .3s;
}
.pnode.done {
  border-color: var(--node-ok); background: var(--node-ok) center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pnode.running { border-color: color-mix(in srgb, var(--node-run) 35%, transparent); background: var(--node-bg); }
.pnode.running::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--node-run);
}
.pnode.running::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--node-run); border-right-color: var(--node-run);
  animation: spin 1s linear infinite;
}
.pnode.paused {
  border-color: var(--node-wait); background: var(--node-wait) center / 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14M16 5v14' stroke='%23120f45' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero .pnode, .checkout-step .pnode { --node-bg: #17145a; --node-pending: rgba(255,255,255,.3); }

/* Die Seite als Pipeline */
.pipe-root { position: relative; }
.pipe-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.pipe-layer svg { position: absolute; left: 0; top: 0; overflow: visible; }
.pipe-track { fill: none; stroke: var(--pipe-track); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pipe-track-dark { stroke: rgba(255,255,255,.18); }
.pipe-stop-start { stop-color: var(--pipe-start); }
.pipe-stop-mid { stop-color: var(--violet); }
.pipe-stop-end { stop-color: var(--pipe-end); }
.pipe-progress { fill: none; stroke: url(#pipe-grad); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pipe-head-halo { fill: var(--cyan); opacity: .28; transform-box: fill-box; transform-origin: center; animation: halo 1.6s ease-out infinite; }
.pipe-head-dot { fill: #fff; filter: drop-shadow(0 0 6px var(--cyan)); }
@keyframes halo { from { transform: scale(.6); opacity: .45; } to { transform: scale(1.8); opacity: 0; } }
.checkout-step { position: absolute; display: flex; align-items: center; gap: 10px; }
.checkout-step.label-below .st { position: absolute; right: 0; top: 100%; margin-top: 8px; }
.checkout-step .st { font: 500 .74rem/1 var(--mono); letter-spacing: .04em; color: var(--on-dark-muted); }
.spine-node { position: absolute; transform: translate(-50%, -50%); }
.spine-node.on-surface { --node-bg: var(--surface); }
.spine-node.on-dark { --node-bg: var(--deep); --node-pending: rgba(255,255,255,.3); }
.pipe-branched .timeline::before, .pipe-branched .timeline li::before { display: none; }
.spine-node.paused { transform: translate(-50%, -50%) scale(1.12); }

/* Platz für den Strang links neben den Inhalten */
@media (max-width: 1199px) {
  .pipe-ready .hero .wrap, .pipe-ready main .wrap, .pipe-ready .contact .wrap { padding-left: calc(max(16px, env(safe-area-inset-left, 0px)) + 34px); }
}
@media (min-width: 700px) and (max-width: 1199px) {
  .pipe-ready .hero .wrap, .pipe-ready main .wrap, .pipe-ready .contact .wrap { padding-left: calc(max(32px, env(safe-area-inset-left, 0px)) + 34px); }
}

/* ---------- Sektionen ---------- */
section.band { padding-block: clamp(64px, 9vw, 112px); }
section.band + section.band { border-top: 1px solid var(--line); }
.eyebrow {
  font: 500 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--magenta), var(--cyan)); }
h2 { font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.02em; }
.lead { margin-top: 18px; max-width: 62ch; color: var(--muted); font-size: 1.12rem; }

/* Profil */
.profile { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }
.profile .copy { display: grid; gap: 18px; max-width: 64ch; margin-top: 24px; }
.profile .copy p { color: var(--muted); }
.profile .copy p strong { color: var(--fg); font-weight: 600; }
/* „Handwerk“ im Verlauf, darunter ein Pinselstrich, der beim Erreichen gezogen wird */
.profile .craft {
  position: relative; display: inline-block;
  background: linear-gradient(100deg, var(--magenta), var(--violet) 45%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.profile .craft::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: -.08em; height: .14em; border-radius: 99px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan)); transform: rotate(-1.5deg); transform-origin: left;
}
/* Hervorhebungen im Text bekommen einen Textmarker-Streifen wie im Zeugnis */
.profile .copy p strong {
  padding-inline: .06em;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent-2) 24%, transparent) 0) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.facts {
  position: relative; margin: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--accent-2) 55%, transparent);
}
.facts::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--magenta), var(--violet), var(--cyan));
}
.facts div {
  position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 20px;
  transition: background-color .25s ease;
}
.facts div::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
  transform: scaleY(0); transition: transform .25s ease;
}
.facts div:hover { background: var(--chip); }
.facts div:hover::before { transform: none; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { font: 500 .78rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); transition: color .25s ease; }
.facts dt::before { content: "› "; color: var(--accent); }
.facts div:hover dt { color: var(--accent); }
.facts dd { margin: 0; font-weight: 600; }
/* Verfügbarkeit mit grünem Herzschlag wie „läuft seit 2020“ im Werkzeugkasten */
.facts .available dd { display: flex; align-items: center; gap: 10px; color: var(--ok); }
.facts .available dd::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent);
  animation: heartbeat 1.4s ease-in-out infinite, avail-ring 1.4s ease-out infinite;
}
@keyframes avail-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 60%, 100% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .facts .available dd::before { animation: none; } }
/* Beim Erreichen: Strich wird gezogen, Marker laufen nacheinander auf, Fakten gleiten herein (nur mit JS, siehe main.js) */
@media (prefers-reduced-motion: no-preference) {
  .profile.reveal .craft::after { transform: rotate(-1.5deg) scaleX(0); transition: transform .7s cubic-bezier(.2,.7,.2,1) .2s; }
  .profile.reveal.in .craft::after { transform: rotate(-1.5deg); }
  .profile.reveal .copy p strong { background-size: 0 100%; transition: background-size .7s cubic-bezier(.2,.7,.2,1); }
  .profile.reveal .copy p:nth-child(1) strong { transition-delay: .5s; }
  .profile.reveal .copy p:nth-child(2) strong { transition-delay: .75s; }
  .profile.reveal .copy p:nth-child(3) strong { transition-delay: 1s; }
  .profile.reveal.in .copy p strong { background-size: 100% 100%; }
  .profile.reveal .facts div {
    opacity: .001; transform: translateX(32px);
    transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), background-color .25s ease;
    transition-delay: calc(var(--i, 0) * 70ms + .15s), calc(var(--i, 0) * 70ms + .15s), 0s;
  }
  .profile.reveal.in .facts div { opacity: 1; transform: none; }
}

/* Schwerpunkte */
.focus { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .focus { grid-template-columns: 1fr; } }
/* Steuerrad im Kreuzungspunkt der Kacheln (eigene Zeichnung, nicht das Kubernetes-Logo; main.js) */
.focus { position: relative; }
.helm {
  position: absolute; z-index: 2; left: 50%; top: var(--helm-y, 50%); width: 84px; height: 84px; margin: -42px 0 0 -42px;
  pointer-events: none; visibility: hidden;
}
.helm.in { visibility: visible; }
.helm svg { display: block; width: 100%; height: 100%; overflow: visible; rotate: var(--steer, 0deg); transition: rotate .7s cubic-bezier(.3,1.5,.5,1); }
.helm .disc { fill: var(--bg); }
.helm .rim { fill: none; stroke: var(--helm); stroke-width: 6; }
.helm .spoke { stroke: var(--helm); stroke-width: 4; stroke-linecap: round; }
.helm .knob { fill: var(--helm); }
.helm .ring { fill: none; stroke: var(--helm-light); stroke-width: 3.5; }
.helm .hub { fill: var(--helm-light); }
@media (max-width: 760px) { .helm { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .helm.in { animation: helm-in 1.3s cubic-bezier(.2,.8,.3,1) both; }
  .helm.in svg { animation: helm-rock 4s 1.3s ease-in-out infinite; }
  @keyframes helm-in {
    0% { opacity: 0; transform: scale(.2) rotate(-600deg); }
    30% { opacity: 1; }
    100% { transform: none; }
  }
  @keyframes helm-rock { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 70% { transform: rotate(12deg); } }
}
@media (prefers-reduced-motion: reduce) { .helm svg { transition: none; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 14px; align-content: start; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); transform: translateY(-3px); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 22%, transparent), color-mix(in srgb, var(--magenta) 18%, transparent));
  color: var(--accent-2);
}
.card .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.3rem; font-weight: 700; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: .98rem; }
.card li { position: relative; padding-left: 18px; }
.card li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* Werdegang */
.career { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
@media (max-width: 900px) { .career { grid-template-columns: 1fr; } }
.col-title { font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
/* „Beruf“ steht über den Kacheln statt über dem Strang */
.career > div:first-child .col-title { padding-left: 38px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--magenta), var(--blue) 60%, var(--line));
}
.timeline li { position: relative; padding-left: 38px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 25px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent-2);
}
.timeline li.now::before { border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.when { font: 500 .82rem/1.3 var(--mono); color: var(--accent-2); font-variant-numeric: tabular-nums; }
.timeline li.now .when { color: var(--accent); }
.timeline h3 { font-size: 1.22rem; font-weight: 700; }
.timeline .org { font-weight: 600; color: var(--fg); }
.timeline .org small { font-weight: 400; color: var(--muted); }
.timeline p { color: var(--muted); font-size: .98rem; max-width: 60ch; }

.edu { display: grid; gap: 14px; }
.edu article, .job {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 6px;
  transition: border-color .25s, translate .25s;
}
/* Hover wie bei .card, aber über translate, damit es nicht mit dem transform des Aufploppens kollidiert */
.edu article:hover, .edu article.info-open, .job:hover, .job.info-open { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); translate: 0 -3px; }
.edu article.info-open, .job.info-open { border-color: var(--accent-2); }
.edu article:focus-visible, .job:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.edu h3 { font-size: 1.08rem; font-weight: 700; }
.edu p { color: var(--muted); font-size: .95rem; }
/* Ausbildungskacheln ploppen einzeln auf, sobald sie ins Bild scrollen (nur mit JS, siehe main.js) */
@media (prefers-reduced-motion: no-preference) {
  .edu.reveal article {
    opacity: .001; transform: translateY(28px) scale(.92);
    transition: opacity .45s ease, transform .6s cubic-bezier(.34,1.56,.64,1), border-color .25s, translate .25s;
    transition-delay: var(--pop-delay, 0s), var(--pop-delay, 0s), 0s, 0s;
  }
  .edu.reveal article.in { opacity: 1; transform: none; }
}

/* Skills */
.skills { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
@media (max-width: 760px) { .skills { grid-template-columns: 1fr; } }
.skills h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.skills h3 span { font: 500 .75rem/1 var(--mono); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font: 500 .86rem/1 var(--mono); padding: 9px 12px; border-radius: 8px;
  background: var(--chip); border: 1px solid var(--line); color: var(--fg);
  transition: border-color .25s, transform .25s;
}
.chips li:hover { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); transform: translateY(-3px); }
.chips li:has(> .skill-link) { padding: 0; }
.chips .skill-link {
  display: block; padding: 9px 12px; border: 0; border-radius: inherit; background: none;
  font: inherit; color: inherit; text-decoration: none; cursor: pointer;
}
.chips .skill-link::after { margin-left: 6px; color: var(--accent-2); }
.chips a.skill-link::after { content: "↗"; }
.chips .skill-link[aria-expanded] { cursor: default; }
.chips .skill-link[aria-expanded]::after { content: none; }
.chips li:has(> .skill-link[aria-expanded="true"]) { border-color: var(--accent-2); transform: translateY(-3px); }
/* „uvm.“ als offener Platzhalter am Ende der Liste */
.chips li.more { border-style: dashed; background: none; color: var(--muted); }

/* Kurzinfo zu einem Skill */
.skill-card {
  position: absolute; z-index: 60; width: min(300px, calc(100vw - 32px)); padding: 14px 16px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.45);
}
.skill-card strong { display: block; font: 700 .95rem/1.2 var(--mono); margin-bottom: 6px; }
.skill-card p { margin: 0; font: 400 .9rem/1.5 var(--text); color: var(--muted); }
.skill-card a { display: inline-block; margin-top: 10px; font: 500 .85rem/1 var(--mono); color: var(--accent-2); text-decoration: none; }
.skill-card a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .skill-card { animation: skill-card-in .18s ease-out; }
  @keyframes skill-card-in { from { opacity: 0; transform: translateY(-4px); } }
}

/* Zeugnis */
.quote-band { background: var(--surface); overflow-x: clip; }
.quote {
  position: relative; margin: 36px 0 0; font: 700 clamp(1.5rem, 3.4vw, 2.4rem)/1.25 var(--display); letter-spacing: -.01em;
  max-width: 30ch; text-wrap: balance;
}
.quote::before { content: "„"; color: var(--accent); }
.quote::after { content: "“"; color: var(--accent); }
:lang(en) .quote::before { content: "“"; }
:lang(en) .quote::after { content: "”"; }
.quote-src { margin-top: 18px; font: 500 .85rem/1.4 var(--mono); color: var(--muted); }
.quotes { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quotes blockquote {
  margin: 0; padding: 22px 0 0; border-top: 2px solid var(--line); color: var(--muted); font-size: 1rem;
}
.quotes blockquote b { display: block; color: var(--fg); font: 700 1.05rem/1.3 var(--display); margin-bottom: 8px; }
/* Zeichen je nach Sprache: deutsch „…“, englisch “…” */
.quotes q { quotes: "„" "“"; }
:lang(en) .quotes q { quotes: "“" "”"; }
.quotes q::before, .quotes q::after { color: var(--accent); }
/* Markierte Stellen im Zitat: Textmarker-Streifen in Akzentfarbe, wird beim Erreichen aufgezogen */
.quote .hl {
  color: inherit; padding-inline: .06em;
  background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 26%, transparent) 0) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Unterpunkte gleiten nacheinander herein (nur mit JS, siehe main.js) */
@media (prefers-reduced-motion: no-preference) {
  .quote-band.reveal .quote .hl { background-size: 0 100%; transition: background-size .7s cubic-bezier(.2,.7,.2,1); }
  .quote-band.reveal .quote .hl:nth-of-type(2) { transition-delay: .45s; }
  .quote-band.reveal .quote.in .hl { background-size: 100% 100%; }
  .quote-band.reveal .quotes blockquote {
    opacity: .001; transform: translateX(48px);
    transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  }
  .quote-band.reveal .quotes blockquote:nth-child(2) { transition-delay: .15s; }
  .quote-band.reveal .quotes blockquote:nth-child(3) { transition-delay: .3s; }
  .quote-band.reveal .quotes.in blockquote { opacity: 1; transform: none; }
}
/* Easter Egg: Klick auf „auftretende Probleme“ lässt einen Bug herauskrabbeln, den ein Laser aus
   „ausgezeichnete Lösungen“ erwischt (main.js); bewusst ohne Zeiger oder Hover-Hinweis */
.qbug {
  position: absolute; left: 0; top: 0; width: clamp(40px, 4.4vw, 56px); z-index: 2; pointer-events: none;
}
.qbug svg { display: block; width: 100%; height: auto; overflow: visible; }
.qbug .shell { fill: var(--bug); }
.qbug .dark { fill: var(--bug-dark); }
.qbug .leg { fill: none; stroke: var(--bug-dark); stroke-width: 2.6; stroke-linecap: round; }
.qbug .eye { fill: var(--on-dark); }
.qbug .legs-a { animation: bug-step .14s linear infinite alternate; }
.qbug .legs-b { animation: bug-step .14s linear infinite alternate-reverse; }
@keyframes bug-step { from { transform: translateX(-2.5px); } to { transform: translateX(2.5px); } }
/* Richtungen der Rauchwölkchen von Käfer und Fuchs */
.qbug i:nth-of-type(2), .fox404 i:nth-of-type(2) { --a: 60deg; }
.qbug i:nth-of-type(3), .fox404 i:nth-of-type(3) { --a: 120deg; }
.qbug i:nth-of-type(4), .fox404 i:nth-of-type(4) { --a: 180deg; }
.qbug i:nth-of-type(5), .fox404 i:nth-of-type(5) { --a: 240deg; }
.qbug i:nth-of-type(6), .fox404 i:nth-of-type(6) { --a: 300deg; }
.qbug i {
  --a: 0deg; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px;
  border-radius: 50%; background: var(--bug); opacity: 0;
}
.qbug.zap .legs-a, .qbug.zap .legs-b { animation: none; }
.qbug.zap svg { animation: bug-zap .4s ease-in both; }
.qbug.zap i { animation: fox-puff .55s ease-out both; }
@keyframes bug-zap {
  0% { filter: brightness(1); }
  25% { filter: brightness(3) drop-shadow(0 0 6px var(--laser-glow)); transform: scale(1.2); }
  100% { opacity: 0; transform: scale(.4); filter: brightness(3) blur(4px); }
}
.qlaser {
  position: absolute; left: 0; top: 0; height: 3px; margin-top: -1.5px; z-index: 2; pointer-events: none;
  transform-origin: 0 50%; border-radius: 3px;
  background: linear-gradient(90deg, var(--laser-glow), var(--laser));
  box-shadow: 0 0 6px var(--laser), 0 0 14px var(--laser-glow);
  animation: laser-flicker .07s steps(2) infinite;
}
@keyframes laser-flicker { 50% { opacity: .7; } }
.quote .hl.firing { text-shadow: 0 0 12px var(--laser-glow), 0 0 2px var(--laser); transition: text-shadow .1s; }

/* Erfolge: Kacheln wie Job-Berichte, der Balken zeigt vorher (--from) und nachher (--to) */
.wins { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .wins { grid-template-columns: 1fr; } }
.win {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; display: grid; gap: 10px; align-content: start;
  transition: border-color .25s, translate .25s;
}
.win:hover { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); translate: 0 -3px; }
.win-job { display: flex; align-items: center; gap: 10px; font: 500 .8rem/1 var(--mono); color: var(--muted); }
.win-job .pnode { --node-bg: var(--surface); width: 18px; height: 18px; background-size: 11px; }
.win-value { margin-top: 6px; font: 700 clamp(1.5rem, 3vw, 2rem)/1.15 var(--display); letter-spacing: -.01em; color: var(--muted); }
.win-before { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.win-value strong { font-weight: 900; color: var(--fg); }
.win-bar { height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; margin-bottom: 8px; }
.win-bar i { display: block; height: 100%; width: var(--to); border-radius: inherit; background: linear-gradient(90deg, var(--pipe-start), var(--pipe-end)); }
.win h3 { font-size: 1.15rem; font-weight: 700; }
.win > p:last-child { color: var(--muted); font-size: .98rem; }
/* Balken läuft beim Erreichen von vorher auf nachher (nur mit JS, siehe main.js) */
@media (prefers-reduced-motion: no-preference) {
  .wins.reveal .win-bar i { width: var(--from); transition: width 1.4s cubic-bezier(.6,0,.2,1) .25s; }
  .wins.reveal .win.in .win-bar i { width: var(--to); }
}

/* Kontakt */
.contact {
  color: var(--on-dark);
  background:
    radial-gradient(50% 90% at 100% 0%, rgba(224,31,124,.28), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(41,171,226,.22), transparent 60%),
    linear-gradient(160deg, var(--indigo), var(--deep));
}
.contact .wrap { padding-block: clamp(64px, 9vw, 112px); display: grid; gap: 22px; }
.contact .eyebrow { color: #ff8dc0; }
.contact h2 { font-size: clamp(2.2rem, 5.6vw, 4rem); max-width: 18ch; }
/* „Ihre Pipeline“ im Verlauf wie der Name im Hero, darunter ein Pinselstrich, der beim Erreichen gezogen wird (siehe main.js) */
.contact h2 .contact-hl {
  position: relative; display: inline-block; white-space: nowrap;
  background: linear-gradient(90deg, var(--cyan), #8fd8f7 40%, #ff6fb0 75%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact h2 .contact-hl::after {
  content: ""; position: absolute; left: -2%; right: -3%; bottom: -.04em; height: .1em; border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta)); transform: rotate(-1.2deg); transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .contact h2.reveal .contact-hl::after { transform: rotate(-1.2deg) scaleX(0); transition: transform .8s cubic-bezier(.2,.7,.2,1) .25s; }
  .contact h2.reveal.in .contact-hl::after { transform: rotate(-1.2deg); }
}
.contact p { color: var(--on-dark-muted); max-width: 56ch; font-size: 1.1rem; }
/* Freigabe-Karte: der input-Schritt als manueller Job */
@media (min-width: 960px) {
  .contact .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: clamp(40px, 6vw, 88px); align-items: center; }
  .contact .wrap > :not(.approval) { grid-column: 1; }
  .contact .approval { grid-column: 2; grid-row: 1 / span 3; }
}
.approval {
  display: grid; gap: 20px; padding: 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}
.approval-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px dashed rgba(255,255,255,.18);
}
.approval-head .pnode { flex: none; width: 26px; height: 26px; }
.contact .approval-job { font: 600 1rem/1.3 var(--mono); color: var(--on-dark); }
.contact .approval-state { font: 500 .8rem/1.4 var(--mono); color: var(--node-wait); }
.approval-vars { margin: 0; display: grid; gap: 8px; font: 500 .85rem/1.3 var(--mono); }
.approval-vars div { display: grid; grid-template-columns: 10ch 1fr; gap: 14px; }
.approval-vars dt { display: flex; justify-content: space-between; color: var(--on-dark-muted); }
.approval-vars dt::after { content: "="; opacity: .6; }
.approval-vars dd { margin: 0; color: var(--on-dark); }
.mail {
  display: block; padding: 14px 16px; border-radius: 12px; text-align: center; text-decoration: none;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14); user-select: all;
  font: 500 clamp(.8rem, 2.6vw, .95rem)/1.3 var(--mono); white-space: nowrap; overflow-wrap: anywhere;
}
.mail:hover { color: var(--cyan); border-color: var(--cyan); }
@media (max-width: 340px) { .mail { white-space: normal; } }
.approval-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.approval-actions .btn { justify-content: center; padding-inline: 14px; }
.approval-actions .btn.primary { grid-column: 1 / -1; }
.copy-btn { cursor: pointer; background: none; }
.copy-btn.ok { background: var(--node-ok); border-color: var(--node-ok); }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-block: 6px solid transparent; }
@media (max-width: 420px) { .approval { padding: 18px; } }
/* Jenkins-Butler steht auf der Freigabe-Karte und wartet mit (Figur: Jenkins-Projekt, CC BY-SA 3.0) */
.approval { position: relative; }
.butler { position: absolute; right: 24px; bottom: calc(100% - 3px); width: clamp(92px, 9.5vw, 124px); pointer-events: none; transform-origin: 50% 100%; }
.butler img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; filter: drop-shadow(0 8px 8px rgba(0,0,0,.35)); }
@media (max-width: 959px) { .contact .approval { margin-top: clamp(86px, 24vw, 110px); } }
@media (prefers-reduced-motion: no-preference) {
  .butler-ready .butler { opacity: 0; }
  .butler-ready.in .butler { opacity: 1; animation: butler-drop .8s both; }
  .butler-ready.in .butler img { animation: butler-wait 3.6s .8s ease-in-out infinite; }
  /* Freigabe-Knopf im Blick: er hüpft ungeduldig; E-Mail kopiert: Salto */
  .approval:has(.btn.primary:hover, .btn.primary:focus-visible) .butler img { animation: butler-hop .5s ease-in-out infinite; }
  .approval:has(.copy-btn.ok) .butler img { animation: butler-flip .8s ease-in-out both; }
}
@keyframes butler-drop {
  0% { transform: translateY(-90%); opacity: 0; animation-timing-function: cubic-bezier(.5,0,.8,.5); }
  20% { opacity: 1; }
  55% { transform: translateY(0) scale(1.06, .88); animation-timing-function: cubic-bezier(.2,.6,.4,1); }
  75% { transform: translateY(-7%) scale(.98, 1.03); }
  100% { transform: none; opacity: 1; }
}
@keyframes butler-wait { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg); } 70% { transform: rotate(2.5deg); } }
@keyframes butler-hop { 0%, 100% { transform: none; } 45% { transform: translateY(-16%) rotate(-4deg); } }
@keyframes butler-flip {
  0% { transform: none; }
  15% { transform: scale(1.05, .9); }
  55% { transform: translateY(-45%) rotate(-200deg); }
  85% { transform: translateY(0) rotate(-360deg) scale(1.05, .92); }
  100% { transform: rotate(-360deg); }
}
footer { background: var(--deep); color: var(--on-dark-muted); }
footer .wrap { padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 .8rem/1.4 var(--mono); }
/* „Gebaut mit Claude“: eigener Funke (kein Anthropic-Logo), dreht sich bei Hover */
footer .made-with { display: inline-flex; align-items: center; gap: .4em; }
footer .spark { width: 1.15em; height: 1.15em; fill: var(--spark); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
footer .made-with:hover .spark { transform: rotate(180deg) scale(1.15); }
@media (prefers-reduced-motion: reduce) { footer .spark { transition: none; } }

/* Einstieg */
@media (prefers-reduced-motion: no-preference) {
  .hero .intro > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero .intro > *:nth-child(2) { animation-delay: .06s; }
  .hero .intro > *:nth-child(3) { animation-delay: .12s; }
  .hero .intro > *:nth-child(4) { animation-delay: .18s; }
  .hero .intro > *:nth-child(5) { animation-delay: .24s; }
  .hero .intro > *:nth-child(6) { animation-delay: .3s; }
  .portrait { animation: rise 1s .15s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
/* whoami wird getippt (main.js); bis dahin wartet die „Ausgabe“ im Startzustand der Einlauf-Animation */
.hero .intro.typing > :not(.prompt, .fox404) { animation-play-state: paused; }
.hero .intro.typing .prompt .caret { animation: caret 1s steps(1) infinite; }
.hero .intro.typing.keys .prompt .caret { animation: none; }
.hero .intro:not(.typing) .prompt .caret { display: none; }
/* 404-Fuchs im leeren Intro, verpufft nach dem Tippen (main.js) */
.hero .intro { position: relative; }
.hero .intro > .fox404 {
  position: absolute; left: 0; top: 34%; display: flex; align-items: center; gap: 18px; pointer-events: none;
  animation: fox-in .5s .15s cubic-bezier(.2,.7,.2,1.4) both;
}
.fox404 svg { width: clamp(72px, 9vw, 104px); height: auto; overflow: visible; transform-origin: 50% 90%; animation: fox-search 1.1s .6s ease-in-out infinite; }
.fox404 .f1 { fill: var(--fox); }
.fox404 .f2 { fill: var(--fox-light); }
.fox404 .f3 { fill: var(--fox-dark); }
.fox404 .eye { stroke: var(--deep); stroke-width: 2.6; stroke-linecap: round; }
.fox404 p { margin: 0; font: 400 .85rem/1.3 var(--mono); color: var(--on-dark-muted); }
.fox404 b { display: block; font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--mono); color: var(--fox); }
.fox404 i {
  --a: 0deg; position: absolute; left: clamp(36px, 4.5vw, 52px); top: 50%; width: 10px; height: 10px; margin: -5px;
  border-radius: 50%; background: var(--on-dark-muted); opacity: 0;
}
.fox404.poof svg, .fox404.poof p { animation: fox-poof .35s ease-in both; }
.fox404.poof i { animation: fox-puff .5s ease-out both; }
@keyframes fox-in { from { opacity: 0; transform: translateY(12px) scale(.7); } }
@keyframes fox-search { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes fox-poof { to { opacity: 0; transform: scale(1.35); filter: blur(6px); } }
@keyframes fox-puff {
  0% { opacity: .9; transform: rotate(var(--a)) translateX(0) scale(.6); }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(64px) scale(1.8); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status i, .pnode.running::after, .pipe-head-halo, .container-bar .state i, .container-bar .state i::after { animation: none; }
  .pnode, .spine-node { transition: none; }
  .btn, .card { transition: none; }
}

/* LinkedIn & Footer-Links */
.btn svg.li { width: 18px; height: 18px; fill: currentColor; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { text-decoration: none; color: var(--on-dark-muted); }
.foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.02em; margin-bottom: 12px; }
.legal .stand { font: 500 .82rem/1.4 var(--mono); color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: 0; margin: 40px 0 12px; }
.legal h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal address { font-style: normal; color: var(--fg); line-height: 1.7; }
.legal code { font: 500 .9em/1 var(--mono); color: var(--fg); }
.legal a { color: var(--accent-2); text-underline-offset: 3px; }
.legal strong { color: var(--fg); font-weight: 600; }
.back { display: inline-flex; gap: 8px; font: 500 .85rem/1 var(--mono); color: var(--accent); text-decoration: none; margin-bottom: 28px; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Hell/Dunkel-Schalter */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--on-dark);
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--cyan); color: #fff; }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s, transform .35s; }
.theme-toggle .sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
.theme-toggle.is-dark .sun { opacity: 1; transform: none; }
.theme-toggle.is-dark .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
@media (prefers-reduced-motion: reduce) { .theme-toggle svg { transition: none; } }

/* Sprachwechsel */
.lang-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); color: var(--on-dark); text-decoration: none;
  font: 500 .74rem/1 var(--mono); letter-spacing: .04em; transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--cyan); color: #fff; }

/* Zitat im Werkzeugkasten */
.tool-quote {
  margin-top: 18px; max-width: 34ch;
  font: 500 clamp(1.15rem, 2.2vw, 1.45rem)/1.4 var(--display); color: var(--muted);
  padding-left: 18px; border-left: 3px solid var(--accent);
}
/* Kernaussage mit Textmarker wie im Zeugnis (auch im Lead der Schwerpunkte), wird beim Erreichen aufgezogen (siehe main.js) */
.tool-quote .tool-hl, .lead .lead-hl {
  color: var(--fg); padding-inline: .06em;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent) 30%, transparent) 0) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .tool-quote.reveal .tool-hl, .lead.reveal .lead-hl { background-size: 0 100%; transition: background-size .8s cubic-bezier(.2,.7,.2,1) .2s; }
  .tool-quote.reveal.in .tool-hl, .lead.reveal.in .lead-hl { background-size: 100% 100%; }
  .lead.reveal.in .lead-hl + .lead-hl { transition-delay: .8s; }
}

/* Werkzeugkasten als Container */
.container-box {
  margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.container-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 20px;
  font: 500 .82rem/1.4 var(--mono); color: var(--fg); border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, transparent 0 13px, color-mix(in srgb, var(--accent-2) 10%, transparent) 13px 15px),
    color-mix(in srgb, var(--accent-2) 7%, var(--surface));
}
.container-bar .cmd { min-width: 0; overflow-wrap: anywhere; }
.container-bar .sign { color: var(--accent); }
/* Befehl wird beim Erreichen getippt (nur mit JS, siehe main.js); der unsichtbare Volltext hält den Platz frei */
.type-box { display: inline-grid; }
.type-box > * { grid-area: 1 / 1; }
.type-ghost { color: transparent; }
.type-live .caret {
  display: inline-block; width: .55em; height: 1.15em; margin-right: -.55em; vertical-align: text-bottom;
  background: var(--accent);
}
.prompt .type-live .caret { background: var(--cyan); }
.container-bar.typing .type-live .caret { animation: caret 1s steps(1) infinite; }
.container-bar.typing.keys .type-live .caret { animation: none; }
.container-bar.typing.done .type-live .caret { display: none; }
.container-bar.typing .state { opacity: 0; transition: opacity .5s ease; }
.container-bar.typing.done .state { opacity: 1; }
@keyframes caret { 50% { opacity: 0; } }
.container-bar .state { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.container-bar .state i {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: heartbeat 1.4s ease-in-out infinite;
}
/* Herzschlag: doppelter Schlag, dazu ein Ring, der nach außen ausläuft */
.container-bar .state i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor;
  animation: beat-ring 1.4s ease-out infinite;
}
@keyframes heartbeat { 0%, 45%, 100% { transform: scale(1); } 12% { transform: scale(1.35); } 24% { transform: scale(.95); } 34% { transform: scale(1.2); } }
@keyframes beat-ring { 0% { transform: scale(1); opacity: .55; } 60%, 100% { transform: scale(3); opacity: 0; } }
.container-box .skills { margin-top: 0; padding: clamp(20px, 3.5vw, 32px); }
/* Docker-Wal springt einmal aus dem Container (nur mit JS, siehe main.js) */
.toolbox { position: relative; margin-top: 48px; }
.toolbox > .container-box { position: relative; z-index: 1; margin-top: 0; }
.whale { position: absolute; top: 0; left: 46%; width: clamp(84px, 10vw, 132px); visibility: hidden; pointer-events: none; }
.whale-y, .whale svg { display: block; }
.whale svg { width: 100%; height: auto; overflow: visible; }
.whale .body, .whale-peek .body { fill: var(--whale); }
.whale .belly, .whale-peek .belly { fill: var(--whale-belly); }
.whale .crate, .whale-peek .crate { fill: var(--whale-box); stroke: var(--whale); stroke-width: 2.4; }
.whale .eye, .whale-peek .eye { fill: var(--on-dark); }
.toolbox.jump .whale { visibility: visible; animation: whale-x 1.8s linear both; }
.toolbox.jump .whale-y { animation: whale-y 1.8s both; }
.toolbox.jump .whale svg { animation: whale-r 1.8s linear both; }
@keyframes whale-x { from { left: 46%; } to { left: 80%; } }
@keyframes whale-y {
  0% { transform: translateY(15%); animation-timing-function: cubic-bezier(.3,.6,.5,1); }
  50% { transform: translateY(-165%); animation-timing-function: cubic-bezier(.5,0,.7,.4); }
  100% { transform: translateY(15%); }
}
@keyframes whale-r { from { transform: rotate(-38deg); } to { transform: rotate(42deg); } }
/* Danach guckt der Wal rechts hinter dem Container hervor, wackelt und zieht sich zurück */
#skills { overflow-x: clip; }
.whale-peek { position: absolute; top: 34%; right: 0; width: clamp(84px, 10vw, 132px); visibility: hidden; pointer-events: none; }
.whale-peek svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 30% 70%; }
.toolbox.peek .whale-peek { visibility: visible; }
.toolbox.peek .whale-out { animation: peek-x 2.8s ease-in-out both; }
.toolbox.peek .whale-peek svg { animation: peek-wobble 2.8s ease-in-out both; }
@keyframes peek-x {
  0% { transform: translateX(0); }
  22%, 76% { transform: translateX(62%); }
  100% { transform: translateX(0); }
}
@keyframes peek-wobble {
  0%, 26% { transform: rotate(0); }
  34% { transform: rotate(-9deg); } 42% { transform: rotate(7deg); }
  50% { transform: rotate(-6deg); } 58% { transform: rotate(4deg); }
  66%, 100% { transform: rotate(0); }
}
.container-box .skills h3 { align-items: center; }
.skill-ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 22%, transparent), color-mix(in srgb, var(--magenta) 18%, transparent));
  color: var(--accent-2);
}
.skill-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
