/* d6 – Futur A „Orbit“  ·  dunkler Grund, ein Akzentverlauf (Cyan → Violett), vertikale Timeline */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #060912;
  --bg-2: #0a0f1d;
  --surface: rgba(148, 163, 214, 0.045);
  --surface-2: rgba(148, 163, 214, 0.075);
  --line: rgba(148, 163, 214, 0.14);
  --line-2: rgba(148, 163, 214, 0.24);
  --text: #e8ebf4;
  --text-2: #b7bfd3;
  --muted: #8d97ae;
  --cyan: #38d6f5;
  --violet: #9a7bff;
  --accent-text: #7fe3f8;
  --grad: linear-gradient(135deg, var(--cyan), var(--violet));
  --grad-v: linear-gradient(180deg, var(--cyan), var(--violet));
  --plaque: #f3f5fa;
  --ok: #4ade80;
  --warn: #fbbf24;
  --busy: #f87171;
  --radius: 14px;
  --radius-s: 9px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-d: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --head-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* ruhiger Lichtverlauf + feines Gitter, fest im Hintergrund */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(154, 123, 255, 0.13), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(56, 214, 245, 0.07), transparent 60%),
    linear-gradient(180deg, #070b16 0%, var(--bg) 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 214, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-m); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3, .tl-card h3, .cert-name { text-wrap: balance; }
.hero-tagline, .sec-sub { text-wrap: pretty; }
::selection { background: rgba(56, 214, 245, 0.3); color: #fff; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Scroll-Fortschritt & Kopfleiste ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--head-h);
  background: rgba(6, 9, 18, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(6, 9, 18, 0.85); }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.topbar-in .nav { margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 500 12px/1 var(--font-m); letter-spacing: .04em; color: var(--text);
  border: 1px solid var(--line-2); position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  top: 1px; right: 2px; box-shadow: 0 0 8px var(--cyan);
}
.brand-name { font: 600 1rem/1 var(--font-d); letter-spacing: -0.01em; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; color: var(--text-2); font-size: .9375rem; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); }
.nav a.nav-cta { color: var(--text); border: 1px solid var(--line-2); margin-left: 8px; }
.nav a.nav-cta:hover { border-color: var(--cyan); background: rgba(56, 214, 245, 0.08); }
.menu-btn { display: none; }

/* Sprachumschalter DE | EN (render.php: psr_lang_switch) – Link zur anderen Fassung, aktuelle Sprache hervorgehoben */
.nav-lang { margin-left: 8px; }
.lang-sw { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 3px; font: 500 .8125rem/1 var(--font-m); letter-spacing: .06em; }
.lang-sep { display: none; }
.lang-cur, .nav .lang-sw a { display: inline-grid; place-items: center; min-width: 40px; min-height: 36px; margin: 3px 0; padding: 0 9px; border-radius: 999px; }
.lang-cur { color: var(--text); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2) inset; }
.nav .lang-sw a { color: var(--muted); text-decoration: none; font-size: inherit; }
.nav .lang-sw a:hover { color: var(--text); background: rgba(56, 214, 245, .08); }
.nav .lang-sw a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (pointer: coarse) { .lang-cur, .nav .lang-sw a { min-height: 44px; margin: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 500 .9375rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s, border-color .2s, background-color .2s, box-shadow .2s;
}
.btn-primary { color: #04121a; background: linear-gradient(135deg, #5fe0f8, #b39dff); box-shadow: 0 6px 28px -8px rgba(122, 160, 255, .55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 32px -8px rgba(122, 160, 255, .7); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(56, 214, 245, 0.06); }

/* ---------- Hersteller-Plakette (helle Fläche hinter Originallogo) ---------- */
.plaque {
  --s: 36px;
  flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.26);
  background: var(--plaque); display: inline-grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 4px 14px -6px rgba(0, 0, 0, .6);
}
.plaque > .cv-icon { width: 64% !important; height: 64% !important; object-fit: contain; }
.plaque > span.cv-icon { width: 100% !important; height: 100% !important; border-radius: inherit !important; font-size: calc(var(--s) * .36) !important; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--head-h) + clamp(40px, 8vw, 96px)) 0 clamp(48px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.kicker .sep { color: var(--muted); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(56, 214, 245, .7); }
.hero h1 { font-size: clamp(2.75rem, 6.6vw, 5.25rem); line-height: .98; letter-spacing: -0.035em; margin: 22px 0 22px; font-weight: 600; }
.hero-focus { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 24px; }
.hero-focus > span {
  display: inline-flex; align-items: center; gap: 8px; font: 500 .8125rem/1 var(--font-m); color: var(--text);
  padding: 8px 12px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
}
.hero-focus .plaque { --s: 22px; box-shadow: none; }
.hero-tagline { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 34em; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 34px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.availability { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font: 400 .8125rem/1.4 var(--font-m); color: var(--text-2); }
.availability .dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.availability .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; color: var(--ok); opacity: .5; animation: ping 2.6s ease-out infinite; }
.availability.limited .dot, .availability.limited .dot::after { background-color: var(--warn); color: var(--warn); }
.availability.busy .dot, .availability.busy .dot::after { background-color: var(--busy); color: var(--busy); }
.availability .dot::after { background: none !important; }
.availability[hidden] { display: none; }

/* Orbit um das Porträt */
.orbit { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ring-1 { width: 66%; height: 66%; border-color: rgba(148, 163, 214, .2); }
.ring-2 { width: 84%; height: 84%; border-style: dashed; border-color: rgba(148, 163, 214, .14); }
.ring-3 { width: 100%; height: 100%; border-color: rgba(148, 163, 214, .12); }
.ring-2 .sat, .ring-3 .orb-wrap { position: absolute; inset: 0; }
.ring-2 .sat { animation: spin 72s linear infinite; }
.ring-2 .sat::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px 2px rgba(56, 214, 245, .6);
}
.ring-3 .orb-wrap { animation: spin 240s linear infinite; }
.orb-item { position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.orb-item .orb-up { width: 100%; height: 100%; display: grid; place-items: center; animation: spin 240s linear infinite reverse; }
.orb-item .plaque { --s: 48px; box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 0 0 6px rgba(6, 9, 18, .9), 0 10px 30px -8px rgba(0, 0, 0, .8); }
.portrait {
  position: absolute; top: 50%; left: 50%; width: 54%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; padding: 3px; background: var(--grad);
  box-shadow: 0 0 60px -10px rgba(122, 140, 255, .55);
}
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); background: var(--bg-2); }

.stats {
  margin: clamp(48px, 7vw, 88px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.stats > div { padding: 22px 26px; position: relative; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { font: 400 .75rem/1.4 var(--font-m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); order: 2; margin-top: 6px; }
.stats dd { margin: 0; font: 600 clamp(1.75rem, 3vw, 2.375rem)/1 var(--font-d); letter-spacing: -0.02em; }
.stats > div { display: flex; flex-direction: column; }
.stats dd span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0 0; }
.sec-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 720px; }
.sec-idx { font-size: .8125rem; color: var(--accent-text); letter-spacing: .08em; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-idx span { color: var(--muted); text-transform: uppercase; }
.sec-idx::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, var(--line-2), transparent); order: 3; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
.sec-sub { color: var(--text-2); margin-top: 14px; font-size: 1.0625rem; max-width: 40em; }
.glass { background: linear-gradient(180deg, rgba(148, 163, 214, .07), rgba(148, 163, 214, .025)); border: 1px solid var(--line); border-radius: var(--radius); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Profil */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-text p + p { margin-top: 18px; }
.about-text p { color: var(--text-2); font-size: 1.0625rem; max-width: 38em; }
.about-text .lead { font: 400 clamp(1.25rem, 2vw, 1.5rem)/1.5 var(--font-d); color: var(--text); letter-spacing: -0.01em; }
.facts { padding: 8px 28px; }
.facts dl { margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; }
.facts dl > div + div { border-top: 1px solid var(--line); }
.facts dt { font: 400 .75rem/1.9 var(--font-m); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 0; color: var(--text); }
.facts dd small { color: var(--muted); font-size: .875rem; }
.facts .lang + .lang { margin-top: 2px; }

.strengths { margin-top: clamp(48px, 6vw, 72px); }
.sub { font-size: .8125rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.strengths ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.strengths li { border-top: 1px solid var(--line-2); padding-top: 18px; position: relative; }
.strengths li::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 1px; background: var(--grad); }
.strengths .n { display: block; font: 400 .75rem/1 var(--font-m); color: var(--accent-text); margin-bottom: 12px; }
.strengths p { font: 500 1.0625rem/1.45 var(--font-d); color: var(--text); }

/* Kompetenzen */
.skills { columns: 2; column-gap: 24px; }
.skill-group { break-inside: avoid; margin-bottom: 24px; padding: 22px 24px 8px; display: inline-block; width: 100%; }
.skill-group h3 { font: 400 .75rem/1.4 var(--font-m); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.skill { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; align-items: center; }
.skill + .skill { border-top: 1px solid var(--line); }
.skill .plaque { --s: 40px; grid-row: span 2; align-self: start; }
.skill-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.skill-name { font: 600 1.0625rem/1.3 var(--font-d); }
.skill-lvl { font: 400 .75rem/1 var(--font-m); color: var(--muted); white-space: nowrap; }
.skill-details { grid-column: 2; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.bar { grid-column: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.bar i { height: 4px; border-radius: 2px; background: rgba(148, 163, 214, .16); }
.bar i.on { background: var(--grad); background-size: 500% 100%; }
.bar i.on:nth-child(1) { background-position: 0 0; }
.bar i.on:nth-child(2) { background-position: 25% 0; }
.bar i.on:nth-child(3) { background-position: 50% 0; }
.bar i.on:nth-child(4) { background-position: 75% 0; }
.bar i.on:nth-child(5) { background-position: 100% 0; }
.skill .chip-feat { margin-left: 8px; font: 400 .6875rem/1 var(--font-m); color: var(--accent-text); letter-spacing: .04em; }

/* ---------- Timeline ---------- */
.tl-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
.filters-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .75rem; color: var(--muted); }
.tl-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(148, 163, 214, .6); flex: none; }
.lg-emp { border-radius: 2px; transform: rotate(45deg); width: 9px; height: 9px; border-color: #cfd6e6; }
.lg-live { border-color: var(--cyan); background: #0d2a36; box-shadow: 0 0 0 3px rgba(56, 214, 245, .15); }
.filters { position: relative; margin-bottom: clamp(40px, 5vw, 64px); }
.filters-scroll { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); cursor: pointer;
  font: 500 .875rem/1 var(--font); white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s;
}
.fchip.all { padding-left: 16px; }
.fchip .plaque { --s: 28px; box-shadow: none; }
.fchip .cnt { font: 400 .75rem/1 var(--font-m); color: var(--muted); }
.fchip:hover { border-color: rgba(56, 214, 245, .5); color: var(--text); }
.fchip[aria-pressed="true"] { border-color: var(--cyan); background: rgba(56, 214, 245, .1); color: var(--text); box-shadow: 0 0 0 1px rgba(56, 214, 245, .25) inset; }
.fchip[aria-pressed="true"] .cnt { color: var(--accent-text); }

.tl { position: relative; --gut: 96px; --x: 11px; }
.tl-line { position: absolute; top: 14px; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: rgba(148, 163, 214, .14); border-radius: 2px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 120px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 120px), transparent); }
.tl-fill { position: absolute; inset: 0; background: var(--grad-v); transform-origin: 50% 0; transform: scaleY(0); }
.tl-list { position: relative; }

/* Grundform (mobil / ohne JS): Linie links, Karten einspaltig */
.tl-year { display: flex; justify-content: flex-start; margin: 4px 0 28px; position: relative; z-index: 1; }
.tl-year span {
  font: 500 .8125rem/1 var(--font-m); letter-spacing: .06em; color: var(--text); padding: 8px 12px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-2);
}
.tl-year.now span { border-color: rgba(56, 214, 245, .6); color: var(--accent-text); }
.tl-item { position: relative; padding-left: 36px; margin-bottom: 32px; }
.tl-node { position: absolute; left: 0; top: 27px; width: 36px; height: 20px; }
.tl-node::before { /* Verbinder zur Karte */
  content: ""; position: absolute; top: 50%; height: 1px; left: calc(var(--x) + 10px); right: 0; background: var(--line-2);
}
.tl-dot {
  position: absolute; left: var(--x); top: 50%; translate: -50% -50%; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--bg);
  border: 2px solid rgba(148, 163, 214, .45); transition: border-color .4s, background-color .4s, box-shadow .4s;
}
.tl-item.lit .tl-dot { border-color: var(--cyan); background: #0d2a36; box-shadow: 0 0 0 4px rgba(56, 214, 245, .12), 0 0 14px rgba(56, 214, 245, .55); }
.tl-item.hl .tl-dot { width: 18px; height: 18px; }
.tl-item.hl.lit .tl-dot { border-color: transparent; background: radial-gradient(circle, #fff 0 22%, transparent 26%), var(--grad); }
.tl-item.emp .tl-dot { border-radius: 3px; transform: rotate(45deg); width: 13px; height: 13px; }
.tl-item.emp.lit .tl-dot { border-color: #cfd6e6; background: #262c3b; box-shadow: 0 0 0 4px rgba(207, 214, 230, .1); }
.tl-item.ongoing .tl-dot::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--cyan); animation: ping 2.4s ease-out infinite;
}

/* Desktop: zentrale Linie, Karten wechselseitig und versetzt gepackt (Positionen per JS) */
@media (min-width: 901px) {
  .tl.packed .tl-line { left: 50%; }
  .tl.packed .tl-list > li { position: absolute; margin: 0; }
  .tl.packed .tl-year { left: 0; right: 0; justify-content: center; }
  .tl.packed .tl-item { width: calc(50% - var(--gut) / 2); padding: 0; }
  .tl.packed .tl-item.left { left: 0; }
  .tl.packed .tl-item.right { right: 0; }
  .tl.packed .tl-node { width: calc(var(--gut) / 2); top: 25px; }
  .tl.packed .tl-item.left .tl-node { left: auto; right: calc(var(--gut) / -2); }
  .tl.packed .tl-item.left .tl-dot { left: 100%; }
  .tl.packed .tl-item.right .tl-node { left: calc(var(--gut) / -2); }
  .tl.packed .tl-item.right .tl-dot { left: 0; }
  .tl.packed .tl-item.left .tl-seg { left: 100%; }
  .tl.packed .tl-item.right .tl-seg { left: 0; }
  .tl.packed .tl-node::before { left: 0; right: 0; }
  .tl.packed .tl-item.left .tl-node::before { background: linear-gradient(90deg, var(--line-2), rgba(148, 163, 214, .5)); }
  .tl.packed .tl-item.right .tl-node::before { background: linear-gradient(270deg, var(--line-2), rgba(148, 163, 214, .5)); }
}


.tl-card {
  position: relative; border-radius: var(--radius); padding: 26px 28px 22px;
  background: linear-gradient(180deg, rgba(148, 163, 214, .065), rgba(148, 163, 214, .025));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
}
.tl-card:hover { border-color: var(--line-2); }
.tl-item.hl .tl-card { border-color: transparent; background:
  linear-gradient(180deg, #0f1526, #0b101e) padding-box,
  linear-gradient(135deg, rgba(56, 214, 245, .55), rgba(154, 123, 255, .45) 50%, rgba(148, 163, 214, .12)) border-box; }
.tl-item.emp .tl-card { border-style: dashed; border-color: rgba(207, 214, 230, .28); background: rgba(148, 163, 214, .03); }

.tl-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 500 .6875rem/1 var(--font-m); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text-2);
}
.badge.hl { color: #e9e3ff; border-color: rgba(154, 123, 255, .5); background: rgba(154, 123, 255, .12); }
.badge.live { color: var(--accent-text); border-color: rgba(56, 214, 245, .5); background: rgba(56, 214, 245, .08); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 2.4s ease-in-out infinite; }
.badge.emp { color: #dfe4ef; border-color: rgba(207, 214, 230, .4); background: rgba(207, 214, 230, .07); }

.tl-role { font: 400 .8125rem/1.4 var(--font-m); color: var(--accent-text); margin-bottom: 8px; }
.tl-card h3 { font-size: clamp(1.25rem, 1.8vw, 1.4375rem); line-height: 1.22; letter-spacing: -0.02em; }
.tl-client { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.tl-client b { color: var(--text-2); font-weight: 500; }
.tl-when { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 9px; font: 500 .875rem/1.4 var(--font-m); color: var(--text); }
.tl-when .d { color: var(--text-2); font-weight: 400; font-size: .8125rem; white-space: nowrap; }
.tl-when .k { color: var(--muted); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }

/* Dauer-Balken: Laenge relativ zur laengsten Station, feine Teilstriche = je 1 Jahr (--yr) */
.tl-dur {
  position: relative; height: 4px; margin-bottom: 18px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--yr, 25%) - 1px), rgba(148, 163, 214, .32) calc(var(--yr, 25%) - 1px) var(--yr, 25%)),
    rgba(148, 163, 214, .1);
}
.tl-dur-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--r) * 100%); min-width: 6px; border-radius: inherit;
  background: var(--grad); box-shadow: 0 0 10px -2px rgba(56, 214, 245, .55);
}
.tl-item.emp .tl-dur-bar { background: linear-gradient(90deg, #cfd6e6, #8d97ae); box-shadow: none; }
/* laufend: offenes Ende */
.tl-item.ongoing .tl-dur-bar { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 10px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 10px), transparent); }

/* Dauer-Segment auf der Linie, ab dem Knoten abwaerts */
.tl-seg {
  position: absolute; left: var(--x); top: 50%; width: 6px; height: var(--seg, 16px); translate: -50% 0; border-radius: 3px;
  background: #3a4258; transition: background-color .4s, box-shadow .4s; z-index: 1;
}
.tl-item.lit .tl-seg { background: linear-gradient(180deg, #7fe3f8, #9a7bff); box-shadow: 0 0 10px rgba(56, 214, 245, .45); }
.tl-item.emp.lit .tl-seg { background: linear-gradient(180deg, #cfd6e6, rgba(141, 151, 174, .5)); }
.tl-item.ongoing .tl-seg { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }

.tl-vendors { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.vpill { display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: .8125rem; color: var(--text); }
.vpill .plaque { --s: 30px; box-shadow: none; }

.tl-summary { margin-top: 16px; color: var(--text-2); font-size: .9688rem; line-height: 1.6; }

.tl-metrics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.metric { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: var(--radius-s); background: rgba(56, 214, 245, .05); border: 1px solid rgba(56, 214, 245, .2); }
.metric b { font: 600 1.75rem/1 var(--font-d); letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric span { font-size: .875rem; color: var(--text-2); line-height: 1.3; }

.tl-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tl-skills li { font: 400 .75rem/1.3 var(--font-m); color: var(--text-2); padding: 5px 9px; border-radius: 6px; background: rgba(148, 163, 214, .07); border: 1px solid rgba(148, 163, 214, .1); }
.tl-skills li.match { color: var(--text); border-color: rgba(56, 214, 245, .45); background: rgba(56, 214, 245, .08); }
.tl-skills li.more { display: none; padding: 0; border: 0; background: none; }
.tl-skills .more button {
  position: relative; font: 500 .75rem/1.3 var(--font-m); color: var(--accent-text); padding: 5px 10px; border-radius: 6px; cursor: pointer;
  background: rgba(56, 214, 245, .06); border: 1px dashed rgba(56, 214, 245, .45);
}
.tl-skills .more button::after { content: ""; position: absolute; inset: -10px -6px; } /* Touch-Ziel >= 44 x 44 px (Chip ca. 36 x 28) */
.tl-skills .more button:hover { background: rgba(56, 214, 245, .12); }

.tl-toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 44px; padding: 0 14px 0 12px; margin-left: -12px;
  background: none; border: 0; border-radius: 8px; color: var(--text); font: 500 .875rem/1 var(--font); cursor: pointer;
}
.tl-toggle:hover { background: var(--surface-2); }
.tl-toggle .chev { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s, border-color .3s; }
.tl-toggle .chev::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); }
.tl-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); border-color: var(--cyan); }
.tl-toggle .cnt { font: 400 .75rem/1 var(--font-m); color: var(--muted); }
.tl-tasks { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.tl-tasks li { position: relative; padding-left: 22px; color: var(--text-2); font-size: .9375rem; line-height: 1.55; }
.tl-tasks li + li { margin-top: 8px; }
.tl-tasks li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 1px; background: var(--cyan); }
.tl-tasks:not([hidden]) { animation: fadein .35s ease both; }

.tl-item.is-hidden, .tl-year.is-hidden { display: none; }
.tl-empty { text-align: center; color: var(--muted); padding: 40px 0; position: relative; background: var(--bg); }

/* Zertifikate */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cert { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .3s; }
.cert:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cert-badge { position: relative; flex: none; width: 64px; height: 64px; display: grid; place-items: center; }
.cert-badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1px; background: conic-gradient(from 210deg, var(--cyan), var(--violet), rgba(148, 163, 214, .15) 70%, var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.cert-badge .plaque { --s: 42px; border-radius: 50%; }
.cert-name { font: 600 1rem/1.3 var(--font-d); }
.cert-meta { font: 400 .75rem/1.4 var(--font-m); color: var(--muted); margin-top: 6px; letter-spacing: .02em; }
.cert-link { position: relative; color: var(--accent-text); text-decoration: underline; text-decoration-color: rgba(56, 214, 245, .45); text-underline-offset: 3px; }
.cert-link::after { content: ""; position: absolute; inset: -12px -6px; } /* groesseres Touch-Ziel */
.cert-link:hover { color: var(--text); text-decoration-color: currentColor; }

/* Kontakt */
.contact { padding-bottom: clamp(72px, 10vw, 120px); }
.contact-card { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; border-radius: 50%; border: 1px solid rgba(148, 163, 214, .1); box-shadow: 0 0 0 70px rgba(148, 163, 214, .02), 0 0 0 140px rgba(148, 163, 214, .015); pointer-events: none; }
.contact-head h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
.contact-list { display: grid; gap: 12px; position: relative; }
.contact-list a, .contact-list .static {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; min-height: 72px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 9, 18, .55); text-decoration: none; transition: border-color .2s, background-color .2s;
}
.contact-list a:hover { border-color: rgba(56, 214, 245, .5); background: rgba(56, 214, 245, .05); }
.contact-list .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent-text); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list .lbl { display: block; font: 400 .6875rem/1 var(--font-m); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.contact-list .val { display: block; font: 500 1.0625rem/1.3 var(--font-d); overflow-wrap: anywhere; }
.contact-list .arr { color: var(--muted); font-family: var(--font-m); transition: transform .2s, color .2s; }
.contact-list .val.links a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(56, 214, 245, .45); text-underline-offset: 4px; display: inline-block; padding: 6px 0; }
.contact-list .val.links a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.contact-list .val.links .sep { color: var(--muted); }
.contact-list a:hover .arr { transform: translateX(3px); color: var(--accent-text); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 32px; color: var(--muted); font-size: .875rem; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { font-size: .8125rem; }
.footer ul { display: flex; gap: 4px; flex-wrap: wrap; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--text-2); border-radius: 8px; }
.footer a:hover { color: var(--text); background: var(--surface-2); }
.footer .lang-note { color: var(--muted); margin-left: .3em; }
/* /en/: unverbindliche englische Kurzfassung der Datenschutzerklaerung */
.privacy-en { margin-top: 12px; }
.privacy-en details { border-top: 1px solid var(--line); padding-top: 6px; }
.privacy-en summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--text-2); list-style: none; border-radius: 8px; }
.privacy-en summary::-webkit-details-marker { display: none; }
.privacy-en summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .2s; }
.privacy-en details[open] summary::before { transform: rotate(45deg); }
.privacy-en summary:hover { color: var(--text); }
.privacy-en summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.privacy-en-body { max-width: 74ch; padding: 4px 0 8px 17px; }
.privacy-en-body p { font-size: .875rem; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.privacy-en-body a { display: inline; min-height: 0; padding: 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* Einblendungen: nur Elemente unterhalb des ersten Bildschirms (.rv setzt orbit.js), vorgerenderter Inhalt bleibt sichtbar */
.js .reveal.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.rv.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .strengths ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .tl { --gut: 72px; }
  .tl-card { padding: 22px 22px 18px; }
}

@media (max-width: 900px) {
  :root { --head-h: 60px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 .875rem/1 var(--font); cursor: pointer;
  }
  .menu-ico { width: 16px; height: 10px; position: relative; }
  .menu-ico i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s; }
  .menu-ico i:first-child { top: 1px; }
  .menu-ico i:last-child { bottom: 1px; }
  .menu-btn[aria-expanded="true"] .menu-ico i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-ico i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--head-h); left: 0; right: 0; background: #070b16; box-shadow: 0 24px 48px -12px rgba(0,0,0,.7); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { border-radius: 0; padding: 0 4px; min-height: 52px; font-size: 1.0625rem; color: var(--text); width: 100%; }
  .nav a:hover { background: none; color: var(--accent-text); }
  .nav a.nav-cta { border: 0; margin: 0; color: var(--accent-text); }
  .nav-lang { margin: 0; padding: 12px 0 4px; }
  .lang-sw { display: flex; width: 100%; border: 0; padding: 0; gap: 8px; font-size: .875rem; }
  .lang-sw::before { content: attr(aria-label); margin-right: auto; font: 400 .75rem/1 var(--font-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .lang-cur, .nav .lang-sw a { order: 1; width: auto; min-width: 56px; min-height: 44px; margin: 0; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); }
  .lang-cur { border-color: var(--cyan); }
  .nav .lang-sw a { color: var(--text-2); }

  .hero-in { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .orb-item { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .orb-item .plaque { --s: 38px; }
  .about { grid-template-columns: 1fr; }
  .skills { columns: 1; }

  /* Timeline einspaltig, Linie links */
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero-in { grid-template-columns: 1fr; }
  .orbit { order: -1; width: min(72vw, 320px); justify-self: center; margin-bottom: 8px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .hero { padding-top: calc(var(--head-h) + 28px); }
  .orbit { width: min(62vw, 240px); }
  .orb-item { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .orb-item .plaque { --s: 34px; }
  .hero h1 { margin: 16px 0 18px; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.25rem); }
  .hero-btns { flex: 1 1 0; min-width: 0; flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .stats > div { padding: 18px 18px; }
  .strengths ol { grid-template-columns: 1fr; gap: 20px; }
  .facts { padding: 4px 20px; }
  .facts dl > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .skill-group { padding: 18px 18px 4px; }
  .tl-card { padding: 20px 18px 16px; }
  .filters { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .filters-scroll { flex-wrap: nowrap; overflow-x: auto; padding: 2px var(--pad) 8px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent); }
  .filters-scroll::-webkit-scrollbar { display: none; }
  .metric b { font-size: 1.5rem; }
  .certs { grid-template-columns: 1fr; gap: 10px; }
  .cert { padding: 14px 16px; gap: 16px; }
  .cert-badge { width: 56px; height: 56px; }
  .cert-badge .plaque { --s: 38px; }
  .tl-bar { margin-bottom: 10px; }
  .vpill { padding: 3px 10px 3px 3px; gap: 8px; font-size: .78rem; }
  .vpill .plaque { --s: 26px; }
  .tl-vendors { gap: 6px; margin-top: 14px; }
  .tl-summary { margin-top: 14px; }
  .tl-skills { margin-top: 14px; }
  .tl-card:not(.open) .tl-skills li.xs:not(.match) { display: none; }
  .tl-card:not(.open) .tl-skills li.more { display: list-item; }
  .tl-toggle { margin-top: 10px; }
  .tl-legend { gap: 6px 16px; }
  .contact-list a, .contact-list .static { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; }
  .contact-list .ico { width: 40px; height: 40px; }
  .contact-card { padding: 28px 20px; }
  .contact-list a, .contact-list .static { padding: 12px 14px 12px 12px; grid-template-columns: 40px minmax(0, 1fr); }
  .contact-list .arr { display: none; }
  .footer-in { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer ul { margin-left: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal.rv { opacity: 1; transform: none; }
}
.plaque-empty { background: transparent; color: var(--accent-text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.plaque-empty svg { width: 55%; height: 55%; }

/* Ohne JavaScript: statischer Kontaktblock (tools/seo_static.py) */
.noscript .contact-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.nojs-list { display: grid; gap: 10px; position: relative; }
.nojs-list li { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 9, 18, .55); font: 500 1.0625rem/1.4 var(--font-d); overflow-wrap: anywhere; }
.nojs-list .lbl { display: block; font: 400 .6875rem/1 var(--font-m); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.nojs-list a { color: var(--text); text-underline-offset: 3px; text-decoration-color: rgba(56, 214, 245, .5); }
@media (max-width: 900px) { .noscript .contact-card { grid-template-columns: 1fr; } }


/* ---------- CV-Download: runder Button (Hero), kompakter Button (Kopfleiste), Dialog ---------- */
.cv-round {
  --d: 120px;
  position: relative; flex: none; width: var(--d); height: var(--d); margin: 0 0 0 11px; border-radius: 50%; padding: 0; border: 0; cursor: pointer;
  background: var(--grad); color: #04121a; display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 12px 36px -10px rgba(122, 160, 255, .65), 0 0 46px -14px rgba(56, 214, 245, .7);
  transition: transform .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.cv-round::before { /* heller Innenverlauf, damit Schrift ruhig steht */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .45), transparent 58%), linear-gradient(135deg, #5fe0f8, #b39dff);
}
.cv-round-orbit { position: absolute; inset: -11px; border-radius: 50%; border: 1px dashed rgba(148, 163, 214, .3); pointer-events: none; animation: spin 48s linear infinite; }
.cv-round-orbit i { position: absolute; top: -3.5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px 2px rgba(56, 214, 245, .55); }
.cv-round-in { position: relative; display: grid; justify-items: center; gap: 6px; }
.cv-round-in svg { width: 30px; height: 30px; stroke-width: 1.7; transition: transform .25s; }
.cv-round-label { font: 600 .875rem/1.08 var(--font-d); letter-spacing: -.005em; text-align: center; }
.cv-round:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 16px 40px -10px rgba(122, 160, 255, .8), 0 0 56px -12px rgba(56, 214, 245, .8); }
.cv-round:hover .cv-round-in svg { transform: translateY(2px); }
.cv-round:active { transform: translateY(0) scale(.98); }
.cv-round:focus-visible { outline: 2px solid var(--cyan); outline-offset: 16px; }

.cv-top {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 5px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 .9375rem/1 var(--font); white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.cv-top-disc { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #04121a; background: linear-gradient(135deg, #5fe0f8, #b39dff); box-shadow: 0 0 14px -4px rgba(56, 214, 245, .8); }
.cv-top-disc svg { width: 18px; height: 18px; stroke-width: 1.9; }
.cv-top:hover { border-color: var(--cyan); background: rgba(56, 214, 245, .08); }

/* Dialog */
html.cv-lock { overflow: hidden; }
.cv-dlg {
  width: min(640px, calc(100vw - 32px)); max-height: min(860px, calc(100dvh - 48px)); padding: 0; margin: auto;
  border: 1px solid var(--line-2); border-radius: 20px; color: var(--text); background: #0a0f1d;
  background-image: radial-gradient(40rem 18rem at 100% 0, rgba(154, 123, 255, .1), transparent 60%), radial-gradient(30rem 16rem at 0 0, rgba(56, 214, 245, .06), transparent 60%);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  overflow: hidden;
}
.cv-dlg[open] { display: flex; flex-direction: column; animation: cv-in .28s cubic-bezier(.2, .8, .2, 1); }
.cv-dlg::backdrop { background: rgba(3, 5, 11, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: cv-fade .25s ease-out; }
@keyframes cv-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes cv-fade { from { opacity: 0; } }
.cv-form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; margin: 0; }
.cv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 28px 18px; border-bottom: 1px solid var(--line); }
.cv-kicker { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.cv-head h2 { font-size: 1.625rem; letter-spacing: -.02em; }
.cv-sub { color: var(--text-2); font-size: .9375rem; line-height: 1.5; margin-top: 8px; max-width: 36em; }
.cv-sub a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(56, 214, 245, .6); text-underline-offset: 3px; white-space: nowrap; }
.cv-sub a:hover { text-decoration-color: currentColor; }
.cv-x { flex: none; width: 44px; height: 44px; margin: -6px -10px 0 0; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.cv-x svg { width: 20px; height: 20px; }
.cv-x:hover { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.cv-body { overflow-y: auto; overscroll-behavior: contain; padding: 10px 28px 24px; display: grid; gap: 22px; }
.cv-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.cv-legend { padding: 0; margin: 16px 0 10px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cv-dlg input[type="radio"], .cv-dlg input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }

.cv-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cv-fmt { position: relative; display: block; cursor: pointer; }
.cv-fmt-card {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.cv-fmt:hover .cv-fmt-card { border-color: rgba(56, 214, 245, .45); }
.cv-fmt input:checked + .cv-fmt-card { border-color: var(--cyan); background: rgba(56, 214, 245, .07); box-shadow: 0 0 0 1px rgba(56, 214, 245, .35) inset, 0 10px 30px -16px rgba(56, 214, 245, .6); }
.cv-fmt input:focus-visible + .cv-fmt-card { outline: 2px solid var(--cyan); outline-offset: 3px; }
.cv-fmt-ico { flex: none; width: 40px; height: 48px; color: var(--text-2); }
.cv-fmt-ico svg { width: 100%; height: 100%; overflow: visible; }
.cv-fmt-ico text { font: 700 8.6px/1 var(--font-m); fill: #fff; letter-spacing: .02em; }
.cv-fmt-pdf .tag { fill: #e5484d; }
.cv-fmt-doc .tag { fill: #2b6cde; }
.cv-fmt-doc text { font-size: 7.4px; }
.cv-fmt input:checked + .cv-fmt-card .cv-fmt-ico { color: var(--text); }
.cv-fmt-txt { display: grid; gap: 4px; min-width: 0; }
.cv-fmt-txt b { font: 600 1.125rem/1.1 var(--font-d); }
.cv-fmt-txt small { font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.cv-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.cv-fmt input:checked + .cv-fmt-card .cv-check { border-color: transparent; background: var(--grad); }
.cv-fmt input:checked + .cv-fmt-card .cv-check::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 4px; height: 8px; border: solid #04121a; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.cv-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 9, 18, .5); }
.cv-seg label { position: relative; cursor: pointer; }
.cv-seg label > span { display: grid; gap: 3px; min-height: 44px; height: 100%; padding: 10px 14px; border-radius: 10px; transition: background-color .2s, color .2s; }
.cv-seg b { font: 600 .9375rem/1.2 var(--font-d); color: var(--text-2); }
.cv-seg small { font-size: .78rem; line-height: 1.35; color: var(--muted); }
.cv-seg label:hover > span { background: var(--surface); }
.cv-seg input:checked + span { background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2) inset; }
.cv-seg input:checked + span b { color: var(--text); }
.cv-seg input:checked + span b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); margin: 0 8px 1px 0; vertical-align: middle; box-shadow: 0 0 8px rgba(56, 214, 245, .7); }
.cv-seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.cv-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 28px 22px; border-top: 1px solid var(--line); background: rgba(6, 9, 18, .55); }
.cv-status { margin-right: auto; font-size: .875rem; line-height: 1.4; color: var(--text-2); min-width: 0; }
.cv-status:empty { display: none; }
.cv-status.ok { color: #86efac; }
.cv-status.err { color: #fca5a5; }
.cv-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cv-go { min-width: 220px; min-height: 52px; border: 0; font-size: 1rem; font-weight: 600; }
.cv-go[disabled] { cursor: progress; opacity: .85; transform: none; }
.cv-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(4, 18, 26, .25); border-top-color: #04121a; animation: spin .8s linear infinite; }
.cv-go.busy .cv-spin { display: inline-block; }

/* schmale Textspalte (Tablet/kleiner Laptop): Knopf links, beide Buttons gestapelt daneben statt Umbruch */
@media (max-width: 1080px) and (min-width: 561px) {
  .hero-actions { flex-wrap: nowrap; }
  .hero-btns { flex: 0 1 220px; min-width: 0; flex-direction: column; }
  .hero-btns .btn { width: 100%; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .cv-top { padding-right: 5px; }
  .cv-top-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav a { padding: 0 11px; }
}
@media (max-width: 900px) {
  .topbar-in { gap: 10px; }
  .topbar-in .brand { margin-right: auto; }
  .cv-top { padding: 0 14px 0 5px; gap: 8px; font-size: .875rem; }
  .cv-top-disc { width: 32px; height: 32px; }
}
@media (max-width: 560px) {
  .cv-round { --d: 108px; }
  .cv-round-orbit { inset: -9px; }
  .cv-round { margin-left: 9px; }
  .cv-top-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cv-top { padding: 0; width: 44px; justify-content: center; border-color: transparent; background: none; }
  .cv-top-disc { width: 38px; height: 38px; }
  /* Bottom-Sheet */
  .cv-dlg { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .cv-dlg[open] { animation: cv-up .32s cubic-bezier(.2, .8, .2, 1); }
  .cv-head { padding: 22px 20px 14px; position: relative; display: block; }
  .cv-head .cv-x { position: absolute; top: 12px; right: 12px; margin: 0; }
  .cv-kicker { margin-bottom: 6px; }
  .cv-sub { margin-top: 6px; }
  .cv-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
  .cv-head h2 { font-size: 1.375rem; }
  .cv-sub { font-size: .875rem; }
  .cv-body { padding: 0 20px 18px; gap: 16px; }
  .cv-formats { gap: 10px; }
  .cv-fmt-card { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px 14px 14px; }
  .cv-fmt-ico { width: 32px; height: 38px; }
  .cv-fmt-txt b { font-size: 1.0625rem; }
  .cv-fmt-txt small { font-size: .75rem; }
  .cv-seg small { display: none; }
  .cv-seg label > span { align-content: center; justify-items: center; }
  .cv-foot { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
  .cv-status { margin: 0; text-align: center; }
  .cv-go { width: 100%; }
}
@keyframes cv-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .cv-dlg[open], .cv-dlg::backdrop { animation: none; }
  .cv-spin { animation: spin 1.6s linear infinite !important; }
}
.cv-set[hidden]{display:none}
