/* ========== Schrift ==========
   Original-Schrift der Referenz: PP Neue Montreal (Pangram Pangram, lizenzpflichtig).
   Liegt sie im Ordner fonts/, wird sie automatisch genutzt.
   Sonst greift General Sans (Fontshare, kostenlos auch kommerziell) als nahe Alternative. */
@font-face {
  font-family: "PP Neue Montreal";
  src: local("PP Neue Montreal"), url("fonts/PPNeueMontreal-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Semibold.otf") format("opentype");
  font-weight: 500 600; font-style: normal; font-display: swap;
}

/* ========== Design-Tokens (Werte 1:1 aus der Referenz bei 1440px gemessen) ========== */
:root {
  --bg: #ffffff;
  --ink: #1c1d20;
  --muted: #6f7074;
  --line: rgba(28, 29, 32, 0.15);
  --line-dark: rgba(255, 255, 255, 0.2);
  /* Corporate Colors von rudi-media.de */
  --accent: #1e53f9;
  --accent-2: #3afaff;
  --grad: linear-gradient(135deg, #1e53f9, #3afaff);
  --dark: #000000;
  --ease: cubic-bezier(0.7, 0, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 6.5vw, 120px);
  --case-indent: clamp(40px, 8vw, 128px);   /* Einzug der Projektliste wie bei Dennis */
  --case-gap: clamp(24px, 4vw, 40px);       /* gap-padding der Referenz */
  --section-pad: clamp(80px, 21vh, 192px);  /* section-padding der Referenz */
  --font: "PP Neue Montreal", "General Sans", ui-sans-serif, system-ui, sans-serif;

  /* Typo-Skala: alles skaliert mit der Fensterbreite wie im Original */
  --fs-small: clamp(10px, 0.72vw, 13px);   /* Labels: 10.4px @1440 */
  --fs-body: clamp(15px, 1.2vw, 21px);     /* Fließtext & Navigation: 17.3px @1440 */
  --fs-h4: clamp(21px, 2.3vw, 40px);       /* Statement & Rolle: 33.1px @1440 */
  --fs-h3: clamp(30px, 3.6vw, 62px);       /* Sektionstitel */
  --fs-menu: clamp(40px, 4.2vw, 72px);     /* Menü-Links: 60.5px @1440 */
  --fs-case: clamp(36px, 5.25vw, 92px);    /* Projekt-Titel: 75.6px @1440 */
  --fs-footer: clamp(42px, 6.125vw, 106px);/* „Let's work together“: 88.2px @1440 */
  --fs-display: 15vw;                      /* Name im Hero: 216px @1440 */
  --btn: clamp(130px, 12vw, 210px);        /* Runde Buttons: 173px @1440 */
  --pill-h: clamp(56px, 5.1vw, 88px);      /* Kontakt-Pills: 73px @1440 */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  font-size: var(--fs-small);
  line-height: 1.065;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== Intro-Vorhang (Aufbau wie .loading-screen der Referenz) ========== */
.loader { position: fixed; inset: 0; z-index: 100; overflow: hidden; pointer-events: none; }
.loader__screen { position: relative; top: 0; width: 100%; height: 100%; background: var(--dark); color: #fff; will-change: top; }
/* Rundungen: oben beim Hereinfahren, unten beim Herausfahren */
.loader__round { position: absolute; left: 0; width: 100%; overflow: hidden; z-index: 2; will-change: height; }
.loader__round--top { top: 0; height: 0; transform: translateY(-99%) scaleY(-1); }
.loader__round--bottom { bottom: 0; height: 10vh; transform: translateY(99%); }
.loader__ellipse {
  position: absolute; left: 50%; width: 150%; height: 745%;
  background: var(--dark); border-radius: 50%; transform: translate(-50%, -86.666%);
}
.loader__words {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px; white-space: nowrap;
}
.loader__word { position: relative; display: block; padding: 0 0.4em 0 0.6em; font-size: clamp(40px, 4.4vw, 72px); line-height: 1.1; }
.loader__dot {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: calc(0.606 * var(--fs-body)); height: calc(0.606 * var(--fs-body)); border-radius: 50%; background: #fff;
}
.loader__label { font-size: var(--fs-small); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.5; }
.loader__rank {
  font-size: clamp(40px, 3.75vw, 64px); line-height: 1.065; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Inhalte, die nach dem Intro gestaffelt hochfahren */
body.is-loading .once-in { translate: 0 50vh; }

/* ========== Navigation ========== */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  /* Wie in der Referenz: 1.5vw Abstand zur Ecke (22px @1440) */
  padding: clamp(14px, 1.5vw, 28px);
  color: var(--ink); line-height: 1.6;
}
/* Marke wie „© Code by Dennis“: © dreht sich, „Performance by“ fährt links raus, Zusatz rückt nach */
.nav__brand { display: flex; align-items: center; padding: 0.6em 0; white-space: nowrap; }
.nav__copy { display: inline-block; transition: transform 0.8s var(--ease); }
.nav__brand:hover .nav__copy { transform: rotate(360deg); }
.nav__cbd { position: relative; display: inline-block; overflow: hidden; margin-left: 0.21em; width: var(--rest-w, auto); transition: width 0.8s var(--ease); }
.nav__brand:hover .nav__cbd { width: var(--hover-w, auto); }
.nav__track { display: flex; transition: transform 0.8s var(--ease); }
.nav__by, .nav__name, .nav__extra { padding-right: 0.25em; }
.nav__brand:hover .nav__track { transform: translateX(calc(-1 * var(--by-w, 0px))); }

/* Links mit Punkt: aktiver Link zeigt Punkt, beim Hovern wandert er zum Link unter der Maus */
.nav__links { display: flex; }
/* Handy-Menü als Text mit Punkt davor wie „• Menu“ der Referenz */
.nav__menu { display: none; align-items: center; gap: 0.5em; padding: 0.6em 0 0.6em 0.6em; line-height: 1.6; }
.nav__menu::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nav__link { position: relative; display: inline-block; padding: 0.6em 1.2em; }
.nav__link .btn-text, .menu__link .btn-text { display: inline-block; }
.nav__link::after, .menu__link::after {
  content: ""; position: absolute; left: 50%; bottom: 0.15em; border-radius: 50%; background: currentColor;
  width: calc(0.3636 * var(--fs-body)); height: calc(0.3636 * var(--fs-body));
  transform: translate(-50%, -50%) scale(0); transition: transform 0.4s var(--ease-out);
}
.nav__link.is-active::after, .nav__link:hover::after { transform: translate(-50%, -50%) scale(1); }
.nav__links:hover .nav__link::after { transform: translate(-50%, -50%) scale(0); }
.nav__links:hover .nav__link:hover::after { transform: translate(-50%, -50%) scale(1); }

/* Unterstrich von rechts nach links weg, von links nach rechts rein */
.link-line { position: relative; }
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: -0.1em; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ========== Runder Menü-Button + Panel ========== */
.fab {
  position: fixed; top: clamp(16px, 2vw, 36px); right: clamp(16px, 2vw, 36px); z-index: 55;
  width: clamp(56px, 5.6vw, 96px); height: clamp(56px, 5.6vw, 96px); border-radius: 50%;
  background: var(--dark); border: 1px solid var(--line-dark); --fill: var(--accent);
  transform: scale(0); transition: transform 0.4s var(--ease-out);
}
.fab.btn { position: fixed; }
.fab .btn-text { display: grid; place-items: center; width: 100%; height: 100%; }
.fab.is-visible, .menu-open .fab { transform: scale(1); }
.fab__lines, .fab__lines::before {
  display: block; width: 32%; min-width: 22px; height: 1px; background: #fff; position: relative;
  transition: transform 0.4s var(--ease);
}
.fab__lines { transform: translateY(-4px); }
.fab__lines::before { content: ""; position: absolute; top: 8px; left: 0; width: 100%; }
.menu-open .fab__lines { transform: translateY(0) rotate(45deg); }
.menu-open .fab__lines::before { transform: translateY(-8px) rotate(-90deg); }

/* Menü wie in der Referenz: Panel gleitet rein, gewölbte Kante wird flach, Links folgen gestaffelt */
.menu { --menu-ease: cubic-bezier(0.7, 0, 0.2, 1); position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.menu__backdrop {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 40%, #000 80%);
  transition: opacity 0.8s var(--menu-ease);
}
.menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: clamp(380px, 37.5vw, 680px);
  background: var(--dark); color: #fff;
  transform: translateX(calc(100% + 6vw)); transition: transform 0.8s var(--menu-ease);
}
.menu__curve { position: absolute; left: 1px; top: 0; height: 100%; transform: translateX(-100%); }
.menu__curve-wrap { position: relative; width: 6vw; height: 100%; overflow: hidden; transition: width 0.85s var(--menu-ease); }
/* left 50% + translate -6.5% der 7,75-fachen Breite = Scheitel der Ellipse genau an der Außenkante */
.menu__curve-shape {
  position: absolute; left: 50%; top: 50%; width: 775%; height: 150%;
  background: var(--dark); border-radius: 50%; transform: translate(-6.5%, -50%);
}
.menu__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 15vh 7.5vw 10vh;
}
.menu-open .menu { pointer-events: auto; }
.menu-open .menu__backdrop { opacity: 0.35; }
.menu-open .menu__panel { transform: none; }
.menu-open .menu__curve-wrap { width: 0; }
.menu__panel .eyebrow { color: rgba(255, 255, 255, 0.5); border-bottom: 1px solid var(--line-dark); padding-bottom: 2em; margin-bottom: 2.5em; }
.menu__nav { display: flex; flex-direction: column; align-items: flex-start; padding-top: 2vh; }
.menu__link {
  position: relative; font-size: var(--fs-menu); line-height: 1.4;
  transform: translateX(15vw); transition: transform 0.8s var(--menu-ease);
}
/* Punkt links neben dem aktiven bzw. gehoverten Link */
.menu__link::after { left: -0.35em; top: 50%; bottom: auto; width: calc(0.606 * var(--fs-body)); height: calc(0.606 * var(--fs-body)); }
.menu__link.is-active::after, .menu__link:hover::after { transform: translate(-50%, -50%) scale(1); }
.menu__nav:hover .menu__link::after { transform: translate(-50%, -50%) scale(0); }
.menu__nav:hover .menu__link:hover::after { transform: translate(-50%, -50%) scale(1); }
.menu__link:nth-child(2) { transition-delay: 0.03s; }
.menu__link:nth-child(3) { transition-delay: 0.06s; }
.menu__link:nth-child(4) { transition-delay: 0.09s; }
.menu-open .menu__link { transform: none; }
.menu__socials { display: flex; flex-wrap: wrap; gap: 0.6em 2em; }

/* ========== Hero ========== */
.hero {
  position: relative; height: 100svh; min-height: 640px;
  /* Verlauf passend zum hellgrauen Studiohintergrund des Fotos */
  background: linear-gradient(90deg, #c4c5c2 0%, #cacbc8 25%, #d6d7d5 55%, #dddedb 78%, #e1e2df 100%);
  overflow: hidden; color: var(--ink);
}
/* Quadratischer Rahmen um Foto + Rolle; cqh = 1% der Fotohöhe */
.hero__figure {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, var(--hero-py, 0px));
  height: var(--figure-h); aspect-ratio: 1; container-type: size;
}
.hero { --figure-h: 94%; }
.hero__photo {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%),
                      linear-gradient(180deg, transparent 0%, #000 14%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%),
                      linear-gradient(180deg, transparent 0%, #000 14%);
          mask-composite: intersect;
}
/* Rolle sitzt knapp über der rechten Schulter (Bildseite), skaliert mit dem Foto.
   Platz bis zum Fensterrand: Foto ist mittig und quadratisch (Breite = 100cqh), Rolle beginnt bei 76 %
   → 50vw − 26cqh − kleiner Abstand zum Fensterrand. Text bricht nur um, wenn er nicht passt, und wird bei sehr wenig Platz kleiner,
   damit „Performance“ (ca. 6 em breit) nie aus dem Fenster läuft */
.hero__role {
  --role-space: calc(50vw - 26cqh - clamp(16px, 2vw, 32px));
  position: absolute; left: 76%; bottom: 41%;
  /* max-content: sonst begrenzt der Fotorahmen (nur 24 % rechts der Rolle) die Breite */
  width: max-content; max-width: var(--role-space);
  font-size: max(12px, min(3.9cqh, calc(var(--role-space) / 6.2)));
  line-height: 1.45;
}
.hero__arrow { display: block; width: 0.58em; fill: none; stroke: currentColor; stroke-width: 1.4; margin-bottom: 2.2em; }

/* Standort-Pill: Maße der Referenz (257 × 104px @1440) */
.hero__pill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 1.4vw;
  height: clamp(64px, 7.2vw, 124px); padding-left: clamp(20px, 3vw, 52px);
  background: var(--ink); color: #fff; border-radius: 0 999px 999px 0;
  line-height: 1.25;
}
.hero__globe-slot { display: grid; place-items: center; height: 100%; aspect-ratio: 1; }

/* 3D-Globus aus Ringen: echte Rotation per preserve-3d */
.globe { --s: clamp(24px, 2.4vw, 42px); display: block; width: var(--s); aspect-ratio: 1; perspective: 400px; transform: rotate(-18deg); }
.globe__sphere {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; animation: globe-spin 6s linear infinite;
}
.globe__sphere i, .globe__lat { position: absolute; border: 1.2px solid #fff; border-radius: 50%; }
.globe__sphere i { inset: 0; }
.globe__sphere i:nth-child(2) { transform: rotateY(45deg); }
.globe__sphere i:nth-child(3) { transform: rotateY(90deg); }
.globe__sphere i:nth-child(4) { transform: rotateY(135deg); }
/* Breitengrade: liegende Ringe auf verschiedenen Höhen */
.globe__lat { left: 50%; top: 50%; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); transform: rotateX(90deg) translateZ(var(--y)); }
.globe__lat--eq { --d: 100%; --y: 0px; }
.globe__lat--n { --d: 80%; --y: calc(var(--s) * 0.3); }
.globe__lat--s { --d: 80%; --y: calc(var(--s) * -0.3); }
@keyframes globe-spin { to { transform: rotateY(360deg); } }

/* Name dunkel auf hellem Grund; weiße Kopie nur auf dem Shirt (Maske deckt sich mit .hero__figure) */
.hero__marquee { position: absolute; left: 0; bottom: 6%; width: 100%; overflow: hidden; pointer-events: none; color: var(--ink); }
.hero__shirt-layer {
  position: absolute; inset: 0; pointer-events: none;
  /* --hero-py: Parallax des Fotos, damit die Maske deckungsgleich mitwandert */
  -webkit-mask: url("img/arjanit-shirt-mask.png") 50% calc(100% + var(--hero-py, 0px)) / auto var(--figure-h) no-repeat;
          mask: url("img/arjanit-shirt-mask.png") 50% calc(100% + var(--hero-py, 0px)) / auto var(--figure-h) no-repeat;
}
.hero__marquee--light { color: #fff; }
.hero__track { display: flex; white-space: nowrap; will-change: transform; }
.hero__track span { font-size: var(--fs-display); line-height: 1; padding-right: 0.08em; }


/* ========== Statement ========== */
/* Wie .home-intro der Referenz: doppelter Einzug (bündig mit „Recent Work“), Spalten 70/30,
   Button hängt frei bei 80 % der rechten Spalte und ragt in den nächsten Abschnitt */
.intro { padding: var(--section-pad) var(--pad) calc(var(--section-pad) * 0.66); }
.intro__grid { display: grid; grid-template-columns: 70% 30%; max-width: 1500px; margin: 0 auto; padding: 0 var(--case-indent); box-sizing: border-box; }
.intro__statement { font-size: var(--fs-h4); line-height: 1.45; padding-right: var(--case-gap); }
.intro__side { position: relative; padding-left: var(--case-gap); }
.intro__side p { line-height: 1.66; max-width: 14em; padding-top: 0.5em; margin-bottom: 6em; }
/* Über dem folgenden Abschnitt, wenn der Button per Parallax hineinragt */
.intro__btn { position: absolute; top: 80%; z-index: 3; width: max-content; }

/* Wort-für-Wort Reveal */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; }
.reveal-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease-out); }
.reveal-words.is-in .w > span { transform: none; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ========== Buttons (Aufbau wie .btn-click der Referenz) ========== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; isolation: isolate; border-radius: 999px; white-space: nowrap;
}
/* Füllkreis: liegt oben außerhalb, fährt beim Hover von unten rein und beim Verlassen oben raus */
.btn-fill {
  position: absolute; top: -50%; left: -25%; width: 150%; height: 200%; z-index: -1;
  border-radius: 50%; background: var(--fill, var(--accent)); transform: translate3d(0, -76%, 0); pointer-events: none;
}
.btn-text { position: relative; display: block; pointer-events: none; }
.btn--round { width: var(--btn); height: var(--btn); border-radius: 50%; }
.btn--dark { background: var(--ink); color: #fff; --fill: var(--accent); }
.btn--accent { background: var(--accent); color: #fff; --fill: #1640c4; }
.btn--pill { height: var(--pill-h); padding: 0 2.5em; }
.btn--icon { width: var(--pill-h); height: var(--pill-h); border-radius: 50%; }
.btn--icon svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.4; }
/* Umrandete Buttons: Text wird beim Hover weiß (0.3s, beim Verlassen mit 0.3s Verzögerung zurück) */
.btn--outline { border: 1px solid var(--line); color: var(--ink); --fill: var(--ink); transition: color 0.3s ease-out 0.3s; }
.btn--outline.is-hover { color: #fff; transition: color 0.3s ease-in; }
.btn--outline.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--outline-light { border: 1px solid var(--line-dark); color: #fff; --fill: var(--accent); }
.btn sup { font-size: 0.6em; margin-left: 0.3em; vertical-align: 0.6em; }

/* ========== Logos ========== */
.logos { padding: 0 0 clamp(48px, 6vw, 96px); }
/* Label bündig mit „Recent Work“ und den Projektnamen darunter */
.logos__label { padding: 0 var(--pad) 0 calc(var(--pad) + var(--case-indent)); max-width: 1500px; margin: 0 auto 2.5em; box-sizing: content-box; }
.logos__marquee {
  overflow: hidden; border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.logos__marquee:hover .logos__track { animation-play-state: paused; }
.logos__set { display: flex; align-items: center; }
/* Alle Logos einfarbig in Textfarbe, gedimmt; beim Hover volle Deckkraft */
.logo {
  display: flex; align-items: center; height: clamp(110px, 9vw, 160px);
  padding: 0 clamp(32px, 3.6vw, 64px); color: var(--ink); white-space: nowrap;
  opacity: 0.42; transition: opacity 0.4s var(--ease-out);
}
.logo:hover { opacity: 1; }
.logo img { height: calc(var(--h) * clamp(0.72px, 0.07vw, 1.1px)); width: auto; }
/* maplee: Logo ist Icon + Webfont-Schriftzug */
.logo--maplee { gap: 0.4em; font-family: "Raleway", var(--font); font-weight: 700; font-size: calc(var(--h) * clamp(0.72px, 0.07vw, 1.1px) * 0.88); line-height: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========== Sektionen allgemein ========== */
.section-head { max-width: 1500px; margin: 0 auto clamp(40px, 4.5vw, 80px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.1; margin-top: 1.2rem; max-width: 16em; }
.chip {
  font-size: var(--fs-small); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1;
  padding: 0.7em 1.1em; border-radius: 99px;
  border: 1px solid var(--accent); color: var(--accent); white-space: nowrap;
}
.chip--inline { margin-left: 8px; }

/* ========== Leistungen ========== */
.service__num { font-size: var(--fs-small); letter-spacing: 0.05em; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: var(--fs-small); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; padding: 0.8em 1.1em; border: 1px solid var(--line); border-radius: 99px; }

/* ========== Cases ========== */
/* Maße wie „Recent work“ bei Dennis: Einzug = Container-Padding, Spalten 70/30 */
.cases {
  --case-ease: 0.3s cubic-bezier(0.7, 0, 0.3, 1);
  padding: 0 var(--pad) clamp(100px, 12vw, 200px);
}
.cases__label { max-width: 1500px; margin: 0 auto; padding: 0 0 var(--case-gap) var(--case-indent); }
.case__year { text-align: right; }
.cases__list { max-width: 1500px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.cases__tiles { display: none; }
.case { border-top: 1px solid var(--line); }
.case a { display: grid; align-items: center; max-width: 1500px; margin: 0 auto; transition: opacity var(--case-ease); }
.case--home a {
  grid-template-columns: 70% 30%;
  padding: calc(var(--section-pad) / 3.5) 0 calc(var(--section-pad) / 3);
}
.case--home h3 { padding-left: var(--case-indent); }
.case--home .case__meta { padding: 0.25em calc(var(--case-indent) / 2) 0 var(--case-gap); }
.case h3 {
  font-size: var(--fs-case); font-weight: 400; line-height: 1;
  transition: transform var(--case-ease);
}
.case__meta, .case__year { transition: transform var(--case-ease); }
/* Wie bei Dennis: die Zeile unter der Maus wird blass, darüber liegt die Vorschau */
.case a:hover { opacity: 0.33; }
.case a:hover h3 { transform: translateX(calc(var(--case-indent) * -0.1)); }
.case a:hover .case__meta { transform: translateX(calc(var(--case-indent) * 0.1)); }

.preview {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: 28vw; height: 22vw; min-width: 320px; min-height: 250px; overflow: hidden;
  transform: translate(-50%, -50%) scale(0); transition: transform 0.45s var(--ease-out);
}
.preview.is-active { transform: translate(-50%, -50%) scale(1); }
.preview__slider { height: 100%; transition: transform 0.6s var(--ease); }
.preview__card {
  height: 100%; padding: 2.2em; color: #fff; background: var(--c);
  display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%);
}
.preview__k { font-size: var(--fs-small); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.7; }
.preview__v { font-size: clamp(32px, 3.3vw, 60px); line-height: 1.05; }
.preview__f { font-size: var(--fs-small); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.6; }
/* Screenshot im farbigen Rahmen wie die Projektbilder bei Dennis */
.preview__card--shot { justify-content: center; align-items: center; padding: 0; background-image: none; }
.preview__card--shot img { width: 82%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; box-shadow: 0 1.2em 2.4em rgba(0, 0, 0, 0.18); }

/* ========== Kennzahlen ========== */
.stats { padding: 0 var(--pad) clamp(100px, 12vw, 200px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6em; max-width: 1500px; margin: 0 auto; }
.stat { display: flex; flex-direction: column; gap: 0.8em; padding-top: 1.6em; border-top: 1px solid var(--ink); }
.stat__v { font-size: var(--fs-case); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__l { color: var(--muted); }

/* ========== Kundenstimme ========== */
.quote { padding: 0 var(--pad) clamp(100px, 12vw, 200px); max-width: calc(1500px + 2 * var(--pad)); margin: 0 auto; }
.quote blockquote { font-size: var(--fs-h3); line-height: 1.2; margin: 1.1em 0 1.3em; max-width: 22em; }
.quote__by { display: flex; align-items: center; gap: 1em; line-height: 1.4; }
.quote__by span:not(.quote__avatar) { display: block; color: var(--muted); }
.quote__by strong { font-weight: 400; }
.quote__avatar { width: 3.2em; height: 3.2em; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: var(--fs-small); letter-spacing: 0.05em; }

/* ========== Tool-Stack ========== */
.stack { padding: 0 var(--pad) clamp(140px, 14vw, 240px); max-width: calc(1500px + 2 * var(--pad)); margin: 0 auto; }
.stack__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2em; }
.stack__list li { display: flex; align-items: center; height: var(--pill-h); padding: 0 2.2em; border: 1px solid var(--line); border-radius: 99px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.stack__list li:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ========== Geschwungener Übergang ========== */
/* Aufbau wie in der Referenz: 10vh hoher Ausschnitt einer 150% breiten Ellipse */
.curve { position: relative; height: 0; z-index: 2; }
.curve__wrap { position: relative; width: 100%; height: 10vh; overflow: hidden; transform: translateY(-1px); will-change: height; }
.curve__shape {
  position: absolute; left: 50%; width: 150%; height: 750%;
  background: var(--bg); border-radius: 50%;
  transform: translate(-50%, -86.666%);
}

/* ========== Footer ========== */
.footer {
  background:
    radial-gradient(60% 50% at 85% 100%, rgba(30, 83, 249, 0.22), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(58, 250, 255, 0.07), transparent 70%),
    var(--dark);
  color: #fff; overflow: hidden; position: relative;
}
/* Verlauf am oberen Rand: Inhalt gleitet weich darunter hervor statt hart abgeschnitten zu werden */
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; pointer-events: none;
  height: 11vh; background: linear-gradient(var(--dark) 0%, transparent 100%); opacity: 0.75;
}
.footer__inner { padding: clamp(120px, 13vw, 240px) var(--pad) clamp(24px, 2.2vw, 40px); will-change: transform; }
.footer__top, .footer__line, .footer__pills, .footer__bottom { max-width: 1300px; margin-left: auto; margin-right: auto; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; }
.footer__title { font-size: var(--fs-footer); font-weight: 400; line-height: 1.065; }
.footer__avatar { display: inline-block; width: 0.9em; height: 0.9em; border-radius: 50%; overflow: hidden; vertical-align: -0.1em; margin-right: 0.25em; }
.footer__avatar img { width: 100%; height: 100%; object-fit: cover; }
.footer__arrow { width: 1.6em; fill: none; stroke: #fff; stroke-width: 1.2; margin-bottom: 1.2em; }
.footer__line { position: relative; border-bottom: 1px solid var(--line-dark); margin-top: 6vw; margin-bottom: 8vw; }
/* --cta-x wird beim Scrollen gesetzt: Button gleitet horizontal in seine Endposition */
.footer__cta { position: absolute; right: 12%; top: 0; transform: translate(var(--cta-x, 0px), -50%); }
.footer__pills { display: flex; flex-wrap: wrap; gap: 1em; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: 10vw;
}
.footer .eyebrow { color: rgba(255, 255, 255, 0.5); margin-bottom: 1.2em; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.6em 3em; }
/* Rudi Media mit rm-Zeichen plus Impressum und Datenschutz, ohne Überschrift */
.footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4em 1.4em; }
.footer__label { display: inline-flex; align-items: center; gap: 0.5em; }
.footer__label img { height: 0.9em; width: auto; }

/* ========== Rechtliche Seiten ========== */
.legal { padding-bottom: clamp(100px, 10vw, 180px); }
.legal__body { max-width: 46em; margin-top: clamp(48px, 5vw, 90px); }
.legal__body h2 { font-size: var(--fs-h4); font-weight: 400; margin: 2.2em 0 0.7em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { line-height: 1.66; color: var(--muted); }
.legal__body p + p { margin-top: 1em; }
.legal__body strong { color: var(--ink); font-weight: 400; }
.legal__body ul { margin: 1em 0; padding-left: 1.2em; line-height: 1.66; color: var(--muted); }
.legal__body li + li { margin-top: 0.5em; }
.legal__todo { background: rgba(30, 83, 249, 0.1); color: var(--accent); padding: 0 0.3em; border-radius: 4px; }
.footer__socials div { display: flex; gap: 2em; }
.footer__socials a { position: relative; }
.footer__socials a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.footer__socials a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ========== Startseite: Bühne im Hero + „Mehr Arbeiten“ ========== */
.hero__stage { position: absolute; inset: 0; }
.cases__more { display: flex; justify-content: center; margin-top: clamp(48px, 5vw, 90px); }

/* ========== Unterseiten allgemein ========== */
.wrap { width: min(100% - 2 * var(--pad), 1180px); margin-inline: auto; }
.page-head { padding-top: max(25vh, 140px); }
.page-title { font-size: var(--fs-case); font-weight: 400; line-height: 1.065; }

/* ========== Arbeit ========== */
.work { padding-bottom: clamp(120px, 14vw, 240px); }
.work__controls { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin: clamp(40px, 4.5vw, 80px) 0 clamp(60px, 7vw, 120px); }
.work__filters, .work__views { display: flex; flex-wrap: wrap; gap: 0.6em; }
.work__head, .case--work a { display: grid; grid-template-columns: 1fr 14vw 18vw 6vw; align-items: center; gap: 1em; }
.work__head { font-size: var(--fs-small); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-bottom: 2em; }
.work__head span:last-child { text-align: right; }
.case--work a { padding: clamp(32px, 3vw, 52px) 0; }
.case--work h3 { font-size: clamp(26px, 3.2vw, 56px); }
.work[data-view="grid"] .work__list, .work[data-view="list"] .work__grid { display: none; }
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 5vw, 96px) clamp(24px, 4vw, 72px); }
.work-card__media { aspect-ratio: 4 / 3.1; overflow: hidden; }
.work-card__media .preview__card { transition: transform 0.8s var(--ease-out); }
.work-card a:hover .preview__card { transform: scale(1.03); }
.work-card__title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.1; margin: 0.7em 0 0.5em; }
.work-card__meta { display: flex; justify-content: space-between; padding-top: 1em; border-top: 1px solid var(--line); color: var(--muted); }
[hidden] { display: none !important; }

/* ========== Über mich ========== */
.about-intro { padding-bottom: clamp(100px, 12vw, 200px); }
.about__stripe { position: relative; border-top: 1px solid var(--line); margin: clamp(60px, 7vw, 120px) 0 clamp(80px, 9vw, 150px); }
.about__globe-btn { position: absolute; right: 12%; top: 0; transform: translateY(-50%); }
.about__globe-btn .globe { --s: clamp(32px, 3.4vw, 60px); }
.about__grid { display: grid; grid-template-columns: 6vw 19vw 1fr; gap: clamp(24px, 3vw, 56px); align-items: start; }
.about__arrow { width: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.3; }
.about__text p { line-height: 1.66; }
.about__text p + p { margin-top: 2.5em; color: var(--muted); }
/* Hochformat-Foto: oben Baumkrone abschneiden, damit die ganze Person im Bild bleibt */
.about__photo { aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 50% 100%; width: 100%; background: #d4d5d3; }
.about-services { padding-bottom: clamp(100px, 12vw, 200px); }
.about-services__title { font-size: var(--fs-h3); font-weight: 400; margin-bottom: clamp(48px, 5vw, 90px); }
.about-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 72px); }
.about-service__num { font-size: var(--fs-small); letter-spacing: 0.05em; color: var(--muted); }
.about-service__line { border-top: 1px solid var(--line); margin: 1.6em 0 2.2em; }
.about-service h3 { font-size: var(--fs-h4); font-weight: 400; line-height: 1.2; margin-bottom: 0.8em; }
.about-service p { line-height: 1.66; color: var(--muted); }
.about-service .tags { margin-top: 1.8em; }
.about-extra { padding-bottom: clamp(140px, 14vw, 240px); }
.about-extra__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: start; }
.about-extra__title { font-size: var(--fs-case); font-weight: 400; line-height: 1.065; }
.about-extra__photo { display: block; width: min(100%, 26vw); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; margin-top: clamp(32px, 4vw, 64px); background: #1c1d20; }
.about-extra__text p { line-height: 1.66; margin-bottom: 2.5em; }
.about-extra__text p:not(:last-of-type) { margin-bottom: 1.2em; }

/* ========== Kontakt (dunkle Seite) ========== */
body.theme-dark { --bg: var(--dark); --line: rgba(255, 255, 255, 0.18); --muted: rgba(255, 255, 255, 0.5); background: var(--dark); color: #fff; }
.theme-dark .nav { color: #fff; }
.contact { padding-bottom: clamp(100px, 10vw, 180px); }
.contact__head, .contact__body { display: grid; grid-template-columns: 1fr 20vw; gap: clamp(32px, 6vw, 120px); }
.contact__head { align-items: end; }
.contact__aside-top { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 72px); }
.contact__avatar { width: clamp(72px, 7vw, 120px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.contact__arrow { width: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.3; }
.contact__body { margin-top: clamp(60px, 7vw, 120px); }
.field { display: grid; grid-template-columns: 4em 1fr; border-top: 1px solid var(--line); padding: clamp(28px, 2.6vw, 48px) 0; }
.field__num { font-size: var(--fs-small); letter-spacing: 0.05em; color: var(--muted); padding-top: 0.9em; }
.field label { display: block; font-size: var(--fs-h4); line-height: 1.3; }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 0.5em; background: none; border: 0; outline: 0; resize: none;
  font: inherit; font-size: calc(var(--fs-h4) * 0.72); color: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.contact-form__end { position: relative; border-top: 1px solid var(--line); margin-top: 1em; padding-top: clamp(100px, 9vw, 160px); }
.contact-form__send { position: absolute; right: 10%; top: 0; transform: translateY(-50%); }
.contact-form__note { color: var(--muted); margin-bottom: 1.2em; }
.contact-form__note.is-success { color: var(--accent-2); }
.contact-form__note.is-error { color: #ff8a80; }
.contact-form__privacy { font-size: var(--fs-small); line-height: 1.6; color: var(--muted); max-width: 34em; }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field.is-invalid { border-top-color: #ff8a80; }
.field.is-invalid label { color: #ff8a80; }
.contact-form.is-sending .contact-form__send { opacity: 0.5; pointer-events: none; }
.contact__details > div + div { margin-top: clamp(32px, 3vw, 56px); }
.contact__details .eyebrow { margin-bottom: 1.4em; }
.contact__details p, .contact__details a { display: block; line-height: 1.8; }

/* ========== Case-Seiten (Maße wie /work/… der Referenz bei 1440 × 820 gemessen) ========== */
/* Text-Container 16vw Einzug (230px), Bild-Container 8vw (115px) */
.case-wrap { padding-inline: max(var(--pad), 16vw); }
.case-wide { padding-inline: max(var(--pad), 8vw); }
.case-head { padding-top: max(28vh, 140px); }
.case-head__title { font-size: clamp(44px, 7vw, 134px); font-weight: 400; line-height: 1.065; }
.case-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4.5vw; padding-block: 12vh 16.8vh; }
.case-info .eyebrow { padding-bottom: clamp(20px, 2.1vw, 34px); border-bottom: 1px solid var(--line); margin-bottom: clamp(18px, 1.9vw, 30px); }
/* Großes Bild mit Parallax, runder Button sitzt mittig auf der Oberkante */
.case-cover { padding-bottom: var(--section-pad); }
.case-cover__inner { position: relative; padding-inline: max(var(--pad), 8vw); }
.case-cover__btn { position: absolute; z-index: 2; top: calc(var(--btn) * -0.5); right: max(var(--pad), 14vw); }
.case-cover__media { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: #e4e4e4; }
.case-cover__media img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }

/* Schritte: Nummer | Titel | Text, getrennt durch Linien */
.case-steps { padding-bottom: var(--section-pad); }
.case-steps__title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.1; margin-bottom: clamp(40px, 4.5vw, 80px); }
.case-steps__list { list-style: none; border-bottom: 1px solid var(--line); }
.case-step { display: grid; grid-template-columns: 5em 1fr 1.5fr; gap: clamp(16px, 3vw, 56px); padding: clamp(28px, 2.8vw, 48px) 0; border-top: 1px solid var(--line); }
.case-step__num { font-size: var(--fs-small); letter-spacing: 0.05em; color: var(--muted); padding-top: 0.9em; }
.case-step h3 { font-size: var(--fs-h4); font-weight: 400; line-height: 1.2; }
.case-step p { line-height: 1.66; color: var(--muted); }

/* Grauer Block mit Browserfenster wie die Geräte-Blöcke der Referenz */
.case-block--grey { background: #dddddd; padding-block: var(--section-pad); }
.case-browser { width: min(60vw, 150vh); margin: 0 auto; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2.4vw 5vw rgba(0, 0, 0, 0.16); }
.case-browser__bar { display: flex; align-items: center; gap: 6px; height: clamp(28px, 2.4vw, 40px); padding: 0 14px; background: #f3f3f3; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.case-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d0d0; }
.case-browser__bar span { margin: 0 auto; padding-right: 48px; font-size: var(--fs-small); color: var(--muted); }
.case-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1c1d20; }
.case-block__caption { margin-top: clamp(28px, 2.6vw, 44px); text-align: center; font-size: var(--fs-small); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

/* Bild über die volle Breite, größer als der Ausschnitt für den Parallax-Weg */
.case-full { position: relative; height: min(66vw, 120vh); overflow: hidden; background: #e4e4e4; }
.case-full img { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; object-fit: cover; }

.case-interview { padding-block: var(--section-pad); }
.case-interview__head { margin-bottom: clamp(40px, 4.5vw, 80px); }
.case-interview__head h2 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.1; margin-top: 1em; }
.case-interview__player { position: relative; }
.case-interview__player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.case-interview__play { position: absolute; left: 50%; top: 50%; margin: calc(var(--btn) * -0.5) 0 0 calc(var(--btn) * -0.5); transition: opacity 0.3s; }
.case-interview__player.is-playing .case-interview__play { opacity: 0; pointer-events: none; }

.case-clips { padding-bottom: var(--section-pad); }
.case-clips__title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.1; margin-bottom: clamp(40px, 4.5vw, 80px); }
.case-clips__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 3.4vw, 56px) clamp(16px, 2vw, 32px); }
.case-clips__grid span { display: block; padding-top: 1em; margin-top: 1em; border-top: 1px solid var(--line); }

.case-photos { display: grid; gap: clamp(16px, 2vw, 32px); padding-inline: max(var(--pad), 8vw); padding-bottom: var(--section-pad); }
.case-photos__row { display: grid; gap: inherit; }
.case-photos__row img { width: 100%; height: 100%; object-fit: cover; background: #e4e4e4; }
.case-photos__row--three { grid-template-columns: repeat(3, 1fr); }
.case-photos__row--three img { aspect-ratio: 2 / 3; }
.case-photos__row--two { grid-template-columns: 1.5fr 1fr; grid-template-rows: 36vw; }
.case-photos__row--two img { min-height: 0; }

/* Feature-Block: Screenshot links, Ablauf rechts */
.case-feature { display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: center; padding-block: var(--section-pad); }
.case-feature__shot img { display: block; width: 100%; border-radius: 10px; box-shadow: 0 2.4vw 5vw rgba(0, 0, 0, 0.14); }
.case-feature__title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.1; margin: 1em 0 clamp(32px, 3vw, 56px); }
.case-flow { list-style: none; border-bottom: 1px solid var(--line); }
.case-flow li { display: grid; grid-template-columns: 3.5em 1fr; padding: clamp(20px, 1.8vw, 30px) 0; border-top: 1px solid var(--line); }
.case-flow span { font-size: var(--fs-small); letter-spacing: 0.05em; color: var(--muted); padding-top: 0.35em; }
.case-flow h3 { font-size: calc(var(--fs-body) * 1.2); font-weight: 400; margin-bottom: 0.4em; }
.case-flow p { line-height: 1.66; color: var(--muted); }

/* Drei Handy-Ansichten nebeneinander */
.case-phones { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(16px, 4vw, 72px); padding-inline: var(--pad); }
.case-phones img { display: block; width: 100%; border-radius: clamp(16px, 1.8vw, 30px); box-shadow: 0 2.4vw 5vw rgba(0, 0, 0, 0.16); }

/* SEO-Punkte als 2×2-Raster, darunter zwei Screenshots */
.case-seo { padding-top: var(--section-pad); }
.case-seo__title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.1; margin-bottom: clamp(40px, 4.5vw, 80px); }
.case-seo__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 4.5vw, 80px); }
.case-seo__list li { padding: clamp(24px, 2.4vw, 40px) 0; border-top: 1px solid var(--line); }
.case-seo__list h3 { font-size: var(--fs-h4); font-weight: 400; line-height: 1.2; margin-bottom: 0.6em; }
.case-seo__list p { line-height: 1.66; color: var(--muted); }
.case-shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; padding: clamp(48px, 6vw, 112px) max(var(--pad), 8vw) var(--section-pad); }
.case-browser--fluid { width: 100%; }
.case-browser--fluid img { display: block; width: 100%; }

/* „Nächstes Projekt“: dunkel wie der Footer der Referenz, Vorschau erscheint beim Hover */
.next-case { background: var(--dark); color: #fff; padding-top: var(--section-pad); }
.next-case__link { position: relative; display: block; padding-bottom: calc(var(--section-pad) * 0.8); }
.next-case .eyebrow { color: rgba(255, 255, 255, 0.5); margin-bottom: 1.4em; }
.next-case__title { position: relative; z-index: 2; font-size: clamp(44px, 7vw, 134px); font-weight: 400; line-height: 1.065; transition: opacity 0.3s; }
.next-case__tile {
  position: absolute; z-index: 1; left: 50%; top: 40%; width: clamp(240px, 25vw, 420px); aspect-ratio: 16 / 10; overflow: hidden;
  transform: translate(-50%, -40%) scale(0.6); opacity: 0; pointer-events: none;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.next-case__tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.next-case__link:hover .next-case__tile { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.next-case__link:hover .next-case__title { opacity: 0.6; }
.next-case__line { margin-inline: max(var(--pad), 16vw); border-top: 1px solid var(--line-dark); }
.next-case__more { display: flex; justify-content: center; transform: translateY(-50%); }
.next-case__more .btn { background: var(--dark); }
.case-page + .footer--mini { background: var(--dark); }

/* ========== Mini-Footer (Kontaktseite) ========== */
.footer--mini::before { display: none; }
.footer--mini .footer__inner { padding-top: clamp(24px, 2.2vw, 40px); }
.footer--mini .footer__bottom { margin-top: 0; }

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 3em; }
  .case--home a { grid-template-columns: 60% 40%; }
  .work__head, .case--work a { grid-template-columns: 1fr 18vw 22vw 8vw; }
  .about__grid { grid-template-columns: 1fr 1.4fr; }
  .about__arrow { display: none; }
}
@media (max-width: 720px) {
  :root { --pad: 20px; --fs-display: 26vw; --fs-footer: 10.5vw; }
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .menu__panel { min-width: 0; width: 100%; }
  .hero { min-height: 600px; }
  /* Porträt groß wie in der Referenz, Name läuft über das Shirt; Kopfzeile hell über den Haaren */
  .hero { --figure-h: 110%; }
  [data-page="home"] .nav { color: #fff; mix-blend-mode: difference; }
  /* Handy wie die Referenz: kein Standort, Name in der Mitte, darunter Pfeil und Rolle links unten */
  .hero__pill { display: none; }
  .hero__role { left: calc(50% - 50vw + var(--pad)); bottom: max(28px, 5.5svh); width: auto; max-width: calc(100vw - 2 * var(--pad)); font-size: clamp(20px, 6.2vw, 26px); line-height: 1.3; color: #fff; mix-blend-mode: difference; }
  .hero__arrow { width: 18px; margin-bottom: 18px; }
  .hero__marquee { bottom: 21%; }
  .logos__track { animation-duration: 16s; }
  .intro__grid { grid-template-columns: 1fr; padding: 0; }
  .intro__statement { padding-right: 0; }
  .intro__side { padding: 2em 0 0; }
  .intro__side p { margin-bottom: 2.5em; }
  .intro__btn { position: static; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .cases__label, .case--home h3, .case--home .case__meta { padding-left: 0; }
  .logos__label { padding-left: var(--pad); }
  .case--home a { grid-template-columns: 1fr; }
  .case a { grid-template-columns: 1fr auto; row-gap: 10px; }
  .case h3 { grid-column: 1 / -1; }
  .case__meta, .case__year { color: var(--muted); font-size: 14px; }
  .preview { display: none; }
  /* Projekte als Kacheln wie die Work-Tiles der Referenz: quadratisches Bild, Titel, Linie, Leistung und Jahr */
  .cases__list, .work[data-view] .work__list, .work__views { display: none; }
  .cases__tiles { display: block; padding-top: 24px; }
  .work[data-view] .work__grid { display: block; }
  .work-card + .work-card { margin-top: 97px; }
  .work-card__media { aspect-ratio: 1; }
  .work-card__title { font-size: 31.5px; line-height: 1; margin: 24px 0 16px; }
  .work-card__meta { padding-top: 16px; border-top-color: rgba(28, 29, 32, 0.224); color: var(--ink); }
  .footer { padding-bottom: 72px; }
  .footer__line { margin-top: 90px; margin-bottom: 110px; }
  .footer__cta { right: 0; }
  .footer__arrow { display: none; }
  .footer__pills .btn { width: 100%; }
  body.is-loading .once-in { translate: 0 10vh; }
  .loader__round--bottom { height: 5vh; }
  .work__controls { flex-direction: column; align-items: flex-start; }
  .work__head { display: none; }
  .case--work a { grid-template-columns: 1fr auto; }
  .case--work h3 { grid-column: 1 / -1; font-size: 30px; }
  .case--work .case__meta:nth-of-type(1) { display: none; }
  .work__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__arrow { display: none; }
  .about__globe-btn { right: 0; }
  .about-services__grid, .about-extra__grid { grid-template-columns: 1fr; }
  .about-extra__photo { width: 100%; }
  .contact__head, .contact__body { grid-template-columns: 1fr; }
  .contact__head .contact__arrow { display: none; }
  .contact-form__send { right: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 80px; }
  .footer__socials div { flex-wrap: wrap; gap: 18px; }
  .case-info { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 72px; }
  .case-cover__btn { right: var(--pad); }
  .case-cover__media { aspect-ratio: 4 / 3; }
  .case-step { grid-template-columns: 3em 1fr; }
  .case-step p { grid-column: 2; }
  .case-browser { width: calc(100% - 2 * var(--pad)); }
  .case-clips__grid { grid-template-columns: 1fr 1fr; }
  .case-photos__row--three, .case-photos__row--two { grid-template-columns: 1fr; grid-template-rows: none; }
  .case-photos__row--two img { aspect-ratio: 3 / 2; }
  .case-feature, .case-seo__list, .case-shots { grid-template-columns: 1fr; }
  .case-phones { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-words .w > span { transform: none; }
}

/* ========== Pixel-Cursor (nur Hero): Röntgenblick ========== */
.pixel-cursor { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }

/* ========== Footer auf Touch-Geräten ==========
   Gleiche Bewegung wie am Desktop, aber als Scroll-Animation auf dem Compositor statt per Skript,
   damit sie auf iOS nicht hinter dem nativen Scrollen herläuft. Strecke = letzte Footer-Höhe bis Seitenende */
@keyframes footer-curve { from { transform: translateY(-1px) scaleY(1); } to { transform: translateY(-1px) scaleY(0); } }
@keyframes footer-rise { from { transform: translate3d(0, calc(var(--footer-h, 100vh) * -0.4), 0); } to { transform: none; } }
@keyframes footer-cta { from { translate: calc(var(--footer-h, 100vh) * -0.1) 0; } to { translate: 0 0; } }
@media (hover: none) {
  .curve__wrap { transform-origin: top; will-change: transform; }
  .footer__inner { will-change: auto; }
}
@supports (animation-timeline: scroll()) {
  @media (hover: none) and (prefers-reduced-motion: no-preference) {
    .curve__wrap, .footer__inner, .footer__cta {
      animation-duration: auto; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: scroll(root);
      animation-range: calc(100% - var(--footer-h, 100vh)) 100%;
    }
    .curve__wrap { animation-name: footer-curve; animation-range: calc(100% - 100vh) 100%; }
    .footer__inner { animation-name: footer-rise; }
    .footer__cta { animation-name: footer-cta; }
  }
}
