/* ============================================
   Kevin – Kreativstudio
   v2 · Dark + Paper · Editorial · Animiert
   ============================================ */

/* ---------- Fonts (lokal) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-v22-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-v22-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-v22-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-v20-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-v5-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-v5-latin-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0b0b12;
  --bg-soft: #12121c;
  --paper: #f1efe9;
  --paper-soft: #e7e4db;
  --ink: #f4f4f0;
  --ink-dim: #a0a0b0;
  --ink-dark: #16161d;
  --ink-dark-dim: #5f5f68;
  --accent: #d4ff3f;
  --accent-2: #7c5cff;
  --accent-ink: var(--accent);
  --line: rgba(244, 244, 240, 0.1);
  --line-dark: rgba(22, 22, 29, 0.14);
  --sheet-bg: var(--paper);
  --sheet-ink: #16161d;
  --sheet-dim: #5f5f68;
  --sheet-line: rgba(22, 22, 29, 0.14);
  --sheet-num: #556b00;
  --card-bg: linear-gradient(160deg, #14141d, #171725 60%, #1d1d31);
  --card-ink: #f4f4f0;
  --case-bg: #101018;
  --case-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(11, 11, 18, 0.55);
  --menu-bg: #08080d;
  --vignette-c: rgba(11, 11, 18, 0.75);
  --scroll-thumb: #2e2e3e;
  --cursor-ring: rgba(212, 255, 63, 0.5);
  --badge-bg: rgba(11, 11, 18, 0.35);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --radius: 22px;
  --nav-h: 76px;
}

/* Helles Design (Umschalter in der Nav, gespeichert im Browser) */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f1efe9;
  --bg-soft: #e7e4db;
  --ink: #16161d;
  --ink-dim: #5f5f68;
  --line: rgba(22, 22, 29, 0.14);
  --accent-ink: #556b00;
  --sheet-bg: #14141d;
  --sheet-ink: #f4f4f0;
  --sheet-dim: #a0a0b0;
  --sheet-line: rgba(244, 244, 240, 0.12);
  --sheet-num: #d4ff3f;
  --card-bg: linear-gradient(160deg, #fbfaf7, #f1efe9 60%, #e7e4db);
  --card-ink: #16161d;
  --case-bg: #fbfaf7;
  --case-shadow: 0 30px 80px rgba(22, 22, 29, 0.18);
  --nav-bg: rgba(241, 239, 233, 0.6);
  --menu-bg: #f1efe9;
  --vignette-c: rgba(241, 239, 233, 0.8);
  --scroll-thumb: #c9c5b8;
  --cursor-ring: rgba(85, 107, 0, 0.5);
  --badge-bg: rgba(241, 239, 233, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.4s ease, color 0.4s ease;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #0b0b12; }

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.accent { color: var(--accent-ink); font-style: normal; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
.sheet :focus-visible { outline-color: var(--sheet-ink); }

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Nur für Screenreader */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-Link */
.skip-link {
  position: fixed; top: 10px; left: 10px;
  z-index: 10001;
  background: var(--accent); color: #0b0b12;
  font-weight: 600; font-size: 0.9rem;
  padding: 0.6rem 1rem; border-radius: 8px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Körnung / Noise-Overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 10000; }
html:not(.js) .preloader { display: none; }
.preloader__panel {
  position: absolute; left: 0; width: 100%; height: 50.5%;
  background: var(--bg);
}
.preloader__panel--top { top: 0; }
.preloader__panel--bottom { bottom: 0; }
.preloader__inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.preloader__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--ink);
}
.preloader__logo i { color: var(--accent-ink); font-style: normal; }
.preloader__count {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 3rem);
  right: clamp(1.5rem, 5vw, 3rem);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- Custom Cursor ---------- */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--accent-ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
  }
  .cursor-ring {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid var(--cursor-ring);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
  }
  .cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--accent-ink); }
}

/* ---------- Scroll-Fortschritt ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent-ink), var(--accent-2));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9997;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent-ink); }
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav__link {
  font-size: 0.95rem;
  color: var(--ink-dim);
  transition: color 0.25s ease;
  position: relative;
  padding: 0.6rem 0.1rem;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1.5px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 0.9rem; }
.nav__cta {
  font-size: 0.9rem; font-weight: 600;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent-ink); color: #0b0b12; }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}
.nav__burger span {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__burger span:nth-child(1) { transform: translate(-50%, -4px); }
.nav__burger span:nth-child(2) { transform: translate(-50%, 3px); }
body.menu-open .nav__burger span:nth-child(1) { transform: translate(-50%, -1px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translate(-50%, -1px) rotate(-45deg); }

/* ---------- Mobile-Menü ---------- */
.menu {
  position: fixed; inset: 0;
  z-index: 8900;
  background: var(--menu-bg);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 2.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden; opacity: 0;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
/* Niedrige Fenster (Landscape-Handy): kompakter, damit alles erreichbar bleibt */
@media (max-height: 640px) {
  .menu { padding-top: calc(var(--nav-h) + 0.75rem); padding-bottom: 1.25rem; }
  .menu .menu__link { font-size: clamp(1.4rem, 7vh, 2.4rem); padding: 0.2rem 0; }
}
body.menu-open .menu {
  visibility: visible; opacity: 1;
  transition: opacity 0.35s ease;
}
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 4rem);
  letter-spacing: -0.02em;
  padding: 0.35rem 0;
  display: flex; align-items: baseline; gap: 1rem;
  transform: translateY(24px); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, color 0.25s ease;
}
.menu__link em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  font-size: 0.4em;
  color: var(--accent-ink);
}
.menu__link:hover { color: var(--accent-ink); }
body.menu-open .menu__link { transform: translateY(0); opacity: 1; }
body.menu-open .menu__link:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .menu__link:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .menu__link:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .menu__link:nth-child(4) { transition-delay: 0.26s; }
.menu__foot {
  display: flex; flex-direction: column; gap: 0.6rem;
  color: var(--ink-dim); font-size: 0.95rem;
}
.menu__mail { color: var(--ink); font-weight: 600; }
.menu__status { display: flex; align-items: center; gap: 0.5rem; }

/* Pulsierender Punkt */
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-ink);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(212, 255, 63, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500; font-size: 1rem;
  padding: 0.9rem 1.8rem;
  border-radius: 99px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn--primary { background: var(--accent); color: #0b0b12; }
.btn--primary:hover { box-shadow: 0 8px 32px rgba(212, 255, 63, 0.35); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn--big {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  padding: 1.2rem 2.6rem;
  background: var(--accent); color: #0b0b12;
  font-weight: 700;
}
.btn--big:hover { box-shadow: 0 12px 48px rgba(212, 255, 63, 0.4); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 5rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.has-gl .hero__canvas { opacity: 1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.has-gl .blob { display: none; }
.blob--1 {
  width: 45vw; height: 45vw; min-width: 320px; min-height: 320px;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
  top: -10%; left: -10%;
}
.blob--2 {
  width: 38vw; height: 38vw; min-width: 280px; min-height: 280px;
  background: radial-gradient(circle, rgba(212, 255, 63, 0.55), transparent 65%);
  bottom: -15%; right: -8%;
}
.blob--3 {
  width: 26vw; height: 26vw; min-width: 220px; min-height: 220px;
  background: radial-gradient(circle, #ff5c8a, transparent 65%);
  top: 30%; right: 22%;
  opacity: 0.28;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  opacity: 0.4;
}
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 40%, var(--vignette-c) 100%);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.5rem 1.1rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: var(--badge-bg);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.1rem, 11.5vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}
.line { display: block; overflow: hidden; }
.line__inner { display: inline-block; will-change: transform; }
.line__inner b { font-weight: inherit; }
.char { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.outline .accent { -webkit-text-stroke: 0; color: var(--accent-ink); }
@supports not (-webkit-text-stroke: 2px black) {
  .outline { color: var(--ink); }
}
.hero__sub {
  max-width: 580px;
  color: var(--ink-dim);
  margin: 0 auto 2.25rem;
  font-size: 1.1rem;
}
.hero__sub em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18em;
  color: var(--ink);
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 1.8rem; right: clamp(1.5rem, 4vw, 3.5rem);
  width: 104px; height: 104px;
  display: flex; align-items: center; justify-content: center;
}
.hero__badge-ring {
  position: absolute; inset: 0;
  animation: spin 14s linear infinite;
}
.hero__badge-ring text {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--ink-dim);
}
.hero__scroll-arrow { color: var(--accent-ink); font-size: 1.3rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; }
.marquee__group span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.marquee__group i { color: var(--accent-ink); font-style: normal; }

/* ---------- Sections allgemein ---------- */
.section { padding: clamp(5rem, 11vw, 8.5rem) var(--pad); }
.section__head {
  display: flex; align-items: baseline; gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__num {
  font-family: var(--font-display);
  color: var(--accent-ink);
  font-size: 1rem; font-weight: 500;
}
.sheet .section__num { color: var(--sheet-num); }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.02em;
}
.section__meta {
  width: 100%;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* Inhalts-Spalte auf großen Screens zentrieren */
.section__head,
.about__grid,
.services__list,
.process__grid,
.work__stack {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Statement ---------- */
.statement {
  display: flex; justify-content: center;
  padding-top: clamp(6rem, 14vw, 11rem);
  padding-bottom: clamp(6rem, 14vw, 11rem);
}
.statement__text {
  max-width: 20ch;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.statement__text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--accent-ink);
}

/* ---------- Paper-Sheet ---------- */
.sheet {
  background: var(--sheet-bg);
  color: var(--sheet-ink);
  border-radius: clamp(24px, 4vw, 56px);
  margin: 0 clamp(8px, 1.5vw, 20px);
  overflow: clip;
}

/* ---------- Über mich ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1200px;
}
.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  margin-bottom: 1.5rem;
}
.about__lead em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  font-size: 1.1em;
  color: var(--sheet-num);
}
.about__text > p:not(.about__lead) { color: var(--sheet-dim); max-width: 60ch; }
.about__stats {
  display: flex; gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.stat__num, .stat__plus {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat__plus { color: var(--sheet-num); }
.stat__label { display: block; font-size: 0.85rem; color: var(--sheet-dim); margin-top: 0.2rem; }
.about__visual { display: flex; justify-content: center; }
.about__card {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--card-ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 24px 60px rgba(22, 22, 29, 0.25);
}
.about__card-glow {
  position: absolute;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 70%);
  top: -20%; right: -20%;
  filter: blur(30px);
}
.about__card-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  color: var(--accent-ink);
}
.about__card blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.35;
}

/* ---------- Leistungen (Akkordeon) ---------- */
.services__list { max-width: 1200px; }
.service { border-bottom: 1px solid var(--sheet-line); }
.service:first-child { border-top: 1px solid var(--sheet-line); }
.service__head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.3rem, 3vw, 2rem) 0.5rem;
  text-align: left;
  transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.service__head:hover { padding-left: 1.2rem; }
.service__index {
  font-family: var(--font-display);
  color: var(--sheet-num);
  font-size: 0.9rem;
}
.service__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.9rem);
  letter-spacing: -0.02em;
}
.service__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--sheet-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 400;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, color 0.3s ease;
}
.service.is-open .service__icon {
  transform: rotate(45deg);
  background: var(--sheet-ink);
  color: var(--sheet-bg);
}
.service__h { margin: 0; font: inherit; }
.service__body {
  overflow: hidden;
  height: 0;
  visibility: hidden;
  transition: visibility 0s linear 0.5s;
}
.service.is-open .service__body {
  visibility: visible;
  transition: none;
}
html:not(.js) .service__body, html.no-anim .service__body {
  height: auto;
  visibility: visible;
}
.service__inner {
  padding: 0 0.5rem clamp(1.5rem, 3vw, 2rem);
  max-width: 62ch;
}
.service__inner p { color: var(--sheet-dim); margin-bottom: 1rem; }
.service__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.service__tags span {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--sheet-line);
  color: var(--sheet-dim);
}

/* ---------- Prozess ---------- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: step;
}
.process__step {
  border-top: 2px solid var(--sheet-ink);
  padding-top: 1.25rem;
}
.process__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--sheet-num);
  display: block;
  margin-bottom: 0.75rem;
}
.process__step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.process__step p { color: var(--sheet-dim); font-size: 0.95rem; }

/* ---------- Projekte (Sticky-Stack) ---------- */
.work__stack {
  display: flex; flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
  max-width: 1200px;
  margin: 0 auto;
}
.case {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
/* Niedrige, schmale Viewports: Stack abschalten, sonst ist das Kartenende nie sichtbar */
@media (max-height: 700px) and (max-width: 900px) {
  .case { position: static; }
}
.case {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--case-bg);
  overflow: hidden;
  box-shadow: var(--case-shadow);
  will-change: transform;
}
.case__media { position: relative; min-height: 300px; overflow: hidden; }
.case__art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.case:hover .case__art { transform: scale(1.05); }
.case__body {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}
.case__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.case__top h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
}
.case__year {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-dim);
  font-size: 1.1rem;
}
.case__body p { color: var(--ink-dim); font-size: 1rem; max-width: 44ch; }
.case__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.case__tags span {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

/* ---------- Stimmen ---------- */
.voices { overflow: hidden; }
.voices .section__head { padding-right: var(--pad); }
.voices__marquee {
  display: flex; width: max-content;
  will-change: transform;
  margin: 0 calc(-1 * var(--pad));
}
.voices__group { display: flex; gap: clamp(1.25rem, 3vw, 2rem); padding-right: clamp(1.25rem, 3vw, 2rem); }
.voice {
  width: min(380px, 78vw);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.voice blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
}
.voice figcaption { color: var(--ink-dim); font-size: 0.9rem; }

/* Ohne Animation (reduced motion / ohne JS): Zitate untereinander statt Laufband */
@media (prefers-reduced-motion: reduce) {
  .voices__marquee { width: auto; margin: 0; flex-wrap: wrap; }
  .voices__group { flex-wrap: wrap; padding-right: 0; }
  .voices__group[aria-hidden="true"] { display: none; }
}
html:not(.js) .voices__marquee, html.no-anim .voices__marquee { width: auto; margin: 0; flex-wrap: wrap; }
html:not(.js) .voices__group, html.no-anim .voices__group { flex-wrap: wrap; padding-right: 0; }
html:not(.js) .voices__group[aria-hidden="true"], html.no-anim .voices__group[aria-hidden="true"] { display: none; }

/* ---------- Unterseiten ---------- */
.hero--sub { min-height: 52vh; padding-bottom: 3rem; }
.hero__title--sub { font-size: clamp(2.6rem, 9vw, 6rem); }
.hero__eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
}
.casepage__media {
  max-width: 1100px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  position: relative;
}
.casepage__media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.casepage__meta {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}
.casepage__speak { max-width: 720px; margin: 0 auto 1.5rem; }
.casepage__body { max-width: 720px; margin: 0 auto; }
.casepage__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.9rem;
}
.casepage__body h2:first-child { margin-top: 0; }
.casepage__body p { color: var(--ink-dim); margin-bottom: 1.15rem; }
.casepage__body strong { color: var(--ink); }
.casepage__body ul { margin: 0.5rem 0 1.5rem; }
.casepage__body li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
  color: var(--ink-dim);
}
.casepage__body li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent-ink);
  font-weight: 700;
}
.nextcase {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem;
  text-align: center;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}
.nextcase span {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--ink-dim);
}
.nextcase a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}
.nextcase a:hover { color: var(--accent-ink); }
.legal { max-width: 720px; margin: 0 auto; }
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin: 2.2rem 0 0.8rem;
}
.legal p { color: var(--ink-dim); margin-bottom: 1rem; }
.legal__hint {
  border: 1px solid var(--accent-ink);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2.25rem;
}

/* ---------- Das Labor (Live-Demos) ---------- */
.labor { max-width: 1100px; margin: 0 auto; }
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.lab-demo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column;
  gap: 1rem;
}
.lab-demo__tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  color: var(--accent-ink);
  letter-spacing: 0.06em;
}
.lab-demo h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -0.01em;
}
.lab-demo p { color: var(--ink-dim); font-size: 0.95rem; }
.lab-btn { align-self: flex-start; }

/* CSS-3D-Würfel */
.lab-cube-buehne {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  perspective: 600px;
}
.lab-cube {
  position: relative;
  width: 90px; height: 90px;
  transform-style: preserve-3d;
  animation: cubeDreh 9s linear infinite;
}
@keyframes cubeDreh {
  to { transform: rotateX(360deg) rotateY(720deg); }
}
.lab-cube__f {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 2.2rem;
  color: #0b0b12;
  background: var(--accent);
  border: 2px solid #0b0b12;
  opacity: 0.92;
}
.lab-cube__f--2 { background: var(--accent-2); color: #fff; }
.lab-cube__f--4 { background: var(--accent-2); color: #fff; }
.lab-cube__f--6 { background: #ff5c8a; color: #fff; }
.lab-cube__f--1 { transform: translateZ(45px); }
.lab-cube__f--2 { transform: rotateY(90deg) translateZ(45px); }
.lab-cube__f--3 { transform: rotateY(180deg) translateZ(45px); }
.lab-cube__f--4 { transform: rotateY(-90deg) translateZ(45px); }
.lab-cube__f--5 { transform: rotateX(90deg) translateZ(45px); }
.lab-cube__f--6 { transform: rotateX(-90deg) translateZ(45px); }

/* Selbstzeichnendes Logo */
.lab-svg-buehne { height: 180px; display: flex; align-items: center; justify-content: center; }
.lab-svg-buehne svg { height: 100%; }
.lab-strich {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: strichZeichnen 1.4s ease forwards;
}
.lab-strich:nth-child(2) { animation-delay: 0.5s; }
.lab-strich--punkt { stroke-width: 6; animation-delay: 1.1s; }
@keyframes strichZeichnen {
  to { stroke-dashoffset: 0; }
}

/* Mini-Klavier */
.lab-piano { display: flex; gap: 0.4rem; }
.lab-piano button {
  flex: 1;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink-dim);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 0.6rem;
  transition: background 0.12s ease, transform 0.12s ease, color 0.12s ease;
}
.lab-piano button:hover { color: var(--ink); }
.lab-piano button.is-an,
.lab-piano button:active {
  background: var(--accent);
  color: #0b0b12;
  transform: translateY(3px);
}

/* Reaktionstest */
.lab-reaktion {
  height: 130px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.lab-reaktion--warten { background: #7a2d3a; color: #fff; }
.lab-reaktion--los { background: var(--accent); color: #0b0b12; }

/* Malfläche */
.lab-malen {
  width: 100%;
  height: 240px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  cursor: crosshair;
  touch-action: none;
}

@media (max-width: 760px) {
  .lab-grid { grid-template-columns: 1fr; }
}

/* ---------- Quellcode-Viewer ---------- */
.codepage { max-width: 1100px; margin: 0 auto; }
.code__tabs {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.code__tab {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-dim);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.code__tab:hover { border-color: var(--accent-ink); color: var(--ink); }
.code__tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b12;
}
.code__view {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  overflow: auto;
  max-height: 70vh;
  font-size: 0.78rem;
  line-height: 1.65;
}
.code__view code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  white-space: pre;
  display: block;
}
.code-line {
  display: block;
  counter-increment: codezeile;
  padding-left: 3.4em;
  position: relative;
}
.code__view code { counter-reset: codezeile; }
.code-line::before {
  content: counter(codezeile);
  position: absolute; left: 0;
  width: 2.6em;
  text-align: right;
  color: var(--ink-dim);
  opacity: 0.45;
}
.codepage__note { margin-top: 1.25rem; color: var(--ink-dim); font-size: 0.9rem; }
.codepage__note a { text-decoration: underline; }

/* ---------- Unter der Haube ---------- */
.tech__lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: 1.4;
  max-width: 46ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.tech__lead em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1em;
  color: var(--accent-ink);
}
.tech__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.tech .stat__plus { color: var(--accent-ink); }
.tech .stat__label { color: var(--ink-dim); }
.tech__tags {
  display: flex; flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.tech__tags li {
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-dim);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.tech__tags li:hover { border-color: var(--accent-ink); color: var(--ink); }
.tech__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem clamp(1.5rem, 4vw, 3rem);
  max-width: 900px;
}
.tech__features li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-dim);
}
.tech__features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent-ink);
  font-weight: 700;
}
.tech__cta { margin-top: clamp(2rem, 5vw, 3rem); }
.tech__lead, .tech__stats, .tech__tags, .tech__features, .tech__cta {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.tech__lead { margin-left: auto; margin-right: auto; }

/* ---------- Mein Weg (Timeline) ---------- */
.way__list {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}
.way__list::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--sheet-line);
}
.way__item {
  position: relative;
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.way__item:last-child { padding-bottom: 0; }
.way__marker {
  position: absolute;
  left: calc(-2rem + 1px); top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sheet-num);
  box-shadow: 0 0 0 4px var(--sheet-bg);
}
.way__when {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sheet-num);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.25rem;
}
.way__item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin-bottom: 0.35rem;
}
.way__item p { color: var(--sheet-dim); max-width: 55ch; }

/* ---------- FAQ ---------- */
.service__name--faq {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 500;
}

/* ---------- Spielwiese (Partikel) ---------- */
.playground {
  position: relative;
  height: min(78vh, 680px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: crosshair;
}
.playground__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* Hoch/runter scrollt die Seite, seitliches Wischen steuert die Punkte */
  touch-action: pan-y;
}
.playground__fs {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 1.1rem;
  z-index: 2;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.playground__fs:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.playground:fullscreen { background: var(--bg); }
.playground:fullscreen .playground__canvas { height: 100%; }
.playground__hint {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
html:not(.js) .playground,
html.no-anim .playground,
html.no-play .playground { display: none; }
@media (prefers-reduced-motion: reduce) {
  .playground { display: none; }
}

/* ---------- Unikat-Muster (About-Karte) ---------- */
.about__unikat {
  width: min(220px, 82%);
  height: auto;
}
.about__unikat-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  opacity: 0.65;
}
html:not(.js) .about__unikat, html:not(.js) .about__unikat-label { display: none; }

/* ---------- Retro-Modus (Konami-Code) ---------- */
.retro { display: none; }
html.retro-mode .retro {
  display: block;
  position: fixed; inset: 0;
  z-index: 9995;
  pointer-events: none;
  /* Filter statisch halten (GPU-schonend) – das Flackern übernimmt ::after */
  backdrop-filter: sepia(0.45) hue-rotate(55deg) saturate(1.7) contrast(1.05);
  -webkit-backdrop-filter: sepia(0.45) hue-rotate(55deg) saturate(1.7) contrast(1.05);
}
html.retro-mode .retro::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  animation: retroFlicker 0.12s steps(2) infinite;
}
@keyframes retroFlicker {
  50% { opacity: 0.55; }
}
html.retro-mode {
  --font-display: "Courier New", ui-monospace, monospace;
  --font-body: "Courier New", ui-monospace, monospace;
  --font-serif: "Courier New", ui-monospace, monospace;
}

/* ---------- Kontakt ---------- */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  min-width: 400px; min-height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  pointer-events: none;
}
.contact__inner { position: relative; }
.contact__eyebrow {
  color: var(--ink-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}
.contact__title-accent {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  color: var(--accent-ink);
}
.contact__actions {
  display: flex; gap: 1rem;
  justify-content: center; align-items: center;
  flex-wrap: wrap;
}
.contact__meta {
  margin-top: 2rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
  display: flex; gap: 0.75rem;
  justify-content: center; flex-wrap: wrap;
}

/* ---------- Kontaktformular ---------- */
.contact__form {
  max-width: 560px;
  margin: 2.75rem auto 0;
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.form__row { margin-bottom: 1.1rem; }
.form__row label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.form__row input,
.form__row textarea {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font: inherit;
  resize: vertical;
  transition: border-color 0.25s ease;
}
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
}
.form__row input:focus-visible,
.form__row textarea:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
.form__row ::placeholder { color: var(--ink-dim); opacity: 0.55; }
.form__hint { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-dim); }
.form__hint a { text-decoration: underline; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem var(--pad);
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.footer__brand {
  display: flex; justify-content: center; align-items: baseline;
  padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(1.25rem, 4vw, 3rem);
  user-select: none;
  -webkit-user-select: none;
}
.footer__brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 16vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.footer__brand span:hover {
  transform: translateY(-0.08em) rotate(-4deg);
  color: var(--accent-ink);
}
.footer__brand-dot { color: var(--accent-ink); }
.footer__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer__time { font-variant-numeric: tabular-nums; }
.footer__count { font-variant-numeric: tabular-nums; }
.footer__share {
  transition: color 0.25s ease;
  padding: 0.5rem 0.25rem;
  margin: -0.5rem -0.25rem;
}
.footer__share:hover { color: var(--accent-ink); }
.footer__top {
  transition: color 0.25s ease;
  padding: 0.75rem 0.5rem;
  margin: -0.75rem -0.5rem;
}
.footer__top:hover { color: var(--accent-ink); }

/* ---------- Theme-Umschalter ---------- */
.nav__theme {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__theme:hover {
  border-color: var(--accent-ink);
  transform: rotate(40deg);
}

/* ---------- Case-Overlay (Projekt-Details) ---------- */
.overlay {
  position: fixed; inset: 0;
  z-index: 9500;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden; opacity: 0;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
body.overlay-open .overlay {
  visibility: visible; opacity: 1;
  transition: opacity 0.35s ease;
}
.overlay__close {
  position: fixed;
  top: 1.25rem; right: clamp(1.25rem, 4vw, 3rem);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 1.2rem;
  z-index: 2;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
}
.overlay__close:hover {
  background: var(--accent);
  color: #0b0b12;
  transform: rotate(90deg);
}
.overlay__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) var(--pad) 5rem;
}
.overlay__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
}
.overlay__media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.overlay__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.overlay__head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
}
.overlay__year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-dim);
}
.overlay__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  margin-bottom: 2rem;
}
.overlay__meta-item span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin-bottom: 0.3rem;
}
.overlay__meta-item strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
}
.overlay__body p {
  color: var(--ink-dim);
  max-width: 65ch;
  margin-bottom: 1.1rem;
}
.overlay__body p strong { color: var(--ink); }
@media (max-width: 640px) {
  .overlay__meta { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* Case: Details-Button + Klickbarkeit */
.case { cursor: pointer; }
.case__more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent-ink);
  margin-top: 0.25rem;
  padding: 0.4rem 0;
  align-self: flex-start;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s ease;
}
.case:hover .case__more, .case__more:hover { border-bottom-color: var(--accent-ink); }

/* ---------- Cursor-Label („Ansehen") ---------- */
.cursor-label { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-label {
    display: block;
    position: fixed; top: 0; left: 0;
    z-index: 9998;
    pointer-events: none;
    background: var(--accent);
    color: #0b0b12;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0.95rem;
    border-radius: 99px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .cursor-label.is-show { opacity: 1; transform: scale(1); }
}

/* ---------- Konfetti (Easter Egg) ---------- */
.confetti-piece {
  position: fixed;
  width: 9px; height: 14px;
  border-radius: 2px;
  z-index: 9800;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Toast (E-Mail kopiert) ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 2rem;
  transform: translate(-50%, 180%);
  background: var(--accent); color: #0b0b12;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 99px;
  z-index: 9600;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 10px 40px rgba(212, 255, 63, 0.3);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-ink); }

/* Hero-Buchstaben dürfen nach dem Intro über die Zeile hüpfen */
.hero__title.is-ready .line { overflow: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tech__stats { grid-template-columns: repeat(2, 1fr); }
  .tech__features { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { order: -1; }
  .about__card { aspect-ratio: 16 / 10; width: 100%; }
  .case { grid-template-columns: 1fr; }
  .case__media { min-height: 220px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 640px) {
  .tech__stats { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .process__grid { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .footer__row { justify-content: center; text-align: center; }
}

/* ---------- Nahtlose Seitenwechsel (View Transitions, progressiv) ---------- */
@view-transition {
  navigation: auto;
}

/* ---------- Lebende Projekt-Artworks ---------- */
.art-puls, .art-orbit, .art-glow, .art-auge, .art-eq rect {
  transform-box: fill-box;
  transform-origin: center;
}
.art-puls { animation: artPuls 2.4s ease-in-out infinite; }
@keyframes artPuls {
  50% { transform: scale(1.4); opacity: 0.65; }
}
.art-orbit { animation: artDreh 26s linear infinite; }
@keyframes artDreh {
  to { transform: rotate(360deg); }
}
.art-eq rect { animation: artEq 1.7s ease-in-out infinite; }
.art-eq rect:nth-child(odd) { animation-delay: 0.35s; }
.art-eq rect:nth-child(3n) { animation-delay: 0.7s; }
.art-eq rect:nth-child(4n) { animation-delay: 1.05s; }
@keyframes artEq {
  50% { transform: scaleY(0.7); }
}
.art-glow { animation: artGlow 3.2s ease-in-out infinite; }
@keyframes artGlow {
  50% { opacity: 0.45; }
}
.art-auge { animation: artBlinzeln 4.6s ease-in-out infinite; }
@keyframes artBlinzeln {
  0%, 91%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.08); }
}

/* ---------- Druck: sauberes Schwarz-auf-Weiß-Dokument ---------- */
@media print {
  :root, html[data-theme="light"] {
    --ink: #000;
    --ink-dim: #333;
    --accent-ink: #000;
    --sheet-ink: #000;
    --sheet-dim: #333;
    --sheet-num: #333;
    --card-ink: #000;
    --line: #ccc;
    --sheet-line: #ccc;
  }
  .preloader, .cursor, .cursor-ring, .cursor-label, .progress, .nav, .menu,
  .toast, .retro, .hero__bg, .hero__scroll, .marquee, .playground,
  .voices, .footer__brand, .skip-link, .nav__burger,
  .about__unikat, .about__unikat-label, .contact__form,
  .footer__share, .playground__fs, .casepage__speak { display: none !important; }
  body::after { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .sheet { background: #fff !important; color: #000 !important; margin: 0; border-radius: 0; }
  .case, .voice, .about__card { background: #fff !important; color: #000 !important; box-shadow: none !important; border: 1px solid #ccc; position: static !important; }
  .section { padding: 1.2rem 0 !important; }
  .hero { min-height: auto !important; padding: 1rem 0 !important; }
  a { color: #000 !important; }
  * { box-shadow: none !important; text-shadow: none !important; filter: none !important; }
  /* Von GSAP versteckte Elemente sichtbar erzwingen */
  [data-reveal], [data-hero-fade], .word, .char, .line__inner, .hero__content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .service__body { height: auto !important; visibility: visible !important; }
  .outline { color: #000 !important; -webkit-text-stroke: 0 !important; }
  .accent, .contact__title-accent { color: #000 !important; }
  .case, [data-case] { transform: none !important; }
  .case, .voice, .service, .process__step, .way__item, .stat, .casepage__media {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .cursor-ring { display: none !important; }
  .hero__badge-ring { animation: none; }
  .dot { animation: none; }
  .has-gl .blob { display: block; }
  .hero__canvas { display: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
  }
}
