/* ==========================================================================
   Prange & Marcinczak · Teambewerbung
   Look & Feel wie quizcentral.team-digi.de:
   Creme-Hintergrund, freistehendes 3D-Diorama, Outfit / Fraunces / Rubik Mono One.
   Akzente: Florian = Lila, Vanessa = Gelb
   ========================================================================== */

:root {
  --bg: #f5ede1;
  --ink: #2b2622;
  --muted: #6d6358;
  --pill: rgba(233, 222, 205, .85);
  --card: #fffaf3;
  --card-2: #efe5d6;
  --line: #e4d8c6;
  --lila: #6A4FB6;
  --lila-d: #553d9c;
  --lila-l: #e9e2f8;
  --gelb: #FDD334;
  --gelb-d: #e6b800;
  --gelb-l: #fdf1c4;
  --navy: #1f3a78;
  --display: Outfit, "Segoe UI", system-ui, sans-serif;
  --serif: Fraunces, Georgia, serif;
  --mono: "Rubik Mono One", Outfit, sans-serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
  --col: calc(50vw - var(--gutter) - 32px);
  --gutter: clamp(20px, 5vw, 96px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font: 400 16px/1.6 var(--body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--lila-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lila); }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--lila); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-weight: 800; font-size: clamp(48px, 5.5vw, 92px); line-height: .94; letter-spacing: -.01em; }
h2 { font-weight: 800; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.02; margin-bottom: .55em; }
h3 { font-weight: 700; font-size: 1.15rem; }
h4 { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; line-height: 1.6; color: var(--muted); }
.lead strong { color: var(--ink); }

/* ---------- Loader ---------- */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .6s, visibility .6s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; font: 700 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.loader-bar { width: 140px; height: 3px; border-radius: 3px; margin: 16px auto 0; background: var(--card-2); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lila), var(--gelb)); transition: width .4s; }

/* ---------- Szene ---------- */
.stage { position: fixed; inset: 0; z-index: 0; }
#scene { display: block; width: 100%; height: 100%; touch-action: pan-y; outline: none; }
body.no-webgl .stage { display: none; }
/* weicher Lesehintergrund hinter der Textspalte */
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0, var(--bg) calc(var(--gutter) + var(--col) - 10px), transparent calc(var(--gutter) + var(--col) + 40px));
  opacity: .94;
}
.stage-caption {
  position: absolute; right: 24px; bottom: 22px; margin: 0; z-index: 2;
  font: 600 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: var(--pill); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 10px 16px; border-radius: 999px; transition: opacity .3s;
}

#bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 16; }
.bubble {
  position: absolute; left: 0; top: 0; max-width: 250px;
  padding: 12px 16px; border-radius: 20px 20px 20px 6px;
  background: #fff; color: #2b2622; font: 600 15px/1.35 var(--display);
  box-shadow: 0 10px 28px rgba(60, 40, 20, .18);
  animation: pop .3s cubic-bezier(.3, 1.5, .5, 1) both;
}
.bubble::before { content: ""; display: block; width: 26px; height: 4px; border-radius: 2px; margin-bottom: 8px; background: var(--navy); }
.bubble.lila::before { background: var(--lila); }
.bubble.gelb::before { background: var(--gelb); }
.bubble.out { animation: unpop .25s ease forwards; }
@keyframes pop { from { opacity: 0; scale: .7; } }
@keyframes unpop { to { opacity: 0; scale: .9; } }
#hoverTip {
  position: fixed; z-index: 30; pointer-events: none; left: 0; top: 0;
  font: 600 13px/1 var(--display); color: #fff; background: #2b2622;
  padding: 8px 12px; border-radius: 8px; opacity: 0; transition: opacity .15s; white-space: nowrap;
}
#hoverTip.on { opacity: 1; }

/* ---------- Navigation ---------- */
.topbar { position: fixed; top: 12px; left: 16px; right: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 700 16px/1 var(--display); background: var(--pill); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 0 18px 0 14px; height: 48px; border-radius: 999px;
}
.brand .amp { color: var(--muted); font-weight: 500; }
.brand-dots { display: inline-flex; }
.brand-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--lila); }
.brand-dots i + i { background: var(--gelb); margin-left: -5px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.nav-mode {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
  background: var(--pill); backdrop-filter: blur(8px); transition: transform .2s;
}
.nav-mode:hover { transform: rotate(-15deg); }
.nav-mode svg { width: 22px; height: 22px; }
.nav-cta {
  font: 700 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--lila); border: 0; border-radius: 999px; padding: 16px 26px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(106, 79, 182, .32); transition: transform .2s;
}
.nav-cta:hover { transform: translateY(-2px); }
.l-short { display: none; }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lila), var(--gelb)); }

.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20; }
.dots ol { list-style: none; margin: 0; padding: 10px 7px; display: flex; flex-direction: column; gap: 10px; background: var(--pill); border-radius: 999px; backdrop-filter: blur(8px); }
.dots a { position: relative; display: block; width: 9px; height: 9px; border-radius: 50%; background: rgba(43, 38, 34, .22); transition: transform .25s, background .25s; }
.dots a:hover, .dots a.on { background: var(--ink); transform: scale(1.3); }
.dots li:nth-child(even) a.on { background: var(--gelb-d); }
.dots li:nth-child(odd) a.on { background: var(--lila); }
.dots a span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: #2b2622; color: #fff; font: 600 12px/1 var(--display); padding: 7px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 14px/1 var(--display); letter-spacing: .05em; text-transform: uppercase;
  padding: 15px 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--pill); color: var(--ink); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { color: var(--bg); }
.btn.text { background: transparent; padding-left: 6px; padding-right: 6px; }
.btn.small { padding: 11px 16px; font-size: 12px; }
.btn.dark { background: #2b2622; color: #fff; }
.btn.ghost { background: var(--pill); }

/* ---------- Story ---------- */
#story { position: relative; z-index: 10; pointer-events: none; }
#story .inner { pointer-events: auto; }
.sec { min-height: 88vh; display: flex; align-items: center; padding: 14vh var(--gutter); }
.sec .inner { width: var(--col); max-width: 1040px; }
.lead, .hero .lead { max-width: 46em; }
.hero { min-height: 100vh; padding-top: 110px; }

.js .inner > * { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .inner.in > * { opacity: 1; transform: none; }
.js .inner.in > *:nth-child(2) { transition-delay: .05s; }
.js .inner.in > *:nth-child(3) { transition-delay: .1s; }
.js .inner.in > *:nth-child(4) { transition-delay: .15s; }
.js .inner.in > *:nth-child(n+5) { transition-delay: .2s; }

.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 1.2em; font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kicker span { font: 400 13px/1 var(--mono); letter-spacing: 0; color: #fff; background: var(--navy); padding: 7px 9px 6px; transform: rotate(-4deg); box-shadow: 2px 2px 0 rgba(0, 0, 0, .12); }
.kicker.lila span { background: var(--lila); }
.kicker.gelb span { background: var(--gelb); color: #2b2622; }

/* ---------- Hero ---------- */
.hallo { font: 700 22px/1.2 var(--display); color: var(--muted); margin-bottom: .5em; }
.hallo [data-firma] { color: var(--lila); }
.hl-l { color: var(--lila); }
.hl-g { background: linear-gradient(transparent 60%, var(--gelb) 60% 92%, transparent 92%); }
.stamp-tag {
  display: inline-block; margin: 14px 0 26px clamp(40px, 7vw, 130px);
  font: 400 clamp(14px, 1.45vw, 21px)/1 var(--mono); color: #fff; background: var(--navy);
  padding: 9px 14px 8px; transform: rotate(-4deg); box-shadow: 3px 3px 0 rgba(0, 0, 0, .12);
}
.hero .lead { max-width: 33em; }
.role { font-size: 15px; color: var(--muted); margin: 0 0 1.6em; }
.role strong { color: var(--ink); }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 1.8em; }
.glance div { padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.glance dt { font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.glance dd { margin: 0; font: 700 16px/1.3 var(--display); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-row .btn.primary { background: var(--lila); color: #fff; box-shadow: 0 6px 18px rgba(106, 79, 182, .3); }

/* ---------- Karten-Basis ---------- */
.onboarding, .split .col, .ref, .proj, .edu-col, .pipeline li, .contact, .tl li.both > div {
  background: var(--card); border-radius: 20px; border: 0; box-shadow: 0 1px 0 var(--line);
}

/* ---------- Warum ---------- */
.onboarding { margin: 1.6em 0; padding: 20px 22px; }
.ob-row { display: grid; grid-template-columns: 8.5em 1fr 8.5em; align-items: center; gap: 16px; padding: 7px 0; }
.ob-row span { font: 600 15px/1.2 var(--display); }
.ob-row em { font-style: normal; font-size: 13px; color: var(--muted); text-align: right; }
.ob-bar { height: 10px; border-radius: 10px; background: var(--card-2); overflow: hidden; }
.ob-bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--lila), var(--gelb)); transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.inner.in .ob-bar i { width: var(--w); }
.inner.in .ob-row:nth-child(2) i { transition-delay: .2s; }
.inner.in .ob-row:nth-child(3) i { transition-delay: .4s; }
.inner.in .ob-row:nth-child(4) i { transition-delay: .7s; }
.ob-row.todo .ob-bar i { background: var(--ink); }

.stats { list-style: none; padding: 0; margin: 0 0 1.8em; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats li { padding: 4px 0; }
.stats b { display: block; font: 700 clamp(34px, 3vw, 46px)/1 var(--serif); color: var(--ink); margin-bottom: 6px; }
.stats li:nth-child(odd) b { color: var(--lila); }
.stats span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.sub { margin: 1.8em 0 .8em; }
.split { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.split .col { padding: 18px; }
.split .col h4 { margin-bottom: .45em; display: flex; align-items: center; gap: 8px; }
.split .col h4::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.split .lila h4::before { background: var(--lila); }
.split .gelb h4::before { background: var(--gelb); }
.split .both h4::before { background: var(--gelb); }
.split .both { background: var(--lila); }
.split .both h4, .split .both p { color: #fff; }
.split p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.principles { margin-top: 1.4em; font-size: 14px; color: var(--muted); }
.principles span { display: inline-block; margin: 4px 0 0 6px; padding: 8px 12px; border-radius: 999px; background: var(--pill); color: var(--ink); font: 600 13px/1 var(--display); }

/* ---------- Personen ---------- */
.person-head { display: flex; align-items: center; gap: 20px; margin-bottom: 1.4em; }
.person-head h2 { margin-bottom: .15em; }
.degrees { font-size: 14px; color: var(--muted); margin: 0; }
.avatar { position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; padding: 4px; }
.avatar.lila { background: var(--lila); }
.avatar.gelb { background: var(--gelb); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--bg); }
.avatar span { display: none; }
.avatar.noimg img { display: none; }
.avatar.noimg span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--card); font: 800 28px/1 var(--display); color: var(--ink); }
.statement { margin: 1.6em 0; padding: 22px 24px; border-radius: 20px; background: var(--lila); color: #fff; font: 700 clamp(19px, 1.5vw, 23px)/1.35 var(--serif); }
.statement.gelb { background: var(--gelb); color: #2b2622; }
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.6em 0 1.2em; }
.strengths h4 { font-size: 16px; margin-bottom: .3em; }
.strengths p { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 0; }
.tags { font-size: 14px; color: var(--muted); }
.ref { margin: 1em 0 0; padding: 20px 22px; }
.ref blockquote { margin: 0 0 .5em; font: 700 18px/1.4 var(--serif); color: var(--ink); }
.ref figcaption { font-size: 13px; color: var(--muted); }

/* ---------- Werdegang ---------- */
.legend { display: flex; gap: 18px; font: 600 14px/1 var(--display); color: var(--muted); margin-bottom: 1.4em; }
.legend span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.legend .lila::before { background: var(--lila); }
.legend .gelb::before { background: var(--gelb); }
.legend .both::before { background: linear-gradient(90deg, var(--lila) 50%, var(--gelb) 50%); }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 7.4em; top: 8px; bottom: 8px; width: 3px; margin-left: -1px; border-radius: 3px; background: var(--card-2); }
.tl li { display: grid; grid-template-columns: 6.6em 1fr; gap: 0 1.8em; padding: 11px 0; position: relative; }
.tl li::after { content: ""; position: absolute; left: calc(7.4em - 7px); top: 16px; width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg); }
.tl li.flo::after { background: var(--lila); }
.tl li.vanessa::after { background: var(--gelb); }
.tl li.both::after { background: linear-gradient(90deg, var(--lila) 50%, var(--gelb) 50%); }
.tl .yr { font: 700 14px/1.6 var(--display); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.tl h4 { margin-bottom: .1em; }
.tl p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.tl li.both > div { padding: 14px 16px; margin: -12px 0 -2px 0; }

/* ---------- Projekte ---------- */
.bignums { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bignums li { padding: 16px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.bignums li:nth-child(1) { background: var(--gelb); color: #2b2622; }
.bignums li:nth-child(2) { background: var(--lila); color: #fff; }
.bignums b { display: block; font: 700 clamp(19px, 1.55vw, 25px)/1.05 var(--serif); margin-bottom: 8px; white-space: nowrap; }
.bignums span { font-size: 12.5px; line-height: 1.35; display: block; opacity: .8; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proj { position: relative; overflow: hidden; isolation: isolate; padding: 20px; transition: transform .25s, box-shadow .25s; }
.proj::after {
  content: attr(data-mark); position: absolute; right: -4px; top: -16px; z-index: -1;
  font: 700 120px/1 var(--serif); color: rgba(43, 38, 34, .06); white-space: nowrap;
}
.proj:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(40, 20, 10, .14); }
.proj.both { grid-column: 1 / -1; background: var(--lila); color: #fff; }
.proj.both h4 { color: #fff; }
.proj.both .meta, .proj.both p:last-child { color: rgba(255, 255, 255, .85); }
.proj.both::after { color: rgba(255, 255, 255, .1); }
.proj.vanessa { background: var(--gelb-l); }
.proj .meta { display: flex; align-items: center; gap: 8px; font: 700 11px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7em; }
.proj .meta i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.proj.flo .meta i { background: var(--lila); }
.proj.vanessa .meta i { background: var(--gelb-d); }
.proj.both .meta i { background: var(--gelb); }
.proj h4 { font: 700 20px/1.15 var(--serif); margin-bottom: .45em; }
.proj p:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }

/* ---------- Bildung ---------- */
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1.4em 0; }
.edu-col { padding: 20px; }
.edu-col h4 { margin-bottom: .8em; display: flex; align-items: center; gap: 8px; }
.edu-col h4::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.edu-col.lila h4::before { background: var(--lila); }
.edu-col.gelb h4::before { background: var(--gelb); }
.edu-col ul { list-style: none; margin: 0; padding: 0; }
.edu-col li { margin-bottom: .8em; font-size: 14px; line-height: 1.4; }
.edu-col li b { display: block; font: 700 15px/1.3 var(--display); }
.edu-col li span { color: var(--muted); font-size: 13px; }
.certs { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.certs li { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.certs li i { flex: none; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-1px); }
.certs i.lila { background: var(--lila); }
.certs i.gelb { background: var(--gelb-d); }
.certs i.both { background: linear-gradient(90deg, var(--lila) 50%, var(--gelb) 50%); }
.certs em { margin-left: auto; font: 600 13px/1 var(--display); font-style: normal; color: var(--muted); }

/* ---------- KI ---------- */
.pipeline { list-style: none; margin: 1.6em 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pipeline li { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.pipeline li:nth-child(3) { background: #2b2622; }
.pipeline li:nth-child(3) b { color: #fff; }
.pipeline li:nth-child(3) small { color: rgba(255, 255, 255, .7); }
.pipeline .step { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 700 20px/1 var(--serif); background: var(--card-2); color: var(--ink); }
.pipeline li:nth-child(2) .step { background: var(--lila); color: #fff; }
.pipeline li:nth-child(3) .step { background: var(--gelb); color: #2b2622; }
.pipeline b { display: block; font: 700 17px/1.2 var(--display); margin-bottom: 4px; }
.pipeline small { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; }
.note { font-size: 14px; color: var(--muted); padding: 16px 18px; border-radius: 16px; background: var(--gelb-l); }
.note b { color: var(--ink); }

/* ---------- Kontakt ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1.6em 0; }
.contact { padding: 20px 22px; display: flex; flex-direction: column; gap: 5px; font-size: 15px; }
.contact.lila { background: var(--lila); color: #fff; }
.contact.lila h4, .contact.lila a { color: #fff; }
.contact.lila span { color: rgba(255, 255, 255, .75); }
.contact.gelb { background: var(--gelb); color: #2b2622; }
.contact.gelb h4, .contact.gelb a { color: #2b2622; }
.contact.gelb span { color: rgba(43, 38, 34, .7); }
.contact h4 { font: 700 22px/1.1 var(--serif); margin-bottom: .3em; }
.contact span { font-size: 14px; }
.antrag { position: relative; margin: 0 0 1.6em; padding: 20px 22px; overflow: hidden; border: 3px dashed #cbbfae; border-radius: 20px; }
.antrag-head { display: flex; justify-content: space-between; gap: 10px; font: 400 13px/1.2 var(--mono); color: var(--ink); margin-bottom: 10px; }
.formno { color: var(--muted); }
.antrag p { font-size: 14px; color: var(--muted); max-width: 30em; }
.antrag .btn.primary { background: var(--ink); color: var(--bg); }
.stamp { position: absolute; right: 24px; bottom: 22px; font: 400 22px/1 var(--mono); color: #c8372d; border: 3px solid #c8372d; border-radius: 6px; padding: 6px 10px; transform: rotate(-10deg) scale(2.4); opacity: 0; pointer-events: none; }
.stamp.on { animation: stampIn .4s cubic-bezier(.5, 0, .2, 1.2) forwards; }
@keyframes stampIn { 70% { opacity: .9; transform: rotate(-10deg) scale(.94); } 100% { opacity: .85; transform: rotate(-10deg) scale(1); } }
.foot { margin-top: 2em; padding-top: 1.2em; border-top: 1px dashed var(--line); font-size: 14px; }
.foot .muted { font-size: 13px; }

/* ---------- Kompaktansicht ---------- */
#hr { position: fixed; inset: 0; z-index: 60; overflow: auto; background: #fffdf9; color: #2b2622; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; }
#hr.open { opacity: 1; visibility: visible; transform: none; }
#hr h1, #hr h2 { color: #2b2622; }
body.hr-open { overflow: hidden; }
.hr-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 48px); background: rgba(255, 253, 249, .95); backdrop-filter: blur(8px); border-bottom: 1px solid #ece3d5; }
.hr-badge { font: 400 13px/1 var(--mono); background: var(--navy); color: #fff; padding: 8px 10px 7px; transform: rotate(-3deg); }
.hr-note { color: #6d6358; font-size: 14px; }
.hr-actions { margin-left: auto; display: flex; gap: 8px; }
.hr-doc { max-width: 1000px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 80px; }
.hr-doc h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1; margin-bottom: .35em; }
.hr-doc .eyebrow { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #6d6358; }
.hr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 30px; }
.hr-grid h2 { font-size: 24px; margin-bottom: .3em; }
.hr-grid h3 { font: 700 12px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: #6d6358; margin: 1.6em 0 .6em; }
.hr-grid ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
.hr-grid li { margin-bottom: .35em; }
.hr-grid section { border-top: 4px solid var(--lila); padding-top: 16px; }
.hr-grid section + section { border-top-color: var(--gelb); }
.hr-ki { margin-top: 34px; padding-top: 16px; border-top: 1px solid #ece3d5; font-size: 15px; }
.hr-ki h3 { font: 700 12px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: #6d6358; margin-bottom: .6em; }
#hr .btn { background: #efe5d6; color: #2b2622; }
#hr .btn.dark { background: #2b2622; color: #fff; }

/* ---------- Toast & Konfetti ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; max-width: min(92vw, 460px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #2b2622; color: #fff; padding: 13px 18px; border-radius: 16px; font: 600 15px/1.4 var(--display); box-shadow: 0 16px 40px rgba(40, 20, 10, .3); transition: opacity .3s, transform .3s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }

/* ---------- Nacht (Farbvariablen blendet scene.js weich über) ---------- */
body.night .proj.vanessa { background: #453d2a; }
body.night .note { background: #3a3450; }
body.night .glance div, body.night .onboarding, body.night .split .col, body.night .ref, body.night .proj, body.night .edu-col, body.night .pipeline li, body.night .bignums li, body.night .contact { box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --col: calc(50vw - var(--gutter) - 24px); }
  .glance { grid-template-columns: repeat(2, 1fr); }
  .stats, .bignums { grid-template-columns: repeat(2, 1fr); }
  .split, .pipeline { grid-template-columns: 1fr; }
  .strengths { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 860px) {
  :root { --col: 100%; --gutter: 18px; }
  .stage { bottom: auto; height: 38vh; z-index: 15; background: var(--bg); }
  .stage::after { background: linear-gradient(transparent 82%, var(--bg)); opacity: 1; }
  .stage-caption { display: none; }
  .topbar { top: 10px; left: 10px; right: 10px; }
  .brand { height: 42px; font-size: 14px; padding: 0 14px 0 12px; }
  .nav-mode { width: 42px; height: 42px; }
  .nav-cta { padding: 13px 16px; font-size: 13px; }
  .l-long { display: none; }
  .l-short { display: inline; }
  .dots { display: none; }
  #story { padding-top: 36vh; }
  .sec, .hero { min-height: 0; padding: 44px 18px; display: block; scroll-margin-top: 38vh; }
  .hero { padding-top: 26px; }
  h1 { font-size: clamp(46px, 13vw, 64px); }
  .projects, .edu, .contacts, .hr-grid { grid-template-columns: 1fr; }
  .tl::before { left: 6px; }
  .tl li { grid-template-columns: 1fr; padding-left: 28px; }
  .tl li::after { left: 0; }
  .tl .yr { text-align: left; }
  .ob-row { grid-template-columns: 7.5em 1fr; }
  .ob-row em { grid-column: 2; text-align: left; margin-top: -6px; }
  .avatar { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: #fff; }
  body > *:not(#hr) { display: none !important; }
  #hr { position: static; opacity: 1; visibility: visible; transform: none; overflow: visible; }
  .hr-bar { display: none; }
  .hr-doc { padding: 0; }
}
