/* =========================================================
   DJ IllusionX – www.djillusionx.com
   ========================================================= */

/* ---------- Fonts (lokal gehostet, keine Google-Requests) ---------- */
@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  src: url('../fonts/google-sans-flex-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #07070A;
  --bg-input: #0B0B10;
  --surface: rgba(17, 17, 23, .85);
  --fg: #EDEBF2;
  --fg-2: #C9C6D3;
  --fg-3: #B9B6C4;
  --muted: #A9A6B5;
  --muted-2: #8E8B9A;
  --line: rgba(237, 235, 242, .14);
  --line-2: rgba(237, 235, 242, .3);
  --accent: #C6FF3D;
  --on-accent: #07070A;

  --font-display: 'Google Sans Flex', 'Hanken Grotesk', Arial, sans-serif;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 24px);
  --radius: 20px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 72px) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--fg); }
a:hover { color: var(--accent); }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; color: var(--on-accent); }

/* ---------- Animated background canvas ---------- */
/* ---------- Publikum im Hintergrund ----------
   Weichgezeichnetes Partyfoto unten im Hero; die Ringe (Canvas) liegen darüber.
   Deckkraft, Beat-Puls und Ausblenden beim Scrollen setzt background.js. */
.crowd {
  position: fixed;
  left: -3%;
  right: -3%;
  bottom: -12px;
  z-index: 0;
  height: 58vh;
  background: url('../media/crowd.jpg') center bottom / cover no-repeat;
  background-image: image-set(url('../media/crowd.webp') type('image/webp'), url('../media/crowd.jpg') type('image/jpeg'));
  opacity: .4;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 28%, rgba(0, 0, 0, .55) 62%, transparent);
  mask-image: linear-gradient(to top, #000 28%, rgba(0, 0, 0, .55) 62%, transparent);
  transform: scale(1.04);
  transform-origin: center bottom;
  will-change: opacity, transform;
}
@media (max-width: 640px) {
  .crowd { height: 46vh; }
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

.x { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 17px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover {
  color: var(--on-accent);
  box-shadow: 0 0 0 6px rgba(198, 255, 61, .16), 0 0 40px rgba(198, 255, 61, .35);
}

.btn--ghost {
  border-color: rgba(237, 235, 242, .4);
  background: rgba(7, 7, 10, .45);
  color: var(--fg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--line { border-color: var(--line-2); background: transparent; color: var(--fg); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }

.btn--accent-line { margin-top: 32px; border-color: var(--accent); color: var(--accent); padding: 0 26px; }
.btn--accent-line:hover { background: var(--accent); color: var(--on-accent); }

.btn--dark { background: var(--bg); color: var(--fg); }
.btn--dark:hover { color: var(--accent); }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 500; }


/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  /* leicht durchsichtiger Balken, damit das Menü vor dem animierten Hintergrund gut lesbar ist */
  background: rgba(7, 7, 10, .14);
  border-bottom: 1px solid rgba(237, 235, 242, .16);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  /* Schrift bleibt auch über hellen Bildern lesbar */
  text-shadow: 0 1px 10px rgba(7, 7, 10, .85);
  transition: transform .35s var(--ease-out), background-color .35s, border-color .35s;
}
/* Mehrzeiliger Header: beim Runterscrollen weg, beim Hochscrollen wieder da (main.js) */
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }
.site-header.is-scrolled {
  background: rgba(7, 7, 10, .32);
  border-bottom-color: rgba(237, 235, 242, .18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  transition: padding .35s var(--ease-out);
}
.is-scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }
/* Passt das Menü nicht neben den Namen: Name zentriert oben, Menü darunter (Klasse setzt main.js) */
.header-inner.is-stacked { justify-content: center; }
.header-inner.is-stacked .brand { flex-basis: 100%; justify-content: center; }

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  text-decoration: none;
}
.brand:hover { color: var(--fg); }
.brand-word { font: 800 22px/1 var(--font-display); letter-spacing: .03em; white-space: nowrap; }
@media (max-width: 640px) { .brand-word { font-size: 20px; } }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  flex-wrap: wrap;
  justify-content: center;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav > a:not(.btn) {
  position: relative;
  padding: 12px 0;
  text-decoration: none;
}
.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.site-nav > a:not(.btn):hover::after,
.site-nav > a.is-active::after { transform: scaleX(1); }
.site-nav > a.is-active { color: var(--accent); }

/* Sprach-Dropdown rechts im Menü */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(7, 7, 10, .3);
  color: var(--fg);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.lang-toggle svg { transition: transform .25s var(--ease-out); }
.lang-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 12, 17, .97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  text-shadow: none;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--fg-2);
  font: 500 13px/1 var(--font-mono);
  letter-spacing: .08em;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}
.lang-menu b { font-weight: 500; color: var(--muted); letter-spacing: .12em; }
.lang-menu button:hover,
.lang-menu button:focus-visible { background: rgba(198, 255, 61, .1); color: var(--fg); }
.lang-menu button[aria-pressed="true"],
.lang-menu button[aria-pressed="true"] b { color: var(--accent); }

/* Gestapelt (Tablet/Handy): Menü immer vollständig sichtbar, zentriert, ggf. mehrzeilig */
.is-stacked .site-nav { gap: 0 22px; }
@media (max-width: 640px) {
  .header-inner { padding-top: 14px; padding-bottom: 8px; row-gap: 4px; }
  .is-scrolled .header-inner { padding-top: 10px; padding-bottom: 6px; }
  .is-stacked .site-nav { gap: 0 16px; }
  .site-nav { font-size: 12px; letter-spacing: .06em; }
  .site-nav > a:not(.btn) { padding: 11px 0; }
  .site-nav > a:not(.btn)::after { bottom: 6px; }
  .lang-toggle { min-height: 32px; padding: 0 10px 0 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h, 96px) + 24px) var(--gutter) 110px;
  text-align: center;
}
.hero-inner { position: relative; max-width: 100%; }

.hero-title {
  margin: 0;
  font: 800 clamp(36px, 11vw, 190px)/.88 var(--font-display);
  letter-spacing: -.02em;
  color: var(--fg);
  text-shadow: 0 0 60px rgba(7, 7, 10, .9);
}
.hero-title .x { text-shadow: none; }
@media (max-width: 640px) {
  .hero-title { font-size: 13vw; }
}
.hero-claim {
  margin: 28px 0 0;
  font: 500 clamp(20px, 2.4vw, 36px)/1.2 var(--font-display);
  text-shadow: 0 0 24px rgba(7, 7, 10, .95);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}
.hero-actions .btn { min-width: 220px; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: var(--muted-2);
  font: 12px/1 var(--font-mono);
  letter-spacing: .3em;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  transform-origin: top;
  animation: scroll-line 1.875s var(--ease-out) infinite;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter) 0;
}
.section--tight { padding-top: clamp(80px, 9vw, 120px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 36px;
}

/* Abschnittstitel „01 — Live“ usw. */
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font: 500 clamp(17px, 1.6vw, 23px)/1.4 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow--sm { margin-bottom: 8px; font-size: 12px; letter-spacing: .2em; }

.h2 {
  margin: 0;
  font: 800 clamp(40px, 6vw, 80px)/1 var(--font-display);
  letter-spacing: -.01em;
}
.h2--about { font-size: clamp(34px, 6vw, 80px); }
.h2--spaced { margin-bottom: 48px; }

.meta { margin: 0; color: var(--muted); font: 13px/1.4 var(--font-mono); }

.lead { margin: 28px 0 0; max-width: 560px; color: var(--fg-2); }
.lead + .lead { margin-top: 16px; }
.lead--narrow { margin-top: 24px; max-width: 440px; }

/* ---------- Media placeholders / images ---------- */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #111117 0 14px, #0C0C11 14px 28px);
}
.media > img,
.media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-label {
  position: absolute;
  left: 24px;
  top: 20px;
  right: 24px;
  margin: 0;
  color: var(--muted);
  font: 13px/1.4 var(--font-mono);
}
.media-label--bottom { top: auto; bottom: 20px; }
.media:has(> img) .media-label,
.media:has(> video) .media-label { display: none; }

.media--video {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}
.play-big {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(72px, 9vw, 104px);
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: rgba(7, 7, 10, .6);
  color: var(--accent);
  cursor: pointer;
  transition: transform .3s var(--ease-out), background-color .3s, color .3s;
}
.play-big::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: ping 1.875s cubic-bezier(.2, .6, .3, 1) infinite;
}
.play-big:hover { transform: scale(1.06); background: var(--accent); color: var(--on-accent); }
.media--video > video { background: #000; cursor: pointer; }

/* Abdunkeln, wenn pausiert oder fertig (nicht beim Warten auf Autoplay) */
.media--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 7, 10, .3), rgba(7, 7, 10, .72));
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.media--video:not(.is-playing):not(.is-autoplay)::after { opacity: 1; }

.media--video.is-playing .play-big,
.media--video.is-autoplay:not(.is-ended) .play-big { opacity: 0; transform: scale(.9); pointer-events: none; }
.play-big { transition: transform .3s var(--ease-out), background-color .3s, color .3s, opacity .3s; }
.play-big .i-replay,
.is-ended .play-big .i-play { display: none; }
.is-ended .play-big .i-replay { display: block; }

.reel-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.reel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(237, 235, 242, .3);
  border-radius: 999px;
  background: rgba(7, 7, 10, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s, color .25s, background-color .25s;
}
.reel-btn:hover { border-color: var(--accent); color: var(--accent); }
.reel-toggle { width: 40px; padding: 0; }
/* Pause-Knopf nur während der Wiedergabe – sonst übernimmt der grosse Play-/Replay-Button */
.reel-toggle .i-play,
.media--video:not(.is-playing) .reel-toggle { display: none; }
.reel-sound .i-sound,
.reel-sound[aria-pressed="true"] .i-muted { display: none; }
.reel-sound[aria-pressed="true"] .i-sound { display: block; }
.reel-sound[aria-pressed="false"] { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .reel-controls { right: 10px; bottom: 10px; gap: 6px; }
  .reel-btn { height: 36px; padding: 0 12px; font-size: 11px; }
  .reel-toggle { width: 36px; padding: 0; }
}

/* Weinfest (zweiter Tab unter Live): Bild mit Play-Button, Klick öffnet das Video auf Instagram */
.media--video[hidden] { display: none; }
.insta-link {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: inherit;
  border-radius: inherit;
}
.insta-link > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.insta-link:hover .play-big,
.insta-link:focus-visible .play-big { transform: scale(1.06); background: var(--accent); color: var(--on-accent); }
.insta-link:hover .insta-badge { border-color: var(--accent); color: var(--accent); }
.insta-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.insta-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}
@media (max-width: 640px) {
  .insta-badge { right: 10px; bottom: 10px; }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: clamp(240px, 32vw, 420px) minmax(0, 1fr);
  grid-template-areas:
    "head  head"
    "photo text";
  column-gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-head { grid-area: head; margin-bottom: 48px; }
.about-text { grid-area: text; }
.about-text .lead { max-width: 640px; }
.about-text .lead:first-child { margin-top: 0; }
.portrait { grid-area: photo; aspect-ratio: 4 / 5; }

/* Handy & schmale Tablets: Titel → Foto → Text untereinander */
@media (max-width: 719px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "photo" "text";
  }
  .about-head { margin-bottom: 32px; }
  .portrait { aspect-ratio: 1 / 1; max-width: 440px; }
  .portrait img { object-position: 44% 30%; }
  .about-text { margin-top: 32px; }
}
.portrait picture { position: absolute; inset: 0; }
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 50%;
  transform: scale(1.001);
  transition: transform 1.2s var(--ease-out), filter .6s;
}
.portrait:hover img { transform: scale(1.04); }
/* dezenter Akzent-Glow über dem Foto */
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(7, 7, 10, .45), rgba(7, 7, 10, 0) 40%);
  box-shadow: inset 0 0 0 1px rgba(198, 255, 61, .12);
  pointer-events: none;
}


/* ---------- Mixes ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(7, 7, 10, .4);
  color: var(--fg);
  font: 500 15px/1 var(--font-body);
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.tab:hover { border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* Nummern-Tabs wie Seitenzahlen (Live on Stage): runde Knöpfe gleicher Breite */
.tabs--pages .tab { width: 44px; padding: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.mix-list { display: flex; flex-direction: column; gap: 12px; }
.mix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color .3s, box-shadow .3s;
}
.mix.is-current { border-color: rgba(198, 255, 61, .45); }
.mix.is-playing { border-color: var(--accent); box-shadow: 0 0 40px rgba(198, 255, 61, .08); }

.mix-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease-out);
}
.mix-play:hover { transform: scale(1.06); }
.is-playing .mix-play { background: var(--accent); color: var(--on-accent); }
.mix-play .i-pause, .is-playing .mix-play .i-play { display: none; }
.is-playing .mix-play .i-pause { display: block; }

.mix-info { flex: 1 1 200px; min-width: 180px; }
.mix-title { margin: 0; font: 700 20px/1.3 var(--font-display); }
.mix-meta { margin: 2px 0 0; color: var(--muted); font: 12px/1.4 var(--font-mono); letter-spacing: .06em; }
.is-playing .mix-meta { color: var(--accent); }

.wave {
  flex: 3 1 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* Balken füllen immer die ganze Breite */
  gap: 2px;
  height: 44px;
  overflow: hidden;
  cursor: pointer;
  touch-action: pan-y;              /* horizontal ziehen = spulen, vertikal = scrollen */
  user-select: none;
}
.wave span {
  flex: 1 1 0;
  min-width: 2px;
  max-width: 5px;
  border-radius: 2px;
  background: rgba(237, 235, 242, .28);
  transform-origin: center;
  transition: background-color .15s;
}
.wave span.on { background: var(--accent); }
.wave span.hover:not(.on) { background: rgba(198, 255, 61, .4); }
/* gespielte Balken pumpen mit dem Beat (--kick setzt der Tunnel-Loop) */
.is-playing .wave span.on { transform: scaleY(calc(.68 + var(--kick, .4) * .32)); }

/* Vortex-Tunnel hinter dem laufenden Mix */
.mix { position: relative; overflow: hidden; isolation: isolate; }
.mix > * { position: relative; z-index: 1; }
.mix > .mix-tunnel {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .25) 26%, #000 46%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .25) 26%, #000 46%);
}
.mix.is-playing > .mix-tunnel { opacity: 1; }
.mix.is-current:not(.is-playing) > .mix-tunnel { opacity: .35; }
@media (max-width: 640px) {
  .mix > .mix-tunnel {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .2) 0, #000 55%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .2) 0, #000 55%);
  }
}

.mix-time { margin: 0; min-width: 5ch; color: var(--muted); font: 13px/1 var(--font-mono); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.is-current .mix-time { color: var(--fg-2); }

@media (max-width: 640px) {
  .mix { gap: 14px 16px; padding: 16px; }
  .mix-info { flex: 1 1 0; min-width: 0; }
  .mix-title { font-size: 17px; }
  .mix-time { order: 2; font-size: 12px; }
  .wave { flex-basis: 100%; order: 3; height: 36px; }
}

/* ---------- Events / Gigs ---------- */
.list-title {
  margin: 0 0 12px;
  color: var(--muted);
  font: 500 13px/1.4 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* Alle Events teilen ein Spaltenraster (Subgrid): Datum | Titel | Details | Tickets
   → Datum, Titel und „Details +“ stehen über alle Zeilen exakt untereinander */
.gig-list {
  display: grid;
  grid-template-columns: clamp(130px, 14vw, 190px) minmax(0, 1fr) auto auto;
  column-gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.gig {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  row-gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
/* Hover-Fläche ragt seitlich etwas über, ohne die Spalten zu verschieben */
.gig::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  border-radius: 12px;
  background: rgba(17, 17, 23, .6);
  opacity: 0;
  transition: opacity .3s;
}
.gig:hover::before { opacity: 1; }
.gig-date { margin: 0; color: var(--accent); font: 700 clamp(24px, 2.6vw, 36px)/1 var(--font-display); white-space: nowrap; }
/* DATUM: LIVE → pulsierender Punkt vor „LIVE“ */
.gig-date--live { display: inline-flex; align-items: center; gap: .32em; }
.gig-date--live::before {
  content: "";
  width: .32em;
  height: .32em;
  border-radius: 50%;
  background: currentColor;
  animation: live-dot 1.6s ease-in-out infinite;
}
@keyframes live-dot { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .gig-date--live::before { animation: none; } }
.gig-where {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: left;
}
.gig-open { cursor: pointer; }
.gig-loc { margin: 0; font: 700 clamp(19px, 1.8vw, 26px)/1.15 var(--font-display); transition: color .25s; }
.gig-teaser {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gig-open:hover .gig-loc { color: var(--accent); }
.gig-actions {
  grid-column: 3 / 5;
  display: grid;
  grid-template-columns: subgrid;
  column-gap: 10px;
  align-items: center;
}
.gig-actions > .gig-details-btn { grid-column: 1; }
.gig-actions > .gig-ticket { grid-column: 2; justify-self: start; }
.gig-free {
  border-color: var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: .12em;
  cursor: default;
}
.gig-free:hover { color: var(--accent); }
/* Handy: Datum | Titel; Buttons darunter, bündig unter dem Titel */
@media (max-width: 720px) {
  .gig-list { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; }
  .gig { row-gap: 14px; padding: 22px 0; }
  .gig::before { inset: 0 -10px; }
  .gig-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }
  .gig-teaser { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
/* ältere Browser ohne Subgrid: feste Button-Spalte, „Details +“ trotzdem bündig */
@supports not (grid-template-columns: subgrid) {
  .gig { grid-template-columns: clamp(130px, 14vw, 190px) minmax(0, 1fr) 250px; column-gap: clamp(20px, 3vw, 40px); }
  .gig-actions { grid-column: 3; display: flex; gap: 10px; }
  @media (max-width: 720px) {
    .gig { grid-template-columns: 130px minmax(0, 1fr); column-gap: 20px; }
    .gig-actions { grid-column: 2; }
  }
}
.gig-empty { grid-column: 1 / -1; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.gig-empty a { color: var(--accent); }

/* Flyer im Popup vollständig zeigen, dahinter dieselbe Grafik weichgezeichnet */
.gig-dlg-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0C0C11;
}
.gig-dlg-media::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: var(--hl-img) center / cover no-repeat;
  filter: blur(28px) brightness(.55) saturate(1.2);
}
.gig-dlg-media img {
  position: relative;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, .5));
}

/* Gig-Popup */
.gig-dialog {
  width: min(680px, 94vw);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  position: fixed;
  border: 0;
  background: transparent;
  color: var(--fg);
}
.gig-dialog::backdrop {
  background: rgba(7, 7, 10, .85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.gig-dlg-scroll {
  /* dvh = tatsächlich sichtbare Höhe (ohne Adressleiste auf dem Handy) */
  max-height: min(84vh, 900px);
  max-height: min(calc(100dvh - 32px), 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0C0C11;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 255, 61, .45) transparent;
}
.gig-dlg-media { aspect-ratio: auto; max-height: 52vh; max-height: 52dvh; padding: 28px; }
.gig-dlg-media[hidden] { display: none; }
.gig-dlg-media img { max-height: calc(52vh - 56px); max-height: calc(52dvh - 56px); }
.gig-dlg-body { padding: 26px 28px 30px; }
.gig-dlg-title { margin: 0; font: 800 clamp(26px, 4vw, 36px)/1.05 var(--font-display); }
.gig-dlg-text { margin: 18px 0 0; color: var(--fg-2); white-space: pre-line; overflow-wrap: anywhere; }
.gig-dlg-text a { color: var(--accent); }
.gig-dlg-cta:not(:empty) { margin-top: 24px; }
/* Schliessen-Button im Fenster oben rechts – bleibt beim Scrollen und auf jedem Handy sichtbar */
.gig-dialog .gig-dlg-close {
  top: 12px;
  right: 14px;
  z-index: 3;
  background: rgba(7, 7, 10, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
}
.legal-body > .eyebrow:first-child { padding-right: 56px; }
body:has(.gig-dialog[open]) { overflow: hidden; }

/* Impressum */
.legal-body { padding: 30px 32px 34px; }
.legal-tagline { margin: 8px 0 0; color: var(--muted); font: 500 13px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.legal-body h4 {
  margin: 28px 0 8px;
  color: var(--accent);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.legal-body p:not(.eyebrow):not(.legal-tagline) { margin: 0; color: var(--fg-2); font-size: 16px; line-height: 1.65; }
.legal-body a { color: var(--accent); }
.legal-body .legal-copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .legal-body { padding: 24px 22px 28px; } }


/* ---------- YouTube-Playlists ---------- */
.h3 { margin: 0; font: 800 clamp(28px, 3.4vw, 44px)/1.05 var(--font-display); letter-spacing: -.01em; }
.yt { margin-top: clamp(72px, 9vw, 112px); }
.yt-head { margin-bottom: 28px; }
/* Eine Reihe, seitlich scrollbar (Wischen, Trackpad, Pfeile); Ränder blenden aus, solange es weitergeht */
.yt-grid {
  --fade-l: 48px;
  --fade-r: 64px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 27vw, 340px);
  gap: 16px;
  padding-bottom: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 255, 61, .45) transparent;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.yt-grid.at-start { --fade-l: 0px; }
.yt-grid.at-end { --fade-r: 0px; }
.yt-grid::-webkit-scrollbar { height: 6px; }
.yt-grid::-webkit-scrollbar-thumb { background: rgba(198, 255, 61, .45); border-radius: 3px; }
.yt-grid::-webkit-scrollbar-track { background: transparent; }
.yt-grid--shorts { grid-auto-columns: clamp(150px, 15vw, 200px); }
.yt-grid > .yt-card { scroll-snap-align: start; }
/* Handy: bis an den Bildschirmrand wischen, nächste Karte schaut an */
@media (max-width: 640px) {
  .yt-grid {
    grid-auto-columns: 78%;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .yt-grid--shorts { grid-auto-columns: 44%; }
}
.yt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.yt-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111117;
}
.yt-grid--shorts .yt-thumb { aspect-ratio: 9 / 16; }
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out), filter .4s;
}
.yt-card:hover .yt-thumb img,
.yt-card:focus-visible .yt-thumb img { transform: scale(1.05); filter: brightness(.7); }
.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding-left: 3px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: rgba(7, 7, 10, .6);
  color: var(--accent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transform: translate(-50%, -50%) scale(.9);
  transition: transform .3s var(--ease-out), background-color .3s, color .3s;
}
.yt-card:hover .yt-play,
.yt-card:focus-visible .yt-play { transform: translate(-50%, -50%) scale(1); background: var(--accent); color: var(--on-accent); }
.yt-len {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(7, 7, 10, .82);
  color: var(--fg);
  font: 500 12px/1 var(--font-mono);
}
.yt-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fg-2);
  font: 600 15px/1.35 var(--font-body);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .25s;
}
.yt-card:hover .yt-title { color: var(--fg); }
.yt-grid--shorts .yt-title { font-size: 14px; }
.yt-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.yt-nav { display: flex; gap: 8px; }
.yt-nav[hidden] { display: none; }
.yt-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(7, 7, 10, .4);
  color: var(--fg);
  cursor: pointer;
  transition: border-color .25s, color .25s, opacity .25s;
}
.yt-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.yt-arrow:disabled { opacity: .3; cursor: default; }
.yt-note { margin: 14px 0 0; color: var(--muted-2); font: 12px/1.5 var(--font-mono); }

/* Player-Dialog */
.yt-dialog {
  width: min(1100px, 94vw);
  /* im Querformat so schmal, dass Video + Schliessen-Button in die Höhe passen */
  width: min(1100px, 94vw, calc((100dvh - 140px) * 16 / 9));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--fg);
}
.yt-dialog.is-short { width: min(calc(min(84vh, 860px) * 9 / 16), 92vw); }
.yt-dialog::backdrop {
  background: rgba(7, 7, 10, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.yt-player {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.yt-dialog.is-short .yt-player { aspect-ratio: 9 / 16; }
.yt-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt-close {
  position: absolute;
  right: 0;
  top: -54px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(7, 7, 10, .7);
  color: var(--fg);
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.yt-close:hover { border-color: var(--accent); color: var(--accent); }
.yt-open {
  display: inline-block;
  float: right;
  margin-top: 12px;
  color: var(--muted);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.yt-open:hover { color: var(--accent); }
body:has(.yt-dialog[open]) { overflow: hidden; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
}
.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(237, 235, 242, .16);
  border-radius: var(--radius);
  background: var(--surface);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.field--full { grid-column: 1 / -1; }
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(237, 235, 242, .2);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--fg);
  font: 16px/1.4 var(--font-body);
  letter-spacing: normal;
  text-transform: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6E6B7A; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, .18);
}
.field input[aria-invalid="true"] { border-color: #FF6B6B; }
.form .btn { min-height: 54px; }
.form-status { margin: 0; min-height: 1.4em; color: var(--fg-2); font-size: 15px; }
.form-status.is-error { color: #FF8A80; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 120px) var(--gutter) 48px;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.social, .legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bar a { text-decoration: none; }
.legal, .legal a { color: var(--muted); }
.legal a:hover { color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes flicker { 0%, 48%, 52%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes scroll-line { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.flicker { animation: flicker 4s steps(1) infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flicker, .scroll-hint::after, .play-big::before { animation: none !important; }
  .is-playing .wave span.on { transform: none; }
  .js .reveal { transform: none; transition: opacity .4s; }
}
