/* Schriften selbst gehostet (Google Fonts, SIL Open Font License), nur lateinischer Zeichensatz */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-mono-400-latin.woff2") format("woff2");
}

:root {
  --bg: #0e0f11;
  --surface: #17181b;
  --surface-2: #1b1c20;
  --surface-3: #1f2025;
  --line: #2a2b30;
  --line-2: #34353b;
  --text: #f2f2f0;
  --text-2: #b9babe;
  --muted: #a6a7ab;
  --faint: #8d8e93;
  --accent: #ffb547;
  --accent-ink: #0e0f11;
  --radius: 24px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Schibsted Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.section { padding-top: 110px; padding-bottom: 40px; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 15, 17, .84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a.nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
}
.progress { height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
  padding-top: 80px;
  padding-bottom: 60px;
}
.hero-text { flex: 999 1 560px; min-width: 0; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.line { display: inline-block; vertical-align: top; overflow: hidden; padding: 0 .1em .06em 0; margin-right: -.1em; white-space: nowrap; }
.line > span { display: block; }
.role { margin-top: 28px; font-family: var(--mono); font-size: 14px; color: var(--accent); }
.lead { margin-top: 14px; max-width: 540px; font-size: 19px; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.portrait { flex: 1 1 280px; max-width: 360px; border-radius: var(--radius); overflow: hidden; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Vita: stacking cards */
.vita { display: flex; flex-wrap: wrap; gap: 48px; }
.vita-head { flex: 1 1 280px; align-self: flex-start; position: sticky; top: 110px; }
.vita-head h2 { line-height: 1.02; }
.vita-head .muted { margin-top: 16px; max-width: 360px; }
.vita-main { flex: 2 1 520px; min-width: 0; }
.stack { list-style: none; margin: 0 0 12px; padding: 0; }
.stack-card {
  position: sticky;
  top: 110px;
  margin-bottom: 16px;
  padding: 22px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s;
}
.stack-card:nth-child(2) { top: 122px; background: var(--surface-2); }
.stack-card:nth-child(3) { top: 134px; background: var(--surface-3); }
.stack-card:nth-child(4) { top: 146px; background: #222328; }
.stack-card:nth-child(5) { top: 158px; }
.stack-card:hover { border-color: #4a4b52; }
.stack-label { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.stack-card h3 { margin: 8px 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; hyphens: manual; }
.stack-card p { color: var(--text-2); font-size: 17px; line-height: 1.55; }
.stack-card.is-now { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.stack-card.is-now .stack-label,
.stack-card.is-now p { color: var(--accent-ink); }

.sport {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sport .photo { flex: 0 1 240px; border-radius: 14px; overflow: hidden; }
.sport img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 24%; transition: transform .6s var(--ease); }
.sport .photo:hover img { transform: scale(1.05); }
.sport-text { flex: 1 1 260px; }
.sport-text .stack-label { display: block; margin-bottom: 6px; }
.sport p { color: var(--text-2); }

/* Projects */
#arbeit h2 { margin-bottom: 40px; }
.projects { display: grid; gap: 28px; margin-bottom: 20px; }
.proj {
  display: flex;
  flex-wrap: wrap;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  transition: border-color .3s;
}
.proj:hover { border-color: #4a4b52; }
.proj-text { flex: 1 1 420px; min-width: 0; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.proj h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; }
.proj-text p { color: var(--text-2); }
.proj .tech { margin-top: auto; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.arrow { display: inline-block; color: var(--accent); transition: transform .35s var(--ease); }
.proj:hover .arrow { transform: translate(6px, -6px); }
.proj-shot { flex: 1.3 1 460px; min-width: 0; padding: 28px; display: flex; align-items: center; }
.proj-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .6s var(--ease);
}
.proj:hover .proj-shot img { transform: scale(1.02); }

/* Photo marquee */
.fotos-head { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; margin-bottom: 32px; }
.fotos-head > div { flex: 1 1 320px; }
.fotos-head > p { flex: 1.4 1 420px; }
.strip {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline-offset: -3px; }
.marquee { display: flex; width: max-content; }
.strip-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.strip-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.strip-btn:hover { border-color: var(--accent); background: var(--surface); }
.marquee .photo { display: block; margin-right: 16px; border-radius: 18px; overflow: hidden; flex: none; }
.marquee img { height: 360px; width: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.marquee .photo:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 7, 8, .9); }
.lightbox img { display: block; max-width: 100%; max-height: 84vh; width: auto; border-radius: 12px; margin: 0 auto; }
.lightbox-caption { color: var(--text); font-size: 14px; text-align: center; margin-top: 10px; }
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .26); }

/* Contact */
.kontakt { padding-top: 100px; padding-bottom: 90px; }
.kontakt-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.05em; }
.big-mail {
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 6px;
  text-decoration: none;
  color: var(--accent);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .5s var(--ease);
}
.big-mail:hover { background-size: 100% 2px; }
.kontakt-body { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.kontakt-body > .muted { flex: 1 1 300px; }
.contact-form { flex: 2 1 480px; display: grid; gap: 14px; }
.form-row { display: flex; flex-wrap: wrap; gap: 14px; }
.form-row label { flex: 1 1 180px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label span { font-size: 13px; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #2f3036;
  border-radius: 12px;
  padding: 13px 14px;
  resize: vertical;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13px; color: var(--faint); }
.form-note:empty { display: none; }
.form-note:not(.is-error) { color: var(--text-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-note.is-error { color: #ff9a85; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 32px; }
.legal h2 { font-size: 21px; letter-spacing: -0.01em; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--accent); }
.placeholder { background: #4a3a12; color: #ffe2a8; padding: 0 4px; border-radius: 4px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .line > span { animation: up 1s var(--ease) both; }
  .line.l2 > span { animation-delay: .1s; }
  .fade { animation: fade 1.2s .45s ease both; }
  .portrait img { animation: kb 18s ease-in-out infinite alternate; }
  @supports (animation-timeline: scroll()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@keyframes up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes grow { to { transform: scaleX(1); } }

/* Responsive */
@media (max-width: 720px) {
  .vita-head { position: static; }
  .stack-card { padding: 20px 22px; }
  .stack-card h3 { font-size: 21px; }
  .proj-text { padding: 28px; }
  .proj h3 { font-size: 25px; }
  .marquee img { height: 230px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header nav { gap: 16px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 48px; gap: 32px; }
  .portrait { order: -1; max-width: 200px; }
  .section { padding-top: 80px; }
  .stack-card { top: 84px !important; margin-bottom: 12px; }
  .proj-shot { padding: 0 20px 20px; }
  .contact-form .btn { justify-self: stretch; }
  .footer-inner { flex-direction: column; }
}
