/* ==========================================================
   Gleb Zagrebin – Sound Engineering
   Farben & Schrift aus dem neuen Balken-Logo
   ========================================================== */

/* Outfit, selbst gehostet (SIL Open Font License, siehe assets/fonts/OFL.txt) */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/outfit-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: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/outfit-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;
}

:root {
  /* Marke */
  --ink: #111111;          /* Tinte  – Hintergrund */
  --paper: #EDE8DF;        /* Papier – Text */
  --grey-light: #B8B2A7;   /* Grau hell – Nebentext auf dunkel */
  --coral: #FF5A36;        /* Akzent (Balken im Logo) */

  /* Semantik */
  --bg: var(--ink);
  --bg-raised: #1A1A1A;
  --fg: var(--paper);
  --fg-muted: var(--grey-light);
  --accent: var(--coral);
  --line: rgba(237, 232, 223, 0.12);
  --overlay: rgba(10, 10, 10, 0.92);

  /* Typo */
  --font: "Outfit", system-ui, sans-serif;
  --fs-body: 1.0625rem;
  --fs-title: clamp(3rem, 9vw, 7.5rem);
  --fs-nav: clamp(1.5rem, 3.4vw, 2.5rem);

  /* Abstände */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --gap: clamp(8px, 1.2vw, 16px);

  /* Bewegung */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 200ms;
  --t-med: 400ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { top: 16px; }

/* ==========================================================
   INTRO
   ========================================================== */

/* Das Intro läuft direkt im Hero-Logo (siehe main.js); diese Ebene trägt nur noch den Skip-Button */
.intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  transition: opacity 900ms var(--ease-out), visibility 900ms;
}
.intro__skip {
  pointer-events: auto;
  position: absolute;
  right: var(--gutter);
  bottom: var(--gutter);
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.intro__skip:hover { color: var(--fg); border-color: var(--fg-muted); }

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.no-intro .intro { display: none; }

/* Solange das Intro läuft: nicht scrollen */
body.intro-running { overflow: hidden; }

/* ==========================================================
   HEADER (sticky, erscheint nach dem Hero)
   ========================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform var(--t-med) var(--ease-out);
}
.site-header.is-visible { transform: none; }

.site-header__logo img { height: 34px; width: auto; }

.site-header__nav { display: flex; gap: clamp(16px, 3vw, 36px); }

.site-header__nav a,
.hero__nav a {
  position: relative;
  text-decoration: none;
  padding: 8px 0;
}

/* Unterstrich in Koralle, wächst von links */
.site-header__nav a::after,
.hero__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease-out);
}
.site-header__nav a:hover::after,
.hero__nav a:hover::after,
.site-header__nav a.is-active::after { transform: scaleX(1); }

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 8vh, 88px);
  padding: 96px var(--gutter);
  text-align: center;
}

/* Hintergrundvideo + Abdunklung, damit Logo und Menü lesbar bleiben */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1600ms var(--ease-out);
}
.hero__bg.is-playing { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(17,17,17,0.45) 0%, rgba(17,17,17,0.75) 70%),
    linear-gradient(to bottom, rgba(17,17,17,0) 60%, var(--ink) 100%);
}

.hero__logo { margin: 0; }
.hero__logo svg { display: block; width: min(560px, 80vw); height: auto; overflow: visible; }

/* Logo-Teile, die main.js animiert */
.logo-track { fill: var(--fg); }
.logo-cap { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.logo-name { fill: var(--fg); }
.logo-tag { fill: var(--fg-muted); }

/* Während des Intros steuert main.js Position und Sichtbarkeit des Logos selbst */
body.intro-running .hero__logo { opacity: 1; transition: none; }

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px clamp(28px, 6vw, 72px);
  font-size: var(--fs-nav);
  font-weight: 500;
}

/* Menüpunkte erscheinen nacheinander, sobald das Intro fertig ist */
.hero__logo,
.hero__nav a {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}
.hero__nav a { transition-delay: calc(var(--nav-delay, 300ms) + var(--i) * 140ms); }

body.is-ready .hero__logo,
body.is-ready .hero__nav a {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   SECTIONS
   ========================================================== */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 12vh, 140px) var(--gutter);
}

.section__title {
  margin: 0 0 clamp(32px, 6vh, 72px);
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

/* ==========================================================
   GALERIE – 3 pro Reihe
   ========================================================== */

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--bg-raised);
  cursor: pointer;
  text-align: left;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter var(--t-med) var(--ease-out),
    transform 700ms var(--ease-out);
}

.tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: clamp(14px, 2vw, 24px);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
}

.tile__title {
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  transform: translateY(10px);
  transition: transform var(--t-med) var(--ease-out);
}

.tile__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tile__meta svg { width: 14px; height: 14px; fill: var(--accent); }

/* Hover / Tastatur-Fokus: Bild dunkler, Titel erscheint */
.tile:hover img,
.tile:focus-visible img {
  filter: brightness(0.38);
  transform: scale(1.03);
}
.tile:hover .tile__overlay,
.tile:focus-visible .tile__overlay { opacity: 1; }
.tile:hover .tile__title,
.tile:focus-visible .tile__title { transform: none; }

.tile:focus-visible { outline-offset: -2px; }

/* ---------- Music Production ---------- */

.projects__category {
  margin: clamp(80px, 14vh, 160px) 0 clamp(24px, 4vh, 40px);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Albumcover sind quadratisch → kleinere Kacheln, 4 pro Reihe */
.gallery--music { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile--music { aspect-ratio: 1; text-decoration: none; color: inherit; }

.tile__role {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(10px);
  transition: transform var(--t-med) var(--ease-out);
}
.tile:hover .tile__role,
.tile:focus-visible .tile__role { transform: none; }

.tile__meta--link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Play-Symbol auf Projekten mit Video – immer sichtbar, oben links, damit das Motiv frei bleibt */
.tile__play {
  position: absolute;
  top: clamp(10px, 1.4vw, 16px);
  left: clamp(10px, 1.4vw, 16px);
  pointer-events: none;
}
.tile__play svg {
  display: block;
  width: 44px;
  height: 44px;
  padding: 12px 11px 12px 14px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.55);
  border: 1px solid rgba(237, 232, 223, 0.4);
  fill: var(--fg);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-med);
}
.tile:hover .tile__play svg,
.tile:focus-visible .tile__play svg {
  transform: scale(1.08);
  background: var(--accent);
  border-color: var(--accent);
}

/* Touch-Geräte haben kein Hover: Titel dauerhaft mit Verlauf zeigen */
@media (hover: none) {
  .tile__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0) 60%);
  }
  .tile__title,
  .tile__role { transform: none; }

  /* Music Production auf Touch-Geräten: nur die Rolle als gut lesbares Etikett –
     Künstler und Album stehen ohnehin auf dem Cover */
  .tile--music .tile__overlay {
    padding: 10px;
    background: none;
  }
  .tile--music .tile__title,
  .tile--music .tile__meta { display: none; }
  .tile--music .tile__role {
    align-self: flex-start;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(17, 17, 17, 0.82);
    font-size: 0.6875rem;
    line-height: 1.3;
    letter-spacing: 0.08em;
  }
}

/* ==========================================================
   ABOUT
   ========================================================== */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about__photo {
  width: 100%;
  height: auto;
}

.about__lead {
  margin: 0 0 24px;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
}

.about__body { margin-bottom: 32px; }
.about__text .about__body p { color: var(--fg); opacity: 0.88; }
.about__text .about__body p + p { margin-top: 14px; }

.about__text h3 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about__text p { margin: 0; max-width: 60ch; color: var(--fg-muted); }

/* Book-me-Button unter dem About-Text */
.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 36px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.btn-book svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn-book:hover { background: var(--paper); }
.btn-book:hover svg { transform: translateX(4px); }
.btn-book:active { transform: scale(0.98); }
.btn-book:focus-visible { outline-color: var(--paper); }

/* ==========================================================
   CONTACT
   ========================================================== */

.contact { text-align: center; }

.contact__intro { margin: 0 0 40px; color: var(--fg-muted); }

.contact__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  border-top: 1px solid var(--line);
}

.contact__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact__list span {
  color: var(--fg-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact__list a {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--t-fast);
}
.contact__list a:hover { color: var(--accent); }

/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* ==========================================================
   IMPRESSUM / DATENSCHUTZ
   ========================================================== */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(112px, 16vh, 160px) var(--gutter) clamp(64px, 10vh, 120px);
}

.legal h2 {
  margin: 48px 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.legal p,
.legal ul { margin: 0 0 16px; color: var(--fg-muted); }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: 4px; }

.legal a { color: var(--fg); text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }

.legal__lead {
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: var(--bg-raised);
  color: var(--fg) !important;
}

.legal__date { margin-top: 48px !important; font-size: 0.875rem; }
.legal__back { margin-top: 48px !important; }

/* Platzhalter, die noch ausgefüllt werden müssen – fallen absichtlich auf */
mark.todo {
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(255, 90, 54, 0.25);
  color: var(--fg);
}

.site-footer a[aria-current="page"] { color: var(--fg); }

/* ==========================================================
   POP-UP / LIGHTBOX
   ========================================================== */

.lightbox {
  overflow: hidden;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
}
.lightbox::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(6px);
}

.lightbox[open] { animation: lb-in 260ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.985); } }

.lightbox__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(1440px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: clamp(12px, 2.5vw, 28px) var(--gutter);
}

.lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox__title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 600;
}

/* Pfeil | Bild | Pfeil – nimmt die ganze restliche Höhe ein */
.lightbox__body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
}

/* Container-Einheiten (cqw/cqh) = Größe dieser Fläche → Bilder passen immer ganz hinein */
.lightbox__stage {
  grid-column: 2;
  height: 100%;
  min-width: 0;
  container-type: size;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}

.lightbox__stage img,
.lightbox__clip {
  display: block;
  width: auto;
  height: auto;
  max-width: 100cqw;
  max-height: 100cqh;
  animation: fade 300ms var(--ease-out);
}
@keyframes fade { from { opacity: 0; } }

.lightbox__video {
  width: min(100cqw, 100cqh * 16 / 9);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.lightbox__empty { color: var(--fg-muted); }

.lightbox__count {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.lightbox__nav {
  width: 52px;
  height: 52px;
  border-color: rgba(237, 232, 223, 0.35);
  background: rgba(237, 232, 223, 0.08);
}
.lightbox__nav:hover { border-color: var(--fg); background: rgba(237, 232, 223, 0.16); }
.lightbox__nav svg { width: 24px; height: 24px; }

/* ---------- Raster-Ansicht ---------- */

.lightbox__grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: var(--gap);
}

.lightbox__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--bg-raised);
  cursor: zoom-in;
  animation: fade 300ms var(--ease-out);
}

.lightbox__thumb img,
.lightbox__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--t-med) var(--ease-out), transform 700ms var(--ease-out);
}
.lightbox__thumb:hover img,
.lightbox__thumb:hover video,
.lightbox__thumb:focus-visible img,
.lightbox__thumb:focus-visible video {
  filter: brightness(0.6);
  transform: scale(1.03);
}
.lightbox__thumb:focus-visible { outline-offset: -2px; }

/* ---------- YouTube: Zwei-Klick-Lösung ---------- */

.yt-consent {
  position: relative;
  width: min(100cqw, 100cqh * 16 / 9);
  aspect-ratio: 16 / 9;
  background: #000;
}
.yt-consent img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: brightness(0.7);
}
.yt-consent__play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding: 0 0 0 6px;
  border: 1px solid rgba(237, 232, 223, 0.5);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.6);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast);
}
.yt-consent__play:hover { transform: scale(1.06); background: var(--accent); border-color: var(--accent); }
.yt-consent__play svg { width: 34px; height: 34px; fill: var(--fg); }
.yt-consent__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: var(--fg-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}
.yt-consent__note a { color: var(--fg); }

/* Video-Kachel im Raster: Symbol, Dauer, „Click here“ */
.vbadge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.25));
}
.vbadge__icon {
  position: absolute;
  top: 14px;
  left: 14px;
}
.vbadge__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.vbadge__icon .fill { fill: #fff; stroke: none; }
.vbadge__time {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.vbadge__cta {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  color: #fff;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  transition: transform var(--t-med) var(--ease-out);
}
.lightbox__thumb:hover .vbadge__cta,
.lightbox__thumb:focus-visible .vbadge__cta { transform: scale(1.06); }

/* Umschalten zwischen den Ansichten */
.lightbox[data-view="grid"] .lightbox__body,
.lightbox[data-view="grid"] .lightbox__count,
.lightbox[data-view="grid"] .lightbox__back,
.lightbox[data-view="single"] .lightbox__grid { display: none; }

.lightbox__head .lightbox__title { flex: 1; }

/* Projekte mit nur einem Bild: keine Pfeile, kein Zähler, kein Raster */
.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__count,
.lightbox.is-single .lightbox__back { display: none; }

.lightbox__desc {
  margin: 0;
  color: var(--fg-muted);
  text-align: center;
}
.lightbox__desc:empty { display: none; }
.lightbox__desc a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.lightbox__desc a:hover { color: var(--accent); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.icon-btn:hover { border-color: var(--fg-muted); background: rgba(237,232,223,0.06); }
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {
  .gallery--music { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .gallery,
  .gallery--music,
  .lightbox__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; margin: 0 auto; }
  .about__text { text-align: center; }
  .about__text p { margin: 0 auto; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery--music { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Pfeile über dem Bildrand, damit das Bild die volle Breite bekommt */
  .lightbox__body { grid-template-columns: minmax(0, 1fr); }
  .lightbox__stage { grid-column: 1; }
  .lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(17, 17, 17, 0.6);
  }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
  .site-header__logo img { height: 28px; }
  .site-header__nav { gap: 16px; font-size: 0.9375rem; }
  .contact__list li { flex-direction: column; align-items: center; gap: 4px; }
}

@media (max-width: 400px) {
  .site-header__logo { display: none; }
  .site-header { justify-content: center; }
}

/* ==========================================================
   WENIGER BEWEGUNG
   ========================================================== */

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