/* Inter Tight (wie Referenzseite), Inter 500 (Intro), Archivo (Institutionsnamen) – je nur Latin, SIL Open Font License */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-tight-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url('../fonts/archivo-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Design-Tokens: echtes Schwarz wie im Profilbild, Weiß und zwei Grautöne.
   Das Foto bringt die einzige Farbe auf die Seite. */
:root {
  color-scheme: dark;
  --black: #000;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --rule: #2c2c2e;
  --rule-2: #48484a;

  --font: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-org: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --pad-x: clamp(20px, 6vw, 72px);
  --wrap: 1040px;
  --topbar-h: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* — Basis — */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 255, 255, 0.22); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sprachumschaltung: nur die aktive Sprache ist sichtbar (ohne JS: Deutsch) */
html[lang="de"] [data-l="en"],
html[lang="en"] [data-l="de"] { display: none !important; }
html:not(.js) .lang { display: none; }

/* — Intro (nur mit JavaScript aktiv) — */
html.js:not(.cv-intro-done) { overflow: hidden; }
html.cv-intro-scaling { overflow-x: hidden; }
html.js:not(.cv-intro-ready) body::after {
  content: ""; position: fixed; inset: 0; z-index: 2147483646;
  background: #000; pointer-events: auto;
  animation: cvIntroFailsafe 0s linear 9s forwards;
}
@keyframes cvIntroFailsafe { to { visibility: hidden; } }
html.modal-open { overflow: hidden; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #000;
  transform: translateY(-180%); transition: transform 0.3s var(--ease);
}
.skip:focus, .skip:focus-visible { transform: none; }

[data-cv-root] { position: relative; z-index: 1; overflow-x: clip; }

/* Wandernder Lichtschein hinter dem Inhalt: sehr dezent, folgt dem Scrollen (ohne JS ruhend) */
.glow { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.glow span {
  position: absolute; left: 0; top: 0; width: 96vmax; height: 96vmax; margin: -48vmax 0 0 -48vmax; border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0.062) 14%, rgba(255, 255, 255, 0.045) 28%,
    rgba(255, 255, 255, 0.029) 42%, rgba(255, 255, 255, 0.014) 58%, rgba(255, 255, 255, 0.005) 76%, rgba(255, 255, 255, 0));
  transform: translate3d(72vw, 42vh, 0); will-change: transform;
}
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* — Leiste oben: nur Rechtliches und Sprache — */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--topbar-h); padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: flex-end; gap: 28px;
}
.topbar::before {
  content: ""; position: absolute; inset: 0 0 -18px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.66) 62%, transparent);
}
.legal-links { display: flex; gap: 22px; }
.legal-links a { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.legal-links a:hover { color: var(--ink); }
.lang { display: flex; align-items: center; gap: 10px; }
.lang-btn { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); }
html[lang="de"] .lang-de, html[lang="en"] .lang-en { color: var(--ink); }
.switch { position: relative; flex: none; width: 40px; height: 24px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: #39393d; }
.knob {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease);
}
html[lang="en"] .knob { transform: translateX(16px); }
@media (max-width: 420px) {
  .topbar { gap: 16px; }
  .legal-links { gap: 14px; }
}

/* — Intro: Name, Positionierung, Porträt; dahinter ein einzelner Lichtbogen — */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--topbar-h) + 40px) var(--pad-x) 72px;
}
.arc { position: absolute; inset: 0; pointer-events: none; will-change: transform, opacity; }
.arc-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arc-halo { opacity: 0.35; }
.arc-draw { overflow: hidden; }
.hero-inner {
  position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: clamp(32px, 6vw, 96px);
}
.hero h1 { font-size: clamp(56px, 8.4vw, 112px); line-height: 1; letter-spacing: -0.045em; }
.hero-role {
  margin-top: 24px; max-width: 26ch;
  font-size: clamp(21px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500;
  color: var(--ink-2); text-wrap: balance; -webkit-hyphens: manual; hyphens: manual;
}
.portrait { justify-self: end; width: 100%; max-width: 400px; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 28px; }
@media (max-width: 820px) {
  .hero { align-items: flex-start; padding-top: calc(var(--topbar-h) + 24px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .portrait { order: -1; justify-self: start; max-width: min(340px, 74vw); }
  .portrait img { border-radius: 22px; }
  .arc { -webkit-mask: linear-gradient(180deg, #000 30%, transparent 55%); mask: linear-gradient(180deg, #000 30%, transparent 55%); }
}

/* Freigestelltes Porträt: steht frei im Schwarz, läuft unten und seitlich weich aus; der Lichtbogen liegt dahinter */
.hero.has-cutout { align-items: stretch; padding-bottom: 0; }
.has-cutout .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.has-cutout .hero-text { align-self: center; padding-bottom: 72px; }
.has-cutout .portrait { align-self: end; justify-self: center; width: min(100%, 56vh, 480px); max-width: none; margin-bottom: 14vh; }
.has-cutout .portrait img { border-radius: 0; }
@media (max-width: 820px) {
  .hero.has-cutout { align-items: flex-start; padding-bottom: 56px; }
  .has-cutout .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .has-cutout .portrait { align-self: start; justify-self: center; width: min(86%, 360px); max-width: none; margin-bottom: 0; margin-top: -40px; }
  .has-cutout .portrait img { border-radius: 0; }
  .has-cutout .hero-text { position: relative; margin-top: -36px; padding-bottom: 0; }
  /* Bogen höher legen, damit er auch auf dem Smartphone hinter dem Kopf entlangläuft */
  .has-cutout .arc-layer { top: -22vw; height: 130vw; }
  .has-cutout .arc { -webkit-mask: linear-gradient(180deg, #000 40%, transparent 60%); mask: linear-gradient(180deg, #000 40%, transparent 60%); }
}

/* — Abschnitte — */
.sec { padding: clamp(96px, 13vh, 152px) var(--pad-x); }
.sec-title { margin-bottom: clamp(36px, 5vh, 56px); font-size: clamp(36px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -0.035em; text-wrap: balance; }

/* Zusammenfassung: ruhige Liste, schnell erfassbar */
.facts > div {
  display: grid; grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr); align-items: baseline; gap: 6px 32px;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-3); }
.facts dd { font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; text-wrap: pretty; -webkit-hyphens: manual; hyphens: manual; }

/* Zwei Spalten: Studium | Beruf, Sprachen | Zertifikate */
.cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 104px); }
.cv-h { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }

/* Zeitstrahl: schlichte Linie, ein Punkt je Station(sgruppe), neueste zuerst */
.tl { position: relative; display: flex; flex-direction: column; gap: 36px; }
.tl::before { content: ""; position: absolute; left: 3.5px; top: 10px; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--rule-2) calc(100% - 72px), transparent); }
.tl-item { position: relative; padding-left: 30px; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 6.5px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--black); box-shadow: inset 0 0 0 1.5px var(--ink-3);
}
.tl-item.is-current::before, .tl-item.has-pulse::before { background: var(--ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14); }
/* Laufende Stationen (Master, Auslandssemester): ruhig pulsierender Lichtring um den weißen Punkt */
.tl-item.has-pulse::after {
  content: ""; position: absolute; left: 0; top: 6.5px; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); pointer-events: none;
  animation: tlPulse 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.tl-item.has-pulse + .tl-item.has-pulse::after { animation-delay: 1.4s; }
@keyframes tlPulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}
.tl-org { font-family: var(--font-org); font-size: 15px; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: var(--ink-2); overflow-wrap: break-word; }
.tl-role { margin-top: 8px; }
.tl-role + .tl-role { margin-top: 18px; }
.tl-title { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }
/* Verlinkte Überschriften: dezente Unterstreichung, beim Hovern heller */
a.ext {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: var(--rule-2); transition: text-decoration-color 0.25s ease, color 0.25s ease;
}
a.ext:hover { color: #fff; text-decoration-color: var(--ink-2); }
.tl-date { margin-top: 3px; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Sprachen & Zertifikate */
.rows > li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 20px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.rows > li:first-child { padding-top: 0; }
.row-main { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.row-meta { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scale { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.scale i { height: 3px; border-radius: 2px; background: var(--rule-2); }
.scale i.on, .scale.is-native i { background: var(--ink); }
/* Mit JS: Balken füllen sich beim Erscheinen von links, Segment für Segment */
.scale i { position: relative; overflow: hidden; }
html.js .scale i.on, html.js .scale.is-native i { background: var(--rule-2); }
html.js .scale i.on::after, html.js .scale.is-native i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink);
  transform: scaleX(0); transform-origin: left center; opacity: 0.4;
  transition: transform 0.7s var(--ease), opacity 0.7s ease;
  transition-delay: calc(var(--row, 0) * 180ms + var(--seg, 0) * 85ms);
}
html.js .scale.is-in i.on::after, html.js .scale.is-native.is-in i::after { transform: none; opacity: 1; }

/* Kontakt */
.lead { max-width: 30ch; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #000; }
.btn-primary:hover { background: #fff; }
.btn-secondary { color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.cv-request { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 44px; color: var(--ink-2); }
.cv-request a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2);
}
.cv-request a:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.mail-line { margin-top: 10px; font-size: 15px; }
.mail-line a { color: var(--ink-3); }
.mail-line a:hover { color: var(--ink); }

/* Fußzeile */
.foot { padding: 0 var(--pad-x) 40px; }
.foot-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3);
}
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .cv { grid-template-columns: minmax(0, 1fr); gap: 64px; }
}
@media (max-width: 640px) {
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
  .facts dd { font-size: 19px; }
  .actions .btn { flex: 1 1 auto; }
}

/* — Impressum & Datenschutz (Modal) — */
dialog.legal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden;
}
dialog.legal[open] { display: grid; place-items: center; }
dialog.legal::backdrop { background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.legal-panel {
  position: relative; width: min(720px, calc(100% - 24px)); max-height: min(86vh, 900px);
  overflow: auto; overscroll-behavior: contain;
  padding: clamp(22px, 4vw, 44px); padding-top: 0; border-radius: 22px;
  background: #000; box-shadow: 0 0 0 1px var(--rule-2), 0 30px 80px rgba(0, 0, 0, 0.6);
  font-size: 16px; line-height: 1.6; color: var(--ink-2);
}
dialog.legal[open] .legal-panel { animation: panelIn 0.4s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.legal-bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end;
  margin: 0 calc(-1 * clamp(22px, 4vw, 44px)); padding: 14px 14px 0;
  background: linear-gradient(#000 70%, transparent);
}
.legal-close {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px;
  cursor: pointer; color: var(--ink); background: rgba(255, 255, 255, 0.1);
}
.legal-close:hover { background: rgba(255, 255, 255, 0.16); }
.legal-panel h2 { margin: 2px 0 22px; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); }
.legal-panel h2:focus { outline: none; }
.legal-panel h3 { margin: 28px 0 8px; font-size: 17px; line-height: 1.35; color: var(--ink); }
.legal-panel p { margin: 0 0 12px; }
.legal-panel a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-stand { margin-top: 28px !important; color: var(--ink-3); font-size: 15px; }

/* Ohne JavaScript: Impressum und Datenschutz stehen als normale Abschnitte unter der Fußzeile (Sprunglinks funktionieren) */
html:not(.js) dialog.legal {
  display: block; position: relative; z-index: 1; inset: auto; width: auto; height: auto;
  margin: 0 auto; padding: 0 var(--pad-x) 64px; overflow: visible; background: transparent;
  scroll-margin-top: var(--topbar-h);
}
html:not(.js) dialog.legal .legal-panel { width: auto; max-width: 720px; max-height: none; margin: 0 auto; overflow: visible; padding-top: 40px; }
html:not(.js) dialog.legal .legal-bar { display: none; }

/* — Cursor (nach Vorbild der Referenzseite, nur Maus/Trackpad) — */
.cursor { position: fixed; inset: 0; z-index: 2147483647; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.cursor[data-visible="true"] { opacity: 1; }
.cursor canvas { position: absolute; left: 0; top: 0; }
.cursor-head { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor-dot {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 10px 2px var(--ink);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cursor-ring {
  position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ink);
  opacity: 0; transform: scale(0.2); transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.cursor[data-hover="true"] .cursor-dot { opacity: 0; transform: scale(0.5); }
.cursor[data-hover="true"] .cursor-ring { opacity: 1; transform: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
