/* ---------- Schriften (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-standard-normal.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+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: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-italic.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* =====================================================================
   Antonio Böttner – Bewerbungsseite
   Farben und Schriften wie im Lebenslauf-PDF.
   ===================================================================== */
:root {
  --blue: #0042FF;
  --ink: #0A1240;
  --muted: #4B5375;
  --quiet: #7186DD;
  --mist: #EEF2FF;
  --line: #CCD6FB;
  --paper: #FFFFFF;
  --on-blue: #DCE4FF;

  /* Textmarker */
  --m-social: #FFE94D;
  --m-campaign: #FF8AD4;
  --m-design: #8BF5B0;
  --m-events: #FFB15C;
  --m-deal: #C6A6FF;
  --mark: transparent;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --meta: 210px;
  color-scheme: light;
}
body[data-mark="social"]   { --mark: var(--m-social); }
body[data-mark="campaign"] { --mark: var(--m-campaign); }
body[data-mark="design"]   { --mark: var(--m-design); }
body[data-mark="events"]   { --mark: var(--m-events); }
body[data-mark="deal"]     { --mark: var(--m-deal); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.contact :focus-visible { outline-color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: var(--paper); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
html:not(.js) .js-only { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Pillen (Buttons und Links) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 2px solid var(--blue); border-radius: 999px;
  background: var(--paper); color: var(--blue);
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
.pill:hover { background: var(--mist); color: var(--blue); }
.pill-solid { background: var(--blue); color: var(--paper); }
.pill-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill-white { border-color: var(--paper); background: var(--paper); color: var(--blue); }
.pill-white:hover { background: var(--on-blue); border-color: var(--on-blue); }
.pill[disabled] { opacity: .35; cursor: default; }
.pill[disabled]:hover { background: var(--paper); }

/* ---------- Riesenname ---------- */
.giant {
  font-family: var(--f-display); font-weight: 900; font-stretch: 112%;
  font-size: 17vw; line-height: .8; letter-spacing: -.035em;
  color: var(--blue); margin: 0; white-space: nowrap; padding-top: .06em;
}
.hero .giant { overflow: hidden; }
.fit-inner { display: inline-block; }
.ch { display: inline-block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes rise { from { transform: translateY(90%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ch { animation: none; } }

/* ---------- Schmale Leiste ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
html:not(.js) .bar { display: none; }
.bar-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.bar-name { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; color: var(--blue); text-decoration: none; white-space: nowrap; }
.bar nav { flex: 1; min-width: 0; }
.bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.bar ul::-webkit-scrollbar { display: none; }
.bar-lnk { display: block; padding: 7px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.bar-lnk.is-active { background: var(--blue); color: var(--paper); }
.bar-cv { min-height: 38px; font-size: .88rem; }

/* ---------- Abschnitte ---------- */
.sec { padding: clamp(56px, 7vw, 96px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-top { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec-h {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--f-display); font-weight: 900; font-stretch: 112%;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.02em; color: var(--blue);
}
.sec-top .sec-h { margin-bottom: 0; }
.hint { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }

/* Ansicht umschalten */
.views { display: inline-flex; padding: 4px; border: 2px solid var(--blue); border-radius: 999px; }
.view-btn { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--blue); cursor: pointer; }
.view-btn[aria-pressed="true"] { background: var(--blue); color: var(--paper); }

/* ---------- Textmarker ---------- */
.markers { margin: 28px 0 30px; }
.markers-q { margin: 0 0 14px; max-width: 60ch; }
.markers-row { display: flex; flex-wrap: wrap; gap: 10px; }
.marker {
  --c: var(--m-social);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 14px 0 8px;
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--paper); cursor: pointer; font-weight: 600; font-size: .95rem;
  transition: background-color .15s ease, transform .15s ease;
}
.marker[data-mark="campaign"] { --c: var(--m-campaign); }
.marker[data-mark="design"]   { --c: var(--m-design); }
.marker[data-mark="events"]   { --c: var(--m-events); }
.marker[data-mark="deal"]     { --c: var(--m-deal); }
.marker:hover { background: color-mix(in srgb, var(--c) 30%, white); }
.marker[aria-pressed="true"] { background: var(--c); transform: translateY(-2px); box-shadow: 0 3px 0 var(--ink); }
.marker-n { font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; }
.marker[aria-pressed="true"] .marker-n { color: var(--ink); }

/* Stift: Textmarker mit schräger Spitze */
.pen {
  position: relative; width: 34px; height: 14px; flex: none;
  transform: rotate(-24deg); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.pen::before { /* Körper */
  content: ""; position: absolute; left: 0; top: 0; width: 25px; height: 14px;
  background: var(--c); border: 2px solid var(--ink); border-radius: 3px 2px 2px 3px;
}
.pen::after { /* Spitze */
  content: ""; position: absolute; left: 23px; top: 2px; width: 10px; height: 10px;
  background: var(--c); border: 2px solid var(--ink); border-left: 0;
  clip-path: polygon(0 0, 100% 35%, 100% 100%, 0 100%);
}
.marker[aria-pressed="true"] .pen { transform: rotate(-8deg) translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .pen, .marker { transition: none; } }

/* Markierte Aufgaben */
.tasks li > span, .tasks-inline > span {
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat; background-position: 0 85%; background-size: 0% 88%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 2px; margin: 0 -2px;
  transition: background-size .45s cubic-bezier(.4, 0, .2, 1);
}
.tasks li.is-marked > span, .tasks-inline.is-marked > span { background-size: 100% 88%; }
@media (prefers-reduced-motion: reduce) { .tasks li > span, .tasks-inline > span { transition: none; } }

/* Statuspille unten */
.markpill {
  position: fixed; left: 50%; bottom: 16px; z-index: 40;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 14px; border-radius: 16px;
  background: var(--ink); color: var(--paper); font-size: .92rem;
  box-shadow: 0 10px 30px rgba(10, 18, 64, .28);
}
.markpill[hidden] { display: none; }
.markpill-pen { width: 14px; height: 14px; border-radius: 3px; background: var(--mark); flex: none; }
.markpill-btn { border: 0; background: rgba(255, 255, 255, .14); color: var(--paper); border-radius: 10px; padding: 7px 12px; cursor: pointer; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.markpill-btn:hover { background: rgba(255, 255, 255, .26); }
.markpill :focus-visible { outline-color: var(--paper); }
.ms { display: none; }
@media (max-width: 760px) { .ms { display: inline; } }

/* ---------- Zeitleiste ---------- */
.tl {
  --lab: 250px; --row: 46px;
  position: relative;
  display: grid; grid-template-columns: var(--lab) minmax(0, 1fr);
  border: 2px solid var(--blue); border-radius: 10px;
  background: var(--paper);
  user-select: none; -webkit-user-select: none;
}
.tl-corner { grid-column: 1; border-bottom: 1px solid var(--line); background: var(--mist); border-top-left-radius: 8px; }
.tl-ruler {
  grid-column: 2; position: relative;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 42px; background: var(--mist); border-bottom: 1px solid var(--line); border-top-right-radius: 8px;
  cursor: pointer; touch-action: pan-y;
}
.tl-ruler span {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-stretch: 108%; font-size: .9rem;
  color: var(--blue); border-left: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.tl-ruler .short { display: none; }
.tl-lab {
  grid-column: 1; display: flex; flex-direction: column; justify-content: center;
  height: var(--row); padding: 0 14px; border-bottom: 1px solid var(--line);
  line-height: 1.15; min-width: 0;
}
.tl-lab b { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-lab small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-lane {
  grid-column: 2; position: relative; height: var(--row);
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.tl-lab:nth-last-child(3), .tl-lane:nth-last-child(2) { border-bottom: 0; }

.clip {
  position: absolute; top: 7px; bottom: 7px;
  container-type: inline-size;
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
  border: 2px solid var(--blue); border-radius: 6px;
  background: var(--blue); color: var(--paper);
  font-family: var(--f-display); font-weight: 700; font-stretch: 100%; font-size: .8rem;
  text-align: left; cursor: pointer; overflow: visible;
  transition: transform .15s ease, opacity .2s ease, box-shadow .15s ease;
}
.clip-t { white-space: nowrap; overflow: hidden; text-overflow: clip; font-variant-numeric: tabular-nums; }
@container (max-width: 90px) { .clip-t { font-stretch: 62%; font-size: .74rem; letter-spacing: -.01em; } }
@container (max-width: 52px) { .clip-t { display: none; } }
.clip:hover { transform: translateY(-2px); }
.clip[data-kind="events"] { background: var(--paper); color: var(--blue); }
.clip[data-kind="study"] {
  background-color: var(--mist); color: var(--blue); border-style: solid;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28' viewBox='0 0 48 28'%3E%3Cg fill='%230042FF' fill-opacity='.22'%3E%3Crect x='1' y='11' width='2' height='6'/%3E%3Crect x='5' y='7' width='2' height='14'/%3E%3Crect x='9' y='3' width='2' height='22'/%3E%3Crect x='13' y='9' width='2' height='10'/%3E%3Crect x='17' y='5' width='2' height='18'/%3E%3Crect x='21' y='12' width='2' height='4'/%3E%3Crect x='25' y='6' width='2' height='16'/%3E%3Crect x='29' y='1' width='2' height='26'/%3E%3Crect x='33' y='8' width='2' height='12'/%3E%3Crect x='37' y='10' width='2' height='8'/%3E%3Crect x='41' y='4' width='2' height='20'/%3E%3Crect x='45' y='9' width='2' height='10'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: 0 50%;
}
.clip[data-kind="study"] .clip-t { background: var(--mist); padding: 1px 5px; border-radius: 3px; }
.clip[data-ongoing] { border-right-style: dashed; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.clip.is-sel { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); z-index: 2; }
.clip-badge {
  position: absolute; top: 50%; right: 5px; z-index: 3; transform: translateY(-50%);
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: none; align-items: center; justify-content: center;
  background: var(--mark); color: var(--ink); border: 2px solid var(--ink);
  font-size: .74rem; font-weight: 800; font-stretch: 100%;
}
body[data-mark] .clip.has-hits .clip-badge { display: inline-flex; }
body[data-mark] .clip.has-hits { padding-right: 32px; }
body[data-mark] .clip:not(.has-hits) { opacity: .28; }
@media (prefers-reduced-motion: reduce) { .clip { transition: none; } }

/* Abspielkopf */
.tl-over { grid-column: 2; position: relative; pointer-events: none; }
.ph {
  position: absolute; top: 0; bottom: 0; width: 0;
  left: calc((var(--y, 5.5)) / 6 * 100%);
  transition: left .22s cubic-bezier(.3, .9, .4, 1);
  z-index: 5;
}
.ph.is-drag { transition: none; }
.ph::before { /* Linie */
  content: ""; position: absolute; top: 34px; bottom: 0; left: -1px; width: 2px; background: var(--ink);
}
.ph-head {
  --tip: 50%;
  pointer-events: auto; position: absolute; top: 4px; left: 0; transform: translateX(calc(var(--tip) * -1));
  min-width: 58px; height: 30px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 8px 8px 8px 8px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 108%; font-size: .88rem;
  font-variant-numeric: tabular-nums;
  cursor: grab; touch-action: none;
}
.ph-head::after { /* kleine Spitze */
  content: ""; position: absolute; left: var(--tip); bottom: -6px; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink); border-bottom: 0;
}
.ph-head:active { cursor: grabbing; }
.ph.at-end .ph-head { --tip: 78%; }
.ph.at-start .ph-head { --tip: 22%; }
.ph-head:focus-visible { outline: 3px solid var(--m-social); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ph { transition: none; } }

/* Legende */
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .86rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 22px; height: 12px; border-radius: 3px; border: 2px solid var(--blue); background: var(--blue); }
.sw-events { background: var(--paper); }
.sw-study { background: repeating-linear-gradient(90deg, var(--mist) 0 3px, var(--line) 3px 5px); }

/* Monitor: Details zur gewählten Station */
.monitor { margin-top: 26px; border: 2px solid var(--blue); border-radius: 10px; overflow: hidden; }
.mon-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 14px 20px; background: var(--mist); border-bottom: 1px solid var(--line);
}
.mon-year { margin: 0; font-size: .95rem; color: var(--muted); }
.mon-year b { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; color: var(--blue); font-size: 1.25rem; margin-right: 6px; font-variant-numeric: tabular-nums; }
.mon-par { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--blue); background: var(--paper); color: var(--blue);
  border-radius: 999px; padding: 4px 12px; font-size: .86rem; font-weight: 600; cursor: pointer;
}
.chip[aria-current="true"] { background: var(--blue); color: var(--paper); }
.chip:hover { background: var(--blue); color: var(--paper); }
.mon-body { padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 8px; }
.mon-body .station { padding: 0; border: 0; }
.mon-body.is-cut { animation: cut .28s ease both; }
@keyframes cut { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mon-body.is-cut { animation: none; } }
.mon-foot { display: flex; justify-content: space-between; gap: 10px; padding: 16px 20px 20px; }

/* ---------- Stationen (Liste + Monitor) ---------- */
.js .stations { display: none; }
.js .is-list .stations { display: block; }
.js .is-list .editor { display: none; }
.station {
  display: grid; grid-template-columns: var(--meta) minmax(0, 1fr);
  gap: 12px 48px; padding: clamp(26px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.stations .station:first-child { border-top: 0; padding-top: 0; }
.st-years {
  margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 110%;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.05; color: var(--blue); font-variant-numeric: tabular-nums;
}
.st-place { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.st-role {
  margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.2; text-wrap: balance;
}
.st-org { margin: 6px 0 0; color: var(--muted); }
.st-org a { color: var(--ink); font-weight: 600; }
.tasks { list-style: none; padding: 0; margin: 20px 0 0; columns: 2; column-gap: 40px; }
.tasks li { position: relative; padding-left: 20px; line-height: 1.45; break-inside: avoid; margin-bottom: 10px; }
.tasks li::before { content: ""; position: absolute; left: 0; top: .68em; width: 9px; height: 2px; background: var(--blue); }
.tasks-plain { columns: 1; margin-top: 12px; }
.artists { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.artists b { color: var(--ink); font-weight: 700; margin-right: 6px; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 40px; }
.sk-h { margin: 0 0 12px; font-size: .95rem; font-weight: 700; color: var(--blue); }
.sk-h:not(:first-child) { margin-top: 22px; }
.big-words { list-style: none; padding: 0; margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.3; }
.keys { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keys li {
  padding: 4px 11px; border: 1.5px solid var(--blue); border-bottom-width: 4px; border-radius: 8px;
  color: var(--blue); font-size: .88rem; font-weight: 600;
}
.langs { margin: 0; display: grid; gap: 10px; }
.langs dt { font-weight: 600; }
.langs dd { margin: 0; color: var(--muted); font-size: .94rem; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plain li { padding-left: 20px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 2px; background: var(--blue); }

/* ---------- Kontakt ---------- */
.contact { background: var(--blue); color: var(--paper); padding-bottom: 0; overflow: hidden; }
.sec + .contact { border-top: 0; }
.contact .sec-h { color: var(--paper); }
.contact a { text-decoration-color: var(--paper); }
.contact a:hover { color: var(--on-blue); }
.mail-big {
  display: inline-block; font-family: var(--f-display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(1.35rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; color: var(--paper);
}
.contact-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 26px; }
.contact-row p { margin: 0; color: var(--on-blue); }
.cr-k { display: block; color: var(--paper); font-size: .82rem; font-weight: 700; }
.contact-row .pill { color: var(--blue); }
.toy { margin-top: clamp(40px, 6vw, 72px); }
.toy-hint { position: relative; z-index: 3; margin: 0 0 8px; color: var(--on-blue); font-size: .92rem; display: flex; align-items: center; gap: 12px; min-height: 32px; }
.toy-reset { border: 1.5px solid var(--paper); background: none; color: var(--paper); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: .86rem; cursor: pointer; }
.toy-reset[hidden] { display: none; }
.giant-foot { color: var(--paper); margin-bottom: -.1em; padding-top: .26em; line-height: .86; overflow: visible; user-select: none; -webkit-user-select: none; }
.tl-ch { display: inline-block; touch-action: none; cursor: grab; position: relative; }
.tl-ch.is-drag { cursor: grabbing; z-index: 2; }
.tl-ch.is-back { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
@media (prefers-reduced-motion: reduce) { .tl-ch.is-back { transition: none; } }

/* ---------- Responsiv ---------- */
@media (max-width: 1060px) {
  :root { --meta: 170px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl { --lab: 190px; }
}
@media (max-width: 760px) {
  .tl { --lab: 106px; --row: 50px; }
  .tl-lab { padding: 0 8px; }
  .tl-lab small { display: none; }
  .tl-lab b { font-size: .8rem; white-space: normal; line-height: 1.1; overflow: visible; }
  .tl-lab.has-tiny b { font-size: 0; }
  .tl-lab.has-tiny b::after { content: attr(data-tiny); font-size: .8rem; }
  .ml { display: none; }
  .tl-ruler span { font-size: .78rem; }
  .tl-ruler .long { display: none; }
  .tl-ruler .short { display: inline; }
  .clip { padding: 0 6px; }
  .ph-head { min-width: 46px; padding: 0 6px; font-size: .8rem; }
  .station { grid-template-columns: 1fr; gap: 8px; }
  .tasks { columns: 1; }
  .mon-foot .pill { padding: 0 14px; }
  .skills { grid-template-columns: 1fr; gap: 28px; }
  .markpill { left: 12px; right: 12px; transform: none; flex-wrap: wrap; }
  .markers-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .markers-row::-webkit-scrollbar { display: none; }
  .marker { flex: none; scroll-snap-align: start; }
}

/* ---------- Druck: einfach die Liste ---------- */
@media print {
  .bar, .markers, .editor, .views, .toy, .markpill, .skip, .quick .pill { display: none !important; }
  .js .stations { display: block !important; }
  .contact { background: none; color: var(--ink); }
  .contact .sec-h, .mail-big { color: var(--blue); }
  .sec { padding: 24px 0; }
  .ch { animation: none; }
}

/* ---------- 404 ---------- */
.notfound > .wrap { width: 100%; }
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(40px, 8vw, 96px); }
.notfound p.msg { margin: 0 0 28px; font-size: clamp(1.25rem, 2.1vw, 1.55rem); line-height: 1.38; max-width: 34ch; color: var(--paper); }

/* =====================================================================
   Szenen (Scroll-Animationen)
   Werte 0..1 kommen aus main.js. Ohne JS oder bei "Bewegung reduzieren"
   bleiben die Standardwerte unten stehen: alles offen, nichts gepinnt.
   ===================================================================== */
.scene { position: relative; --o: 1; --l: 1; --t: 1; --n: 1; --a: 1; --b: 1; --c: 1; --s: 1; --h: 0; }
.scene.is-live { height: 230vh; }
.scene-hero.is-live { height: 270vh; }
.scene.is-live .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene:not(.is-live) .pin { padding: 110px 0 72px; }
.scene + .scene, .scene-hero + main .scene:first-child { border-top: 1px solid var(--line); }
.scene.is-live + .scene { border-top: 0; }

/* ---------- Kopf mit Laptop ---------- */
.scene-hero .pin { position: relative; text-align: center; }
.scene-hero.is-live .hero-copy { position: absolute; left: 0; right: 0; top: calc(60px + clamp(16px, 5vh, 52px)); margin: 0 auto; }
.scene-hero.is-live .stage-laptop { position: absolute; left: 0; right: 0; top: 60px; bottom: 0; align-items: center; z-index: 3; }
.scene-hero.is-live .hero-copy { z-index: 2; }
.hero-copy {
  position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 var(--gutter);
  transform: translateY(calc(var(--h) * -70px)); opacity: calc(1 - var(--h) * 1.15);
}
.hero-k { margin: 0 0 6px; font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink); }
.hero-h {
  margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 112%;
  font-size: clamp(2.5rem, 7.4vw, 6.4rem); line-height: .95; letter-spacing: -.035em; color: var(--blue);
  text-wrap: balance;
}
.hero-sub { margin: 18px auto 0; max-width: 40ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.42; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  opacity: calc(1 - var(--c) * 4);
}
.scroll-hint::after { content: ""; display: block; width: 2px; height: 22px; margin: 6px auto 0; background: var(--muted); }
.scene:not(.is-live) .scroll-hint { display: none; }

.stage-laptop {
  --w: min(880px, 88vw, calc((100svh - 140px) * 1.2));
  position: relative; width: 100%;
  display: flex; justify-content: center; align-items: flex-start;
  perspective: 2400px; perspective-origin: 50% 0%;
  pointer-events: none;
}
.scene:not(.is-live) .stage-laptop { margin-top: 64px; padding-bottom: calc(var(--w) * .12); }
.scene:not(.is-live) .lt { transform: rotateX(-12deg); }
.lt {
  position: relative; width: var(--w); height: calc(var(--w) * .64);
  transform-style: preserve-3d;
  transform-origin: 50% 100% calc(var(--w) * .33);
  transform: translateY(calc((1 - var(--c)) * (var(--ty0, 72svh) - var(--w) * .62) - var(--c) * var(--w) * .06)) rotateX(calc(-80deg + var(--c) * 68deg));
}
.lt-lid {
  position: absolute; inset: 0; transform-origin: 50% 100%; transform-style: preserve-3d;
  transform: rotateX(calc(-89deg + var(--o) * 101deg)) translateZ(-3px);
}
.lid-shell, .lid-screen { position: absolute; inset: 0; border-radius: 16px 16px 6px 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lid-shell {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #2a63ff, var(--blue) 55%, #0036d6);
  display: grid; place-items: center;
}
.lid-shell img { width: 13%; height: auto; transform: rotate(180deg); }
.lid-screen {
  background: #0b0d26; padding: 2.2% 2.2% 3%;
  container-type: inline-size;
}
.scr {
  height: 100%; border-radius: 4px; overflow: hidden;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 4cqw 4cqw 3cqw; gap: 3cqw;
  opacity: var(--s);
  pointer-events: auto;
}
.scr-h { margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 110%; font-size: 4.2cqw; line-height: 1.05; color: var(--blue); letter-spacing: -.02em; text-align: center; }
.scr-tiles { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2cqw; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: .8cqw;
  padding: 2.6cqw 1cqw 2.2cqw; border: 2px solid var(--line); border-radius: 1.6cqw;
  text-decoration: none; color: var(--ink); background: var(--paper);
}
.tile:hover { border-color: var(--blue); background: var(--mist); color: var(--ink); }
.tile svg { width: 9cqw; height: auto; margin-bottom: .8cqw; }
.tile b { font-weight: 700; font-size: 2.1cqw; line-height: 1.15; }
.tile small { font-size: 1.6cqw; color: var(--muted); }
.scr-foot { margin: 0; font-size: 1.6cqw; color: var(--muted); }
@container (max-width: 520px) {
  .scr { gap: 2.4cqw; padding: 3cqw; }
  .scr-h { font-size: 5.4cqw; }
  .scr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2cqw; }
  .tile { flex-direction: row; justify-content: flex-start; gap: 2cqw; padding: 2cqw 2.4cqw; text-align: left; }
  .tile svg { width: 9cqw; margin: 0; flex: none; }
  .tile b { font-size: 3.4cqw; display: block; }
  .tile small { display: none; }
  .scr-foot { display: none; }
}
.lt-base {
  position: absolute; left: -1.5%; width: 103%; top: 100%; height: calc(var(--w) * .66);
  transform-origin: 50% 0; transform: rotateX(90deg);
  background: linear-gradient(#E4E9F8, #D3DBF2);
  border-radius: 6px 6px 22px 22px;
  box-shadow: 0 6px 0 #AEB9E0;
}
.kb {
  position: absolute; left: 8%; right: 8%; top: 7%; height: 46%; border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 0 86%, #DDE3F5 86%) 0 0 / calc(100% / 14) calc(100% / 5),
    linear-gradient(transparent 0 80%, #DDE3F5 80%) 0 0 / calc(100% / 14) calc(100% / 5),
    #B8C3E6;
}
.tp { position: absolute; left: 32%; right: 32%; top: 60%; height: 31%; border-radius: 10px; background: #C8D1EE; }


/* ---------- Highlights: gemeinsamer Aufbau ---------- */
.scene-hl .pin { display: flex; align-items: center; padding-top: 60px; }
.hl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 88px); align-items: center; width: 100%; }
.hl-rev .stage { order: 2; }
.stage { display: flex; justify-content: center; align-items: center; min-width: 0; }
.hl-k { margin: 0 0 10px; font-weight: 600; color: var(--muted); }
.hl-h {
  margin: 0 0 22px; font-family: var(--f-display); font-weight: 900; font-stretch: 108%;
  font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1; letter-spacing: -.025em; color: var(--blue); text-wrap: balance;
}
.hl-body { opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 28px)); }
.hl-body p { margin: 0 0 14px; max-width: 44ch; font-size: clamp(1.02rem, 1.45vw, 1.2rem); line-height: 1.5; text-wrap: pretty; }
.hl-more {
  display: inline-flex; align-items: center; min-height: 42px; margin-top: 8px; padding: 0 16px;
  border: 2px solid var(--blue); border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--blue);
}
.hl-more:hover { background: var(--blue); color: var(--paper); }
.hl-pad { background: var(--mist); }
.hl-proj { background: var(--ink); color: var(--paper); }
.hl-proj .hl-h { color: var(--paper); }
.hl-proj .hl-k { color: #AEBBEA; }
.hl-proj .hl-more { border-color: var(--paper); color: var(--paper); }
.hl-proj .hl-more:hover { background: var(--paper); color: var(--ink); }
.hl-proj :focus-visible { outline-color: var(--paper); }

/* ---------- 1: Umschlag mit Rollerbrief ---------- */
.env {
  /* C5-Umschlag hochkant, darin A5 hochkant */
  --e: min(300px, 25vw, calc((100svh - 130px) / 2.45));
  position: relative; width: var(--e); height: calc(var(--e) * 1.414);
  margin-top: calc(var(--e) * 1.02);
  perspective: 1400px; perspective-origin: 50% 0%;
}
.env-back { position: absolute; inset: 0; background: #BFCCF8; border-radius: 6px; }
.letter {
  position: absolute; left: 4.5%; width: 91%; top: 4%; aspect-ratio: 148 / 210; z-index: 2;
  background: var(--paper); border-radius: 2px; box-shadow: 0 0 0 1px var(--line);
  padding: 9% 9%; overflow: hidden;
  transform: translateY(calc(var(--l) * -74%));
  display: flex; flex-direction: column; gap: 4%;
}
.letter-h { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: calc(var(--e) * .09); line-height: 1; color: var(--blue); margin-top: 52%; }
.letter-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.letter.has-img { padding: 0; }
.stamp {
  position: absolute; right: 8%; top: 5%; width: 30%; aspect-ratio: .82;
  background: var(--blue); color: var(--paper); border: 4px dotted var(--paper); outline: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 7%;
  transform: rotate(4deg);
}
.stamp span { font-family: var(--f-display); font-weight: 900; font-stretch: 70%; font-size: calc(var(--e) * .05); line-height: 1; }
.stamp small { font-size: calc(var(--e) * .028); line-height: 1.15; margin-top: 3px; }
.lines, .fine { display: flex; flex-direction: column; gap: 6px; width: 90%; }
.lines i, .fine i { display: block; height: calc(var(--e) * .016); background: #D5DDF7; border-radius: 3px; }
.lines i:nth-child(2) { width: 88%; } .lines i:nth-child(4) { width: 62%; }
.fine { margin-top: auto; width: 100%; gap: 3px; }
.fine i { height: calc(var(--e) * .009); }
.fine i:last-child { width: 70%; }
.card { display: flex; gap: 3%; }
.card b { position: relative; width: calc(var(--e) * .1); aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--blue); }
.card b::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); opacity: 0; transform: scale(.4); }
.card b:nth-child(1)::after { opacity: clamp(0, calc((var(--l) - .55) * 8), 1); transform: scale(clamp(.4, calc(.4 + (var(--l) - .55) * 5), 1)); }
.card b:nth-child(2)::after { opacity: clamp(0, calc((var(--l) - .68) * 8), 1); transform: scale(clamp(.4, calc(.4 + (var(--l) - .68) * 5), 1)); }
.card b:nth-child(3)::after { opacity: clamp(0, calc((var(--l) - .80) * 8), 1); transform: scale(clamp(.4, calc(.4 + (var(--l) - .80) * 5), 1)); }
.env-pocket {
  position: absolute; inset: 0; z-index: 3; border-radius: 6px;
  background: #E2E8FF;
  clip-path: polygon(0 0, 50% 30%, 100% 0, 100% 100%, 0 100%);
}
.env-pocket::before {
  content: ""; position: absolute; inset: 0; background: #F1F4FF;
  clip-path: polygon(0 100%, 50% 58%, 100% 100%);
}
.env-flap {
  position: absolute; left: 0; top: 0; width: 100%; height: 38%; z-index: 4;
  transform-origin: 50% 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--o) * 178deg));
}
.scene.flap-back .env-flap, .scene:not(.is-live) .env-flap { z-index: 1; }
.flap-out, .flap-in { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.flap-out { background: #F1F4FF; }
.flap-in {
  transform: rotateY(180deg);
  background: var(--blue) radial-gradient(rgba(255,255,255,.35) 1.4px, transparent 1.6px) 0 0 / 12px 12px;
}
.seal {
  position: absolute; left: 50%; top: 64%; transform: translate(-50%, -50%) rotate(-8deg);
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--paper);
  font-family: var(--f-display); font-weight: 900; font-stretch: 70%; font-size: calc(var(--e) * .046);
}

/* ---------- 2: Skizzenblock ---------- */
.pad {
  --s: min(330px, 30vw, 36svh);
  position: relative; width: var(--s); height: calc(var(--s) * 1.25);
  margin-top: calc(var(--s) * .78);
  perspective: 3200px; perspective-origin: 50% 0%;
}
.pad-page {
  position: absolute; inset: 0; border-radius: 4px;
  background: var(--paper) radial-gradient(#C9D3F5 1.2px, transparent 1.4px) 0 0 / 16px 16px;
  box-shadow: 0 2px 0 #C9D3F5, 0 4px 0 #E3E8FB, 0 22px 44px rgba(10, 18, 64, .14);
  padding: 16% 9% 9%;
}
.pad-title { display: block; font-style: italic; font-weight: 700; font-size: calc(var(--s) * .13); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.note {
  position: absolute; padding: 3% 4%; font-weight: 600; font-size: calc(var(--s) * .046); line-height: 1.2;
  color: var(--ink); box-shadow: 0 6px 14px rgba(10, 18, 64, .12);
  opacity: clamp(0, calc(var(--n) * 3), 1);
}
.n1 { left: 9%; top: 40%; background: var(--m-social); transform: rotate(calc(-4deg - (1 - var(--n)) * 20deg)) scale(clamp(.6, calc(.6 + var(--n) * 1.2), 1)); }
.n2 { right: 8%; top: 54%; background: var(--m-campaign); max-width: 46%; transform: rotate(calc(3deg + (1 - var(--n)) * 20deg)) scale(clamp(.6, calc(.6 + (var(--n) - .2) * 1.2), 1)); opacity: clamp(0, calc((var(--n) - .2) * 3), 1); }
.n3 { left: 12%; bottom: 10%; background: var(--m-design); max-width: 58%; transform: rotate(calc(-2deg - (1 - var(--n)) * 16deg)) scale(clamp(.6, calc(.6 + (var(--n) - .4) * 1.2), 1)); opacity: clamp(0, calc((var(--n) - .4) * 3), 1); }
.scribble {
  position: absolute; left: 9%; top: 27%; width: 60%; height: 6%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16'%3E%3Cpath d='M2 10 C40 2 70 14 100 8 S160 3 198 9' fill='none' stroke='%230042FF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 50% / 100% 100%;
  clip-path: inset(0 calc((1 - var(--n)) * 100%) 0 0);
}
.pad-cover {
  position: absolute; inset: 0; z-index: 3; transform-origin: 50% 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--o) * 128deg));
}
.cov-out, .cov-in { position: absolute; inset: 0; border-radius: 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cov-out { background: linear-gradient(170deg, #2a63ff, var(--blue) 60%, #0036d6); display: grid; place-items: center; }
.cov-label {
  background: var(--paper); color: var(--blue); padding: 4% 9%; border-radius: 3px;
  font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: calc(var(--s) * .08); letter-spacing: -.01em;
}
.cov-in { transform: rotateX(180deg); background: #C7D2F7; }
.rings { position: absolute; left: 7%; right: 7%; top: calc(var(--s) * -.035); z-index: 5; display: flex; justify-content: space-between; pointer-events: none; }
.rings i { display: block; width: calc(var(--s) * .028); height: calc(var(--s) * .075); border-radius: 999px; border: 2px solid var(--ink); background: linear-gradient(90deg, #fff, #AEB9E0); }

/* ---------- 3: Projektor (flach, ohne Verläufe) ---------- */
.hl-proj.is-live { height: 330vh; }
.hl-proj { --r: 1; --l: 1; --perf: 0; --fl: 1; }
.hl-stack { grid-template-columns: 1fr; gap: clamp(14px, 3vh, 34px); }
.hl-stack .hl-h { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.hl-stack .hl-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 80px); align-items: start; }
.hl-stack .hl-k, .hl-stack .hl-h { grid-column: 1; }
.hl-stack .hl-body { grid-column: 2; grid-row: 1 / span 2; }
.hl-stack .hl-body p { font-size: clamp(1rem, 1.3vw, 1.12rem); }

.proj {
  --pw: min(1080px, 90vw, calc((100svh - 340px) * 2.3));
  --u: calc(var(--pw) / 1000);
  --ph: 440;
  --gx: 290; --gy: 0; --gs: 1;
  position: relative; width: var(--pw); height: calc(var(--u) * var(--ph));
  perspective: calc(var(--u) * 2400);
}
.proj span { display: block; }
.proj > span { position: absolute; }

/* Leinwand */
.pj-screen {
  left: calc(var(--u) * 500); top: calc(var(--u) * 18); width: calc(var(--u) * 500); height: calc(var(--u) * 262);
  background: #161D4A; overflow: hidden;
  opacity: clamp(0, calc((var(--r) - .72) * 4), 1);
}
.pj-screen::before, .pj-screen::after { /* Perforation, springt pro Bild ein Stück */
  content: ""; position: absolute; top: 0; bottom: 0; width: calc(var(--u) * 22);
  background: repeating-linear-gradient(180deg, transparent 0 calc(var(--u) * 9), #E9EDFF calc(var(--u) * 9) calc(var(--u) * 23), transparent calc(var(--u) * 23) calc(var(--u) * 32));
  background-position: 0 calc(var(--u) * var(--perf));
  opacity: calc(.25 + var(--l) * .65);
}
.pj-screen::before { left: calc(var(--u) * 14); }
.pj-screen::after { right: calc(var(--u) * 14); }
.pj-frame {
  position: absolute; left: calc(var(--u) * 50); right: calc(var(--u) * 50); top: calc(var(--u) * 18.5); bottom: calc(var(--u) * 18.5);
  overflow: hidden; background: #0B0F2E;
}
.pj-frame > * { opacity: calc(var(--l) * var(--fl)); }
.pj-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pj-canvas[hidden] { display: none; }
.pj-img[hidden] { display: none; }
.proj .leader { position: absolute; inset: 0; background: #E3E8F8; display: grid; place-items: center; }
.proj .leader[hidden] { display: none; }
.leader::before, .leader::after { content: ""; position: absolute; background: #0A1240; opacity: .5; }
.leader::before { left: 50%; top: 0; bottom: 0; width: 2px; }
.leader::after { top: 50%; left: 0; right: 0; height: 2px; }
.ld-ring { position: absolute; left: 50%; top: 50%; height: 88%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: calc(var(--u) * 4) solid #0A1240; }
.ld-sweep { position: absolute; left: 50%; top: 50%; height: 72%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: calc(var(--u) * 3) solid #0A1240; background: conic-gradient(#AEB9E0 var(--sw, 0deg), transparent 0); }
.ld-num { position: relative; z-index: 1; font-family: var(--f-display); font-weight: 900; font-stretch: 100%; font-size: calc(var(--u) * 110); line-height: 1; color: #0A1240; }

.pj-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hl-play { cursor: pointer; background: var(--paper); color: var(--ink) !important; font: inherit; font-weight: 600; font-size: .92rem; }
.hl-play:hover { background: #DCE4FF !important; }
.yt-note { margin: 10px 0 0 !important; font-size: .82rem !important; color: #AEBBEA; }

/* Lichtstrahl: flache Fläche, Form setzt main.js passend zur Linse */
.pj-beam { inset: 0; background: rgba(220, 230, 255, .2); opacity: var(--l); pointer-events: none; }

/* Projektor als 3D-Gruppe: erst Seitenansicht, dann Schrägansicht */
.pj-3d {
  position: absolute; left: 0; top: calc(var(--u) * var(--gy)); width: calc(var(--u) * 420); height: calc(var(--u) * 440);
  transform-style: preserve-3d; transform-origin: 45% 60%;
  transform: translateX(calc((1 - var(--r)) * var(--u) * var(--gx))) scale(var(--gs)) rotateY(calc(var(--r) * -32deg));
}
.pj-3d > span { position: absolute; }
.pj-reel { width: calc(var(--u) * 175); aspect-ratio: 1; transform: translateZ(calc(var(--u) * 10)); }
.pj-reel svg { width: 100%; height: 100%; display: block; }
.is-playing .pj-reel svg { animation: reel 1.4s linear infinite; }
.is-playing .pj-reel-back svg { animation-duration: 1.1s; }
@keyframes reel { to { transform: rotate(-360deg); } }
.pj-reel-back { left: calc(var(--u) * 18); top: calc(var(--u) * 14); }
.pj-reel-front { left: calc(var(--u) * 168); top: 0; width: calc(var(--u) * 210); }
.pj-arm { width: calc(var(--u) * 14); background: #3A4682; transform-origin: 50% 0; }
.pj-arm-back { left: calc(var(--u) * 99); top: calc(var(--u) * 100); height: calc(var(--u) * 170); transform: translateZ(calc(var(--u) * 5)) rotate(-14deg); }
.pj-arm-front { left: calc(var(--u) * 266); top: calc(var(--u) * 104); height: calc(var(--u) * 150); transform: translateZ(calc(var(--u) * 5)) rotate(14deg); }
.pj-body { left: calc(var(--u) * 62); top: calc(var(--u) * 246); width: calc(var(--u) * 262); height: calc(var(--u) * 136); background: #1F2A68; border-radius: calc(var(--u) * 10); }
.pj-vent { position: absolute; left: 10%; top: 24%; width: 46%; height: 44%; background: repeating-linear-gradient(180deg, #0D1338 0 calc(var(--u) * 6), #1F2A68 calc(var(--u) * 6) calc(var(--u) * 12)); }
.pj-knob { position: absolute; right: 12%; top: 30%; width: calc(var(--u) * 34); aspect-ratio: 1; border-radius: 50%; background: #8B9AD0; }
.pj-body-front { /* Stirnseite, wird beim Drehen sichtbar */
  left: calc(var(--u) * 324); top: calc(var(--u) * 246); width: calc(var(--u) * 110); height: calc(var(--u) * 136);
  background: #2E3A82; transform-origin: 0 50%; transform: rotateY(90deg);
}
.pj-body-top {
  left: calc(var(--u) * 62); top: calc(var(--u) * 246); width: calc(var(--u) * 262); height: calc(var(--u) * 110);
  background: #3A4682; transform-origin: 50% 0; transform: rotateX(-90deg);
}
.pj-foot { left: calc(var(--u) * 92); top: calc(var(--u) * 382); width: calc(var(--u) * 202); height: calc(var(--u) * 18); background: #0D1338; }
.pj-lens { left: calc(var(--u) * 324); top: calc(var(--u) * 276); width: calc(var(--u) * 62); height: calc(var(--u) * 64); background: #26306E; transform: translateZ(calc(var(--u) * -55)); }
.pj-lens-front {
  left: calc(var(--u) * 351); top: calc(var(--u) * 273); width: calc(var(--u) * 70); height: calc(var(--u) * 70); border-radius: 50%;
  background: #3A4682; transform: translateZ(calc(var(--u) * -55)) rotateY(90deg);
}
.pj-lens-front::after { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: #F2F5FF; opacity: var(--l); }

/* ---------- 4: Flyer zum Auffalten ---------- */
.fly {
  --p: min(200px, 17vw, calc(50svh / 1.6));
  position: relative; width: var(--p); height: calc(var(--p) * 1.6);
  perspective: 1800px;
}
.fp { position: absolute; top: 0; width: 100%; height: 100%; transform-style: preserve-3d; container-type: inline-size; }
.fp-in, .fp-out {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: 12cqw 10cqw;
  display: flex; flex-direction: column; gap: 3cqw;
}
.fp-out { transform: rotateY(180deg); }
.fp-mid { left: 0; z-index: 1; }
.fp-right { left: 100%; z-index: 2; transform-origin: 0 50%; transform: rotateY(calc((1 - var(--a)) * -180deg)); }
.fp-left { left: -100%; z-index: 3; transform-origin: 100% 50%; transform: rotateY(calc((1 - var(--b)) * 180deg)); }
.fp-mid .fp-in { background: var(--blue); color: var(--paper); }
.fp-right .fp-in, .fp-left .fp-in { background: var(--paper); color: var(--blue); box-shadow: inset 0 0 0 1px var(--line); }
.fp-h { font-weight: 700; font-size: 8cqw; margin-bottom: 4cqw; opacity: .8; }
.fp-big { font-family: var(--f-display); font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 13cqw; line-height: .92; hyphens: manual; }
.fp-li { font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: 12cqw; line-height: 1.05; }
.fp-sm { font-weight: 600; font-size: 9.5cqw; line-height: 1.3; color: var(--ink); }
.fp-cover {
  background: var(--blue); color: var(--paper); justify-content: flex-end;
  font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: 30cqw; line-height: .84; gap: 0;
}
.fp-cover span:first-child { font-size: 15cqw; font-stretch: 100%; margin-bottom: 4cqw; }
.fp-back { background: var(--mist) radial-gradient(var(--line) 1.4px, transparent 1.6px) 0 0 / 12px 12px; }
.fly::after {
  content: ""; position: absolute; left: -100%; right: -100%; bottom: -6%; height: 8%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(10, 18, 64, .22), transparent 70%);
}

/* ---------- Bildung (Bachelorarbeit im Zusammenhang) ---------- */
.edu { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.edu-deg { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 106%; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; }
.edu-sch { margin: 8px 0 0; color: var(--muted); }
.edu-ba { border-top: 2px solid var(--blue); padding-top: 18px; }
.edu-ba-k { margin: 0; color: var(--muted); font-weight: 600; }
.edu-ba-t { margin: 6px 0 0; font-family: var(--f-display); font-weight: 800; font-stretch: 104%; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.15; text-wrap: balance; }
.edu-ba-g { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 0; color: var(--muted); }
.edu-grade { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; color: var(--blue); letter-spacing: -.03em; }
.edu-ba-p { margin: 18px 0 0; max-width: 52ch; }
.edu-ba-p a { font-weight: 600; color: var(--blue); white-space: nowrap; }

/* ---------- Responsiv für Szenen ---------- */
@media (max-width: 860px) {
  .bar-name, .bar-cv { display: none; }
  .edu { grid-template-columns: 1fr; }
  .scene-hl .pin { align-items: flex-start; padding-top: 76px; }
  .hl-grid { grid-template-columns: 1fr; gap: 18px; }
  .hl-rev .stage { order: 0; }
  .scene-hl .stage { height: 40svh; align-items: center; }
  .stage-laptop { --ty0: 52svh; }
  .env { --e: min(44vw, calc(42svh / 2.45)); margin-top: calc(var(--e) * 1.02); }
  .hl-env .stage { height: 44svh; }
  .pad { --s: min(48vw, 19svh); margin-top: calc(var(--s) * .78); }
  .fly { --p: min(27vw, calc(34svh / 1.6)); }
  .hl-proj .stage { height: auto; }
  .proj { --pw: 92vw; --ph: 830; --gx: 380; --gy: 470; --gs: .8; }
  .pj-screen { left: calc(var(--u) * 80); top: 0; width: calc(var(--u) * 920); height: calc(var(--u) * 470); }
  .pj-screen::before, .pj-screen::after { width: calc(var(--u) * 34); }
  .pj-screen::before { left: calc(var(--u) * 20); } .pj-screen::after { right: calc(var(--u) * 20); }
  .pj-frame { left: calc(var(--u) * 75); right: calc(var(--u) * 75); top: calc(var(--u) * 41); bottom: calc(var(--u) * 41); }
  .ld-num { font-size: calc(var(--u) * 190); }
  .pj-3d { transform-origin: 0 0; }
  .hl-stack .hl-copy { grid-template-columns: 1fr; }
  .hl-stack .hl-body { grid-column: 1; grid-row: auto; }
  .hl-stack .hl-copy { grid-template-columns: 1fr; }
  .hl-stack .hl-body { grid-column: 1; grid-row: auto; }
  .hl-k { margin-bottom: 6px; font-size: .9rem; }
  .hl-h { font-size: clamp(1.7rem, 7.4vw, 2.3rem); margin-bottom: 12px; }
  .hl-body p { font-size: .98rem; line-height: 1.45; margin-bottom: 10px; }
  .hl-more { min-height: 38px; margin-top: 2px; }
  .scene-hl:not(.is-live) .stage { height: auto; margin: 24px 0; }
}
@media (max-width: 860px) and (max-height: 720px) {
  .proj { --pw: 74vw; }
  .scene-hl .stage { height: 34svh; }
  .hl-body p { font-size: .92rem; }
  .hl-h { font-size: 1.6rem; }
}
