/* =========================================================================
   THEGRINGOLAB® – style.css
   Gestaltungsgrundlage: portfolio-design.pdf (1366 × 768, Futura Bold/Medium)
   Alle Maße mit --s skalieren proportional zur Fensterbreite (1 PDF-Punkt = --s).
   ========================================================================= */

:root {
  --black: #000;
  --white: #fff;
  --grey: #8a8a8a;
  --s: calc(100vw / 1366);                       /* 1 Punkt im InDesign-Layout */
  --font: "Futura", "Futura PT", "Jost", "Century Gothic", system-ui, sans-serif;   /* Futura lokal (Apple), sonst Jost (selbst gehostet) */
  --ease: cubic-bezier(.19, 1, .22, 1);          /* expo.out */
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --pad: max(16px, calc(21 * var(--s)));         /* Seitenrand wie im PDF */

  /* Typo-Größen aus dem PDF (48 / 30 / 72 / 24 pt) */
  --fs-logo: clamp(26px, calc(48 * var(--s)), 72px);
  --fs-label: clamp(17px, calc(30 * var(--s)), 44px);
  --fs-hero: clamp(30px, calc(72 * var(--s)), 120px);
  --fs-text: clamp(17px, calc(24 * var(--s)), 34px);
  --fs-small: clamp(12px, calc(14 * var(--s)), 18px);

  --bg: var(--white);
  --fg: var(--black);
}

/* Jost – freie Futura-Alternative (SIL Open Font License), lokal gehostet: keine Verbindung zu Google */
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("assets/fonts/jost-latin-500.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: "Jost"; font-weight: 700; font-display: swap; src: url("assets/fonts/jost-latin-700.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: "Jost"; font-weight: 500; font-display: swap; src: url("assets/fonts/jost-latin-ext-500.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-weight: 700; font-display: swap; src: url("assets/fonts/jost-latin-ext-700.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
body[data-theme="dark"] { --bg: var(--black); --fg: var(--white); }
body[data-theme="light"] { --bg: var(--white); --fg: var(--black); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.noscript { padding: 40vh var(--pad); font-size: var(--fs-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hilfsklassen für gesplittete Buchstaben */
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }   /* kein will-change: sonst wird jeder Buchstabe eine eigene Ebene (ruckelt v. a. am Handy) */
.logo .ch.tm { font-size: .42em; vertical-align: 1.05em; margin-left: .06em; }   /* kleines ™ */
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* Text-Roll (Menü, Close, Labels) */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.15; }
.roll__a, .roll__b { display: block; transition: transform .6s var(--ease); }
.roll__b { position: absolute; left: 0; top: 100%; }
@media (hover: hover) {
  :is(.menu-toggle, .lightbox__close):hover .roll__a,
  :is(.menu-toggle, .lightbox__close):hover .roll__b { transform: translateY(-100%); }
}

/* ========== HEADER ========== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 0 calc(10 * var(--s)) 0 calc(8 * var(--s));
  pointer-events: none;
  color: var(--white);
  mix-blend-mode: difference;             /* invertiert automatisch auf Schwarz, Weiß und Bildern */
  transition: background-color .35s ease;
}
/* Sobald gescrollt wird, bekommt die Kopfzeile einen Hintergrund – Texte laufen nicht mehr unter das Logo */
body.is-scrolled:not(.menu-open) .site-header { mix-blend-mode: normal; background: var(--bg); color: var(--fg); }
.site-header > * { pointer-events: auto; }
.logo {
  display: inline-block;
  font-weight: 700; font-size: var(--fs-logo);
  line-height: 1.32; letter-spacing: -.005em;
  padding: 0 .1em;
}
.logo .ch { transform-origin: 50% 80%; }
.menu-toggle {
  font-size: var(--fs-label); font-weight: 500;
  margin-top: calc(4 * var(--s));
  margin-right: 9vw;
  padding: .1em .2em;
}
@media (max-width: 760px) {
  .site-header { padding: 6px 12px 0 10px; }
  .menu-toggle { margin: 4px 0 0; }
}

/* ========== MENÜ ========== */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--white); color: var(--black);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: max(18vh, 100px) var(--pad) calc(var(--pad) + 2vh);   /* nie unter das Logo */
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
body[data-theme="light"] .menu { background: var(--black); color: var(--white); }
.menu__list { list-style: none; margin: auto 0 0; padding: 0; }   /* unten ausgerichtet, scrollbar falls zu hoch */
.menu__item { display: block; }
.menu__link {
  position: relative; display: inline-flex; align-items: flex-start; gap: .25em;
  font-weight: 700; font-size: clamp(26px, min(calc(78 * var(--s)), 6.4vh), 130px);   /* passt auch auf niedrige Bildschirme */
  line-height: 1; text-transform: uppercase;
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.menu__link sup { font-size: .22em; font-weight: 500; letter-spacing: .02em; margin-top: .35em; }
.menu__item:nth-child(2) .menu__link { margin-left: 2em; }
.menu__item:nth-child(3) .menu__link { margin-left: 5.5em; }
.menu__item:nth-child(4) .menu__link { margin-left: 1em; }
.menu__item:nth-child(5) .menu__link { margin-left: 4em; }
.menu__item:nth-child(6) .menu__link { margin-left: 7em; }
.menu__item:nth-child(7) .menu__link { margin-left: 3em; }
@media (hover: hover) {
  .menu__list:hover .menu__link { opacity: .22; }
  .menu__list:hover .menu__link:hover { opacity: 1; transform: translateX(.12em); }
}
.menu__link.is-current::before {
  content: ""; position: absolute; left: -.45em; top: .38em; width: .22em; height: .22em; border-radius: 50%; background: currentColor;
}
.menu__foot {
  display: flex; flex-wrap: wrap; gap: .4em 2.2em; margin-top: 5vh;
  font-size: var(--fs-text); align-items: baseline;
}
.menu__legal { display: flex; gap: 1.4em; margin-left: auto; font-size: var(--fs-small); opacity: .6; }
@media (max-width: 760px) {
  .menu { padding-top: max(14vh, 90px); }
  .menu__foot { margin-bottom: auto; }   /* Liste + Fuß mittig, ohne oben abgeschnitten zu werden */
  .menu__link { font-size: 10.4vw; }
  .menu__item .menu__link { margin-left: 0 !important; }
  .menu__item:nth-child(even) .menu__link { margin-left: 1.2em !important; }
}

/* ========== UNTERSTREICHUNG (Kontakt, Menü-Fuß) ========== */
.u-link { position: relative; display: inline-block; padding-bottom: .08em; }
.u-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: max(1.5px, .06em);
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .7s var(--ease);
}
@media (hover: hover) { .u-link:hover::after { transform: scaleX(1); transform-origin: left center; } }
.u-link:focus-visible::after { transform: scaleX(1); }

/* ========== SEITEN / VIEWS ========== */
#app { outline: none; min-height: 100vh; min-height: 100svh; }
.view { position: relative; min-height: 100vh; min-height: 100svh; }

/* ---------- HOME ---------- */
.home {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh; min-height: 100svh;
  padding: 0 var(--pad) calc(28 * var(--s) + 2vh) calc(36 * var(--s));
  overflow: hidden;
}
.home__lines { font-weight: 700; font-size: var(--fs-hero); line-height: 1; text-transform: uppercase; }
.home__line { display: block; width: max-content; max-width: 100%; white-space: nowrap; }
.home__line a, .home__line .home__name { display: inline-block; }
.home__line .ch { transform-origin: 50% 100%; }
.home__line--name .home__gap { display: inline-block; width: 6.9em; }
.home__line--gd { margin-left: 5.53em; }
.home__line--ve { margin-left: 2.02em; }
.home__line a { position: relative; }
.home__line a::after {                    /* kleiner Pfeil, erscheint beim Hover */
  content: "→"; position: absolute; right: -1.05em; top: 0; font-weight: 500;
  opacity: 0; transform: translateX(-.4em); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
@media (hover: hover) { .home__line a:hover::after { opacity: 1; transform: none; } }
.home__meta {
  position: absolute; right: var(--pad); bottom: calc(28 * var(--s) + 2vh);
  font-size: var(--fs-small); text-align: right; line-height: 1.5; opacity: .55;
}
@media (max-width: 900px) {
  .home { padding-left: var(--pad); padding-bottom: 9vh; }
  .home__lines { font-size: calc((100vw - 2 * var(--pad)) / 12.4); }  /* längste Zeile passt immer */
  .home__line--name .home__gap { width: 1.4em; }
  .home__line--gd { margin-left: 1.1em; }
  .home__line--ve { margin-left: .45em; }
  .home__line a::after { display: none; }
  .home__meta { position: static; text-align: left; margin-top: 4vh; }
}

/* Schwebende Vorschau beim Hover über die Kategorien */
.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 4; width: clamp(180px, 22vw, 380px);
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6);
}
.hover-preview img { width: 100%; height: auto; }

/* ---------- WORKS (Collage / Mosaik / Playground) ---------- */
.works { padding: calc(150 * var(--s) + 2vh) 0 calc(80 * var(--s) + 6vh); }
.works__tag {
  position: fixed; left: var(--pad); bottom: calc(var(--pad) * .9); z-index: 5;
  font-size: var(--fs-small); letter-spacing: .02em; display: flex; gap: .9em; align-items: baseline;
}
.works__tag b { font-weight: 700; }

.stage { position: relative; width: 100%; }
.card {
  position: absolute; left: 0; top: 0;
  perspective: 1100px;
  -webkit-tap-highlight-color: transparent;
}
.card__par, .card__mag { width: 100%; height: 100%; transform-style: preserve-3d; }
.card__mag { will-change: transform; }
.card__link { display: block; width: 100%; height: 100%; position: relative; outline-offset: 6px; }
.card__media { position: relative; width: 100%; height: 100%; overflow: hidden; background: #e9e9e9; }
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
}
.card__media video { opacity: 0; }                     /* Ein-/Ausblenden steuert script.js weich */
.card.is-hover .card__media img { transform: scale(1.04); }
.card__shine {                                   /* Lichtreflex beim Tilt */
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 55%);
  mix-blend-mode: soft-light; transition: opacity .5s var(--ease);
}
.card.is-hover .card__shine { opacity: 1; }
.card__caption {
  position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap;
  font-size: var(--fs-small); line-height: 1.3; color: var(--fg); pointer-events: none;
}
.card__caption b { font-weight: 700; }
.card__caption .line-mask > span { display: block; transform: translateY(105%); transition: transform .45s var(--ease); }
.card.is-hover .card__caption .line-mask > span { transform: none; }
.card.is-hover { z-index: 40 !important; }
@media (hover: none) {
  .card__caption .line-mask > span { transform: none; }
}
@media (max-width: 699px) {
  .card__caption { right: 0; overflow: hidden; text-overflow: ellipsis; }
  .card__caption .line-mask > span { overflow: hidden; text-overflow: ellipsis; }
  .works { padding-bottom: 40px; }
  .works__tag { position: relative; left: auto; bottom: auto; padding: 24px 16px 0; }
}

/* Mosaik (Graphic Design) */
.mosaic { position: relative; width: 100%; padding-right: calc(10 * var(--s)); }
.mosaic .card { position: absolute; }
.mosaic .card__media { background: #f1f1f1; }

/* Playground (Visual Experiments) – verspielter */
.playground .card { cursor: grab; touch-action: pan-y; }
.playground .card.is-dragging { cursor: grabbing; }
.playground .card__media { transition: filter .8s var(--ease); }
.playground .card.is-hover .card__media { filter: drop-shadow(-2px 0 0 rgba(255,0,60,.45)) drop-shadow(2px 0 0 rgba(0,220,255,.45)); }

/* ---------- SOUND ---------- */
.sound { padding: calc(170 * var(--s) + 6vh) var(--pad) 14vh; }
.sound__title { font-weight: 700; font-size: var(--fs-hero); line-height: 1; text-transform: uppercase; margin: 0 0 6vh; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.track { border-bottom: 1px solid currentColor; }
.track__btn {
  width: 100%; display: grid; grid-template-columns: 3.2em 1fr auto auto; gap: 1em; align-items: baseline;
  padding: .55em 0; text-align: left; font-size: var(--fs-text);
  transition: padding .6s var(--ease);
}
.track__no { font-size: .7em; opacity: .55; }
.track__title { font-weight: 700; font-size: 1.6em; line-height: 1; text-transform: uppercase; }
.track__meta, .track__dur { font-size: .7em; opacity: .6; }
@media (hover: hover) { .track__btn:hover { padding-left: .6em; } }
.sound__empty { display: flex; flex-direction: column; gap: 3vh; font-size: var(--fs-text); }
.eq { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.eq span { width: 6px; background: currentColor; height: 20%; animation: eq 1.1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: -.2s } .eq span:nth-child(3) { animation-delay: -.45s }
.eq span:nth-child(4) { animation-delay: -.7s } .eq span:nth-child(5) { animation-delay: -.9s }
.eq span:nth-child(6) { animation-delay: -.3s } .eq span:nth-child(7) { animation-delay: -.6s }
@keyframes eq { 0%, 100% { height: 15%; } 50% { height: 100%; } }

/* ---------- ABOUT ---------- */
.about {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 6vw;
  padding: calc(170 * var(--s) + 8vh) var(--pad) 14vh calc(36 * var(--s));
  align-items: end; min-height: 100vh;
}
.about__headline { font-weight: 700; font-size: var(--fs-hero); line-height: 1; margin: 0; text-transform: uppercase; }
.about__intro { font-size: var(--fs-label); margin: 1.2em 0 0; }
.about__portrait { margin-top: 5vh; width: min(100%, 420px); aspect-ratio: 4 / 5; object-fit: cover; }
.about__text { font-size: var(--fs-text); line-height: 1.4; }
.about__text p { margin: 0 0 1em; max-width: 34em; }
.about__list { margin-top: 2.5em; font-size: var(--fs-small); }
.about__list h3 { font-size: 1em; font-weight: 700; margin: 0 0 .6em; text-transform: uppercase; letter-spacing: .04em; }
.about__list ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-text); line-height: 1.3; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; align-items: start; padding-left: var(--pad); } }

/* ---------- CONTACT ---------- */
.contact {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55em;
  min-height: 100vh; min-height: 100svh; font-size: var(--fs-text); text-align: center; padding: 0 var(--pad);
}
.contact a { display: inline-block; }
.contact { padding-top: 90px; }
.contact__toggle {
  margin-top: 1.6em; font-size: var(--fs-small); color: var(--fg); -webkit-appearance: none; appearance: none;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: .65em 1.5em;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.contact__toggle::after { display: none; }   /* statt Unterstreichung: sichtbarer Rahmen */
@media (hover: hover) { .contact__toggle:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); } }
.contact__formwrap { width: min(100%, 560px); overflow: hidden; text-align: left; }
.cform { display: grid; gap: 18px; padding: 2.2em 0 4px; font-size: var(--fs-small); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform__field { display: grid; gap: 6px; }
.cform__field span { opacity: .7; text-transform: lowercase; letter-spacing: .02em; }
.cform input, .cform textarea {
  width: 100%; font: inherit; font-size: clamp(16px, calc(20 * var(--s)), 24px); color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); border-radius: 0;
  padding: 6px 0 8px; outline: none; resize: vertical; transition: border-color .4s var(--ease);
}
.cform input:focus, .cform textarea:focus { border-bottom-color: currentColor; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__note { margin: 0; opacity: .55; line-height: 1.5; }
.cform__note a { text-decoration: underline; text-underline-offset: .15em; }
.cform__foot { display: flex; align-items: baseline; gap: 1.4em; flex-wrap: wrap; }
.cform__send { font-size: var(--fs-text); font-weight: 700; }
.cform__status { margin: 0; opacity: .8; }
.cform.is-sending { opacity: .5; pointer-events: none; }
@media (max-width: 560px) { .cform__row { grid-template-columns: 1fr; } }

/* ========== LIGHTBOX / PROJEKTFENSTER ========== */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  background: var(--black); color: var(--white);
  display: grid; grid-template-rows: auto 1fr;
  visibility: hidden; clip-path: inset(50% 50% 50% 50%);
  overscroll-behavior: contain;
}
.lightbox.is-open { visibility: visible; }
.lightbox__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(14 * var(--s) + 6px) var(--pad); font-size: var(--fs-small); position: relative; z-index: 3;
}
.lightbox__count { letter-spacing: .04em; }
.lightbox__close { display: inline-flex; align-items: center; gap: .7em; font-size: var(--fs-label); }
.lightbox__close .x { position: relative; width: .8em; height: .8em; transition: transform .7s var(--ease); }
.lightbox__close .x::before, .lightbox__close .x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.lightbox__close .x::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (hover: hover) { .lightbox__close:hover .x { transform: rotate(90deg); } }

.lightbox__body {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 420px);
  gap: calc(40 * var(--s)); min-height: 0;
  padding: 0 calc(var(--pad) + 3.5vw) calc(var(--pad) + 1vh);
}
.lightbox__media { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-frame { position: relative; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lb-frame video, .lb-frame img, .lb-frame iframe { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #0b0b0b; }
.lb-frame iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.lb-frame img.is-zoomable { cursor: zoom-in; transition: transform .7s var(--ease); }
.lb-frame img.is-zoomed { cursor: zoom-out; transform: scale(2.2); }
.lb-gallery { position: absolute; left: 0; right: 0; bottom: -4px; display: flex; gap: 6px; justify-content: center; }
.lb-gallery button { width: 46px; height: 32px; opacity: .4; transition: opacity .3s; }
.lb-gallery button.is-active, .lb-gallery button:hover { opacity: 1; }
.lb-gallery img { width: 100%; height: 100%; object-fit: cover; }

.lightbox__info { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; overflow: auto; padding-bottom: 2px; }
.lb-cat { font-size: var(--fs-small); opacity: .55; margin-bottom: 1.2em; text-transform: lowercase; }
.lb-title { font-weight: 700; font-size: clamp(30px, calc(52 * var(--s)), 84px); line-height: 1; margin: 0; text-transform: uppercase; overflow-wrap: anywhere; }
.lb-sub { font-size: var(--fs-text); margin: .35em 0 0; }
.lb-desc { font-size: var(--fs-small); line-height: 1.5; margin: 1.6em 0 0; opacity: .85; max-width: 32em; }
.lb-meta { margin: 1.6em 0 0; display: grid; grid-template-columns: auto 1fr; gap: .35em 1.4em; font-size: var(--fs-small); }
.lb-meta dt { opacity: .5; }
.lb-meta dd { margin: 0; }
.lb-nav { display: flex; justify-content: space-between; gap: 1em; margin-top: 2.4em; padding-top: 1em; border-top: 1px solid rgba(255,255,255,.25); font-size: var(--fs-small); }
.lb-nav button { text-align: left; max-width: 48%; }
.lb-nav button:last-child { text-align: right; }
.lb-nav small { display: block; opacity: .5; margin-bottom: .25em; }
.lb-nav span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: calc(var(--pad) + 3.5vw); height: 40vh; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-label); opacity: .55; transition: opacity .4s var(--ease);
}
.lightbox__arrow span { display: inline-block; transition: transform .6s var(--ease); }
.lightbox__arrow--prev { left: 0; }
.lightbox__arrow--next { right: 0; }
@media (hover: hover) {
  .lightbox__arrow:hover { opacity: 1; }
  .lightbox__arrow--prev:hover span { transform: translateX(-6px); }
  .lightbox__arrow--next:hover span { transform: translateX(6px); }
}

.lightbox--bare .lightbox__body { grid-template-columns: minmax(0, 1fr); }
.lightbox--bare .lightbox__info { display: none; }

/* Audio-Player in der Lightbox */
.player { width: min(100%, 560px); display: grid; gap: 22px; }
.player__cover { width: 100%; aspect-ratio: 1; object-fit: cover; background: #111; }
.player__row { display: flex; align-items: center; gap: 18px; font-size: var(--fs-small); }
.player__play { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; flex: none; transition: background .3s, color .3s; }
.player__play:hover { background: var(--white); color: var(--black); }
.player__play svg { width: 18px; height: 18px; fill: currentColor; }
.player__bar { flex: 1; height: 22px; position: relative; cursor: pointer; }
.player__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.35); }
.player__fill { position: absolute; left: 0; top: calc(50% - 1px); height: 3px; width: 0; background: currentColor; }
.player__time { font-variant-numeric: tabular-nums; min-width: 6.5em; text-align: right; }

@media (max-width: 900px) {
  .lightbox { grid-template-rows: auto minmax(0, 1fr); }
  .lightbox__body { grid-template-columns: 1fr; grid-template-rows: auto auto; overflow-y: auto; padding: 0 var(--pad) 40px; gap: 26px; align-content: start; }
  .lightbox__media { max-height: 62vh; min-height: 30vh; }
  .lb-frame video, .lb-frame img { max-height: 62vh; }
  .lightbox__info { overflow: visible; justify-content: flex-start; }
  .lightbox__arrow { display: none; }
}

/* ========== FOOTER ========== */
.site-footer {
  position: absolute; right: var(--pad); bottom: calc(var(--pad) * .9); z-index: 6;
  display: flex; gap: 1.3em; align-items: baseline; font-size: var(--fs-small); color: var(--fg);
}
.site-footer span { opacity: .5; }
.view:has(.site-footer) { padding-bottom: max(56px, 6vh); }
.home:has(.site-footer), .contact:has(.site-footer) { padding-bottom: calc(28 * var(--s) + 2vh); }
.about2:has(.site-footer) { padding-bottom: 0; min-height: 0; }
.about2 .site-footer { position: relative; right: auto; bottom: auto; justify-content: flex-end; padding: 18px var(--pad); }
@media (min-width: 901px) {   /* Desktop: Footer liegt im letzten Bild – kein Nachscrollen, Name bleibt frei vom Logo */
  .about2 .site-footer { position: absolute; right: var(--pad); bottom: calc(var(--pad) * .9); padding: 0; }
}
@media (max-width: 699px) {
  .site-footer { position: relative; right: auto; bottom: auto; padding: 28px 16px 22px; flex-wrap: wrap; }
  .home .site-footer, .contact .site-footer { position: absolute; left: 0; bottom: 0; padding-bottom: 14px; }
  .home:has(.site-footer), .contact:has(.site-footer) { padding-bottom: 64px; }
}

/* ========== ABOUT (nach about me.pdf) ========== */
.about2 { position: relative; }
.about2__pin { position: relative; height: 100vh; height: 100svh; min-height: calc(768 * var(--s)); background: var(--white); color: var(--black); overflow: hidden; }
.about2__img { position: absolute; overflow: hidden; z-index: 1; }
.about2__shade { position: absolute; inset: 0; background: var(--black); opacity: 0; z-index: 0; will-change: opacity; pointer-events: none; }
.about2__name, .about2__text { z-index: 1; }
.about2__title--light { position: absolute; left: 0; top: 0; display: block; color: var(--white); opacity: 0; pointer-events: none; will-change: opacity; }
.about2__img img { width: 100%; height: 100%; object-fit: cover; }
.about2__img--small { left: calc(532 * var(--s)); top: calc(49 * var(--s)); width: calc(268 * var(--s)); height: calc(393 * var(--s)); }
.about2__img--big { left: calc(811 * var(--s)); top: calc(50 * var(--s)); width: calc(509 * var(--s)); height: calc(680 * var(--s)); }
.about2__name { position: absolute; left: calc(45 * var(--s)); top: calc(491 * var(--s)); will-change: transform; }
.about2__title { margin: 0; font-weight: 700; font-size: var(--fs-hero); line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.about2__sub { margin: 0; font-size: clamp(22px, calc(44 * var(--s)), 74px); line-height: 1.1; max-width: calc(740 * var(--s)); }   /* bricht vor dem großen Foto um */
.about2__text {
  position: absolute; left: calc(45 * var(--s)); top: calc(265 * var(--s)); width: calc(730 * var(--s));
  color: var(--white); font-size: clamp(16px, calc(30 * var(--s)), 48px); line-height: 1.2;
}
.about2__text p { margin: 0 0 1.2em; }
.about2__list h3 { font-size: .6em; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .4em; }
.about2__list ul { list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) {
  .about2__pin { height: auto; min-height: 0; display: grid; grid-template-columns: 682fr 749fr; column-gap: 8px; align-items: start; padding: 90px var(--pad) 0; }   /* beide Fotos nebeneinander, gleich hoch */
  .about2__img, .about2__name, .about2__text { position: static; width: auto; height: auto; }
  .about2__name { grid-column: 1 / -1; margin-bottom: 26px; }
  .about2__title { font-size: calc((100vw - 2 * var(--pad)) / 8.4); line-height: 1.05; }
  .about2__sub { font-size: clamp(20px, 5.4vw, 34px); margin-top: .2em; max-width: none; }
  .about2__img--small { grid-column: 1; grid-row: 2; aspect-ratio: 268 / 393; }
  .about2__img--big { grid-column: 2; grid-row: 2; aspect-ratio: 509 / 680; }
  .about2__shade, .about2__title--light { display: none; }
  .about2__text { grid-column: 1 / -1; grid-row: 3; background: var(--black); margin: 34px calc(-1 * var(--pad)) 0; padding: 44px var(--pad) 30px; font-size: clamp(17px, 4.6vw, 24px); }
  .about2 .site-footer { background: var(--black); color: var(--white); }
}

/* ========== FEED (Foto-Raster) ========== */
.feed { padding: calc(110 * var(--s) + 4vh) var(--pad) 0; }
.feed__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: max(8px, calc(14 * var(--s))); }
.feed__item { display: block; outline-offset: 4px; }
.feed__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #eee; }
.feed__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); }
@media (hover: hover) {
  .feed__grid:hover .feed__media img { filter: grayscale(.7) brightness(.92); }
  .feed__grid .feed__item:hover .feed__media img { filter: none; transform: scale(1.04); }
}
@media (max-width: 1100px) { .feed__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 699px) { .feed { padding-top: 84px; } .feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ========== IMPRESSUM / DATENSCHUTZ ========== */
.legal { padding: calc(150 * var(--s) + 4vh) var(--pad) 0 calc(45 * var(--s)); }
.legal__inner { max-width: 46rem; font-size: clamp(15px, calc(17 * var(--s)), 19px); line-height: 1.55; }
.legal__inner h1 { font-weight: 700; font-size: var(--fs-hero); line-height: 1; text-transform: uppercase; margin: 0 0 .8em; overflow-wrap: anywhere; }
.legal__inner h2 { font-weight: 700; font-size: 1em; text-transform: uppercase; letter-spacing: .04em; margin: 2.4em 0 .6em; }
.legal__inner h3 { font-weight: 700; font-size: 1em; margin: 1.6em 0 .4em; }
.legal__inner h4 { font-weight: 500; font-size: 1em; margin: 1.2em 0 .3em; }
.legal__inner p, .legal__inner ul { margin: 0 0 1em; }
.legal__inner ul { padding-left: 1.2em; }
.legal__inner a { text-decoration: underline; text-underline-offset: .15em; }
.legal__lang { display: flex; gap: .45em; align-items: baseline; margin: 0 0 1.4em; font-size: var(--fs-small); letter-spacing: .04em; }
.legal__lang a { opacity: .45; transition: opacity .4s var(--ease); }
.legal__lang a.is-current { opacity: 1; font-weight: 700; }
.legal__lang span { opacity: .3; }
@media (hover: hover) { .legal__lang a:hover { opacity: 1; } }
.legal__inner .ph { background: #ececec; padding: 0 .25em; font-style: italic; }   /* Platzhalter – vor Veröffentlichung ersetzen */
.legal__inner .stand { opacity: .55; margin-top: 3em; }
@media (max-width: 760px) { .legal { padding: 90px var(--pad) 0; } .legal__inner h1 { font-size: 11vw; } }


/* ========== CURSOR ========== */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--white); mix-blend-mode: difference;
  display: grid; place-items: center; opacity: 0;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), opacity .3s;
}
.cursor__label { font-size: 13px; font-weight: 700; color: var(--black); opacity: 0; transition: opacity .3s; text-transform: lowercase; letter-spacing: .02em; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0 !important; }
@media (hover: none), (pointer: coarse) { .cursor, .hover-preview { display: none; } }
/* Desktop: Standard-Cursor des Systems aus – nur der eigene Punkt-Cursor ist sichtbar (Klasse setzt script.js) */
@media (hover: hover) and (pointer: fine) { html.has-cursor, html.has-cursor * { cursor: none !important; } }

/* ========== REDUZIERTE BEWEGUNG ========== */
/* ========== SMARTPHONE-FEINSCHLIFF ==========
   Kopfzeile mit eigenem Hintergrund (nichts scrollt mehr unter das Logo), Seitentitel oben,
   ruhige Abstände. Desktop bleibt unverändert. */
@media (max-width: 699px) {
  .site-header {
    mix-blend-mode: normal; background: var(--bg); color: var(--fg);
    align-items: center; padding: 10px 14px 10px 12px;
    transition: background-color .3s ease, color .3s ease;
  }
  body.menu-open .site-header { background: transparent; color: var(--bg); }
  .logo { font-size: 26px; line-height: 1.15; }
  .menu-toggle { font-size: 17px; margin: 0; }

  .works { display: flex; flex-direction: column; padding-top: 58px; }
  .works__tag { order: -1; padding: 14px 16px 28px; font-size: 13px; }
  .card__caption { top: calc(100% + 10px); font-size: 13px; }

  .sound { padding: 92px 16px 64px; }
  .sound__title { font-size: 12.5vw; margin-bottom: 28px; }
  .track__btn { grid-template-columns: 2em 1fr auto; gap: .7em; font-size: 17px; padding: .8em 0; }
  .track__meta { display: none; }

  .contact { font-size: clamp(18px, 5.6vw, 24px); padding-top: 70px; gap: .7em; }
  .contact__formwrap { width: 100%; }

  .feed { padding: 70px 16px 0; }
  .feed__grid { gap: 6px; }

  .legal { padding: 84px 16px 0; }
  .legal__inner { font-size: 15px; line-height: 1.6; }
  .legal__inner h1 { font-size: 9.5vw; overflow-wrap: anywhere; hyphens: auto; }
  .legal__inner h2 { margin-top: 2em; }

  .menu { padding: 90px 16px 24px; }
  .menu__link { font-size: calc((100vw - 32px) / 13.2); white-space: nowrap; line-height: 1.04; }
  .menu__item:nth-child(even) .menu__link { margin-left: .8em !important; }
  .menu__foot { flex-wrap: wrap; row-gap: 10px; }
  .menu__legal { margin-left: 0; width: 100%; }

  .site-footer { font-size: 12px; gap: 1em; }
  .sound, .feed, .legal { display: flex; flex-direction: column; min-height: 100svh; }
  .sound > .site-footer, .feed > .site-footer, .legal > .site-footer { margin: auto -16px 0; }

  /* Performance: keine 3D-Ebenen pro Karte auf dem Handy */
  .card { perspective: none; }
  .card__par, .card__mag { transform-style: flat; will-change: auto; }
  .card__link .card__media { transition: transform .35s var(--ease); }
  .card__link:active .card__media { transform: scale(.985); }   /* dezentes Tap-Feedback */

  /* About: Infos schneller erreichbar – Foto kompakter, Text direkt darunter */
  .about2__pin { padding-top: 76px; }
  .about2__name { margin-bottom: 18px; }
  .about2__text { margin-top: 26px; padding-top: 34px; }
}

/* ========== RECHTSLINKS OHNE JAVASCRIPT ==========
   .legal-fallback steht fest in index.html; sichtbar nur, wenn JavaScript aus ist.
   .legal-standalone = direkt aufgerufene legal/*.html-Seiten. */
.js .legal-fallback { display: none; }
.legal-fallback { position: fixed; left: var(--pad); bottom: var(--pad); z-index: 5; display: flex; flex-wrap: wrap; gap: .4em 1.4em; font-size: var(--fs-small); }
.legal-fallback a { text-decoration: underline; text-underline-offset: .15em; }
.legal-standalone .legal { padding-top: calc(60 * var(--s) + 4vh); padding-bottom: 60px; }
.legal__back { margin: 0 0 1.6em; font-size: var(--fs-small); }
.legal__back a { text-decoration: underline; text-underline-offset: .15em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .home__line a, .home__line .home__name { filter: none; }
}
