/* ==========================================================================
   Patrick Giese – Cinematic Editorial, Modern Edition
   Layout: abwechselnde Bänder (hell/dunkel), Inhalt max. 1240px, ein Akzent (Lime).
   Typografie: eine variable Grotesk (Archivo) in drei Breiten:
   expanded/black für Display, condensed/light für Labels, normal für Fließtext.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2"),
       url("../fonts/Archivo-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Farbe */
  --ink: #141619;          /* Anthrazit, Text auf Hell, dunkle Bänder */
  --ink-2: #1a1d21;        /* zweite Ebene dunkel */
  --paper: #f0eee9;        /* Off-White, helle Bänder */
  --haze: #e6e3dc;         /* Hero-Grund, warmes Grau */
  --stone: #6d6b65;        /* gedämpfter Text auf Hell */
  --line: rgba(20, 22, 25, .14);
  --line-dark: rgba(240, 238, 233, .16);
  --paper-dim: rgba(240, 238, 233, .68);
  --lime: #d4ef5b;         /* Akzent */
  --lime-deep: #b9d63c;
  --wave-idle: #bdbab2;

  /* Schrift */
  --f-sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display-stretch: 125%;
  --cond-stretch: 68%;   /* schmale Grotesk für Labels, wie Mockup */

  /* Maße */
  --max: 1240px;
  --gutter-x: max(16px, env(safe-area-inset-left, 0px));
  --gutter-x-r: max(16px, env(safe-area-inset-right, 0px));
  --pad-x: clamp(16px, 4.6vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 3px; }
.band--dark :focus-visible, .hero__media :focus-visible { outline-color: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--lime); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Gemeinsame Bausteine ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad-x));
  margin-inline: auto;
  padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
}
.label {
  font-stretch: var(--cond-stretch);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.3;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-stretch: var(--cond-stretch); font-weight: 600; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.link-arrow svg { width: 16px; height: 10px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 11px 18px; border: 1px solid currentColor;
  font-stretch: var(--cond-stretch); font-weight: 600; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.btn-outline svg { width: 16px; height: 10px; }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-outline--lime { border-color: var(--lime); color: var(--paper); }
.btn-outline--lime:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* Platzhalter: bewusst erkennbar, aber im Bildklima */
.ph { position: relative; overflow: hidden; isolation: isolate; }
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .32; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph-tag {
  position: absolute; z-index: 3; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 9px 5px 8px; border: 1px dashed rgba(240,238,233,.45); border-radius: 2px;
  background: rgba(20,22,25,.35); backdrop-filter: blur(4px);
  color: rgba(240,238,233,.9);
  font-stretch: var(--cond-stretch); font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
}
.ph-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.ph-tag--light { border-color: rgba(20,22,25,.35); background: rgba(240,238,233,.55); color: var(--ink); }
.ph-text { border-bottom: 1px dashed currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding-top: calc(env(safe-area-inset-top, 0px) + 22px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: grid; line-height: 1; }
.brand__name { font-stretch: 72%; font-weight: 500; font-size: 24px; letter-spacing: .16em; }
.brand__role { margin-top: 7px; font-stretch: var(--cond-stretch); font-size: 11px; letter-spacing: .26em; color: var(--stone); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav__links { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav__links a {
  position: relative; padding-block: 6px;
  font-stretch: var(--cond-stretch); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__end { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 12px; font-stretch: var(--cond-stretch); font-weight: 600; font-size: 12px; letter-spacing: .12em; }
.lang a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--lime-deep); }
.lang a:not([aria-current="true"]) { color: var(--stone); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--haze);
  min-height: clamp(600px, 47vw, 800px);
  display: flex; align-items: flex-end;
}
.hero__media {
  position: absolute; inset: 0 0 0 30%;
  background:
    radial-gradient(60% 75% at 62% 40%, rgba(214,170,120,.55), transparent 60%),
    radial-gradient(40% 50% at 84% 72%, rgba(40,32,26,.9), transparent 70%),
    linear-gradient(110deg, #c9c2b6 0%, #8d7a66 30%, #3b3029 58%, #1d1916 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.hero__media.is-empty::before { /* Silhouette als neutraler Stellvertreter für das Porträt */
  content: ""; position: absolute; z-index: 2; right: 18%; bottom: 0; width: min(36vw, 480px); aspect-ratio: .82;
  background: radial-gradient(48% 30% at 50% 26%, rgba(20,16,13,.78) 0 98%, transparent 100%),
              radial-gradient(70% 55% at 50% 100%, rgba(20,16,13,.82) 0 98%, transparent 100%);
  filter: blur(1.5px);
}
.hero__media .ph-tag { left: auto; right: max(var(--pad-x), 16px); top: auto; bottom: 86px; }
.hero__veil { position: absolute; inset: 0 0 auto 0; height: 120px; z-index: 2; background: linear-gradient(var(--haze), transparent); opacity: .55; pointer-events: none; }
.hero .wrap { position: relative; z-index: 4; padding-top: 150px; padding-bottom: clamp(40px, 4vw, 56px); }
.hero__eyebrow { color: var(--stone); margin-bottom: 18px; }
.hero__title {
  font-stretch: var(--display-stretch); font-weight: 900;
  font-size: clamp(46px, 7.4vw, 106px); line-height: .82; letter-spacing: -.01em;
  text-transform: uppercase; text-wrap: balance;
}
.hero__title span { display: block; }
/* Leuchtendes Lime wie im Mockup. Kein Kasten: nur ein enger, weicher Kontur-Halo direkt an den Buchstaben. */
.hero__title .accent { color: var(--lime); text-shadow: 0 0 .025em rgba(20, 22, 25, .55), 0 .01em .1em rgba(20, 22, 25, .28); }
.hero__lede { margin-top: 22px; max-width: 30ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; letter-spacing: .01em; }
.hero__side {
  position: absolute; z-index: 4; right: max(var(--pad-x), 16px); top: 130px;
  display: grid; gap: 6px; color: var(--paper);
  font-stretch: var(--cond-stretch); font-weight: 400; font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
}
.hero__side::before { content: ""; width: 20px; height: 1px; background: currentColor; margin-bottom: 14px; }
.hero__scroll {
  position: absolute; z-index: 4; right: max(var(--pad-x), 16px); bottom: 36px;
  display: grid; justify-items: center; gap: 6px; color: var(--paper);
}
.hero__scroll svg { width: 10px; height: 18px; animation: nudge 2.4s var(--ease) infinite; }

/* Showreel – V2-04 A: flacher Player (Pille) aus Knopf, Titel, Laufzeit und echter Wellenform (gemeinsamer Audioplayer).
   Der Player ist höher als der bisherige Knopf: der untere Innenabstand des Hero gleicht das aus – Hero-Höhe,
   Bildausschnitt und Lage der Genre-Kacheln bleiben auf Desktop und Tablet gleich. */
.hero .hero__wrap--reel { padding-bottom: max(8px, calc(clamp(40px, 4vw, 56px) - 34px)); } /* +34 px Player/Link ggü. bisherigem Knopf */
.reel {
  margin-top: 26px; width: min(520px, 100%);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 7px 18px 7px 7px;
  border: 1px solid rgba(20, 22, 25, .14); border-radius: 40px;
  background: rgba(240, 238, 233, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  --reel-played: var(--lime-deep); --reel-idle: rgba(20, 22, 25, .24);
}
.reel__btn { position: relative; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease); }
.reel__btn:hover { transform: scale(1.05); }
.reel__btn [data-reel-icon] { display: grid; }
.reel__btn [data-reel-icon] svg { width: 17px; height: 17px; fill: var(--paper); }
.reel__body { min-width: 0; display: grid; gap: 7px; }
.reel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; line-height: 16px; }
.reel__head strong { font-stretch: var(--cond-stretch); font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.reel__time { font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel__wave { position: relative; height: 22px; cursor: pointer; --lime-deep: var(--reel-played); --wave-idle: var(--reel-idle); }
.reel__wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reel__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--reel-idle); }
.reel__line span { display: block; height: 100%; width: 0; background: var(--reel-played); }
.reel__wave.has-peaks .reel__line { display: none; }
.reel__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 4px 0; line-height: 16px;
  font-stretch: var(--cond-stretch); font-weight: 700; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.reel__more svg { width: 16px; height: 10px; transition: transform .3s var(--ease); }
.reel__more:hover svg { transform: translateX(4px); }
@media (max-width: 1100px) and (min-width: 641px) {
  .reel { margin-top: 18px; width: min(440px, 100%); }
  .hero .hero__wrap--reel { padding-bottom: calc(clamp(40px, 4vw, 56px) - 26px); }
}

/* Lade-Choreografie: startet sichtbar (opacity .001 nur für den ersten Frame) */
@media (prefers-reduced-motion: no-preference) {
  .hero__title span { animation: rise .9s var(--ease) both; }
  .hero__title span:nth-child(2) { animation-delay: .07s; }
  .hero__title span:nth-child(3) { animation-delay: .16s; }
  .hero__title span:nth-child(4) { animation-delay: .23s; }
  .hero__lede, .reel, .reel__more { animation: fade 1s .35s var(--ease) both; }
  .hero__media { animation: drift 1.6s var(--ease) both; }
}
@keyframes rise { from { transform: translateY(.28em); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.04); } to { transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- Genre-Welten ---------- */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); gap: 1px; }
.world {
  position: relative; overflow: hidden; isolation: isolate; color: var(--paper);
  aspect-ratio: 1.09; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.6vw, 40px);
}
.world__bg { position: absolute; inset: 0; z-index: -1; transition: transform 1.2s var(--ease); }
.world:hover .world__bg, .world:focus-visible .world__bg { transform: scale(1.045); }
.world__bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(12,13,15,var(--scrim, .82))); z-index: 2; }
.world--synchron .world__bg { background: radial-gradient(55% 70% at 72% 38%, #6e7f93 0, transparent 60%), radial-gradient(30% 40% at 18% 30%, #2b4d6a 0, transparent 70%), linear-gradient(160deg, #0f1823, #0a0e13); }
.world--werbung .world__bg { background: radial-gradient(45% 60% at 70% 30%, #f3b467 0, transparent 60%), radial-gradient(35% 60% at 20% 70%, #6a3f1d 0, transparent 70%), linear-gradient(170deg, #3a2414, #120c08); }
.world--doku .world__bg { background: radial-gradient(70% 40% at 50% 26%, #d9dde0 0, transparent 70%), radial-gradient(80% 50% at 50% 95%, #2e4532 0, transparent 70%), linear-gradient(180deg, #7f8a92, #1d2a22); }
.world--games .world__bg { background: radial-gradient(40% 55% at 64% 34%, #5b4f8c 0, transparent 65%), radial-gradient(25% 30% at 30% 72%, #c3622d 0, transparent 70%), linear-gradient(160deg, #1b1830, #0b0a12); }
.world__title { font-stretch: 70%; font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: .03em; line-height: 1; text-transform: uppercase; }
.world__tag { margin-top: 10px; font-stretch: var(--cond-stretch); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-dim); }
.world__go {
  margin-top: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(240,238,233,.75);
  display: grid; place-items: center; transition: background .35s var(--ease), border-color .35s, color .35s;
}
.world__go svg { width: 14px; height: 10px; }
.world:hover .world__go, .world:focus-visible .world__go { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* ---------- Bänder ---------- */
.band { padding-block: clamp(48px, 6vw, 88px); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--dark { background: var(--ink); color: var(--paper); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-title { font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(28px, 3.3vw, 44px); line-height: .95; text-transform: uppercase; letter-spacing: -.005em; }
.sec-title--light { font-stretch: 72%; font-weight: 300; letter-spacing: .06em; }
.sec-sub { margin-top: 10px; color: var(--stone); }
.band--dark .sec-sub { color: var(--paper-dim); font-stretch: 100%; text-transform: none; letter-spacing: .01em; font-size: 15px; }

/* ---------- Voice Explorer ---------- */
.explorer__rule { margin-top: 24px; border: 0; border-top: 1px solid var(--line); }
.explorer__grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr) minmax(0, 1.35fr); }
.explorer__col { padding-inline: clamp(16px, 2.2vw, 30px); min-width: 0; }
.explorer__col:first-child { padding-left: 0; }
.explorer__col:last-child { padding-right: 0; }
.explorer__col + .explorer__col { border-left: 1px solid var(--line); }
.filter-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-group legend { padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.35);
  font-size: 12.5px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip__count { margin-left: 6px; font-size: 11px; opacity: .55; font-variant-numeric: tabular-nums; }

.player { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 22px; align-items: center; }
.player__btn {
  grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); display: grid; place-items: center;
  transition: transform .3s var(--ease), background .2s;
}
.player__btn:hover { transform: scale(1.05); }
.player__btn svg { width: 20px; height: 20px; fill: var(--lime); }
.player__btn[disabled] { background: var(--wave-idle); cursor: not-allowed; transform: none; }
.wave { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.wave__canvas { position: relative; height: 46px; cursor: pointer; touch-action: none; border-radius: 2px; }
.wave__canvas canvas { width: 100%; height: 100%; display: block; }
.wave__time { font-size: 11.5px; color: var(--stone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__meta { grid-column: 2; min-width: 0; }
.player__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 600; font-size: 15px; }
.player__desc { margin-top: 2px; font-size: 13.5px; color: var(--stone); }
.badge {
  display: inline-flex; padding: 2px 6px; border-radius: 2px; background: var(--ink); color: var(--lime);
  font-stretch: var(--cond-stretch); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.player__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.text-btn { font-size: 12.5px; color: var(--stone); display: inline-flex; gap: 6px; align-items: center; }
.text-btn:hover { color: var(--ink); }
.text-btn svg { width: 14px; height: 14px; }
.text-btn[aria-disabled="true"] { opacity: .5; cursor: default; }

.results { margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); padding-top: 18px; }
.results__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.results__count { font-size: 13px; color: var(--stone); }
.results__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; }
.track {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 11px 0; border-bottom: 1px solid var(--line); transition: color .2s;
}
.track__icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.track__icon svg { width: 10px; height: 10px; fill: currentColor; }
.track:hover .track__icon { border-color: var(--ink); }
.track[aria-current="true"] .track__icon { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.track__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__meta { display: block; font-size: 12px; color: var(--stone); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__dur { font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; }
.empty { padding: 18px 0; color: var(--stone); font-size: 14px; }
.empty button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Projekte ---------- */
.projects__viewport { position: relative; margin-top: 30px; }
.projects__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.projects__track::-webkit-scrollbar { display: none; }
.project { scroll-snap-align: start; min-width: 0; }
.project__img { aspect-ratio: 1.48; max-width: 100%; transition: transform .8s var(--ease); }
.project__frame { overflow: hidden; }
.project:hover .project__img { transform: scale(1.04); }
.project__title { margin-top: 14px; font-stretch: 72%; font-weight: 500; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.project__meta { margin-top: 5px; font-size: 13px; color: var(--paper-dim); line-height: 1.45; }
.pg-1 { background: radial-gradient(60% 70% at 40% 40%, #a07a52, transparent 70%), linear-gradient(150deg, #4a3423, #17110c); }
.pg-2 { background: radial-gradient(70% 60% at 70% 20%, #4d6c95, transparent 70%), linear-gradient(170deg, #142034, #07090f); }
.pg-3 { background: radial-gradient(50% 70% at 30% 45%, #b8936a, transparent 65%), linear-gradient(160deg, #3c2a1d, #120d09); }
.pg-4 { background: radial-gradient(70% 60% at 50% 15%, #3f87a3, transparent 70%), linear-gradient(180deg, #123546, #061219); }
.pg-5 { background: radial-gradient(45% 55% at 50% 45%, #b2271d, transparent 70%), linear-gradient(170deg, #3a0c0a, #0d0404); }
.pg-6 { background: radial-gradient(60% 60% at 60% 40%, #6f6a8f, transparent 70%), linear-gradient(160deg, #22202f, #0b0a10); }
.arrow-btn {
  position: absolute; top: calc((100% - 80px) / 2 - 22px); width: 44px; height: 44px; display: grid; place-items: center; color: var(--paper);
  transition: color .2s, opacity .2s;
}
.arrow-btn svg { width: 14px; height: 24px; }
.arrow-btn:hover { color: var(--lime); }
.arrow-btn[disabled] { opacity: .25; cursor: default; }
.arrow-btn--prev { left: calc(-1 * clamp(16px, 4vw, 56px)); }
.arrow-btn--next { right: calc(-1 * clamp(16px, 4vw, 56px)); }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: minmax(0, .58fr) minmax(0, 1fr); background: var(--paper); }
.about__img { min-height: 360px; background: radial-gradient(45% 45% at 46% 38%, #8b7d70, transparent 70%), radial-gradient(60% 60% at 70% 80%, #3a3632, transparent 70%), linear-gradient(140deg, #4a4642, #161514); filter: grayscale(.35); }
.about__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); padding: clamp(40px, 5vw, 72px) max(var(--pad-x), env(safe-area-inset-right, 0px)) clamp(40px, 5vw, 72px) clamp(24px, 4.4vw, 64px); }
.about__eyebrow { color: var(--stone); }
.about__title { margin-top: 14px; font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: .95; text-transform: uppercase; text-wrap: balance; }
.about__text { margin-top: 20px; max-width: 58ch; color: #3f3e3a; font-size: 15px; }
.signature {
  margin-top: 26px; width: 180px; height: 52px; display: grid; place-items: center;
  border: 1px dashed rgba(20,22,25,.3); color: var(--stone); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.about__aside { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.6vw, 34px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.about__roles { display: grid; gap: 9px; font-stretch: var(--cond-stretch); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #4b4a45; }

/* ---------- Kennzahlen ---------- */
.facts { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.facts__bg { position: absolute; inset: 0; background: radial-gradient(40% 60% at 55% 10%, rgba(220,170,120,.55), transparent 70%), linear-gradient(180deg, #4a3e35 0%, #1f1b18 45%, #0f0f10 100%); }
.facts__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,16,.85), rgba(15,15,16,.35) 45%, rgba(15,15,16,.75)); }
.facts .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, auto)) auto; align-items: end; gap: clamp(20px, 3vw, 44px); }
.facts__claim { font-stretch: 72%; font-weight: 300; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: .07em; line-height: 1.15; text-transform: uppercase; }
.facts__claim::after { content: ""; display: block; width: 68px; height: 3px; margin-top: 18px; background: var(--lime); }
.fact { padding-left: clamp(18px, 2.2vw, 30px); border-left: 1px solid var(--line-dark); }
.fact__num { font-stretch: 80%; font-weight: 300; font-size: clamp(28px, 2.8vw, 38px); line-height: 1; font-variant-numeric: tabular-nums; }
.fact__label { margin-top: 10px; font-stretch: var(--cond-stretch); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-dim); line-height: 1.4; }
.fact__lead { font-stretch: 72%; font-weight: 400; font-size: clamp(16px, 1.5vw, 19px); letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.partners { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-stretch: var(--cond-stretch); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); }

/* ---------- Kontakt / Footer ---------- */
.contact { background: var(--ink-2); color: var(--paper); border-top: 1px solid var(--line-dark); }
.contact .wrap { padding-block: clamp(48px, 6vw, 80px) 28px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.contact__title { font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(26px, 3vw, 40px); line-height: .98; text-transform: uppercase; text-wrap: balance; }
.contact__title em { font-style: normal; color: var(--lime); }
.contact__lede { margin-top: 16px; max-width: 44ch; color: var(--paper-dim); font-size: 15px; }
.contact__col h3 { margin-bottom: 12px; color: var(--paper-dim); }
.contact__col p { font-size: 15px; }
.footer { margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: 12.5px; color: var(--paper-dim); }
.footer nav { display: flex; gap: 20px; }
.footer a:hover { color: var(--paper); }

/* Staging-Hinweis */
.stage-note {
  position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 7px 11px; border-radius: 3px; background: var(--lime); color: var(--ink);
  font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.toast {
  position: fixed; z-index: 45; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 16px; border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 13.5px; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav__links.is-open {
    display: grid; position: fixed; inset: 0; z-index: 30; align-content: center; gap: 4px;
    padding: 90px max(28px, env(safe-area-inset-left, 0px)) 40px; background: var(--ink); color: var(--paper);
  }
  .nav__links.is-open a { font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(26px, 6vw, 40px); letter-spacing: 0; padding-block: 8px; }
  .menu-open .site-header { color: var(--paper); }
  .menu-open .site-header .brand__role { color: var(--paper-dim); }
  .menu-open .site-header .brand, .menu-open .site-header .nav__end { position: relative; z-index: 31; }
  .menu-open { overflow: hidden; }
  .explorer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); row-gap: 32px; }
  .explorer__col:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .projects__track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .facts .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts__claim { grid-column: 1 / -1; }
  .facts .btn-outline { grid-column: 1 / -1; justify-self: start; }
  .fact:first-of-type { padding-left: 0; border-left: 0; }
}
@media (max-width: 820px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__img { min-height: 0; aspect-ratio: 16 / 10; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid > :first-child { grid-column: 1 / -1; }
  .hero__side { display: none; }
}
@media (max-width: 640px) {
  .site-header { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
  .brand__name { font-size: 20px; }
  .kontakt-cta { display: none; }
  .hero { min-height: 0; display: block; }
  .hero .wrap { padding-top: 32px; padding-bottom: 0; } /* V2-04 M2: Text direkt unter dem Porträt (vorher 112 px) */
  .hero__media { position: relative; inset: auto; display: block; height: 62vw; min-height: 240px; margin-top: 36px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%); } /* V2-04 M2: weiche Unterkante */
  .hero__media::before { right: 50%; transform: translateX(50%); width: 62vw; }
  .hero__media .ph-tag { bottom: 16px; }
  .hero__veil { display: none; }
  .hero__scroll { display: none; }
  .hero .hero__wrap--reel { padding-bottom: 8px; } /* Link nicht direkt an der Kachelreihe */
  .reel { margin-top: 26px; gap: 12px; padding: 7px 14px 7px 7px; }
  .reel__btn { width: 46px; height: 46px; }
  .world { aspect-ratio: .92; padding: 16px; width: 100%; }
  .world__tag { font-size: 10.5px; letter-spacing: .12em; }
  .explorer__grid { grid-template-columns: 1fr; }
  .explorer__col { padding-inline: 0 !important; }
  .explorer__col + .explorer__col { border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .player { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; }
  .player__btn { width: 56px; height: 56px; }
  .results__list { grid-template-columns: 1fr; }
  .projects__track { grid-auto-columns: 74%; }
  .arrow-btn { display: none; }
  .about__body { grid-template-columns: 1fr; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .about__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact:nth-of-type(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); padding-top: 18px; }
  .contact__grid { grid-template-columns: 1fr; }
  .stage-note { font-size: 10px; }
}

/* ==========================================================================
   Bild-Slots: responsive Ausschnitte, Fokuspunkt und Zoom je Gerät
   Werte kommen aus dem CMS (pro Slot: Desktop, Tablet, Smartphone).
   Der Fokuspunkt (x/y in %) bleibt in jedem Format sichtbar; Zoom skaliert um ihn herum.
   ========================================================================== */
.media { position: absolute; inset: 0; z-index: 1; display: block; overflow: hidden; }
.media img {
  width: 100%; height: 100%; max-width: none; object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
  transform: scale(var(--z, 1)); transform-origin: var(--fx, 50%) var(--fy, 50%);
  filter: var(--grade-filter, none);
}
@media (max-width: 1080px) {
  .media img { object-position: var(--fx-t, var(--fx, 50%)) var(--fy-t, var(--fy, 50%));
    transform: scale(var(--z-t, var(--z, 1))); transform-origin: var(--fx-t, var(--fx, 50%)) var(--fy-t, var(--fy, 50%)); }
}
@media (max-width: 640px) {
  .media img { object-position: var(--fx-m, var(--fx-t, var(--fx, 50%))) var(--fy-m, var(--fy-t, var(--fy, 50%)));
    transform: scale(var(--z-m, var(--z-t, var(--z, 1)))); transform-origin: var(--fx-m, var(--fx-t, var(--fx, 50%))) var(--fy-m, var(--fy-t, var(--fy, 50%))); }
}
[data-slot]:not(.is-empty) > .ph-tag, [data-slot]:not(.is-empty) ~ .ph-tag { display: none; }

/* Vier Bildwelten: gemeinsame Bildsprache, eigene Farbstimmung.
   --tint/--grade-filter definieren die Atmosphäre, --grade (0–1) und --scrim (0–1) stellt das CMS ein. */
.world__grade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--tint); mix-blend-mode: soft-light; opacity: var(--grade, .55); }
.world--synchron { --tint: #2a5a86; --grade-filter: saturate(.78) contrast(1.08); }
.world--werbung  { --tint: #d48a3a; --grade-filter: saturate(1.06) contrast(1.04) brightness(1.02); }
.world--doku     { --tint: #5f8466; --grade-filter: saturate(.82) brightness(1.03); }
.world--games    { --tint: #6a3fb0; --grade-filter: saturate(1.12) contrast(1.12); }
.world__bg.is-empty ~ .world__grade, .world__bg.is-empty .world__grade { display: none; }

/* Test-Modus (nur Staging): zeigt Testbilder mit markiertem Fokuspunkt */
.stage-note a { text-decoration: underline; text-underline-offset: 2px; margin-left: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
