/* ============================================================= */
/*  The CDB Studio — Stylesheet                                   */
/*  Aufbau:                                                       */
/*   1. Design Tokens (Custom Properties)                         */
/*   2. Reset & Basis                                             */
/*   3. Wiederkehrende Bausteine (eyebrow, section-title, chip)   */
/*   4. Navigation                                                */
/*   5. Hero + blauer Faden                                       */
/*   6. Sektionen (disciplines, work, studio, cases, team, …)     */
/*   7. Footer                                                    */
/*   8. Sticker-Layer & Augen                                     */
/*   9. Scroll-Reveal Animationen                                 */
/*  10. Responsive                                                */
/* ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  --cream:      #f0ebdf;   /* Seitenhintergrund */
  --cream-2:    #efe9da;
  --ink:        #0c0c0c;   /* Near-Black, Text & Headlines */
  --blue:       #1a47f0;   /* Signal-Blau (Faden) */
  --blue-deep:  #143ad6;
  --red:        #fb2a17;   /* Signal-Rot (Sticker/Asterisk) */
  /* Erweiterte, verspielte Palette (Patches & Akzente) */
  --pink:       #ff4d8d;
  --orange:     #ff7a1a;
  --yellow:     #ffc23d;
  --white:      #ffffff;
  --muted:      #6b6760;   /* gedämpfter Text auf Cream */

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-text:    'Inter', system-ui, sans-serif;

  --container: 1180px;
  --pad-x: clamp(20px, 5vw, 72px);
  --radius: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Hover-Grundprinzip „Anheben & Kippen" – überall dieselbe Sprache,
     pro Element nur minimal abgewandelt (Hub/Neigung via Variablen). */
  --hover-lift: -4px;      /* Standard-Anhebung */
  --hover-tilt: -1.4deg;   /* Standard-Neigung   */
  --hover-shadow: 0 16px 32px rgba(12,12,12,0.14);
}

/* ---------- 2. Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  position: relative;          /* Bezugsrahmen für den Sticker-Layer (volle Dokumenthöhe) */
  font-family: var(--font-text);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Marken-Cursor: blauer Punkt mit weißem Ring (auf Creme & Blau sichtbar) */
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26"><circle cx="13" cy="13" r="6.5" fill="%231a47f0" stroke="%23ffffff" stroke-width="3"/></svg>') 13 13, auto;
}
/* Klickbares bekommt einen roten Punkt (passend zum Asterisk) */
a, button, [role="tab"], .chip, .nav__cta, label, summary {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30"><circle cx="15" cy="15" r="8.5" fill="%23fb2a17" stroke="%23ffffff" stroke-width="3"/></svg>') 15 15, pointer;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
strong { font-weight: 700; }

section { position: relative; }

/* ---------- 3. Wiederkehrende Bausteine ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(30px, 4.4vw, 54px);
  margin-top: 16px;
}
.section-title--big {
  font-size: clamp(40px, 6.5vw, 86px);
  font-weight: 900;
}

.chip {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chip.is-active { background: var(--ink); color: var(--white); }
/* Hover-Prinzip „Anheben & Kippen" (leichte Variante) */
.chip:hover { transform: translateY(-2px) rotate(-0.8deg); }
.chip:not(.is-active):hover { background: rgba(12,12,12,0.07); }

/* Container-Breite für die meisten Sektionen */
.work, .studio, .cases, .team, .disciplines, .footer__cols, .footer__bar {
  margin-inline: auto;
  max-width: var(--container);
  padding-inline: var(--pad-x);
}

/* ---------- 4. Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px var(--pad-x);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(240, 235, 223, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(12,12,12,0.08);
  border-radius: 999px;
  padding: 7px 8px 7px 16px;
}
.nav__menu a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease);
}
.nav__menu a:hover { color: var(--ink); }
.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  margin-left: 6px;
  transition: background 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* Hover-Prinzip „Anheben & Kippen" */
.nav__cta:hover { background: var(--blue-deep); transform: translateY(-3px) rotate(-1.4deg); box-shadow: 0 14px 28px rgba(26,71,240,0.34); }
.nav.is-scrolled .nav__menu { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

/* ---------- 5. Hero + blauer Faden ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 var(--pad-x);
}
/* Ein durchgehender Faden über die ganze Seite (Größe/Pfad via js/thread.js).
   Liegt hinter allen Inhalten; weht durch transparente Flächen und
   verschwindet hinter undurchsichtigen Karten/Bildern und dem blauen Panel. */
#thread {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
#thread path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 100;          /* in Dokument-Pixeln */
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Auf schmalen Screens dünner, damit der Faden nicht über Text läuft */
@media (max-width: 760px) { #thread path { stroke-width: 64; } }
@media (max-width: 460px) { #thread path { stroke-width: 46; } }
/* Inhalte über den Faden heben */
main, .footer { position: relative; z-index: 1; }
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}
.hero__logo {
  width: clamp(320px, 55vw, 760px);
  height: auto;
  margin-bottom: 28px;
}
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 44ch;
}

/* ---------- 6a. Disciplines (blaues Panel) ---------- */
.disciplines {
  margin-top: clamp(-40px, -4vw, -20px);
  padding-bottom: clamp(60px, 8vw, 110px);
  z-index: 1;
}
/* Kontur-Rahmen: blauer Rand immer sichtbar, auch wenn das Panel noch leer ist. */
.disciplines__box {
  border-radius: clamp(28px, 4vw, 56px);
  background: var(--cream);
  overflow: hidden;
  box-shadow: inset 0 0 0 2.5px var(--blue);
}
/* Panel füllt sich per clip-path beim Scrollen von oben nach unten.
   --disc (0→1) wird per rAF in js/main.js gesetzt.
   Kein round hier – die Ecken übernimmt overflow:hidden der Box. */
.disciplines__panel {
  background: var(--blue);
  color: var(--white);
  border-radius: inherit;
  padding: clamp(30px, 5vw, 72px) clamp(28px, 5vw, 80px) clamp(40px, 6vw, 90px);
  clip-path: inset(0 0 calc((1 - var(--disc, 1)) * 100%) 0);
}
@media (prefers-reduced-motion: reduce) {
  .disciplines__panel { clip-path: none; }
}
.disciplines__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-size: clamp(34px, 5.2vw, 70px);
  margin-bottom: clamp(30px, 4vw, 56px);
}
.disciplines__list { list-style: none; }
.discipline {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 18px;
  align-items: start;
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.discipline__num {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
  padding-top: 10px;
}
.discipline__body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.05;
}
.discipline__body p {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 15px;
  color: rgba(255,255,255,0.72);
}

/* ---------- 6b. Work / Projekte ---------- */
.work { padding-top: clamp(50px, 7vw, 100px); padding-bottom: clamp(50px, 7vw, 100px); }
.work__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 34px; }
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.card {
  border-radius: 14px;
  overflow: hidden;
  background: #2a2a2e;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card img { width: 100%; height: 100%; object-fit: cover; }
/* Hover-Prinzip „Anheben & Kippen" */
.card:hover { transform: translateY(-6px) rotate(var(--hover-tilt)); box-shadow: 0 22px 48px rgba(0,0,0,0.22); }
.card:nth-child(even):hover { transform: translateY(-6px) rotate(calc(-1 * var(--hover-tilt))); }

/* ---------- 6c. Studio / Stats ---------- */
.studio {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(60px, 8vw, 120px);
}
.studio__media {
  border-radius: 50% 50% 50% 50% / 8% 8% 8% 8%;
  border-radius: 280px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.studio__media img { width: 100%; height: 100%; object-fit: cover; }
.studio__text .section-title { font-size: clamp(26px, 3.4vw, 42px); max-width: 22ch; }
.studio__text p { margin-top: 18px; max-width: 52ch; color: #2c2a26; }
.stats { margin-top: clamp(30px, 4vw, 50px); }
.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(12,12,12,0.18);
}
.stat dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.02em;
}
.stat dd {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ---------- 6d. Case Studies ---------- */
.cases { padding-top: clamp(50px, 7vw, 100px); padding-bottom: clamp(50px, 7vw, 100px); }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 999px;
  padding: 5px 12px;
}
.case {
  background: var(--cream-2);
  border: 1px solid rgba(12,12,12,0.08);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}
.case h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(20px, 2.4vw, 30px);
  margin: 16px 0 12px;
}
.case p { color: #2c2a26; max-width: 60ch; font-size: 15px; }
.case--media {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: 28px;
}
.case__commission {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px !important;
  font-style: italic;
}
/* Bilder + Kunden-Logo gestapelt in der rechten Spalte */
.case__media { display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 38px); }
.case__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case__client {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 28px);
  padding: clamp(16px, 1.8vw, 22px) clamp(20px, 2.4vw, 30px);
  background: var(--cream);
  border: 1px solid rgba(12, 12, 12, 0.08);
  border-radius: 16px;
}
.case__client-divider {
  width: 1px;
  align-self: stretch;
  margin: 2px 0;
  background: rgba(12, 12, 12, 0.14);
}
.case__client-logo {
  height: clamp(48px, 5.5vw, 64px);
  width: auto;
  object-fit: contain;
}
.case__gallery img { border-radius: 12px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.case__gallery img:nth-child(2) { transform: translateY(18px); }
.case__video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: #0c0c0c; }

.case-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(30px, 4vw, 56px);
}
.case__app {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(12,12,12,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}
.case__app img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- 6e. Team ---------- */
.team { padding-top: clamp(50px, 7vw, 110px); padding-bottom: clamp(60px, 8vw, 120px); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: clamp(30px, 6vw, 80px);
  margin-top: clamp(34px, 5vw, 64px);
  justify-content: center;
}
.member__photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: #2a2a2e;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member--offset { margin-top: clamp(0px, 6vw, 80px); }
.member figcaption { padding-top: 16px; }
.member h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.member__role {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.member__mail { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.member__mail:hover { color: var(--ink); }

/* ---------- 6f. Kontakt (full blau, Faden läuft hier hinein) ---------- */
.contact {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: clamp(72px, 9vw, 140px) var(--pad-x) clamp(80px, 10vw, 150px);
}
.contact__headline {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.0;
  font-size: clamp(40px, 7.4vw, 112px);
  transition: transform 0.4s var(--ease);
}
.contact__headline:hover { transform: translateY(-4px) rotate(-1.2deg); }
.contact__headline:hover .contact__star { transform: rotate(90deg) scale(1.1); }
.contact__star { display: inline-block; width: 0.42em; height: 0.42em; vertical-align: super; margin-left: 0.06em; transition: transform 0.45s var(--ease); transform-origin: center; }
.contact__cta {
  display: block;
  width: fit-content;
  margin: clamp(36px, 5vw, 60px) auto 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 1.1em 2.6em;
  border-radius: 100px;
  text-decoration: none;
  transition: box-shadow 0.35s var(--ease);
}
.contact__cta:hover {
  box-shadow: 0 18px 44px rgba(12,12,12,0.28);
}

/* ---------- 7. Footer (full blau, nahtlos an die Kontakt-Sektion) ---------- */
.footer {
  background: var(--blue);
  color: var(--white);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: 30px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 50px;
}
.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.footer__col a, .footer__col p { display: block; font-size: 14px; color: var(--white); margin-bottom: 6px; }
.footer__col a:hover { color: rgba(255,255,255,0.7); }
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.22);
  flex-wrap: wrap;
}
.footer__star { width: 18px; height: 18px; }
.footer__copy { font-size: 12px; color: rgba(255,255,255,0.6); }
.footer__links { display: flex; gap: 22px; font-size: 12px; color: rgba(255,255,255,0.6); }
.footer__links a:hover { color: var(--white); }

/* ---------- 7b. Impressum-Modal ---------- */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(560px, 92vw);
  width: 100%;
  margin: auto;
  color: var(--ink);
}
.modal::backdrop {
  background: rgba(12, 12, 12, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  background: rgba(12, 12, 12, 0.06);
  transition: background 0.2s var(--ease);
}
.modal__close:hover { background: rgba(12, 12, 12, 0.12); }
.modal__title {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 22px;
}
.modal__star { width: 0.4em; height: 0.4em; margin-top: 0.12em; }
.modal__content h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 8px;
}
.modal__content h3:first-child { margin-top: 0; }
.modal__content p { font-size: 15px; line-height: 1.65; color: #2c2a26; }
.modal__content a { color: var(--blue); }
.modal__content a:hover { text-decoration: underline; }
.modal[open] { animation: modalIn 0.25s var(--ease); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 7c. Projekt-Detail-Modal ---------- */
.project-modal { max-width: min(860px, 94vw); }
.project-modal .modal__card { max-height: 90vh; overflow-y: auto; }
/* Titel mit rotem Asterisk */
.project-modal .modal__title { margin-bottom: 12px; }
.project-modal__desc {
  font-size: 17px;
  line-height: 1.65;
  margin-top: 14px;
}
.project-modal__detail {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 10px;
}
.project-modal__images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
  margin-top: clamp(22px, 3vw, 36px);
  align-items: start;
}
.project-modal__media {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #2a2a2e;
}
.project-modal__media.is-landscape { aspect-ratio: 16 / 9; }
.project-modal__media.is-portrait  { aspect-ratio: 9 / 16; }
/* Video-Platzhalter (bis echtes Video eingesetzt wird) */
.project-modal__videoph {
  position: relative;
  overflow: hidden;
}
.project-modal__videoph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-modal__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #fff;
  background: rgba(12, 12, 12, 0.28);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
/* Disziplinen sind klickbar → Arbeiten-Filter */
.discipline[data-work-filter] { cursor: pointer; }
.discipline[data-work-filter]:hover .discipline__body h3::after {
  content: ' →';
  opacity: 0.5;
}
/* Karten im Work-Grid sind klickbar */
.card { cursor: pointer; }

/* Grid passt sich der Projekt-Anzahl an */
.work__grid[data-count="1"] { grid-template-columns: 1fr; }
.work__grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }

/* Motivierender Platzhalter ("Hier ist Platz für dein Projekt!") */
.card--placeholder {
  cursor: default;
  background: transparent;
  border: 2px dashed var(--blue);
  box-shadow: none;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(20px, 4vw, 40px);
}
.card--placeholder:hover,
.card--placeholder:nth-child(even):hover { transform: none; box-shadow: none; }
.card__placeholder-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  color: var(--blue);
  line-height: 1.15;
}

/* ---------- 8. Sticker-Layer & Augen ---------- */
.sticker-layer {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;   /* Layer selbst transparent; einzelne Sticker reaktivieren */
}
.sticker {
  position: absolute;
  left: -9999px;          /* bis zur Platzierung außerhalb -> kein Flash oben links */
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  opacity: 0;
  will-change: transform;
  transition: filter 0.2s var(--ease), opacity 0.45s var(--ease);
}
.sticker-layer.is-ready .sticker { opacity: 1; }
.sticker:hover { filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25)); }
.sticker.is-dragging { cursor: grabbing; filter: drop-shadow(0 12px 26px rgba(0,0,0,0.32)); z-index: 99; }
.sticker svg { display: block; }

/* Badge-Sticker (Look! / Hi there) */
.sticker--badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Augen */
.eyes { display: flex; gap: 6px; }
.eye {
  width: 46px; height: 46px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.eye__pupil {
  position: absolute;
  width: 18px; height: 18px;
  background: var(--ink);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ---------- 9. Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .case--media, .case-row { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .case__gallery img:nth-child(2) { transform: none; }

  /* Studio-Bild kleiner & Text auf lesbare Box (wie die Case-Studies),
     damit der Faden dahinter die Schrift nicht stört */
  .studio__media { max-width: 340px; margin-inline: auto; border-radius: 240px; }
  .studio__text {
    background: var(--cream-2);
    border: 1px solid rgba(12,12,12,0.08);
    border-radius: var(--radius);
    padding: clamp(22px, 5vw, 36px);
  }
}
/* Sticker/Augen sind ein Desktop-Detail (Cursor); auf schmalen Screens
   ausblenden, damit nichts über Überschriften liegt. */
@media (max-width: 600px) {
  .sticker-layer { display: none; }
}

@media (max-width: 680px) {
  /* Nav am Handy: nur Logo links + "Projekt anfragen" rechts (sticky).
     Die Menü-Pille (Unterpunkte + Glas-Hintergrund) verschwindet komplett. */
  .nav__menu a:not(.nav__cta) { display: none; }
  .nav__menu {
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav.is-scrolled .nav__menu { box-shadow: none; }
  .nav__cta { margin-left: 0; }

  /* Hero am Handy: kompakt & zentriert, ohne gestreckten Leerraum */
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding: 120px var(--pad-x) 56px;  /* Platz unter der Nav, etwas luftiger */
    text-align: center;
  }
  .hero__content { width: 100%; }
  .hero__logo {
    width: min(72vw, 280px);
    margin: 0 auto 16px;               /* zentriert, eng am Text */
  }
  .hero__tagline {
    max-width: 26ch;
    margin-inline: auto;               /* Tagline zentriert unter dem Logo */
    text-align: center;
    text-wrap: balance;                /* gleichmäßige, saubere Zeilen */
  }
  .hero__tagline br { display: none; } /* fester Umbruch raus -> natürlich umbrechen */

  /* Titel + Kategorie-Filter auf lesbare Box (wie die Studio-Box),
     damit der Faden dahinter die Schrift nicht stört */
  .work__head {
    background: var(--cream-2);
    border: 1px solid rgba(12,12,12,0.08);
    border-radius: var(--radius);
    padding: clamp(20px, 5vw, 30px);
    margin-bottom: 22px;
  }
  .work__head .section-title { margin-top: 0; }
  .work__filters { margin-bottom: 0; }

  .work__grid { grid-template-columns: 1fr; }
  .studio__media { max-width: 260px; }
  .team__grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .member--offset { margin-top: 0; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .discipline { grid-template-columns: 1fr; }
  .discipline__num { padding-top: 0; }
}

/* ============================================================= */
/*  11. Mikro-Animationen, Hover-States & Page-Loader            */
/* ============================================================= */

/* ---------- Page-Loader (minimalistisch) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--cream);
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}
.loader__mark {
  width: 52px;
  height: 52px;
  animation: loaderSpin 1s var(--ease) infinite;
}
@keyframes loaderSpin {
  0%   { transform: rotate(0deg)   scale(0.85); }
  50%  { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(0.85); }
}
body.loaded .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Hero-Auftakt: nach dem Loader sanft einlaufen ---------- */
.js .hero__logo,
.js .hero__tagline {
  opacity: 0;
  transform: translateY(24px);
}
body.loaded .hero__logo,
body.loaded .hero__tagline {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
body.loaded .hero__tagline { transition-delay: 0.14s; }

/* =============================================================
   HOVER-GRUNDPRINZIP: „Anheben & Kippen"
   Alle interaktiven Elemente teilen dieselbe Geste – ein leichtes
   Anheben (translateY) plus minimale Neigung (rotate) + weicher
   Schatten. Pro Element nur fein abgewandelt (Hub/Neigung/Richtung).
   Text-Links sind die leichtere Variante: nur ein kleiner Versatz.
   ============================================================= */

/* ---------- Nav-Links: leichtes Anheben + wachsende Unterlinie ---------- */
.nav__menu a:not(.nav__cta) {
  position: relative;
  transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}
.nav__menu a:not(.nav__cta):hover { transform: translateY(-2px); }
.nav__menu a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); }

/* ---------- Projekt-Karten: anheben & kippen, Bild zoomt ---------- */
.card img { transition: transform 0.6s var(--ease); }
.card:hover img { transform: scale(1.06); }

/* ---------- Team-Portraits: anheben & kippen ---------- */
.member__photo { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.member__photo img { transition: transform 0.6s var(--ease); }
.member:hover .member__photo { transform: translateY(var(--hover-lift)) rotate(1.4deg); box-shadow: var(--hover-shadow); }
.member--offset:hover .member__photo { transform: translateY(var(--hover-lift)) rotate(-1.4deg); }
.member:hover .member__photo img { transform: scale(1.04); }
.member__mail { transition: color 0.2s var(--ease), transform 0.25s var(--ease); }
.member:hover .member__mail { transform: translateX(3px); }

/* ---------- Case-Karten: anheben & kippen ---------- */
.case { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease); }
.case:hover { transform: translateY(var(--hover-lift)) rotate(var(--hover-tilt)); border-color: rgba(12,12,12,0.18); box-shadow: var(--hover-shadow); }
.case__gallery img { transition: transform 0.5s var(--ease); }
.case--media:hover .case__gallery img:nth-child(2) { transform: translateY(14px); }
/* .case__app wird parallax-bewegt -> kein Transform-Hover (Konflikt),
   gleiche Familie über einen kräftigeren „Hebe"-Schatten angedeutet */
.case__app { transition: box-shadow 0.4s var(--ease); }
.case__app:hover { box-shadow: 0 26px 56px rgba(0,0,0,0.26); }

/* ---------- Disziplinen-Zeilen: leichte Variante (Versatz statt Kippen) ---------- */
.discipline { transition: padding-left 0.35s var(--ease); }
.discipline:hover { padding-left: 12px; }

/* ---------- Footer-Links: leichte Variante (Versatz) ---------- */
.footer__col a { transition: color 0.2s var(--ease), transform 0.25s var(--ease); }
.footer__col a:hover { transform: translateX(4px); }
.footer__links a { transition: color 0.2s var(--ease), transform 0.25s var(--ease); }
.footer__links a:hover { transform: translateY(-2px); }

/* ---------- Asterisks drehen sich (Kipp-Gedanke ins Extreme) ---------- */
.nav__brand-star, .footer__star {
  transition: transform 0.5s var(--ease);
  transform-origin: center;
}
.nav__brand:hover .nav__brand-star,
.footer__star:hover { transform: rotate(90deg); }

/* ---------- Stat-Werte: parallax-frei, nur Reveal ---------- */
.stat dt { will-change: contents; }

/* ---------- Reduced Motion: alles ruhig ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader__mark { animation: none; }
  .js .hero__logo, .js .hero__tagline { opacity: 1; transform: none; }
  .card:hover img,
  .member:hover .member__photo img { transform: none; }
}
