/* ---------- 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;
}

/* Instrument Serif: Serifenschrift für Mischüberschriften und das Menü */
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-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 Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext-400-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 Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

/* =====================================================================
   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: #FFD600;
  --m-campaign: #FF3DB8;
  --m-design: #00E076;
  --m-events: #FF7A1A;
  --m-deal: #9B5CFF;
  --mark: transparent;
  --white: #FFFFFF; --navy: #0A1240;
  --bar-bg: rgba(255, 255, 255, .95);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 48px);
  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; }
/* Browserleisten (Safari, Chrome) nehmen ihre Farbe vom Seitenhintergrund: überall Dunkelblau.
   Sichtbar ist das nur beim Überziehen am Rand; der Inhalt liegt auf dem body in Papierfarbe. */
html { background-color: #0A1240; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  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; }
.contact :focus-visible { outline-color: var(--white); }
.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(--white); padding: 10px 14px; border-radius: 0; 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(--white); }
.pill-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill-white { border-color: var(--white); background: var(--white); 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;
  /* Grundfarbe Dunkelblau: daraus färbt Safari 26 seine Leiste (immer, auch im dunklen Design).
     Sichtbar ist nur das deckende Bild in Papierfarbe darüber. */
  background-color: #0A1240;
  background-image: linear-gradient(var(--paper), var(--paper));
  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(--white); }
.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; }

/* ---------- 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: 999px;
  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(--navy); }

/* Marker-Icons: deine Dateien unverändert */
.mk { display: block; width: 32px; height: 32px; flex: none; object-fit: contain; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.marker:hover .mk { transform: rotate(-6deg); }
.marker[aria-pressed="true"] .mk { transform: rotate(-8deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .mk, .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 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: .92rem;
  box-shadow: none;
}
.markpill[hidden] { display: none; }
.markpill-pen { width: 14px; height: 14px; border-radius: 50%; background: var(--mark); flex: none; }
.markpill-btn { border: 0; background: rgba(255, 255, 255, .14); color: var(--paper); border-radius: 999px; padding: 7px 14px; 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; } }

/* ---------- Zeitstrahl: Jahre links, Stationen rechts (nach dneg.com/about) ---------- */
.yt { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
html:not(.js) .yt { grid-template-columns: minmax(0, 1fr); }
.yt-years { position: sticky; top: 84px; }
.yt-years ul { list-style: none; margin: 0; padding: 0; }
.yt-y {
  position: relative; display: block; border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 900; font-stretch: 62%;
  font-size: clamp(3rem, 5.4vw, 4.6rem); line-height: .92; letter-spacing: -.01em; color: var(--ink);
  opacity: .2; transition: opacity .3s cubic-bezier(.25, .1, .25, 1); font-variant-numeric: tabular-nums;
}
.yt-y:hover { opacity: .5; }
.yt-y.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .yt-y { transition: none; } }

.yt-group + .yt-group { margin-top: clamp(48px, 6vw, 80px); }
.yt-div { display: flex; align-items: center; gap: 18px; margin: 0 0 clamp(20px, 3vw, 32px); color: var(--muted); font-family: var(--f-serif); font-size: 1.45rem; line-height: 1; }
.yt-div::before, .yt-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Stationen ---------- */
.station { scroll-margin-top: 90px; }
.station + .station { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.st-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; font-size: .9rem; }
.st-years { margin: 0; order: 2; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-place { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; line-height: 1; color: var(--muted); }
.st-role {
  margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: .95; letter-spacing: -.005em; color: var(--ink); text-wrap: balance;
}
.st-role a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .1em; }
.st-org { margin: 10px 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; }

@media (max-width: 860px) {
  .yt { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .yt-years {
    top: 60px; z-index: 6; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 6px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .yt-years ul { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .yt-years ul::-webkit-scrollbar { display: none; }
  .yt-y { font-size: 2.1rem; padding-right: 2px; white-space: nowrap; }
  .station { scroll-margin-top: 130px; }
  .yt-group { scroll-margin-top: 130px; }
}

/* ---------- 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: 0;
  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(--white); padding-bottom: 0; overflow: hidden; }
.sec + .contact { border-top: 0; }
.contact .sec-h { color: var(--white); }
.contact a { text-decoration-color: var(--white); }
.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(--white);
}
.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(--white); 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(--white); background: none; color: var(--white); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: .86rem; cursor: pointer; }
.toy-reset[hidden] { display: none; }
.giant-foot { color: var(--white); 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) {
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ml { display: none; }
  .tasks { columns: 1; }
  .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, .yt-years, .toy, .markpill, .skip, .quick .pill { display: none !important; }
  .yt { display: block; }
  .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(--white); }

/* =====================================================================
   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; }

/* ---------- Projekt-Icons (farbig, Konturen in currentColor) ---------- */
/* Projekt-Icons: Kreis in der Farbe der Überschrift, Linien aus deinen Icons als Maske */
.pic { --pic-bg: var(--blue); --pic-fg: var(--white); position: relative; display: block; aspect-ratio: 1; border-radius: 50%; background: var(--pic-bg); }
.pic::after {
  content: ""; position: absolute; inset: 0; background: var(--pic-fg);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.pic-grouprides::after { -webkit-mask-image: url("../img/icons/grouprides-lines.png"); mask-image: url("../img/icons/grouprides-lines.png"); }
.pic-wegoapart::after { -webkit-mask-image: url("../img/icons/wegoapart-lines.svg"); mask-image: url("../img/icons/wegoapart-lines.svg"); }
.pic-live-session::after { -webkit-mask-image: url("../img/icons/live-session-lines.png"); mask-image: url("../img/icons/live-session-lines.png"); }
.pic-clubnaechte::after { -webkit-mask-image: url("../img/icons/clubnaechte-lines.png"); mask-image: url("../img/icons/clubnaechte-lines.png"); }
/* Marker-Icons auf dunklem Grund: weiße runde Scheibe dahinter, damit die dunklen Konturen sichtbar bleiben */
html[data-theme="dark"] .mk { background: var(--white); border-radius: 50%; padding: 3px; overflow: hidden; }

/* ---------- Mischüberschriften: breite Archivo + Instrument Serif kursiv ---------- */
.hero-h .mx-b, .hl-h .mx-b, .sec-h .mx-b, .scr-h .mx-b, .mix .mx-r {
  font-family: var(--f-serif); font-weight: 400; font-style: italic; font-stretch: 100%;
  font-size: 1.12em; letter-spacing: -.01em;
}
.hero-h .mx-b, .mix-h1 .mx-r { font-size: 1.16em; }

/* ---------- 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 8px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.1; 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: 0; 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 {
  /* Hintergrund: flache Wellenbänder in Blauabstufungen (oben hell, unten dunkel) */
  --w1: #F3F6FF; --w2: #E2E9FF; --w3: #CCD8FF; --w4: #ADC0FF; --w5: #8AA4FF;
  --w6: #6384FF; --w7: #3A63FF; --w8: #1747F0; --w9: #0B33C2;
  position: relative; height: 100%; border-radius: 0; overflow: hidden;
  background: var(--w1);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 4cqw 4cqw 3cqw; gap: 3cqw;
  opacity: var(--s);
  pointer-events: auto;
}
html[data-theme="dark"] .scr {
  --w1: #0B1033; --w2: #0F1745; --w3: #141F59; --w4: #1A286F; --w5: #213387;
  --w6: #293FA1; --w7: #324CBC; --w8: #3C5BD8; --w9: #4A6CF0;
}
.scr-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.scr-bg .w1 { fill: var(--w1); } .scr-bg .w2 { fill: var(--w2); } .scr-bg .w3 { fill: var(--w3); }
.scr-bg .w4 { fill: var(--w4); } .scr-bg .w5 { fill: var(--w5); } .scr-bg .w6 { fill: var(--w6); }
.scr-bg .w7 { fill: var(--w7); } .scr-bg .w8 { fill: var(--w8); } .scr-bg .w9 { fill: var(--w9); }
.scr > :not(.scr-bg):not(.demo-cursor) { position: relative; z-index: 1; }
.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%; max-width: 74cqw; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2cqw 2.6cqw; }
.tile {
  display: flex; flex-direction: row; align-items: center; gap: 2cqw; text-align: left;
  padding: 1.6cqw 3.6cqw 1.6cqw 2cqw; border: 2px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink); background: var(--paper);
}
.tile > span { display: flex; flex-direction: column; min-width: 0; }
.tile:hover { border-color: var(--blue); background: var(--mist); color: var(--ink); }
.tile { transition: transform .12s ease, background-color .12s ease, border-color .12s ease; }
.tile:active, .tile.is-pressed { transform: scale(.93); border-color: var(--blue); background: var(--mist); }
/* Vorführ-Mauszeiger auf dem Laptop-Bildschirm */
.demo-cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 3.2cqw; pointer-events: none; opacity: 0; transform-origin: 0 0; }
.demo-cursor svg { display: block; width: 100%; height: auto; }
.demo-cursor.is-touch { width: 6cqw; height: 6cqw; margin: -3cqw 0 0 -3cqw; transform-origin: 50% 50%; border-radius: 50%; background: rgba(255, 255, 255, .9); border: 2px solid var(--navy); }
.tile .pic { width: 7.4cqw; flex: none; }
.tile b { font-weight: 700; font-size: 2.5cqw; line-height: 1.15; }
.tile small { font-size: 1.8cqw; color: var(--muted); }
.scr-foot { margin: 0; font-size: 1.6cqw; color: var(--white); }
@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; }
  .scr-tiles { max-width: none; }
  .tile { padding: 2cqw 3cqw 2cqw 2.4cqw; }
  .tile .pic { width: 9cqw; }
  .tile b { font-size: 3.4cqw; display: block; }
  .tile small { display: none; }
  .demo-cursor { width: 6cqw; }
  .demo-cursor.is-touch { width: 9cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.5cqw; }
  .scr-foot { display: none; }
}
.lt-base {
  /* exakt so groß wie der Deckel, sonst schaut im zugeklappten Zustand ein Rand heraus */
  position: absolute; left: 0; width: 100%; top: 100%; height: 100%;
  transform-origin: 50% 0; transform: rotateX(90deg);
  background: linear-gradient(#E4E9F8, #D3DBF2);
  border-radius: 0;
}
.kb {
  /* Tasten mit runden Ecken: eine Taste als SVG, gekachelt 14 x 5 */
  position: absolute; left: 8%; right: 8%; top: 7%; height: 46%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Crect x='4' y='5' width='86' height='80' rx='40' fill='%23B8C3E6'/%3E%3C/svg%3E") 0 0 / calc(100% / 14) calc(100% / 5);
}
.tp { position: absolute; left: 32%; right: 32%; top: 60%; height: 31%; border-radius: 999px; 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-family: var(--f-serif); font-weight: 400; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.1; color: var(--muted); }
.hl-h {
  margin: 0 0 22px; font-family: var(--f-display); font-weight: 900; font-stretch: 112%;
  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(--white); }
.hl-wego { background: var(--mist); }
.hl-proj { background: var(--navy); color: var(--white); }
.hl-proj .hl-h { color: var(--white); }
.hl-proj .hl-k { color: #AEBBEA; }
.hl-proj .hl-more { border-color: var(--white); color: var(--white); }
.hl-proj .hl-more:hover { background: var(--white); color: var(--navy); }
.hl-proj :focus-visible { outline-color: var(--white); }

/* ---------- 1: Deutschlandkarte mit Route ---------- */
/* Kartenfenster ohne Hintergrund und ohne weichen Rand */
.de-frame {
  --tilt: 52deg; --pw: min(360px, 28vw, 44svh);
  position: relative; width: 100%; height: min(76svh, 640px); overflow: hidden;
  perspective: 1100px; perspective-origin: var(--cx, 50%) 38%;
}
/* Kamera: Anflug auf Hamburg, dann Schwenk nach Berlin und München, Zoom bis 2,2-fach */
.de-plane {
  /* u: Anflug auf Hamburg, w: Schwenk Hamburg -> Berlin, b: Schwenk Berlin -> München */
  --u: clamp(0, calc(var(--a) / .3), 1);
  --w: clamp(0, calc((var(--a) - .3) / .7), 1);
  --zs: calc(1 + var(--u) * 1.2);
  --tx: calc(var(--u) * 9.7% - var(--w) * 29.3% + var(--b) * 15.8%);
  --ty: calc(var(--u) * 28.3% - var(--w) * 12.1% - var(--b) * 51.3%);
  position: absolute; left: var(--cx, 50%); top: 50%; width: var(--pw); margin-left: calc(var(--pw) / -2);
  aspect-ratio: 292 / 342; translate: 0 -50%;
  transform-style: preserve-3d; transform-origin: 50% 50%;
  transform: rotateX(var(--tilt)) scale(var(--zs)) translate(var(--tx), var(--ty));
}
.de-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Karte im kräftigen Blau, Route und Pins in Weiß */
.de-land { fill: var(--blue); stroke: var(--blue); stroke-width: 1.2; stroke-linejoin: round; opacity: var(--m); }
.rt { fill: none; stroke: var(--white); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 7 7; }
.rt-m { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1 2; }
.rt-ma { stroke-dashoffset: calc(1 - var(--a)); }
.rt-mb { stroke-dashoffset: calc(1 - var(--b)); }
.mp-dot { fill: var(--white); }
/* Pins, Namen und Skylines liegen in einer flachen Ebene über der Karte (immer aufrecht).
   Position und Größe kommen aus main.js: Punkt der Stadt auf der gekippten Karte -> --x, --y, --k */
.de-ov { position: absolute; inset: 0; pointer-events: none; }
.ov-spot { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: translate(var(--x, -999px), var(--y, -999px)); }
.ov-in { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; transform: scale(calc(var(--k, 1) * var(--pop))); }
/* Größen relativ zur Kartenbreite, damit Handy und Desktop gleich aussehen */
.mp-pin-s { position: absolute; z-index: 2; left: calc(var(--pw) * -.03); bottom: 0; width: calc(var(--pw) * .06); height: calc(var(--pw) * .097); color: var(--white); overflow: visible; }
.mp-pin-dot { fill: var(--blue); }
/* Wann was aufpoppt */
.mp-hamburg { --pop: clamp(0, calc(var(--m) * 2 - 1), 1); --v: clamp(0, calc((var(--a) - .08) * 2.6), 1); }
.mp-berlin { --pop: clamp(0, calc((var(--a) - .88) * 9), 1); --v: clamp(0, calc((var(--a) - .9) * 3 + var(--b) * 3), 1); }
.mp-muenchen { --pop: clamp(0, calc((var(--b) - .88) * 9), 1); --v: clamp(0, calc((var(--b) - .9) * 10), 1); }
.mp-dot-hamburg { opacity: clamp(0, calc(var(--m) * 2 - 1), 1); }
.mp-dot-berlin { opacity: clamp(0, calc((var(--a) - .88) * 9), 1); }
.mp-dot-muenchen { opacity: clamp(0, calc((var(--b) - .88) * 9), 1); }

/* Desktop: Karte füllt den ganzen Bildschirm, der Text liegt in einer Box darüber */
@media (min-width: 861px) {
  .hl-map .stage { position: absolute; inset: 0; z-index: 0; }
  .hl-map .de-frame { width: 100%; height: 100%; --cx: 30%; }
  .hl-map .hl-copy { grid-column: 2; position: relative; z-index: 1; background: var(--paper); padding: clamp(24px, 3vw, 40px); box-shadow: 0 0 0 1px var(--line); }
}

/* ---------- 2: Walkie-Talkie, dreht sich beim Scrollen um die eigene Achse ---------- */
.wk-stage { --w: min(210px, 16vw, 27svh); width: calc(var(--w) * 1.9); height: calc(var(--w) * 2.5); perspective: 1800px; display: grid; place-items: center; }
.wk {
  --h: calc(var(--w) * 1.55); --d: calc(var(--w) * .42);
  position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d;
  transform: translateY(calc(var(--w) * .28)) rotateX(-12deg) rotateY(calc(var(--r) * 720deg - 28deg));
}
.wk-f { position: absolute; left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.wk-front { width: var(--w); height: var(--h); transform: translateZ(calc(var(--d) / 2)); background: var(--blue); }
.wk-back { width: var(--w); height: var(--h); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #0036D6; }
.wk-left, .wk-right { width: var(--d); height: var(--h); left: calc((var(--w) - var(--d)) / 2); background: #002AA8; }
.wk-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.wk-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.wk-top, .wk-bottom { width: var(--w); height: var(--d); top: calc((var(--h) - var(--d)) / 2); }
.wk-top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background: #3A6BFF; }
.wk-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #001F80; }
/* Vorderseite */
.wk-disp {
  position: absolute; left: 12%; right: 12%; top: 9%; height: 21%; background: #DCE4FF; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; padding: 0 8%;
  font-family: var(--f-display); font-stretch: 80%; line-height: 1;
}
.wk-disp b { font-weight: 900; font-size: calc(var(--w) * .13); }
.wk-disp small { font-weight: 700; font-size: calc(var(--w) * .075); text-transform: uppercase; letter-spacing: .04em; }
.wk-grill { position: absolute; left: 16%; right: 16%; top: 40%; display: grid; gap: calc(var(--w) * .045); }
.wk-grill i { display: block; height: calc(var(--w) * .035); border-radius: 999px; background: var(--navy); }
.wk-call { position: absolute; left: 50%; top: 73%; width: 18%; aspect-ratio: 1; margin-left: -9%; border-radius: 50%; background: var(--m-events); box-shadow: 0 0 0 calc(var(--w) * .02) var(--navy); }
.wk-logo { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font-family: var(--f-display); font-weight: 900; font-stretch: 100%; font-size: calc(var(--w) * .075); color: var(--white); letter-spacing: -.01em; }
/* Rückseite: Gürtelclip und Sticker */
.wk-clip { position: absolute; left: 30%; right: 30%; top: 12%; height: 46%; background: var(--navy); }
.wk-sticker {
  position: absolute; left: 18%; bottom: 14%; padding: 5% 10%; transform: rotate(-8deg);
  background: var(--m-social); color: var(--navy); font-family: var(--f-display); font-weight: 900; font-stretch: 112%;
  font-size: calc(var(--w) * .12); text-transform: uppercase; line-height: 1;
}
.wk-ptt { position: absolute; left: 30%; right: 30%; top: 28%; height: 22%; border-radius: 999px; background: var(--navy); }
/* Antenne und Knopf: zwei gekreuzte Flächen, damit sie von allen Seiten zu sehen sind */
.wk-ant, .wk-knob { position: absolute; background: var(--navy); }
.wk-ant { left: 14%; top: calc(var(--w) * -.66); width: calc(var(--w) * .12); height: calc(var(--w) * .68); border-radius: 999px; transform: translateZ(calc(var(--d) * -.1)); }
.wk-ant-b { transform: translateZ(calc(var(--d) * -.1)) rotateY(90deg); }
.wk-knob { left: 64%; top: calc(var(--w) * -.15); width: calc(var(--w) * .16); height: calc(var(--w) * .17); transform: translateZ(calc(var(--d) * .05)); }
.wk-knob-b { transform: translateZ(calc(var(--d) * .05)) rotateY(90deg); }

/* ---------- 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 3; }
.hl-stack .hl-copy { grid-template-rows: auto auto 1fr; }
.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) * 337);
  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::before { content: ""; position: absolute; inset: 0; background: #E3E8F8; opacity: var(--l); } /* Lampe an: Leinwand hell */
.pj-video, .pj-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.pj-video { object-fit: cover; background: #0B0F2E; }
.is-playing .pj-screen::before, .is-playing .pj-screen::after { animation: perf .35s linear infinite; }
@keyframes perf { to { background-position: 0 calc(var(--u) * 32); } }

.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(--white); color: var(--navy) !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; }
.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(--white); }
.fp-right .fp-in, .fp-left .fp-in { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 1px var(--line); }
/* Flyer: Überschriften in Instrument Serif, Listen in der fetten Archivo */
.fp-h { font-family: var(--f-serif); font-weight: 400; font-size: 11cqw; line-height: 1; letter-spacing: -.01em; margin-bottom: 5cqw; }
.fp-big { font-family: var(--f-display); font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 13cqw; line-height: .92; hyphens: manual; margin-bottom: 1.5cqw; }
.fp-li { font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: 12cqw; line-height: 1.08; }
.fp-sm { font-family: var(--f-display); font-weight: 800; font-stretch: 100%; font-size: 9.2cqw; line-height: 1.28; color: var(--navy); }
.fp-cover {
  background: var(--blue); color: var(--white); 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) {
  /* Handy: keine Abschnittsliste oben (die steckt im Menü unten), nur Name und Umschalter */
  .bar nav, .bar-cv { display: none; }
  .bar-in { justify-content: space-between; }
  .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; }
  .de-frame { width: 100vw; margin-left: calc(50% - 50vw); height: 40svh; }
  .de-frame { --pw: min(62vw, 30svh); }
  .wk-stage { --w: min(24vw, 13svh); }
  .fly { --p: min(27vw, calc(34svh / 1.6)); }
  .hl-proj .stage { height: auto; }
  .proj { --pw: 92vw; --ph: 940; --gx: 380; --gy: 585; --gs: .8; }
  .pj-screen { left: calc(var(--u) * 85); top: 0; width: calc(var(--u) * 830); height: calc(var(--u) * 570); }
  .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) * 30); bottom: calc(var(--u) * 30); }
  .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: 1.12rem; }
  .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; }
  /* passt das Highlight nicht in die Höhe, verkleinert main.js die Bühne (--fit) */
  .scene-hl.is-live .stage { overflow: visible; }
  .scene-hl.is-live .stage > :not(.de-frame) { scale: var(--fit, 1); }
  .scene-hl.is-live .stage .de-frame { height: 100%; }
  .scene-hl.is-tight .hl-body p + p { display: none; }
}
@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; }
}

/* =====================================================================
   Dunkelmodus (html[data-theme="dark"], gesetzt im Kopf der Seite)
   ===================================================================== */
html[data-theme="dark"] {
  --blue: #3D66FF; --ink: #E8EDFF; --muted: #A3AEDB; --quiet: #7F8FD6;
  --mist: #151C4F; --line: #2A3478; --paper: #0B1033; --on-blue: #DCE4FF;
  --bar-bg: rgba(11, 16, 51, .92);
  color-scheme: dark;
}
html[data-theme="dark"] .marker:hover { background: color-mix(in srgb, var(--c) 22%, var(--paper)); }
html[data-theme="dark"] .marker[aria-pressed="true"] { background: var(--c); color: var(--navy); }
.marker[aria-pressed="true"] { color: var(--navy); }
.tasks li.is-marked > span, .tasks-inline.is-marked > span { color: var(--navy); }

/* =====================================================================
   Umschalter in der Leiste (Hell/Dunkel, Plain/Interaktiv)
   ===================================================================== */
.tgs { display: flex; align-items: center; gap: 6px; flex: none; }
.tg {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
  font-weight: 600; font-size: .86rem; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.tg:hover { border-color: var(--blue); color: var(--blue); }
.tg .ic { width: 16px; height: 16px; }
.ic-sun { display: none; }
html[data-theme="dark"] .ic-sun { display: block; }
html[data-theme="dark"] .ic-moon { display: none; }
@media (max-width: 860px) {
  .tg { min-height: 36px; padding: 0 10px; }
  #tg-theme .tg-t { display: none; }
}

/* =====================================================================
   Menü-Reiter unten (wird am Seitenende zur Kontaktseite)
   ===================================================================== */
/* Platz am Seitenende so hoch wie das offene Panel (JS setzt die Höhe) */
.dock-end { height: var(--dock-h, 60vh); }
.dock { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.dock-panel {
  /* Block unten wie bei zzdp: 6 x 38 px breit, 38 px Fläche + 18 px Farbbalken, ohne Rundung */
  --dk: 0; --tw: 228px; --th: 56px; --sh: 18px;
  /* Nur so hoch wie der Inhalt, unten angedockt (wie bei zzdp), nicht bis ganz nach oben */
  position: absolute; left: 0; right: 0; bottom: 0; top: auto; max-height: 100%; pointer-events: auto;
  /* Sichtbar Blau; die Grundfarbe Dunkelblau liest Safari am iPhone für die untere Leiste */
  background-color: #0A1240; background-image: linear-gradient(var(--blue), var(--blue)); color: var(--white);
  clip-path: inset(
    calc((1 - var(--dk)) * (100% - var(--th)))
    calc((1 - var(--dk)) * (50% - var(--tw) / 2))
    0
    calc((1 - var(--dk)) * (50% - var(--tw) / 2)));
  display: flex; flex-direction: column;
}
.dock-panel.is-closed .dock-in { visibility: hidden; }
.dock-in {
  position: relative; display: flex; flex-direction: column; min-height: 0; overflow-y: auto;
  padding: 70px 0 calc(var(--sh) + clamp(28px, 4vw, 44px));
  opacity: clamp(0, calc((var(--dk) - .45) * 2.2), 1);
  transform: translateY(calc((1 - var(--dk)) * 60px));
}
.dock-panel a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .5); }
.dock-panel a:hover { color: var(--on-blue); }
.dock-panel :focus-visible { outline-color: var(--white); }
.dock-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); border-top: 1px solid rgba(255, 255, 255, .45); padding-top: 26px; width: 100%; }
.dock-k { margin: 0 0 6px; font-size: .95rem; color: var(--on-blue); }
.dock-big {
  margin: 0 0 22px; font-family: var(--f-display); font-weight: 600; font-stretch: 100%;
  font-size: clamp(1.3rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere;
}
.dock-big a { text-decoration: none; }
.dock-mid { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.35; }
.dock-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.dock-actions .pill { color: var(--blue); }
/* Nebeneinander: Kontakt links, Navigation rechts. Übereinander (Handy): Navigation zuerst */
.dock-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0; border-left: 1px solid rgba(255, 255, 255, .45); padding-left: clamp(18px, 3vw, 32px); }
.dock-nav a { position: relative; font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.12; text-decoration: none; letter-spacing: -.025em; }
.adr-sep { display: none; }
.dock-nav a::before { content: ""; position: absolute; left: -.55em; top: .5em; width: .3em; height: .3em; background: var(--white); opacity: 0; }
.dock-nav a:hover::before, .dock-nav a:focus-visible::before { opacity: 1; }
.dock-close {
  position: absolute; top: 18px; right: var(--gutter); z-index: 2;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--white);
  background: none; color: var(--white); font-weight: 600; cursor: pointer;
}
html:not(.dock-open) .dock-close { display: none; }
html.dock-open { overflow: hidden; }
.dock-tab {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: var(--tw); height: var(--th); padding: 0 16px var(--sh) 18px; border: 0; border-radius: 0; background: none; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: .82rem; letter-spacing: .01em; cursor: pointer;
  opacity: clamp(0, calc(1 - var(--dk) * 5), 1);
}
.dock-panel:not(.is-closed) .dock-tab { pointer-events: none; }
.dock-burger { position: relative; width: 18px; height: 8px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; flex: none; transition: height .2s ease; }
.dock-tab:hover .dock-burger { height: 12px; }
/* Farbbalken: sitzen immer am unteren Rand der sichtbaren Fläche, erstes Feld in Blockfarbe */
.dock-stripes {
  position: absolute; bottom: 0; height: var(--sh); z-index: 1; pointer-events: none;
  left: calc((1 - var(--dk)) * (50% - var(--tw) / 2)); right: calc((1 - var(--dk)) * (50% - var(--tw) / 2));
  display: flex;
}
.dock-stripes::before, .dock-stripes i { content: ""; flex: 1; }
/* Farben der Textmarker */
.dock-stripes i:nth-child(1) { background: var(--m-social); }
.dock-stripes i:nth-child(2) { background: var(--m-campaign); }
.dock-stripes i:nth-child(3) { background: var(--m-design); }
.dock-stripes i:nth-child(4) { background: var(--m-events); }
.dock-stripes i:nth-child(5) { background: var(--m-deal); }
@media (prefers-reduced-motion: reduce) { .dock-burger { transition: none; } }
.markpill { bottom: 72px; }
@media (max-width: 760px) {
  .dock-grid { grid-template-columns: 1fr; gap: 22px; }
  .dock-nav { order: -1; display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 26px; border-left: 0; padding-left: 0; }
  .dock-nav a { font-size: clamp(1.15rem, 5.2vw, 1.5rem); line-height: 1.25; }
  .dock-nav a::before { display: none; }
  .dock-left { border-top: 1px solid rgba(255, 255, 255, .45); padding-top: 18px; }
  .dock-big { font-size: 1.2rem; margin-bottom: 14px; }
  .dock-actions { gap: 8px; margin-bottom: 14px; }
  .dock-actions .pill { min-height: 38px; padding: 0 14px; font-size: .86rem; }
  .dock-mid { font-size: 1rem; }
  .dock-mid br { display: none; }
  .adr-sep { display: inline; }
  .markpill { bottom: 68px; }
}
@media print { .dock { display: none; } .dock-end { display: none; } }

/* =====================================================================
   v37: Handgezeichnete Unterstreichung, Mauszeiger, Schrift-Verwandlung
   ===================================================================== */

/* ---------- Handgezeichnete Linie: zeichnet sich beim Drüberfahren ---------- */
.draw-t { position: relative; }
.draw {
  position: absolute; left: -3%; width: 106%; top: 100%; height: .6em; margin-top: -.12em;
  pointer-events: none; color: var(--draw, var(--blue));
}
.draw svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.draw path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.has-draw:hover, .has-draw:focus-visible, .has-draw.is-drawn { text-decoration-color: transparent; }
.bar-lnk.is-active, .dock-panel, .cl-dark { --draw: var(--white); }
html[data-theme="dark"] { --draw: #7D9BFF; }
html[data-theme="dark"] .bar-lnk.is-active, html[data-theme="dark"] .dock-panel { --draw: var(--white); }
/* Link mit Pfeil: Linie immer sichtbar, beim Drüberfahren neu gezeichnet */
.lk-dl {
  display: inline-flex; align-items: center; gap: 12px; min-height: 46px; text-decoration: none; color: var(--ink);
  font-family: var(--f-serif); font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1;
}
.lk-dl .lk-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); flex: none; }
.lk-dl .lk-ic svg { width: 16px; height: 16px; }
.lk-dl:hover { color: var(--ink); }
.lk-dl:hover .lk-ic { background: var(--ink); color: var(--paper); }


/* ---------- Mauszeiger: schlichter Pfeil, auf Links blau ---------- */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5.6 3.4v16.2c0 .6.7.8 1 .4l3.9-4.4c.3-.3.6-.4 1-.4h6c.6 0 .8-.7.4-1L6.6 2.9c-.4-.3-1 0-1 .5z' fill='%230A1240' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto; }
  html[data-theme="dark"], html[data-theme="dark"] body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5.6 3.4v16.2c0 .6.7.8 1 .4l3.9-4.4c.3-.3.6-.4 1-.4h6c.6 0 .8-.7.4-1L6.6 2.9c-.4-.3-1 0-1 .5z' fill='%23fff' stroke='%230B1033' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto; }
  :is(a, button, summary, label, select, [role="button"], .tile, .prj-head, .marker, .record) {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5.6 3.4v16.2c0 .6.7.8 1 .4l3.9-4.4c.3-.3.6-.4 1-.4h6c.6 0 .8-.7.4-1L6.6 2.9c-.4-.3-1 0-1 .5z' fill='%230042FF' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, pointer !important;
  }
  :is(a, button, summary, label, select, [role="button"], .tile, .prj-head, .marker, .record) * { cursor: inherit !important; }
  .pill[disabled], .prj.is-open .prj-head.no-toggle { cursor: inherit !important; }
}

/* ---------- Schrift-Verwandlung: Buchstaben nahe am Zeiger ändern die Stärke ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mf-w { white-space: nowrap; }
.nw { white-space: nowrap; }
.mf-c.is-serif { -webkit-text-stroke: calc(var(--k, 0) * .05em) currentColor; }
[data-morph].is-locked { white-space: nowrap; text-wrap: nowrap; }


/* =====================================================================
   v38: Corporate Design. Eine Marke, gleiche Regeln in beiden Versionen.
   Farben: Blau = Marke (Wortmarke, Überschriften, Knöpfe, Linie),
           Navy = Text und dunkle Flächen, Weiß = Papier,
           fünf Signalfarben nur für Kategorien (Marker, Projekte, Farbcode).
   Schrift: Überschrift = Archivo fett breit + Instrument Serif kursiv,
            Unterzeile/Objekt = Archivo fett schmal in Versalien,
            Überzeile = Instrument Serif, Text = Instrument Sans.
   Formen: alles Klickbare rund (Pille, Kreis), Flächen und Rahmen eckig.
   ===================================================================== */
/* Wortmarke: dieselbe Formel wie die Überschriften */
.wm { display: inline-flex; align-items: baseline; gap: .26em; white-space: nowrap; color: var(--blue); text-decoration: none; line-height: 1; }
.wm:hover { color: var(--blue); }
.wm-a { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; }
.wm-b { font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: 1.2em; letter-spacing: -.01em; }
.bar-name.wm { font-size: 1.08rem; }

/* Farbcode: Blau + die fünf Signalfarben. Oben an jeder Seite, unten im Menü-Reiter */
:root { --code: linear-gradient(90deg, var(--blue) 0 16.667%, var(--m-social) 0 33.333%, var(--m-campaign) 0 50%, var(--m-design) 0 66.667%, var(--m-events) 0 83.333%, var(--m-deal) 0); }
/* Eigenes Element statt Pseudo-Element: Safari 26 liest die Hintergrundfarbe
   des obersten festen Elements und färbt damit seine Leiste. Grundfarbe Blau,
   der bunte Code liegt als Bild darüber. Bewusst ohne pointer-events: none,
   damit es bei der Abtastung als oberstes Element zählt. */
.tint { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 31; background-color: #0A1240; background-image: var(--code); }
@media print { .tint { display: none; } }
.bar-in { padding-top: 4px; }

/* Überzeilen: überall gleich */
.hero-k, .cl-kick, .hl-k { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.1; color: var(--muted); }
.hl-proj .hl-k, .cl-dark .cl-kick { color: #AEBBEA; }
/* 404: gleiche Marke */
.notfound::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--code); }
.notfound { position: relative; }
.nf-wm { color: var(--white); font-size: 1.1rem; margin-bottom: clamp(28px, 6vh, 56px); }
.nf-wm:hover { color: var(--on-blue); }

/* =====================================================================
   Porträt: fünf Varianten zum Vergleichen (html data-bild)
   pass | notiz | daten | reveal | film. Am Rechner seitlich neben der
   Überschrift, am Handy klein über der Überzeile.
   ===================================================================== */
.por { position: absolute; inset: 0; z-index: 4; pointer-events: none; text-align: left; }
.por > * { display: none; pointer-events: auto; }
html[data-bild="pass"] .por .pass-hang, html[data-bild="notiz"] .por .note,
html[data-bild="daten"] .por .dat, html[data-bild="reveal"] .por .rev, html[data-bild="film"] .por .film { display: block; }
.por img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; filter: grayscale(1) contrast(1.06); }
.scene-hero .por { opacity: calc(1 - var(--h, 0) * 1.15); transform: translateY(calc(var(--h, 0) * -70px)); }
html:not(.js) .por { display: none; }

/* ---------- 1 · Pass am Band ---------- */
.pass-hang {
  --pw: clamp(150px, 13.5vw, 200px); --strap: clamp(46px, 7vh, 80px);
  position: absolute; top: 64px; right: max(18px, 4.5vw); width: var(--pw);
  transform-origin: 50% 0; transform: rotate(var(--sw, 0deg)); touch-action: pan-y; cursor: grab;
}
.pass-hang.is-drag { cursor: grabbing; }
.pass-strap {
  position: absolute; left: 50%; bottom: calc(100% - var(--strap) - 6px); width: 20px; height: calc(var(--strap) + 420px);
  transform: translateX(-50%); background: var(--blue); overflow: hidden; display: flex; justify-content: center;
}
.pass-strap > span {
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; color: var(--white);
  font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; line-height: 20px;
}
.pass-clip { position: absolute; left: 50%; top: calc(var(--strap) - 8px); width: 28px; height: 16px; transform: translateX(-50%); background: var(--ink); z-index: 1; }
.pass {
  position: relative; margin: calc(var(--strap) + 4px) 0 0; width: var(--pw); background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); font-size: calc(var(--pw) / 13.5); display: flex; flex-direction: column;
}
.pass-top { display: flex; justify-content: center; align-items: center; height: 2.1em; background: var(--blue); }
.pass-slot { width: 2.6em; height: .7em; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.pass .pass-photo { width: 100%; height: auto; aspect-ratio: 1; }
.pass-cap { display: flex; flex-direction: column; gap: .25em; padding: .8em .8em .7em; }
.pass-name { display: flex; align-items: baseline; gap: .26em; color: var(--blue); line-height: 1; font-size: 1.12em; white-space: nowrap; }
.pass-name .wm-a { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; }
.pass-name .wm-b { font-family: var(--f-serif); font-style: italic; font-size: 1.2em; }
.pass-role { font-family: var(--f-serif); font-size: .95em; line-height: 1.15; color: var(--muted); }
.pass-acc {
  display: block; background: var(--ink); color: var(--paper); padding: .35em .8em .3em;
  font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: 1.45em; line-height: 1; letter-spacing: .02em; text-transform: uppercase;
}
.pass-code { display: block; height: .55em; background: var(--code); }

/* ---------- 2 · Notiz: Foto mit handgezeichnetem Kringel, Pfeil und Satz ---------- */
.note { position: absolute; top: 92px; right: max(18px, 5vw); width: clamp(150px, 14vw, 196px); color: var(--draw, var(--blue)); }
.note-pic { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--blue); }
.note-svg { position: absolute; left: -24%; top: -24%; width: 148%; height: 148%; overflow: visible; pointer-events: none; }
.note-svg path { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.1; stroke-dashoffset: 1.05; }
.note.is-in .note-svg path { animation: note-draw .9s cubic-bezier(.65, 0, .35, 1) forwards; }
.note.is-in .note-svg path:nth-child(2) { animation-delay: .7s; animation-duration: .6s; }
.note.is-in .note-svg path:nth-child(3) { animation-delay: 1.2s; animation-duration: .25s; }
@keyframes note-draw { to { stroke-dashoffset: 0; } }
.note-txt {
  position: absolute; left: -64%; bottom: -30%; transform: rotate(-7deg); white-space: nowrap; opacity: 0;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1; color: var(--ink);
}
.note.is-in .note-txt { animation: note-in .4s 1.35s forwards; }
@keyframes note-in { to { opacity: 1; } }

/* ---------- 3 · Datenblatt: Foto mit Index-Tabelle ---------- */
.dat { position: absolute; top: 92px; left: max(18px, 4.5vw); width: clamp(160px, 14.5vw, 210px); margin: 0; color: var(--ink); }
.dat .dat-pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--blue); }
.dat-t { margin: 0; border-top: 2px solid var(--ink); }
.dat-t div { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .78rem; line-height: 1.3; }
.dat-t dt { color: var(--muted); }
.dat-t dd { margin: 0; font-weight: 600; }

/* ---------- 4 · Reveal: Foto kommt hinter dem Farbcode hervor ---------- */
.rev { position: absolute; top: 92px; right: max(18px, 5vw); width: clamp(150px, 14vw, 200px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--blue); }
.rev-bars { position: absolute; inset: 0; display: flex; pointer-events: none; }
.rev-bars i { flex: 1; transform: translateY(0); transition: transform .7s cubic-bezier(.7, 0, .2, 1); }
.rev-bars i:nth-child(1) { background: var(--blue); }
.rev-bars i:nth-child(2) { background: var(--m-social); transition-delay: .06s; }
.rev-bars i:nth-child(3) { background: var(--m-campaign); transition-delay: .12s; }
.rev-bars i:nth-child(4) { background: var(--m-design); transition-delay: .18s; }
.rev-bars i:nth-child(5) { background: var(--m-events); transition-delay: .24s; }
.rev-bars i:nth-child(6) { background: var(--m-deal); transition-delay: .3s; }
.rev.is-in .rev-bars i { transform: translateY(calc(-100% + 7px)); }
.rev.is-in:hover .rev-bars i { transform: translateY(-82%); transition-duration: .35s; }

/* ---------- 5 · Filmstreifen: läuft beim Scrollen ---------- */
.film {
  --fw: clamp(132px, 11.5vw, 168px);
  position: absolute; top: 64px; left: max(18px, 4.5vw); width: var(--fw); height: min(560px, calc(100vh - 140px));
  background: var(--navy); overflow: hidden;
}
.film::before, .film::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 9px; z-index: 1;
  background: repeating-linear-gradient(180deg, transparent 0 7px, var(--white) 7px 16px, transparent 16px 22px);
}
.film::before { left: 6px; } .film::after { right: 6px; }
.film-roll { display: flex; flex-direction: column; gap: 10px; padding: 0 24px; transform: translateY(var(--fy, 0px)); }
.film-fr { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blue); flex: none; }
.film-fr:nth-child(4n + 2) img { transform: scale(1.9); object-position: 50% 26%; }
.film-fr:nth-child(4n + 3) img { filter: grayscale(1) contrast(1.4) brightness(1.05); }
.film-fr:nth-child(4n + 4) img { transform: scale(1.35); object-position: 30% 18%; }
.film-k { display: block; padding: 0 24px; color: var(--m-social); font-family: var(--f-display); font-weight: 800; font-stretch: 70%; font-size: 9px; letter-spacing: .14em; line-height: 10px; }

/* ---------- Handy: klein und mittig über der Überzeile ---------- */
@media (max-width: 900px) {
  .por { position: relative; inset: auto; height: 150px; margin: 0 auto 14px; max-width: 100%; }
  .scene-hero .por { position: absolute; left: 0; right: 0; top: calc(64px + 10px); height: 150px; }
  .scene-hero.is-live .hero-copy { top: calc(64px + 10px + 160px); }
  .pass-hang { --pw: 84px; --strap: 20px; top: -36px; left: calc(50% - 42px); right: auto; }
  .cl-hero .pass-hang { top: -36px; }
  .note { top: 8px; left: calc(50% - 56px); right: auto; width: 112px; }
  .note-txt { left: 118%; bottom: 12%; font-size: 1.15rem; }
  .note-svg path:nth-child(2), .note-svg path:nth-child(3) { display: none; }
  .dat { top: 10px; left: 50%; transform: translateX(-50%); width: min(330px, calc(100vw - 40px)); display: none; }
  html[data-bild="daten"] .por .dat { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; }
  .dat .dat-pic { aspect-ratio: 4 / 5; }
  .rev { top: 6px; left: calc(50% - 56px); right: auto; width: 112px; }
  .film { top: 10px; left: 0; right: 0; width: auto; height: 128px; }
  .film::before, .film::after { top: auto; bottom: auto; left: 0; right: 0; width: auto; height: 9px; background: repeating-linear-gradient(90deg, transparent 0 7px, var(--white) 7px 16px, transparent 16px 22px); }
  .film::before { top: 6px; } .film::after { bottom: 6px; }
  .film-roll { flex-direction: row; padding: 22px 0; height: 100%; transform: translateX(var(--fy, 0px)); }
  .film-fr { height: 100%; width: auto; }
  .film-k { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rev-bars i { transition: none; }
  .note.is-in .note-svg path, .note.is-in .note-txt { animation-duration: .01s; animation-delay: 0s; }
}

/* ---------- Varianten-Wahl (nur Vorschau oder ?bild=) ---------- */
.pick {
  position: fixed; z-index: 44; left: 14px; bottom: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: calc(100vw - 28px);
  padding: 5px 5px 5px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink);
  font-size: .8rem; font-weight: 600;
}
.pick-k { margin-right: 4px; color: var(--muted); }
.pick button { border: 0; border-radius: 999px; padding: 6px 11px; background: none; color: inherit; font: inherit; }
.pick button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
@media (max-width: 760px) { .pick { left: 50%; bottom: 66px; transform: translateX(-50%); width: max-content; border-radius: 0; padding: 6px; justify-content: center; } }
@media print { .pick, .por { display: none; } }
.pass-photo, .note-pic, .dat-pic { display: block; overflow: hidden; }
.note, .rev, .film { margin: 0; }

/* Flyer, mittlere Seite: Termine mit Datum, Stadt und Ort (sechs Zeilen passen auf die Seite) */
.fp-mid .fp-h { margin-bottom: 3.6cqw; }
.fp-ev { display: block; margin-bottom: 2.2cqw; }
.fp-d { display: block; font-family: var(--f-serif); font-size: 6.2cqw; line-height: 1.05; opacity: .82; }
.fp-v { display: block; font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 9.6cqw; line-height: .95; white-space: nowrap; }

/* =====================================================================
   Anschreiben (nur auf Firmenseiten wie /holy): Brief nach dem Kopf,
   links die Eckdaten als kleine Tabelle, rechts der Text, am Ende die
   Unterschrift, die sich beim Ankommen zeichnet.
   ===================================================================== */
.letter { position: relative; padding: clamp(80px, 11vw, 140px) 0; background: var(--paper); border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.letter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: clamp(26px, 4vw, 64px) clamp(28px, 5vw, 80px); align-items: start; }
.letter-head { grid-column: 1 / -1; }
.letter-head .hl-k, .letter-head .cl-kick { margin: 0 0 10px; }
.letter-head .sec-h, .letter-head .mix { margin: 0; }
.letter-meta { position: sticky; top: 96px; }
.letter-meta dl { margin: 0; border-top: 2px solid var(--ink); }
.letter-meta dl div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.35; }
.letter-meta dt { color: var(--muted); }
.letter-meta dd { margin: 0; font-weight: 600; color: var(--ink); }
.letter-tag { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: var(--m-social); color: var(--navy); font-size: .8rem; font-weight: 700; }
.letter-body { max-width: 62ch; color: var(--ink); }
.letter-body p { margin: 0 0 1.05em; font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.62; text-wrap: pretty; }
.letter-body .letter-hi { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--blue); margin-bottom: .7em; }
.letter-body .letter-bye { margin: 1.8em 0 0; }
.sig { margin: 6px 0 0 -4px; width: min(210px, 70%); color: var(--blue); }
.sig svg { display: block; width: 100%; height: auto; overflow: visible; }
.sig path { fill: none; stroke: currentColor; stroke-width: var(--sw, 3); stroke-linecap: round; stroke-linejoin: round; }
.letter-body .letter-name { margin: 2px 0 0; font-size: 1rem; font-weight: 600; }
.cl-page .letter { border-top: 0; }
@media (max-width: 860px) {
  .letter-grid { grid-template-columns: minmax(0, 1fr); }
  .letter-meta { position: static; }
}
@media print { .letter { padding: 0 0 24px; border: 0; } .letter-meta { position: static; } }

/* ---------- Firmenseiten: Reiter „Anschreiben | Bewerbungsseite“ ---------- */
html[data-view="brief"] .site-only { display: none !important; }
html[data-view="seite"] .letter { display: none; }
html[data-view="brief"] .bar nav[aria-label="Abschnitte"], html[data-view="brief"] .bar-cv { display: none; }
.bar nav.vtabs { display: flex !important; flex: none; } /* die Leiste blendet am Handy sonst jedes nav aus */
.vtabs { display: flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
html[data-view="brief"] .vtabs { margin-right: auto; }
.vtab { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.vtab:hover { color: var(--blue); }
.vtab[aria-current="page"] { background: var(--blue); color: var(--white); }
.vtab .vt-s { display: none; }
/* gleitendes Feld: rutscht beim Tippen rüber und lässt sich mit dem Finger schieben */
.vtabs.has-thumb { position: relative; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.vtabs.has-thumb .vtab[aria-current="page"] { background: none; color: var(--ink); }
.vtabs.has-thumb > a.vtab { position: relative; -webkit-user-drag: none; }
.vt-thumb { position: absolute; left: 0; top: 0; z-index: 2; border-radius: 999px; background: var(--blue); overflow: hidden; pointer-events: none;
  transition: transform .52s cubic-bezier(.3, 1.32, .45, 1), width .52s cubic-bezier(.3, 1.32, .45, 1), scale .22s ease; }
.vt-ghost { position: absolute; left: 0; top: 0; transition: transform .52s cubic-bezier(.3, 1.32, .45, 1); }
.vt-ghost .vtab { position: absolute; top: 0; padding: 0; justify-content: center; color: var(--white) !important; background: none !important; }
.vtabs.is-drag .vt-thumb { scale: 1.07; box-shadow: 0 6px 18px rgba(10, 18, 64, .22); }
.vtabs.is-drag .vt-thumb, .vtabs.is-drag .vt-ghost, .vtabs.no-anim .vt-thumb, .vtabs.no-anim .vt-ghost { transition-property: scale; }
@media (prefers-reduced-motion: reduce) { .vt-thumb, .vt-ghost { transition: none; } }
.letter.is-tab { padding-top: clamp(118px, 13vw, 168px); border-top: 0; min-height: 100vh; min-height: 100svh; }
.letter-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 34px 0 0 !important; font-size: 1rem !important; }
.has-views .bar nav[aria-label="Abschnitte"] { display: none; } /* Firmenseiten: Reiter statt Abschnitte, die stehen im Menü */
.has-views .vtabs { margin-right: auto; }
@media (max-width: 860px) {
  .has-views .bar-name { display: none; }
  .has-views .bar-in { gap: 10px; }
  .vtab { padding: 0 12px; }
}
@media (max-width: 520px) { .vtab .vt-l { display: none; } .vtab .vt-s { display: inline; } .vtab { padding: 0 11px; } }
@media print { html[data-view] .site-only, html[data-view] .letter { display: block !important; } .vtabs { display: none; } }

/* Vollbild-Knopf (nur am Rechner, wenn der Browser es kann; Taste F) */
.tg-fs[hidden] { display: none !important; }
.tg-fs .ic-out { display: none; }
html.is-fs .tg-fs .ic-in { display: none; }
html.is-fs .tg-fs .ic-out { display: block; }
@media (max-width: 860px), (hover: none) { .tg-fs { display: none !important; } }

/* ---------- Vollbild-Hinweis beim ersten Besuch ---------- */
.fs-hint { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.fs-hint-b { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 9px 10px 9px 14px; background: var(--ink); color: var(--paper);
  font-size: .88rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(-6px);
  transition: opacity .25s ease, transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.fs-hint-b::before { content: ""; position: absolute; top: -5px; right: 16px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); }
.fs-hint.is-on .fs-hint-b { opacity: 1; transform: none; }
.fs-hint.is-off .fs-hint-b { opacity: 0; transform: translateY(-4px); transition-duration: .25s; }
.fs-hint kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border: 1.5px solid currentColor; border-radius: 5px;
  font: inherit; font-family: var(--f-display); font-weight: 900; font-size: .74rem; line-height: 1; }
.fs-hint-c { position: absolute; left: 0; top: 0; overflow: visible; transform-origin: 6px 3px; opacity: 0; }
.fs-hint-c path { fill: var(--ink); stroke: var(--paper); stroke-width: 1.6; stroke-linejoin: round; }
.fs-hint.is-off .fs-hint-c { opacity: 0 !important; transition: opacity .2s; }
.tg-fs { position: relative; }
.tg-fs.is-ping { background: var(--blue); color: var(--white); border-color: var(--blue); transition: background-color .15s, color .15s; }
.tg-fs.is-ping::after { content: ""; position: absolute; inset: -1px; border-radius: 999px; pointer-events: none; animation: fs-ping 1s ease-out 2; }
@keyframes fs-ping { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 55%, transparent); } to { box-shadow: 0 0 0 14px color-mix(in srgb, var(--blue) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .tg-fs.is-ping::after { animation: none; } }
