/* ==========================================================================
   philipp-grabner.com — Stylesheet
   Eine Familie (Archivo, variabel: Breite 62–125 %, Gewicht 100–900).
   Schwarz, warmes Weiß, ein Akzent (Helm-Orange). Film-Korn statt Deko.
   Mobile zuerst gedacht: alles stapelt, Touch-Ziele ≥ 40 px, kein Querscroll.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.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("../assets/fonts/archivo-latin-ext.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: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-italic-latin.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: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../assets/fonts/archivo-italic-latin-ext.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;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #000000;
  --surface: #121110;
  --surface-2: #1b1917;
  --ink: #f1ece2;
  --ink-2: #aaa398;
  --ink-3: #6f6a62;
  --line: rgba(241, 236, 226, 0.14);
  --line-strong: rgba(241, 236, 226, 0.3);
  --accent: #ff6a13;
  --accent-soft: #ffb07a;
  --accent-ink: #130800;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 118%;

  --gutter: clamp(20px, 5vw, 88px);
  --max: 1520px;
  --section: clamp(72px, 12vw, 176px);
  --radius: 4px;
  --top-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: var(--radius); font-weight: 700;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Display-Typo: eine Familie, zwei Breiten */
.h-section {
  font-weight: 800;
  font-stretch: var(--wide);
  font-variation-settings: "wdth" 116;
  font-size: clamp(36px, 6.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.h-sub {
  font-weight: 700;
  font-stretch: 110%;
  font-variation-settings: "wdth" 110;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 60ch;
}
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Film-Korn ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  opacity: 0.045;
  mix-blend-mode: screen;
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -5%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(4%, 4%); }
}
/* Handy: Korn steht still (GPU schonen) */
@media (max-width: 860px), (hover: none) {
  .grain { animation: none; inset: 0; opacity: 0.035; }
}

/* ---------- Intro (einmal pro Sitzung, nur Desktop) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 120;
  background: var(--bg);
  display: grid; place-items: center;
  overflow: hidden;
}
.intro__name {
  font-weight: 900;
  font-stretch: var(--wide);
  font-variation-settings: "wdth" 120;
  font-size: clamp(30px, 7.5vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: flex-start;
  padding-inline: var(--gutter);
}
.intro__line { overflow: hidden; display: block; }
.intro__line > span { display: block; }
.intro__bar {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.intro__tc {
  position: absolute; left: var(--gutter); bottom: 28px;
  color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
}
.intro__skip {
  position: absolute; right: var(--gutter); bottom: 24px;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 999px;
}
.intro__skip:hover { color: var(--ink); border-color: var(--line-strong); }
@media (max-width: 860px) { .intro { display: none; } }

/* ---------- Kopfzeile + Timeline-Scrubber ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.4s;
}
.top.is-solid {
  background: rgba(0, 0, 0, 0.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.top__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--top-h);
}
.brand {
  font-weight: 800; font-stretch: 112%; font-variation-settings: "wdth" 112;
  text-transform: uppercase; letter-spacing: 0.02em; font-size: 15px;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.brand__dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }
.nav { display: flex; gap: clamp(14px, 2vw, 32px); align-items: center; }
.nav a {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding: 8px 2px; position: relative;
  transition: color 0.25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.top__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang button {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  padding: 0 12px; min-height: 36px; color: var(--ink-2);
  transition: background-color 0.25s, color 0.25s;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.menu-btn { display: none; }

.scrub {
  position: relative; height: 22px; display: flex; align-items: center;
  border-top: 1px solid var(--line);
}
/* Die Spur endet vor dem Timecode, damit die letzte Marke nicht mit ihm kollidiert */
.scrub__bar { position: absolute; left: 0; right: 120px; top: -1px; height: 100%; }
.scrub__track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.scrub__fill {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.scrub__head {
  position: absolute; top: -5px; width: 2px; height: 12px; background: var(--accent);
  transform: translateX(-1px);
  box-shadow: 0 0 12px var(--accent);
}
.scrub__marks { position: absolute; left: 0; right: 0; top: 0; height: 100%; }
.scrub__mark {
  position: absolute; top: 0; transform: translateX(-50%);
  height: 100%; display: flex; flex-direction: column; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3);
  text-transform: uppercase; padding-top: 4px; white-space: nowrap;
  transition: color 0.25s;
}
.scrub__mark::before { content: ""; width: 1px; height: 5px; background: var(--ink-3); margin-bottom: 3px; }
.scrub__mark:hover, .scrub__mark.is-active { color: var(--ink); }
.scrub__tc {
  position: absolute; right: 0; top: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* Handy-Kopfzeile: nur Fortschrittslinie, Menü als Vollbild */
@media (max-width: 860px) {
  :root { --top-h: 56px; }
  .scrub { height: 8px; }
  .scrub__bar { right: 0; }
  .scrub__mark, .scrub__tc { display: none; }
  .scrub__head { top: -4px; height: 9px; }
  .nav {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 96px var(--gutter) 40px; gap: 6px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: clamp(30px, 8vw, 44px); font-weight: 800; font-stretch: 110%; text-transform: uppercase; color: var(--ink); padding: 10px 0; }
  .nav a::after { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; padding: 0 14px; min-height: 36px;
    border: 1px solid var(--line); border-radius: 999px; z-index: 101; position: relative;
  }
  .menu-btn span:last-child { display: none; }
  .menu-btn[aria-expanded="true"] span:first-child { display: none; }
  .menu-btn[aria-expanded="true"] span:last-child { display: inline; }
  .top .top__call { display: none; }
  .brand { font-size: 13px; }
  .top__row { gap: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 22px; min-height: 48px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent:hover { background: #ff7d33; border-color: #ff7d33; }
.btn--small { padding: 0 16px; min-height: 36px; font-size: 13px; }
.btn--ghost { border-color: transparent; color: var(--ink-2); padding-inline: 12px; }
.btn--ghost:hover { color: var(--ink); border-color: transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  /* minmax(0, 1fr): die Spur darf nie breiter werden als der Viewport (sonst schiebt langer Text die Zeile raus) */
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
  overflow: hidden; isolation: isolate;
  padding-top: calc(var(--top-h) + 60px);
  padding-bottom: clamp(24px, 5vh, 56px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: #000; }
.hero__media picture, .hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__media video, .hero__media img {
  transform: scale(1.06);
  filter: saturate(0.9) contrast(1.02);
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.62) 34%, rgba(0,0,0,0.18) 62%, rgba(0,0,0,0.4) 100%),
    radial-gradient(120% 80% at 50% 50%, transparent 40%, rgba(0,0,0,0.45) 100%);
}
.hero__bar {
  position: absolute; left: 0; right: 0; height: 14vh; background: var(--bg); z-index: 3;
}
.hero__bar--top { top: 0; transform-origin: top; }
.hero__bar--bottom { bottom: 0; transform-origin: bottom; }
.hero__inner { position: relative; z-index: 2; min-width: 0; }
.hero__title {
  font-weight: 900;
  font-stretch: var(--wide);
  font-variation-settings: "wdth" 120;
  font-size: clamp(46px, 15vw, 214px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-left: -0.03em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; will-change: transform; }
.hero__row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px; align-items: end; margin-top: clamp(24px, 3vw, 40px);
}
.hero__lede { font-size: clamp(17px, 1.45vw, 23px); line-height: 1.45; max-width: 40ch; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.hero__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(28px, 5vh, 64px);
  font-size: 12px; color: var(--ink-2); font-weight: 600; letter-spacing: 0.02em;
}
.hero__cap { display: flex; align-items: center; gap: 10px; }
.hero__cap .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.hero__scroll { display: flex; align-items: center; gap: 10px; }
.hero__scroll i {
  display: block; width: 1px; height: 34px; background: var(--ink-2); position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--ink); animation: scrollcue 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollcue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }
@media (max-width: 860px) {
  .hero { padding-top: calc(var(--top-h) + 48px); }
  /* Name muss in eine Zeile passen: schmalere Breite, Größe an die Viewport-Breite gebunden */
  .hero__title { font-size: clamp(40px, 12vw, 214px); font-stretch: 108%; font-variation-settings: "wdth" 108; letter-spacing: -0.015em; }
  .hero__row { grid-template-columns: 1fr; gap: 20px; }
  .hero__cta { justify-content: flex-start; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
  .hero__scroll { display: none; }
}

/* ---------- Abschnitts-Kopf ---------- */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px; align-items: end; margin-bottom: clamp(36px, 6vw, 88px);
}
.sec-head .lede { justify-self: end; }
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .sec-head .lede { justify-self: start; }
}

/* ---------- Was ich mache ---------- */
.services { padding-block: var(--section); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
  padding-block: clamp(40px, 7vw, 104px);
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service:nth-of-type(even) .service__demo { order: -1; }
.service__kicker { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.service__title { margin-bottom: 18px; }
.service__text { color: var(--ink-2); max-width: 54ch; }
.service__text + .service__text { margin-top: 14px; }
.service__demo { position: relative; min-width: 0; }
@media (max-width: 960px) {
  .service { grid-template-columns: 1fr; gap: 28px; }
  .service:nth-of-type(even) .service__demo { order: 0; }
}

/* Demo: Grade-Vergleich */
.grade {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); user-select: none; touch-action: pan-y;
  isolation: isolate;
}
.grade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grade__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.grade__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--ink);
  transform: translateX(-1px); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
}
.grade__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l-5 6 5 6M15 6l5 6-5 6'/></svg>");
  background-size: 22px; background-repeat: no-repeat; background-position: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.grade__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.grade__tag {
  position: absolute; top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,0.55); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none;
}
.grade__tag--a { left: 12px; }
.grade__tag--b { right: 12px; color: var(--accent-soft); }
.demo__cap { margin-top: 12px; font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Demo: Geräte */
.devices { position: relative; aspect-ratio: 16 / 11; }
.device {
  position: absolute; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.device--laptop { left: 0; top: 6%; width: 78%; aspect-ratio: 16 / 10; }
.device--phone { right: 0; bottom: 0; width: 26%; aspect-ratio: 9 / 19.5; border-radius: 22px; border-width: 2px; }
.device__bar {
  height: 22px; display: flex; align-items: center; gap: 5px; padding-left: 10px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.device__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.device__screen { position: relative; overflow: hidden; height: calc(100% - 22px); background: #fff; }
.device--phone .device__screen { height: 100%; }
.device__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.8s var(--ease-in-out); }
.device__screen img.is-on { opacity: 1; }
.device__label {
  position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,0.6); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* Demo: Agent arbeitet eine Sprachnachricht ab */
.agent {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(16px, 3vw, 28px);
  display: grid; gap: 16px; align-content: start;
}
.agent__bubble {
  justify-self: start; max-width: min(100%, 36ch);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px; padding: 12px 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.agent__bubble.is-on { opacity: 1; transform: none; }
.agent__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.agent__wave { display: inline-flex; gap: 2px; align-items: center; height: 14px; }
.agent__wave b { width: 2px; height: 5px; background: var(--accent); border-radius: 1px; }
.agent__wave b:nth-child(2n) { height: 9px; }
.agent__wave b:nth-child(3n) { height: 12px; }
.agent.is-playing .agent__wave b { animation: wave 0.7s ease-in-out infinite alternate; }
.agent.is-playing .agent__wave b:nth-child(2) { animation-delay: 0.1s; }
.agent.is-playing .agent__wave b:nth-child(3) { animation-delay: 0.2s; }
.agent.is-playing .agent__wave b:nth-child(4) { animation-delay: 0.05s; }
.agent.is-playing .agent__wave b:nth-child(5) { animation-delay: 0.25s; }
.agent.is-playing .agent__wave b:nth-child(6) { animation-delay: 0.15s; }
.agent.is-playing .agent__wave b:nth-child(7) { animation-delay: 0.3s; }
@keyframes wave { from { transform: scaleY(0.4); } to { transform: scaleY(1.6); } }
.agent__bubble p { font-size: 15px; line-height: 1.45; color: var(--ink); }
.agent__steps { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 14px; }
.agent__steps li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start;
  font-size: 14px; line-height: 1.45; color: var(--ink-2); min-height: 22px; opacity: 0.35;
  transition: opacity 0.3s, color 0.3s;
}
.agent__steps li.is-active, .agent__steps li.is-done { opacity: 1; }
.agent__steps li.is-done { color: var(--ink); }
.agent__steps li i {
  width: 16px; height: 16px; margin-top: 2px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); position: relative;
}
.agent__steps li.is-active i { border-color: var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.agent__steps li.is-done i { background: var(--accent); border-color: var(--accent); }
.agent__steps li.is-done i::after {
  content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.agent__steps li.is-active span::after {
  content: ""; display: inline-block; width: 2px; height: 0.95em; margin-left: 2px; vertical-align: -0.15em;
  background: var(--accent); animation: blink 0.8s steps(2) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { to { opacity: 0; } }
.agent__out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agent__result {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), border-color 0.4s;
  min-width: 0;
}
.agent__result.is-on { opacity: 1; transform: none; border-color: rgba(255,106,19,0.5); }
.agent__result svg { width: 34px; height: 34px; color: var(--accent); }
.agent__result strong { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.agent__result small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 520px) { .agent__out { grid-template-columns: 1fr; } }

/* ---------- Arbeiten (horizontal am Desktop) ---------- */
.work { padding-block: var(--section) 0; }
.work__head { margin-bottom: clamp(28px, 4vw, 56px); }
.work__pin { position: relative; overflow: hidden; }
.work__track {
  display: flex; gap: clamp(16px, 2.2vw, 32px); padding-inline: var(--gutter);
  padding-bottom: 20px; will-change: transform;
}
.card {
  flex: 0 0 auto; width: clamp(300px, 46vw, 780px);
  display: grid; gap: 14px; align-content: start; text-align: left; color: inherit;
}
.card--wide { width: clamp(300px, 50vw, 820px); }
.card--mini { width: clamp(240px, 22vw, 340px); }
.card--mini .card__title { font-size: clamp(17px, 1.2vw, 20px); }
.card--mini .card__media { aspect-ratio: 16 / 9; }
svg { max-width: 100%; }
.card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  background: var(--surface);
}
.card__media > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 0.9s var(--ease-out); }
.card:hover .card__media > img { transform: scale(1.0); }
.card__media--dark { background: #080808; }
.card__media--dark > img { object-fit: contain; }
.card__media--grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 3px; background: var(--bg); }
.card__media--grid.is-six { grid-template-columns: repeat(3, 1fr); }
.card__media--grid img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.card__idx {
  position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,0.6); color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.card__play {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(0,0,0,0.62); color: var(--ink);
  font-size: 12.5px; font-weight: 700;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 0.25s;
}
.card__play i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); position: relative; }
.card__play i::after {
  content: ""; position: absolute; left: 11px; top: 8px; border-style: solid;
  border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--accent-ink);
}
.card:hover .card__play { background: rgba(0,0,0,0.8); }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__title { font-size: clamp(20px, 1.9vw, 30px); font-weight: 700; font-stretch: 106%; letter-spacing: -0.01em; line-height: 1.15; }
.card__year { color: var(--ink-3); font-size: 13px; font-weight: 700; white-space: nowrap; }
.card__meta { color: var(--accent-soft); font-size: 13.5px; font-weight: 600; }
.card__text { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.card__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 2px; min-height: 32px; }
.card__link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.card:hover > .card__link svg, .card__link:hover svg { transform: translate(2px, -2px); }
.work__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--gutter) 0; font-size: 13px; color: var(--ink-2);
}
.work__count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
@media (max-width: 960px) {
  .work__track { flex-direction: column; padding-bottom: 0; gap: 40px; }
  .card, .card--wide, .card--mini { width: 100%; }
  .work__foot { display: none; }
}

/* ---------- Über mich ---------- */
.about { padding-block: var(--section); }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 6vw, 96px); align-items: start;
}
.about__body h2 { margin-bottom: 22px; }
.about__body .lede { margin-bottom: 22px; }
.about__p { color: var(--ink-2); max-width: 58ch; margin-bottom: 16px; }
.about__aside { position: sticky; top: calc(var(--top-h) + 40px); display: grid; gap: 32px; }
.facts { border-top: 1px solid var(--line); }
.facts li {
  display: grid; grid-template-columns: minmax(110px, 0.55fr) minmax(0, 1.45fr); gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.facts li span:first-child { color: var(--ink-3); font-weight: 600; }
.tools { display: grid; gap: 14px; }
.tools__h { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.tools__row { display: grid; grid-template-columns: minmax(110px, 0.55fr) minmax(0, 1.45fr); gap: 16px; align-items: start; }
.tools__row > span { color: var(--ink-3); font-weight: 600; font-size: 15px; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink);
}
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__aside { position: static; }
}
@media (max-width: 520px) {
  .facts li, .tools__row { grid-template-columns: 1fr; gap: 3px; }
  .tools__row > span { padding-top: 0; }
}

/* ---------- Kontakt ---------- */
.contact {
  padding-block: var(--section); position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
}
.contact__glow {
  position: absolute; left: 50%; top: 40%; width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255,106,19,0.22) 0%, rgba(255,106,19,0.06) 35%, transparent 65%);
}
.contact .wrap { position: relative; z-index: 1; }
.contact__title {
  font-weight: 900; font-stretch: var(--wide); font-variation-settings: "wdth" 120;
  font-size: clamp(60px, 15vw, 260px); line-height: 0.86; letter-spacing: -0.02em; text-transform: uppercase;
  margin-left: -0.03em;
}
.contact__title .line { display: block; overflow: hidden; }
.contact__title .line > span { display: block; }
.contact__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px;
  margin-top: clamp(28px, 4vw, 56px); align-items: start;
}
.contact__lede { font-size: clamp(18px, 1.5vw, 23px); max-width: 40ch; }
.contact__note { color: var(--ink-2); margin-top: 14px; font-size: 15px; }
.contact__actions { display: grid; gap: 12px; justify-items: start; }
.cbtn {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px;
  width: min(100%, 520px); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(18,17,16,0.7); transition: border-color 0.25s, transform 0.3s var(--ease-out), background-color 0.25s;
}
.cbtn:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(27,25,23,0.9); }
.cbtn__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.cbtn__icon svg { width: 20px; height: 20px; }
.cbtn--primary .cbtn__icon { background: var(--accent); color: var(--accent-ink); }
.cbtn__text { display: grid; gap: 2px; min-width: 0; }
.cbtn__text strong { font-size: 16px; }
.cbtn__text span { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.cbtn__arrow { color: var(--ink-3); font-weight: 700; font-size: 18px; }
@media (max-width: 860px) {
  .contact__title { font-size: clamp(48px, 15vw, 260px); font-stretch: 108%; font-variation-settings: "wdth" 108; }
  .contact__row { grid-template-columns: 1fr; gap: 24px; }
  .contact__actions { width: 100%; }
}

/* Socials + GitHub (im Kontakt-Block) */
.socials { margin-top: clamp(40px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.socials__h { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 16px; }
.socials__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 32px; align-items: start; }
.gh {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px;
  width: min(100%, 520px); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(18,17,16,0.7); transition: border-color 0.25s, transform 0.3s var(--ease-out), background-color 0.25s;
}
.gh:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(27,25,23,0.9); }
.gh__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.gh__text { display: grid; gap: 4px; min-width: 0; }
.gh__text strong { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.gh__text strong svg { width: 18px; height: 18px; flex: none; }
.gh__text > span { font-size: 14px; color: var(--ink-2); }
.socials__links { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink); background: rgba(18,17,16,0.7); transition: border-color 0.25s, transform 0.3s var(--ease-out);
}
.pill svg { width: 16px; height: 16px; flex: none; }
.pill span { color: var(--ink-3); font-weight: 500; }
.pill:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 860px) {
  .socials__row { grid-template-columns: 1fr; }
  .gh { width: 100%; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0.94);
  display: grid; place-items: center; padding: clamp(16px, 4vw, 40px);
}
.lightbox__body { width: min(1100px, 100%); }
.lightbox video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.lightbox__cap { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.lightbox__close {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 22px; line-height: 1; color: var(--ink); background: rgba(0,0,0,0.5);
}
.lightbox__close:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--ink-2); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links a { color: var(--ink-2); transition: color 0.25s; padding: 6px 0; }
.footer__links a:hover { color: var(--ink); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page { padding: calc(var(--top-h) + 80px) 0 var(--section); }
.page h1 { margin-bottom: 28px; }
.page h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.page p, .page li { color: var(--ink-2); max-width: 70ch; }
.page ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.page a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page address { font-style: normal; color: var(--ink); line-height: 1.7; }

/* ---------- Reveal (nur Transform/Opacity) ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal--wipe { opacity: 1; transform: none; }
.reveal--wipe > * { clip-path: inset(0 0 100% 0); }
.reveal--wipe.is-in > * { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out); }

/* ---------- Reduzierte Bewegung / statischer Modus ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .intro { display: none !important; }
  .hero__bar { display: none; }
  .hero__media video, .hero__media img { transform: none; }
  .hero__title .line > span { transform: none !important; }
  .reveal, .reveal--wipe, .reveal--wipe > * { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hero__scroll i::after { animation: none; }
  .agent.is-playing .agent__wave b, .agent__steps li.is-active i, .agent__steps li.is-active span::after { animation: none; }
  .device__screen img { transition: none; }
  * { scroll-behavior: auto !important; }
}
html.is-static .grain { animation: none; }
html.is-static .intro, html.is-static .hero__bar { display: none !important; }
html.is-static .hero__title .line > span, html.is-static .contact__title .line > span { transform: none !important; }
html.is-static .reveal, html.is-static .reveal--wipe > * { opacity: 1; transform: none; clip-path: none; transition: none; }
html.is-static .hero__lede, html.is-static .hero__cta > *, html.is-static .hero__foot > * { opacity: 1 !important; visibility: visible !important; transform: none !important; }
/* Nur für Screenshot-Tests (?static=1): kompakter Hero, Karten umbrechen statt horizontal */
html.is-static .hero { min-height: 720px; }
html.is-static .work__track { flex-wrap: wrap; }
