/* The Archivo Black webfont is loaded from the HTML <head> via preconnect +
   <link rel="stylesheet">. A CSS @import here would chain two round trips
   (stylesheet -> font CSS -> font file) and block first paint, so it was
   removed. Impressum pages that only link this file still fall back
   gracefully to Arial Black. */

:root {
  --green: #b3ff14;
  --black: #050505;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--green);
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
}

a { color: var(--green); text-decoration: none; }

/* Standalone short pages (Impressum) still get the old centered-card look */
.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 0 40px;
  position: relative;
  z-index: 2;
}

.site-footer a {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #9a9a9a;
  opacity: 0.9;
  margin: 0 6px;
}

.site-footer a:hover {
  color: var(--green);
  opacity: 1;
}

.site-footer .sep {
  color: #333;
  font-size: 10px;
}

/* ---------- SCROLL-CROSSFADE BACKGROUND LAYERS ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  overflow: hidden;
  background: var(--black);
}

.bg-layer.active { opacity: 1; }

.bg-layer .bg-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-layer .bg-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Desktop-only background nudge (this selector never matches on mobile,
   since .bg-frame's parent carries .desktop-only and is display:none
   there — scoping it in a min-width query too, just to be explicit). */
@media (min-width: 701px) {
  .bg-layer .bg-frame img {
    object-position: center calc(50% + 2.7cm);
  }
}

.bg-layer .bg-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ---------- FIXED COVER OVERLAY (labels + logo cluster) ---------- */

.cover-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}

.cover-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cover-spacer {
  height: 100vh;
  height: 100dvh; /* dvh keeps the cover exactly one screen tall while
                     mobile browser chrome slides in and out */
}

/* Desktop cover cluster: v14-style stage — an invisible reference frame
   (same aspect ratio as the original flyer) holding the logo and the
   BIO/DJ/lang/booking labels at the exact same relative positions v14
   used, independent of the actual full-bleed background photo behind it. */
.desktop-content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.stage-inner {
  position: relative;
  /* Capped by viewport height too (not just width), so the box can never
     grow taller than the fixed cover area on short/wide screens — that
     overflow was pushing BOOKING (and the whole lower half of the cluster)
     out of view. */
  width: min(100%, 1400px, calc((100vh - 48px) * 2400 / 1695));
  aspect-ratio: 2400 / 1695;
  transform: translateY(-2.5cm);
}

.desktop-logo {
  position: absolute;
  top: 66.3%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74.5%;
  height: auto;
  display: block;
}

.label {
  font-size: clamp(14px, 2.6vw, 30px);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.label:hover { opacity: 0.7; }

/* EPK-exact: the logo PNG's two rule lines land at 54.696% and 77.904% of
   this frame's height (measured from the asset — lines at rows 9 and 339
   of 348, logo drawn at top 66.3%, width 74.5%). BIO and the language
   selector rest ON the upper line, DJ hangs just BELOW the lower line —
   the same em-offsets v14 had relative to the flyer's printed lines.
   Horizontally each label is flush with the end of its own rule line
   (measured per line: upper ends at 86.80%, lower at 86.90%, upper starts
   at 13.64%). */
.label-bio {
  position: absolute;
  top: 54.696%;
  right: 13.20%;
  transform: translateY(-1.275em);
}

.label-dj {
  position: absolute;
  top: 77.904%;
  right: 13.10%;
  transform: translateY(0.158em);
}

.label-lang {
  position: absolute;
  top: 54.696%;
  left: 13.64%;
  transform: translateY(-1.275em);
  cursor: pointer;
}

.booking-wrap {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
}

.lang-dropdown:hover .label-lang-current { opacity: 0.7; }

.lang-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

.label-lang-current::after {
  content: '▾';
  display: inline-block;
  margin-left: 5px;
  font-size: 0.75em;
  transform: translateY(-1px);
}

.lang-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  display: none;
  flex-direction: column;
  background: rgba(5,5,5,0.9);
  border: 1px solid var(--green);
  border-radius: 8px;
  overflow: hidden;
  min-width: 100%;
  z-index: 3;
}

/* .open is set by lang.js on tap/keyboard — hover alone never worked on
   phones, which made the cover's language switch unusable there. */
.lang-dropdown:hover .lang-dropdown-list,
.lang-dropdown.open .lang-dropdown-list { display: flex; }

.label-lang-current { cursor: pointer; }

.label-lang-current:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}

.lang-dropdown-list a,
.lang-dropdown-list span {
  display: block;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: clamp(12px, 1.6vw, 18px);
  letter-spacing: 0.02em;
  padding: 8px 16px;
  color: var(--green);
  white-space: nowrap;
}

.lang-dropdown-list span { opacity: 0.45; cursor: default; }

.lang-dropdown-list a:hover {
  background: var(--green);
  color: #050505;
}

.booking-btn {
  border: 2px solid var(--green);
  color: var(--green);
  font-size: clamp(12px, 1.8vw, 20px);
  letter-spacing: 0.12em;
  padding: clamp(8px, 1.4vw, 18px) clamp(20px, 4vw, 48px);
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.booking-btn:hover { background: var(--green); color: #050505; }

/* Mobile cover cluster (logo image + labels), same visual size, centered */
.mobile-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* One shared width for the whole mobile cluster: the logo and the BIO/DJ
   rows are exactly as wide as the container's content box, so they line up
   with each other and the block is centred by .mobile-content's flex
   centering — the same way the desktop cluster is built.
   (The old version sized the logo at 100vw and re-centred it with
   left:50%/margin-left:-50vw. That percentage resolves against the padded
   parent, not the viewport, so it landed 24px off-centre and overflowed
   further on one side than the other.) */
.mobile-row,
.mobile-logo {
  width: 100%;
  max-width: 480px;
}

.mobile-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 6px;
}

.mobile-row .label { position: static; font-size: 16px; }

.mobile-logo {
  height: auto;
  display: block;
  margin: 0 auto;
}

.mobile-content .booking-btn { margin-top: 22px; font-size: 13px; }

.mobile-row-lang { margin-top: 18px; position: relative; display: flex; justify-content: center; }
.mobile-row-lang .label-lang-current { position: static; font-size: 13px; opacity: 0.9; }
.mobile-row-lang .lang-dropdown-list { left: 50%; transform: translateX(-50%); min-width: 80px; text-align: center; }

/* ---------- CONTENT SECTIONS (Bio / DJ) — one responsive layout each ---------- */

.content-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 90px 24px 70px;
  display: flex;
  justify-content: center;
}

.content-panel {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.68) 100%);
  border-radius: 16px;
  padding: 36px 30px;
}

.section-dj .content-panel { max-width: 980px; }

.section-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pill-btn {
  border: 2px solid var(--green);
  color: var(--green);
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.pill-btn:hover { background: var(--green); color: #050505; }

.bio-copy p {
  margin: 0 0 1.3em 0;
  font-size: clamp(13px, 1.5vw, 17px);
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Socials: lifted out of the body copy into their own right-aligned block,
   set off by a rule and a darker panel — same idea as v14's cover card. */
.socials {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(179,255,20,0.28);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 10px;
}

.socials a {
  display: inline-block;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  color: var(--green);
  font-size: clamp(11px, 1.25vw, 15px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: clamp(8px, 1vw, 12px) clamp(16px, 2vw, 24px);
  background: rgba(0,0,0,0.45);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.socials a:hover {
  background: var(--green);
  color: #050505;
}

@media (max-width: 700px) {
  .socials {
    align-items: stretch;
    text-align: center;
  }

  .socials a {
    white-space: normal;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.4;
  }
}

/* References / DJ tabs */

.ref-page-title {
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.1em;
  color: var(--green);
  margin: 0 0 20px 0;
}

.ref-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 30px;
}

.ref-tab {
  border: 2px solid var(--green);
  background: rgba(0,0,0,0.4);
  color: var(--green);
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: clamp(10px, 1.3vw, 14px);
  letter-spacing: 0.05em;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ref-tab.active, .ref-tab:hover { background: var(--green); color: #050505; }

.ref-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 220px;
  column-gap: 32px;
}

.ref-list.active {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

@starting-style {
  .ref-list.active { opacity: 0; }
}

.ref-list li {
  font-size: clamp(11px, 1.4vw, 15px);
  letter-spacing: 0.01em;
  padding: 7px 0;
  border-bottom: 1px solid rgba(179,255,20,0.14);
  break-inside: avoid;
}

@media (max-width: 600px) {
  .ref-list { columns: 1; }
  .content-panel { padding: 26px 20px; }
}

/* ---------- IMPRESSUM PAGE ---------- */

.legal-page {
  max-width: 640px;
  width: 100%;
  padding: 60px 24px;
  line-height: 1.6;
}

.legal-page h1 {
  font-size: clamp(20px, 4vw, 28px);
  margin: 0 0 1.2em 0;
  text-transform: uppercase;
}

.legal-page p {
  font-size: clamp(12px, 2vw, 15px);
  text-transform: none;
  letter-spacing: 0.01em;
  margin: 0 0 1.2em 0;
}

.legal-page a.back {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.legal-page a.back:hover { opacity: 1; }

/* ---------- SCREEN-READER / SEO ONLY ----------
   Real heading text for crawlers and assistive tech, removed from the
   visual layout without display:none (which would hide it from both). */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- MOBILE / DESKTOP SWITCH ----------
   Order matters here. .desktop-only/.mobile-only and .desktop-content/
   .mobile-content have identical specificity (one class each), and media
   queries do NOT add specificity — so whichever rule comes last in source
   wins. The flex re-assertions must therefore come BEFORE the hiding
   rules, and the mobile query must explicitly hide .desktop-content.
   (Previously the flex rules sat at the very end of the file and silently
   beat every display:none, so both cover clusters rendered at all widths
   — the real cause of the "double logo / everything shifted" bug.) */

/* Wide screens: desktop cluster visible (as a flex column), mobile hidden */
.mobile-only,
.mobile-content { display: none; }
.desktop-only { display: block; }
.desktop-content { display: flex; }

/* Narrow screens: exactly the reverse */
@media (max-width: 700px) {
  .desktop-only,
  .desktop-content { display: none; }
  .mobile-only { display: block; }
  .mobile-content { display: flex; }

  /* Mobile: das Logo sitzt exakt auf der vertikalen Bildschirmmitte, der
     restliche Cluster haengt unveraendert daran.
     Grid mit den Zeilen 1fr | auto | 1fr: die beiden 1fr-Zeilen teilen den
     Restplatz exakt gleich auf, also liegt die Logo-Zeile (auto) immer
     genau mittig — unabhaengig davon, wie viel ueber oder unter dem Logo
     steht. Der Block ueber dem Logo wird nach unten gebuendelt, der Block
     darunter nach oben, damit alle bisherigen Abstaende erhalten bleiben. */
  .mobile-content {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    align-content: stretch;
  }

  .mobile-above,
  .mobile-below {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-above { align-self: end; }
  .mobile-below { align-self: start; }

  .content-section { padding: 60px 16px 60px; }
  .content-panel { border-radius: 12px; }
}
