/* =========================================================
   Marvin Goldau — Portfolio (Aufbau nach „Quadro / maju“)
   Schwarzer Grund, Violett als Hauptfarbe. Drei Schriftschnitte: Montserrat 400 und 700, Instrument Serif kursiv.
   1 · Arbeiten     die Proofs drehen sich als geneigter Ring, Headline in der Mitte
   2 · Fotografie   Headline, darunter eine gewölbte Reihe, die von selbst läuft
   3 · Über mich    gekippte Profilkarte links, Text rechts, darunter die Kundenlogos
   4 · Kontakt      violette Fläche
   Ohne .fx (reduzierte Bewegung / kein Skript) ist jede Szene ein ruhiges Layout.
   ========================================================= */
/* Schriften lokal (kein Abruf bei Google): Montserrat 400–700 als variable Schrift, Instrument Serif kursiv */
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/montserrat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #141317;
  --ink: #fff;
  --ink-2: #b9b6c3;
  --ink-3: #8e8b99;
  --accent: #4212b9;
  --accent-hover: #5323d0;
  --accent-text: #a283ff;
  --accent-bright: #5a2be6;     /* Violett, das auf Schwarz noch leuchtet (Punkte, aktiver Menüpunkt) */

  --f: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.25rem, min(5.4vw, 9.5svh), 5.5rem);
  --fs-display-m: clamp(2rem, min(4.2vw, 7.5svh), 4.25rem);
  --fs-lede: clamp(1.375rem, 1rem + 1vw, 1.875rem);
  --fs-body: clamp(1rem, .97rem + .16vw, 1.125rem);
  --fs-small: .9375rem;

  --pad: max(1.25rem, env(safe-area-inset-left), min(4.5vw, 5rem));
  --nav: 2.75rem; --nav-top: 1.5rem;
  --r: 16px;                    /* eine Rundung für alle Karten und Bilder (sichtbar gleich groß) */
  --r-sheet: calc(var(--r) * 2); /* große Flächen: doppelt */
  --ease: cubic-bezier(.23, 1, .32, 1);
}
@media (max-width: 600px) { :root { --nav-top: 1rem; --r: 12px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #2c2b31 var(--bg); }
html.lock { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--f);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 6px; }
.anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ---------- Schrift ---------- */
.display { font-size: var(--fs-display); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.display--m { font-size: var(--fs-display-m); line-height: 1.04; letter-spacing: -.04em; }
/* Headlines: erste Zeile fett und eng, zweite Zeile kursiv in einer Serifenschrift */
.display .hl { display: block; white-space: nowrap; }
/* Umbrüche nur fürs Handy: mehr Zeilen, dafür deutlich größer */
.br-m { display: none; }

.display .dot { color: var(--accent-bright); }
.display .hl:not(.hl--serif) { font-weight: 700; letter-spacing: -.055em; line-height: .98; }
.display .hl--serif { font-family: "Instrument Serif", ui-serif, Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -.015em; line-height: .95; }

/* ---------- Pillen (Arbeitsansicht) ---------- */

/* ---------- Navigation: Logo links, zwei Striche rechts ---------- */
/* oben ein weicher Verlauf, damit Logo und Menü über Text lesbar bleiben (statt harter Leiste) */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 50; pointer-events: none;
  height: calc(var(--nav-top) * 2 + var(--nav) + .75rem);
  background: linear-gradient(var(--bg) 0%, rgba(0, 0, 0, .85) 45%, transparent);
  transition: opacity .25s ease;
}
.on-accent::before, .menu-open::before { opacity: 0; }
.logo { position: fixed; top: var(--nav-top); left: var(--pad); z-index: 60; width: var(--nav); height: var(--nav); color: var(--ink); transition: transform .16s var(--ease); }
.logo svg { width: 100%; height: 100%; display: block; }
.logo:active { transform: scale(.94); }
.burger {
  position: fixed; top: var(--nav-top); right: calc(var(--pad) - .75rem); z-index: 60;
  width: calc(var(--nav) + .5rem); height: var(--nav); display: grid; place-items: center;
  padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.burger__icon { position: relative; display: block; width: 30px; height: 9px; }
.burger__icon i {
  position: absolute; right: 0; width: 100%; height: 1.5px; border-radius: 2px; background: var(--ink);
  transform-origin: 50% 50%; transition: transform .25s var(--ease), top .25s var(--ease), width .25s var(--ease);
}
.burger__icon i:first-child { top: 0; }
.burger__icon i:last-child { top: 7.5px; width: 70%; }
@media (hover: hover) and (pointer: fine) { .burger:hover .burger__icon i:last-child { width: 100%; } }
.menu-open .burger__icon i, .burger__icon.is-x i { top: 3.75px; width: 100%; }
.menu-open .burger__icon i:first-child, .burger__icon.is-x i:first-child { transform: rotate(45deg); }
.menu-open .burger__icon i:last-child, .burger__icon.is-x i:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: calc(var(--nav-top) + var(--nav) + 1rem) var(--pad) 2.5rem;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.menu__list li { overflow: hidden; font-size: clamp(2.5rem, min(8vw, 10svh), 5.5rem); line-height: 1.1; font-weight: 700; letter-spacing: -.045em; }
.menu__list a { display: inline-block; color: var(--ink); transition: color .15s ease; }
.menu__list a span { display: inline-block; }
.fx .menu__list a span { transform: translateY(105%); transition: transform .18s var(--ease); }
.fx .menu-open .menu__list a span { transform: none; transition-duration: .45s; }
.fx .menu-open .menu__list li:nth-child(2) a span { transition-delay: .04s; }
.fx .menu-open .menu__list li:nth-child(3) a span { transition-delay: .08s; }
.fx .menu-open .menu__list li:nth-child(4) a span { transition-delay: .12s; }
@media (hover: hover) and (pointer: fine) { .menu__list a:not([aria-current]):hover { color: var(--ink-2); } }
.menu__list a[aria-current="true"] { color: var(--accent-bright); }
.menu__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; font-size: var(--fs-small); color: var(--ink-2); }
.menu__foot:empty { display: none; }

/* =========================================================
   1 · Arbeiten: Kartenstapel
   ========================================================= */
.hero { position: relative; }
.hero__stage { position: relative; padding: calc(var(--nav-top) + var(--nav) + clamp(2rem, 6svh, 4rem)) var(--pad) clamp(3rem, 8svh, 5rem); }
.hero__title { position: relative; z-index: 3; max-width: 11em; margin: 0 auto; text-align: center; }

/* Stapel ohne Bewegung: die Arbeiten als Raster */
.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); max-width: 48rem; margin: clamp(2rem, 6svh, 4rem) auto 0; }
.stack__card { position: relative; display: block; aspect-ratio: 380 / 500; border-radius: var(--r); overflow: hidden; background: var(--bg-2); color: #fff; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.stack__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
/* Titel unten auf der Karte, über einem weichen Verlauf (wie im Vorbild) */
.stack__card::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .35) 35%, rgba(0, 0, 0, .82)); z-index: 1; pointer-events: none; }
.stack__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: .375rem; padding: 0 clamp(1rem, 6%, 1.75rem) clamp(1rem, 7%, 1.75rem); }
.stack__title { font-family: "Instrument Serif", ui-serif, Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(1.5rem, calc(var(--cw, 20rem) * .09), 2.25rem); line-height: 1; letter-spacing: -.01em; }
.stack__text { font-size: var(--fs-small); line-height: 1.4; color: rgba(255, 255, 255, .86); }

/* Szene: die Bühne steht, die Karten kommen nacheinander von unten und legen sich über die Headline */
.fx .hero__stage { position: sticky; top: 0; height: 100svh; min-height: 34rem; padding: 0; overflow: hidden; display: grid; place-items: center; }
.fx .hero__stage > * { grid-area: 1 / 1; }
.fx .hero__copy { position: relative; z-index: 1; text-align: center; pointer-events: none; }
.fx .hero__title { padding: 0 var(--pad); font-size: min(5.5rem, max(5.4vw, min(8.4vw, 3.4rem)), 8svh); max-width: none; }
.fx .stack { position: relative; z-index: 2; display: block; width: var(--cw); height: var(--ch); margin: 0; max-width: none; }
.fx .stack__card { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0; will-change: transform, opacity; transform: translate3d(0, 100vh, 0); }
.fx .stack__card:nth-child(1) { z-index: 1; } .fx .stack__card:nth-child(2) { z-index: 2; } .fx .stack__card:nth-child(3) { z-index: 3; } .fx .stack__card:nth-child(4) { z-index: 4; } .fx .stack__card:nth-child(5) { z-index: 5; } .fx .stack__card:nth-child(6) { z-index: 6; }
.fx .hero__hint { position: absolute; left: 0; right: 0; bottom: max(1.5rem, env(safe-area-inset-bottom)); z-index: 1; justify-content: center; margin: 0; }

/* =========================================================
   Arbeitsansicht
   ========================================================= */

/* =========================================================
   2 · Fotografie: gewölbte Reihe
   ========================================================= */
.gallery { position: relative; padding: clamp(4rem, 12svh, 8rem) 0 clamp(2rem, 6svh, 4rem); }
/* Szene: die Bühne bleibt stehen, solange die Reihe durchläuft */
.fx .gallery { padding: 0; }
.fx .gallery__stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-top) + var(--nav)); overflow: hidden; }
.gallery__title { margin: 0 auto; padding: 0 var(--pad); text-align: center; font-size: min(4.25rem, max(4.2vw, min(8.4vw, 3rem)), 7.5svh); }

/* Untermenü: Konzerte · Sport · Videos */
.gallery__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem clamp(1.25rem, 3vw, 2.25rem); margin: clamp(1rem, 2.5svh, 1.5rem) auto 0; padding: 0 var(--pad); }
.gallery__tab { position: relative; display: inline-flex; align-items: baseline; gap: .375rem; padding: .5rem 0 .5rem 1rem; border: 0; background: none; color: var(--ink-3); font: 700 var(--fs-body)/1.2 var(--f); letter-spacing: -.01em; cursor: pointer; transition: color .18s ease; -webkit-tap-highlight-color: transparent; }
.gallery__tab::before { content: ""; position: absolute; left: 0; top: 50%; width: .375rem; height: .375rem; margin-top: -.1875rem; border-radius: 50%; background: var(--accent-bright); opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .2s var(--ease); }
.gallery__tab[aria-pressed="true"] { color: var(--ink); }
.gallery__tab[aria-pressed="true"]::before { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .gallery__tab:not([aria-pressed="true"]):hover { color: var(--ink-2); } }
.gallery__tab:active { opacity: .7; }
.gallery__count { font-size: .75em; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink-3); }

/* ruhige Fassung */
.arc { display: flex; gap: .75rem; margin-top: clamp(2rem, 5svh, 3rem); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.arc::-webkit-scrollbar { display: none; }
.arc__card { flex: none; display: block; width: min(60vw, 16rem); aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--bg-2); cursor: zoom-in; scroll-snap-align: center; -webkit-tap-highlight-color: transparent; }
.arc__card img, .arc__card video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.arc__play { position: absolute; right: .625rem; bottom: .625rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.arc__play svg { width: .75rem; height: .75rem; fill: currentColor; margin-left: 2px; }
.arc__card { position: relative; }
.arc__card[aria-hidden="true"] { display: none; }

/* Szene */
.fx .arc { cursor: zoom-in; -webkit-tap-highlight-color: transparent; position: relative; display: block; height: var(--arc-h, 60svh); margin-top: clamp(.5rem, 1.5svh, 1rem); padding: 0; overflow: hidden; perspective: var(--arc-p, 1000px); perspective-origin: 50% 50%; }
.fx .arc__plane { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; pointer-events: none; }
.fx .arc__card { position: absolute; top: 0; left: 0; border-radius: var(--r); pointer-events: none; width: var(--aw); height: var(--ah); margin: calc(var(--ah) / -2) 0 0 calc(var(--aw) / -2); will-change: transform; backface-visibility: hidden; }
.fx .arc__card[aria-hidden="true"] { display: block; }

/* =========================================================
   3 · Über mich
   ========================================================= */
.about { padding: clamp(4rem, 12svh, 8rem) var(--pad) clamp(5rem, 14svh, 9rem); }
.about__title { margin: 0 auto clamp(3rem, 9svh, 6rem); text-align: center; font-size: min(4.25rem, max(4.2vw, min(8.4vw, 3rem)), 7.5svh); }
.about__grid { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2.5rem, 8vw, 9rem); align-items: start; max-width: 80rem; margin: 0 auto; }
/* Das Bild bleibt stehen, der Text läuft daneben weiter */
.about__media { position: sticky; top: max(calc(var(--nav-top) + var(--nav) + 1.5rem), calc(50svh - 17rem)); }

.profile {
  background: #fff; color: #000; border-radius: var(--r); padding: .5rem .5rem 1.25rem;
  transform: rotate(-5deg);
}
.profile__img { aspect-ratio: 1 / 1; border-radius: calc(var(--r) - .5rem); overflow: hidden; background: #ddd; }
/* näher heran: Kopf und Schultern */
/* Ausschnitt aus dem Original (724 × 1086): Quadrat x 317–647, y 575–905 – Kopf und Schultern groß und mittig */
.profile__img { position: relative; }
.profile__img img { position: absolute; width: 219.39%; max-width: none; height: auto; left: -96.06%; top: -174.24%; }
.profile__body { padding: 1rem .5rem 0; }
.profile__name { font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.profile__role { margin-top: .25rem; font-size: var(--fs-small); font-weight: 700; color: var(--accent); }
.profile :focus-visible { outline-color: var(--accent); }
.fx .profile { will-change: transform; }

.about__lede { font-size: var(--fs-lede); font-weight: 400; line-height: 1.3; letter-spacing: -.03em; max-width: 24em; text-wrap: pretty; }
.about__more { margin-top: 1.5rem; max-width: 34em; color: var(--ink-2); }

/* Text wird beim Hereinscrollen scharf */
.fx .reveal { opacity: 0; filter: blur(12px); transform: translateY(12px); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.fx .reveal.is-in { opacity: 1; filter: none; transform: none; }
.fx .about__more.reveal { transition-delay: .12s; }

.about__block { margin-top: clamp(3rem, 9svh, 5.5rem); }

/* Zwischenüberschriften im Über-mich-Text: kursive Serife wie in den Headlines, deutlich größer als der Fließtext */
.about__label { margin-bottom: 1.25rem; font-family: "Instrument Serif", ui-serif, Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.625rem); line-height: 1; letter-spacing: -.01em; }
/* Lebenslauf: Zeitraum links, Station rechts */
.cv__list { display: grid; gap: 1.25rem; max-width: 40rem; }
.cv__item { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: .25rem 1.5rem; align-items: baseline; }
.cv__time { font-size: var(--fs-small); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv__what { display: grid; gap: .125rem; }
.cv__role { font-weight: 700; letter-spacing: -.01em; }
.cv__place { color: var(--ink-2); }
.cv__list { gap: 1.75rem; }
.cv__points { display: grid; gap: .375rem; margin-top: .625rem; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.cv__points li { position: relative; padding-left: 1rem; }
.cv__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: .3rem; height: .3rem; border-radius: 50%; background: var(--accent-bright); }
.skills__note { margin-left: .375rem; font-size: .8125rem; color: var(--ink-3); }
/* Programme: zwei Spalten */
.skills__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; max-width: 44rem; }
@media (max-width: 599px) { .skills__list { grid-template-columns: minmax(0, 1fr); } }
.skills__list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .625rem; position: relative; padding-left: 1rem; }
.skills__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .375rem; height: .375rem; border-radius: 50%; background: var(--accent-bright); }
@media (max-width: 599px) { .cv__item { grid-template-columns: minmax(0, 1fr); } }
.trusted__row {
  margin-top: 1.25rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos { display: flex; align-items: center; gap: clamp(2rem, 4vw, 3.5rem); width: max-content; padding: .5rem 0; }
.logo-s88 { --s: .88; } .logo-s100 { --s: 1; } .logo-s95 { --s: .95; } .logo-s120 { --s: 1.2; } .logo-s150 { --s: 1.5; }
.logos img { height: calc(clamp(1.5rem, 2.2vw, 2.125rem) * var(--s, 1)); width: auto; max-width: 9rem; object-fit: contain; }   /* --s: optischer Ausgleich je Logo (breite Schriftzüge kleiner, kompakte Zeichen größer) */
html:not(.fx) .logos { flex-wrap: wrap; width: auto; }
html:not(.fx) .trusted__row { -webkit-mask-image: none; mask-image: none; }

.about__text { min-width: 0; }
@media (max-width: 899px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 4rem); max-width: 36rem; }
  .profile { width: min(100%, 20rem); margin: 0 auto; }
  .about__media { position: static; }
}

/* =========================================================
   4 · Kontakt
   ========================================================= */
.contact {
  background: var(--accent); color: #fff; border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding: clamp(2.5rem, 7svh, 4rem) var(--pad) max(1.5rem, env(safe-area-inset-bottom));
}
.contact__main { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; }
.contact__label { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.contact__mail { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; color: #fff; }
a.contact__mail { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.contact__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: clamp(2rem, 6svh, 3.5rem); font-size: .8125rem; color: rgba(255, 255, 255, .78);
}
.contact__row a { color: #fff; }
.contact :focus-visible { outline-color: #fff; }

/* =========================================================
   Unterseite einer Arbeit (nach maju „work-details“)
   ========================================================= */
.case {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem);
  padding: calc(var(--nav-top) + var(--nav) + clamp(2.5rem, 8svh, 5rem)) var(--pad) clamp(4rem, 12svh, 8rem);
  max-width: 96rem; margin: 0 auto;
}
.case__info { position: sticky; top: calc(var(--nav-top) + var(--nav) + 2rem); align-self: start; max-width: 34rem; }
.case__label { font-size: .8125rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.case__title { margin: .75rem 0 clamp(2rem, 5svh, 3rem); font-size: clamp(3.25rem, 7vw, 6.5rem); font-weight: 700; line-height: 1; letter-spacing: -.045em; text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.case__label--role { margin-top: clamp(1.5rem, 3.5svh, 2.25rem); }
.case__title--long { font-size: clamp(2.5rem, 4.4vw, 4rem); }
.case__brief { margin-top: .75rem; font-size: var(--fs-body); line-height: 1.55; color: #dcdcdc; }
.case__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1.75rem, 4svh, 2.5rem); padding-bottom: clamp(1.75rem, 4svh, 2.5rem); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.case__meta dd { margin-top: .5rem; font-size: var(--fs-small); color: #dcdcdc; }
.case__press { margin-top: clamp(1.75rem, 4svh, 2.5rem); }
.case__press-list { display: grid; gap: .875rem; margin-top: .75rem; }
.case__awards { display: grid; gap: .75rem; margin-top: .75rem; }
.case__awards li { display: grid; gap: .125rem; padding-left: 1rem; position: relative; }
.case__awards li::before { content: ""; position: absolute; left: 0; top: .55em; width: .375rem; height: .375rem; border-radius: 50%; background: var(--accent-bright); }
.case__award-name { font-weight: 700; }
.case__award-detail { font-size: var(--fs-small); color: var(--ink-2); }
.case__press-link { display: grid; gap: .125rem; color: var(--ink); }
.case__press-src { font-size: .8125rem; color: var(--ink-3); }
.case__press-title { font-weight: 700; line-height: 1.35; transition: color .15s ease; }
@media (hover: hover) and (pointer: fine) { .case__press-link:hover .case__press-title { color: var(--accent-text); } }

.case__images { display: grid; gap: .5rem; }
.case__img { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r); background: var(--bg-2); clip-path: inset(0 round var(--r)); isolation: isolate; }   /* clip-path: Ecken bleiben rund, auch während das Bild animiert */
.case__img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.fx .case__img img { opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.fx .case__img.is-in img { opacity: 1; transform: none; }
/* echte Bilder: eigenes Format, nichts abgeschnitten; hohe Motive werden nicht endlos lang */
.case__img--real { aspect-ratio: auto; background: none; clip-path: none; display: flex; justify-content: center; }
.case__img--real img { width: auto; max-width: 100%; height: auto; max-height: 88svh; border-radius: var(--r); }
.fx .case__img--real img { transform: translateY(16px) scale(1); }
@media (max-width: 1099px) {
  .case__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
}
/* Handy: Titel und Kurztext, dann gleich die Bilder, Angaben und Weiterblättern danach */
@media (max-width: 759px) {
  .case { display: flex; flex-direction: column; gap: 0; }
  .case__info { display: contents; }
  .case__info > *, .case__images { order: 3; }
  .case__info > :nth-child(-n+6) { order: 1; }
  .case__images { order: 2; margin-top: 2rem; }
  .case__meta { margin-top: 2.5rem; }
}

/* =========================================================
   Vollansicht der Fotografie (Bilder und Videos)
   ========================================================= */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, .94); color: #fff; overflow: hidden;
}
.viewer::backdrop { background: transparent; }
.viewer:focus { outline: none; }
.viewer__fig { position: absolute; inset: calc(var(--nav-top) + var(--nav) + .75rem) var(--pad) 4.5rem; display: grid; place-items: center; }
.viewer__fig img, .viewer__fig video { max-width: 100%; max-height: calc(100svh - var(--nav-top) - var(--nav) - 5.25rem); width: auto; height: auto; object-fit: contain; border-radius: var(--r); background: var(--bg-2); }
.viewer__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4.5rem; display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.viewer__count { min-width: 4.5rem; text-align: center; font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums; }
.viewer__step {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .18s ease, transform .16s var(--ease);
}
.viewer__step svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .viewer__step:hover { background: rgba(255, 255, 255, .24); } }
.viewer__step:active { transform: scale(.94); }
.viewer__close {
  position: absolute; top: var(--nav-top); right: calc(var(--pad) - .75rem); width: calc(var(--nav) + .5rem); height: var(--nav);
  display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer;
}

/* Rückmeldung beim Drücken: `scale` statt `transform`, damit die 3D-Position aus dem Skript erhalten bleibt */
.burger__icon { transition: scale .16s var(--ease); }
.burger:active .burger__icon { scale: .9; }
.fx .stack__card { transition: scale .16s var(--ease); }
.fx .stack__card:active { scale: .97; }

.viewer__fig { touch-action: pan-y; }
.viewer__fig img { -webkit-user-drag: none; user-select: none; }
@media (prefers-reduced-transparency: reduce) { .arc__play { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Hinweis: die Arbeiten sind anklickbar (leise) */
.hero__copy { text-align: center; }
/* Hinweis unten: erst „scrollen“, sobald Karten liegen „klicken“ */
.hero__hint { display: flex; align-items: center; justify-content: center; gap: .375rem; margin: 1.5rem 0 0; font-size: .8125rem; color: var(--ink-3); }
.hero__hint svg { width: .9375rem; height: .9375rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hint--hand, .hint--mouse, .hint--touch { display: none; }
.hero__hint.is-cards > svg:first-child, .hero__hint.is-cards .hint--scroll { display: none; }
.hero__hint.is-cards .hint--hand, .hero__hint.is-cards .hint--mouse { display: inline; }
@media (hover: none) { .hero__hint.is-cards .hint--mouse { display: none; } .hero__hint.is-cards .hint--touch { display: inline; } }
html:not(.fx) .hero__hint { display: none; }

/* Handy: Headlines mit eigenen Umbrüchen, dafür groß (steht am Ende, damit es die Szenen-Größen überschreibt) */
@media (max-width: 599px) {
  .br-m { display: inline; }
  .fx .hero__title { font-size: min(16.5vw, 9svh); }
  .gallery__title, .about__title, .more__title { font-size: min(14.5vw, 7.5svh); }
}

/* =========================================================
   Weitere Arbeiten (Ende der Arbeitsseite)
   ========================================================= */
.more { padding: clamp(3rem, 10svh, 7rem) 0 clamp(5rem, 14svh, 9rem); overflow: hidden; }
.more__title { text-align: center; padding: 0 var(--pad); }
.more__row { display: flex; justify-content: center; align-items: center; margin-top: clamp(2rem, 6svh, 4rem); padding: 2rem var(--pad) 3rem; }
.more__card {
  --cw: 15rem;
  position: relative; flex: none; width: clamp(11rem, 19vw, 17rem); aspect-ratio: 380 / 500;
  margin-left: calc(clamp(11rem, 19vw, 17rem) * -.14);
  border-radius: var(--r); overflow: hidden; background: var(--bg-2); color: #fff; isolation: isolate;
  box-shadow: -18px 10px 34px -6px rgba(0, 0, 0, .78), 0 24px 48px -16px rgba(0, 0, 0, .6);   /* Schlagschatten nach links: fällt auf die Kachel darunter */
  transform: rotate(var(--rot, 0deg)) translateY(var(--y, 0));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); -webkit-tap-highlight-color: transparent;
}
.more__card:first-child { margin-left: 0; }
.more__card:nth-child(odd) { --rot: -4deg; --y: 10px; }
.more__card:nth-child(even) { --rot: 3deg; --y: -8px; }
.more__card:nth-child(3n) { --rot: -1.5deg; --y: 4px; }
.more__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.more__card::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .35) 35%, rgba(0, 0, 0, .82)); z-index: 1; pointer-events: none; }
.more__card .stack__cap { padding: 0 1rem 1rem; }
.more__card .stack__title { font-size: clamp(1.25rem, 1.6vw, 1.625rem); }
@media (hover: hover) and (pointer: fine) {
  .more__card:hover { z-index: 5; --rot: 0deg; --y: -14px; transform: rotate(0) translateY(-14px) scale(1.04); box-shadow: 0 30px 60px -12px rgba(0, 0, 0, .85), -18px 10px 34px -6px rgba(0, 0, 0, .78); }
}
.more__card:focus-visible { z-index: 5; transform: translateY(-14px) scale(1.04); outline: 2px solid var(--accent-bright); }
.more__card:active { scale: .98; }
/* Handy: Reihe zum Wischen, die Kacheln überlappen leicht */
@media (max-width: 699px) {
  .more__row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 1.5rem var(--pad) 2.5rem; }
  .more__row::-webkit-scrollbar { display: none; }
  .more__card { width: 62vw; margin-left: -9vw; scroll-snap-align: center; }
}
