@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --flaeche: #0A0A0B;
  --flaeche-2: #141416;
  --text: #F5F5F7;
  --neben: #A1A1A6;
  --akzent: #3D94FF;
  --hell: #F4F4F6;
  --ink: #18181A;
  --ink-neben: #55555B;

  --rand: clamp(16px, 5vw, 72px);
  --spur: 52px;               /* Platz für die Linie links neben dem Inhalt */
  --linie: 8px;
  --abstand: clamp(96px, 13vw, 184px);

  --h1: clamp(1.75rem, 4vw, 3.6rem);
  --h2: clamp(2rem, 4.4vw, 3.8rem);
  --satz: clamp(1.9rem, 4.4vw, 3.9rem);
  --portraet: clamp(112px, 21vw, 300px);
  --rolle: clamp(1.25rem, 1.9vw, 1.6rem);
}

*, ::before, ::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--flaeche); color-scheme: dark; scrollbar-color: #3A3A3F var(--flaeche); }
body { background: var(--flaeche); color: var(--text); font: 400 clamp(1.0625rem, 1.2vw, 1.1875rem)/1.55 "Hanken Grotesk", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
ol, ul { list-style: none; padding: 0; }
::selection { background: var(--akzent); color: var(--flaeche); }
a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; border-radius: 2px; }
.zertifikate a:focus-visible { outline-color: var(--ink); }

h1, h2 { font-weight: 300; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: var(--h2); }

.seite { position: relative; overflow-x: clip; }
.seite section, .fuss { position: relative; }
.seite section > :not(.ring), .fuss > * { position: relative; z-index: 2; }

/* Die Linie */
.linie { position: absolute; left: 0; top: 0; z-index: 1; display: none; pointer-events: none; overflow: visible; }
.js .linie { display: block; }
.linie path { fill: none; stroke: var(--akzent); stroke-width: var(--linie); }
.linie-spur { opacity: .28; }

.ring { position: absolute; z-index: 3; width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--akzent); background: var(--ring, var(--flaeche)); }

/* Berufliche Stationen: Logo des Arbeitgebers auf der Linie */
.station { position: absolute; z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--flaeche); }
.station img { width: 80%; height: auto; }
.station-bwi { background: var(--flaeche-2); box-shadow: inset 0 0 0 1px #FFFFFF24; }
.station-bwi img { width: 88%; }
.station-heute { width: 56px; height: 56px; }
.js .station-heute { transition: transform .5s cubic-bezier(.16, 1, .3, 1); transform: scale(.55); }
.js .angekommen .station-heute { transform: none; }

/* Links und Buttons */
a { color: inherit; }
.textlink { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.textlink:hover { text-decoration-color: var(--akzent); text-decoration-thickness: 2px; }
.knopf { display: inline-flex; align-items: center; gap: 12px; background: var(--akzent); color: var(--flaeche); border: 1px solid transparent; font-weight: 500; line-height: 1.3; padding: 13px 26px 13px 22px; border-radius: 999px; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.knopf:hover { background: #64A9FF; }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.icon-credly { width: 42px; height: 42px; margin: -11px -2px; }
.knopf-umriss { background: transparent; color: var(--text); border-color: #FFFFFF59; }
.knopf-umriss:hover { background: transparent; border-color: var(--akzent); color: var(--text); }
.knopf-umriss:hover .icon { color: var(--akzent); }
.zertifikate .knopf-umriss { color: var(--ink); border-color: #18181A59; }
.zertifikate .knopf-umriss:hover { background: var(--ink); border-color: var(--ink); color: var(--hell); }
.zertifikate .knopf-umriss:hover .icon { color: var(--hell); }

/* Einstieg */
.einstieg { min-height: 100svh; padding: clamp(20px, 3vw, 40px) var(--rand) clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.kopf .textlink { padding: 10px 0; }
.kopf-nav { display: flex; align-items: baseline; gap: clamp(14px, 2vw, 28px); }
.logo { height: 34px; width: auto; }
.einstieg-mitte { display: flex; justify-content: space-between; align-items: flex-start; gap: clamp(20px, 5vw, 80px); }
.einstieg-text { font-size: var(--h1); flex: 1 1 auto; min-width: 0; }
h1 { font-size: 1em; text-wrap: wrap; }
.aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(24px, 3vw, 44px); font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); letter-spacing: 0; }
.portraet { flex: 0 0 var(--portraet); }
.portraet img { width: 100%; border-radius: 50%; }

.stationen { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; margin-top: auto; padding-top: clamp(40px, 6vh, 80px); padding-right: 48px; }
.stationen li { position: relative; padding-top: 46px; }
.stationen .station { left: -13px; top: -13px; }
.stationen .station-heute { left: -17px; top: -17px; }
.stationen b { display: block; font-weight: 400; font-size: clamp(.875rem, 1.25vw, 1.125rem); line-height: 1.25; hyphens: manual; }
.stationen li > span:last-child { display: block; margin-top: 6px; color: var(--neben); font-size: .875rem; font-variant-numeric: tabular-nums; }
.stationen .heute b { font-weight: 500; font-size: 1.375rem; line-height: 1.15; }

/* Antrieb */
.antrieb { padding: var(--abstand) var(--rand) calc(var(--abstand) + 64px) calc(var(--rand) + var(--spur)); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 72px); }
.antrieb h2, .antrieb p { grid-column: 2; font-size: var(--satz); font-weight: 300; letter-spacing: -.025em; line-height: 1.1; max-width: 23ch; padding-right: 72px; box-sizing: content-box; }
.antrieb h2 { color: var(--neben); margin-bottom: .3em; }
.stop-rechts { right: calc(var(--rand) + 13px); top: calc(var(--abstand) + var(--satz) * .55 - 11px); }

/* Zertifizierungen, helle Fläche */
.zertifikate { --ring: var(--hell); background: var(--hell); color: var(--ink); padding: var(--abstand) var(--rand) var(--abstand) calc(var(--rand) + var(--spur)); }
.stop { left: calc(var(--rand) + 1px); top: calc(var(--abstand) + var(--h2) * .54 - 11px); }
.spalten { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); }
.spalten h2 { margin-bottom: 20px; }
.zert-liste li { padding: 14px 0; border-top: 1px solid #18181A2E; line-height: 1.3; }
.zert-liste li.zert-erst { border-top: 0; padding-top: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.12; padding-bottom: 24px; }
.weiterbildung { margin-top: 24px; color: var(--ink-neben); max-width: 60ch; }

/* Mein Weg */
.weg { padding: var(--abstand) var(--rand) var(--abstand) calc(var(--rand) + var(--spur)); }
.weg-kopf { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); margin-bottom: clamp(40px, 6vw, 80px); align-items: start; }
.weg-kopf p { color: var(--neben); max-width: 46ch; }
.weg-liste li { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4px clamp(32px, 5vw, 72px); padding: 16px 0; align-items: baseline; }
.weg-liste .station { left: calc(-12px - var(--spur)); top: calc(-8px + var(--rolle) * .95 - .35em); }
.zeit { color: var(--neben); font-variant-numeric: tabular-nums; }
.rolle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px clamp(20px, 3vw, 40px); align-items: baseline; }
.weg-liste b { font-weight: 300; font-size: var(--rolle); line-height: 1.2; letter-spacing: -.01em; }
.weg-liste li:first-child b { color: var(--akzent); font-weight: 400; }
.rolle > span { color: var(--neben); }

/* Außerhalb der Arbeit, mit Foto über die Kante */
.privat { --ring: var(--flaeche-2); background: var(--flaeche-2); padding: var(--abstand) var(--rand) 0 calc(var(--rand) + var(--spur)); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); }
.privat-text p { margin-top: 16px; font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 300; letter-spacing: -.01em; line-height: 1.25; }
.explore { margin-bottom: -96px; z-index: 4 !important; }
.explore img { width: 100%; }

/* Kontakt */
.kontakt { padding: calc(96px + clamp(120px, 14vw, 200px)) var(--rand) var(--abstand) calc(var(--rand) + var(--spur)); }
.kontakt h2 { font-size: clamp(3rem, 10.5vw, 9.5rem); letter-spacing: -.04em; line-height: 1; text-wrap: nowrap; }
.endpunkt { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--akzent); margin-left: .07em; }
.kontakt p { margin: clamp(24px, 3vw, 40px) 0 28px; max-width: 46ch; color: var(--neben); }

/* Fußzeile */
.fuss { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 24px var(--rand) 32px; border-top: 1px solid #FFFFFF24; color: var(--neben); font-size: .9375rem; }
.fuss nav { display: flex; gap: 24px; }

/* Rechtstexte */
.recht { max-width: 72ch; padding: clamp(20px, 3vw, 40px) var(--rand) var(--abstand); }
.recht .kopf { margin-bottom: clamp(56px, 8vw, 112px); }
.recht h1 { font-size: var(--h2); margin-bottom: 28px; }
.recht h2 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -.01em; line-height: 1.25; font-weight: 400; margin: 40px 0 8px; }
.recht p { color: var(--neben); }
.recht .recht-zurueck { margin-top: 48px; }

/* Handy und schmale Fenster: Die Linie steht senkrecht */
@media (max-width: 999px) {
  :root { --spur: 44px; --linie: 6px; }
  .station, .station-heute { width: 44px; height: 44px; }
  .einstieg { min-height: 0; padding-bottom: var(--abstand); }
  .logo { height: 28px; }
  .umbruch { display: none; }
  .einstieg-mitte { flex-direction: column-reverse; }
  .portraet { flex: none; width: var(--portraet); }
  .stationen { display: block; margin-top: 44px; padding: 0 0 0 var(--spur); }
  .stationen li { padding: 0 0 22px; }
  .stationen .station, .stationen .station-heute { left: calc(-12px - var(--spur)); top: -9px; }
  .stationen b { font-size: inherit; }
  .stationen .heute b { font-size: inherit; line-height: 1.25; }
  .stationen li > span:last-child { margin-top: 2px; }

  .antrieb { padding: 24px var(--rand) var(--abstand) calc(var(--rand) + var(--spur)); grid-template-columns: minmax(0, 1fr); }
  .antrieb h2, .antrieb p { grid-column: 1; max-width: none; line-height: 1.18; padding-right: 0; box-sizing: border-box; }
  .zert-liste li.zert-erst { line-height: 1.2; }
  .stop-rechts { right: auto; left: var(--rand); top: calc(24px + var(--satz) * .59 - 10px); width: 20px; height: 20px; border-width: 4px; }

  .stop { left: var(--rand); top: calc(var(--abstand) + var(--h2) * .54 - 10px); width: 20px; height: 20px; border-width: 4px; }
  .spalten, .weg-kopf, .privat { grid-template-columns: minmax(0, 1fr); }
  .weg-liste li, .rolle { grid-template-columns: minmax(0, 1fr); }
  .weg-liste .station { top: 7px; }
  .privat { padding-right: var(--rand); }
  .explore { margin-bottom: -64px; }
  .kontakt { padding-top: calc(64px + 104px); }
  .kontakt h2 { font-size: clamp(2.2rem, 11.4vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .station-heute { transform: none; transition: none; }
  .knopf, .textlink { transition: none; }
}
