/* ============================================================
   Max Bothe, v2
   Space / synthwave. Deep teal-to-gold, cosmic, saxophone brand.
   Mobile-first. Matches the YouTube / social visuals.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Base: deep space, warm horizon */
  --bg:        #070B12;
  --bg-soft:   #0C1119;
  --surface:   #121A28;
  --line:      rgba(150, 195, 235, 0.12);
  --text:      #F1ECE3;       /* warm white */
  --muted:     #9AA3B4;
  --muted-2:   #5E6779;

  /* Brand accents: cyan (the stylized E / monogram) + gold (the sun) */
  --cyan:      #4FC3E3;
  --cyan-dim:  rgba(79, 195, 227, 0.16);
  --gold:      #F4B23E;
  --gold-2:    #F59E2E;

  /* Typografie. System-Stack, kein Render-Block, kein externer Fetch.
     TODO(Max): optional self-hosted geometric display font in assets/fonts/. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Maße */
  --maxw: 1080px;
  --maxw-narrow: 640px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- A11y Helpers ---------- */
.visually-hidden {
  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: absolute; left: 50%; top: -100px;
  transform: translateX(-50%);
  background: var(--text); color: var(--bg);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  z-index: 1000; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section {
  position: relative;
  padding-block: clamp(4.5rem, 12vw, 9rem);
  border-top: 1px solid var(--line);
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ---------- Brand: stylized "X" (logo monogram) ---------- */
/* Inline SVG, em-based so it scales with the surrounding text. */
.brand-x {
  display: inline-block;
  width: 0.66em;
  height: 0.74em;
  margin: 0 0.015em;
  vertical-align: baseline;
}
.brand-x svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-x svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 19;
  stroke-linecap: round;
}

/* ---------- Brand: stylized "E" (three cyan bars) ---------- */
/* Em-based so it scales with whatever font-size it sits in. */
.brand-e {
  display: inline-block;
  width: 0.56em;
  height: 0.7em;
  margin-left: 0.1em;
  vertical-align: baseline;
  background-image:
    linear-gradient(var(--cyan), var(--cyan)),
    linear-gradient(var(--cyan), var(--cyan)),
    linear-gradient(var(--cyan), var(--cyan));
  background-size: 100% 0.14em;
  background-position: left top, left center, left bottom;
  background-repeat: no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;           /* Touch-Target */
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1A1206;
  box-shadow: 0 6px 24px -8px rgba(244, 178, 62, 0.5);
}
.btn--primary:hover {
  box-shadow: 0 8px 30px -6px rgba(244, 178, 62, 0.65);
  transform: translateY(-1px);
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem var(--pad) 4rem;
  overflow: hidden;
}

/* Cosmic background, performant per CSS, kein Bild-Request:
   gold sun glow bottom-right + teal nebula top-left + space base */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 55% at 84% 104%, rgba(245, 158, 46, 0.55), transparent 55%),
    radial-gradient(120% 90% at 88% 112%, rgba(244, 178, 62, 0.28), transparent 60%),
    radial-gradient(70% 65% at 10% 6%, rgba(40, 95, 130, 0.42), transparent 62%),
    linear-gradient(180deg, #05080E 0%, #070B12 55%, #0A0F18 100%);
}

/* The sun / planet disc, echoing the banner */
.hero__sun {
  position: absolute;
  right: -8vw;
  bottom: -14vh;
  width: min(70vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -2;
  background: radial-gradient(circle at 38% 36%, #FFE6A6 0%, #F6B23E 38%, #E07A1F 72%, #9c4a12 100%);
  filter: blur(0.5px);
  box-shadow: 0 0 120px 40px rgba(245, 165, 50, 0.35);
}
/* On narrow screens, push the sun lower so it clears the wordmark + subline */
@media (max-width: 560px) {
  .hero__sun { right: -22vw; bottom: -10vh; width: min(86vw, 360px); }
  .hero__eyebrow { letter-spacing: 0.14em; font-size: 0.6rem; }
}

/* Star field, layered dots, low opacity, upper area */
.hero__stars {
  position: absolute;
  inset: 0 0 30% 0;
  z-index: -2;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.4px 1.4px at 47% 12%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 63% 33%, rgba(200,230,255,0.7), transparent),
    radial-gradient(1.2px 1.2px at 8% 56%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 78% 8%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.3px 1.3px at 36% 64%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 90% 28%, rgba(200,230,255,0.6), transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
}

/* Synthwave perspective grid floor */
.hero__grid {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 320%;
  height: 46vh;
  z-index: -2;
  transform: translateX(-50%) perspective(34vh) rotateX(80deg);
  transform-origin: bottom center;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 calc(3.2rem - 1px), rgba(79,195,227,0.55) calc(3.2rem - 1px) 3.2rem),
    repeating-linear-gradient(0deg,  transparent 0 calc(3.2rem - 1px), rgba(244,178,62,0.40) calc(3.2rem - 1px) 3.2rem);
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 72%);
          mask-image: linear-gradient(to top, #000 5%, transparent 72%);
  opacity: 0.55;
  animation: gridFlow 7s linear infinite;
}
@keyframes gridFlow {
  to { background-position: 0 0, 0 3.2rem; }
}

.hero__content { position: relative; z-index: 1; max-width: 100%; }

.hero__eyebrow {
  font-size: clamp(0.62rem, 2.6vw, 0.8rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(5, 8, 14, 0.6);
}
.hero__word { display: inline-block; white-space: nowrap; }
.hero__name .brand-e { vertical-align: 0.02em; }

.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 32ch;
  margin-inline: auto;
}

.hero__scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: flex-start; justify-content: center;
}
.hero__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 11, 18, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__links { display: none; gap: 2rem; }
.nav__links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--text); }

@media (min-width: 720px) {
  .nav__links { display: flex; }
}

/* ============================================================
   2. RELEASE
   ============================================================ */
.release__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 2rem;
}
/* Responsiver Spotify-Wrapper, feste Embed-Hoehe von Spotify */
.embed {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 2rem;
}
.embed iframe { border-radius: var(--radius); }
.release__cta { display: flex; }

/* ============================================================
   LIVE SET, responsive 16:9 video
   ============================================================ */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Click-to-load facade */
.video__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.video__facade:hover .video__thumb,
.video__facade:focus-visible .video__thumb { opacity: 1; transform: scale(1.03); }
.video__play {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 51px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
  transition: transform var(--dur) var(--ease);
}
.video__play svg { width: 100%; height: 100%; display: block; }
.video__play-bg { fill: var(--gold); }
.video__facade:hover .video__play,
.video__facade:focus-visible .video__play { transform: scale(1.08); }

/* ============================================================
   3. LISTEN / PLATTFORMEN
   ============================================================ */
.platforms {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 560px) {
  .platforms { grid-template-columns: 1fr 1fr; }
}
.platform {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 56px;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 500;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.platform:hover {
  border-color: var(--cyan);
  background: var(--surface);
  transform: translateY(-2px);
}
.platform__icon {
  width: 24px; height: 24px;
  fill: var(--muted);
  flex-shrink: 0;
  transition: fill var(--dur) var(--ease);
}
.platform:hover .platform__icon { fill: var(--cyan); }

/* ============================================================
   4. ABOUT
   ============================================================ */
.about__text {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.7;
  color: #D7DAE2;
  margin-top: 1.5rem;
  max-width: 48ch;
}

/* ============================================================
   5. CONNECT
   ============================================================ */
.connect__lead {
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 2rem;
  max-width: 42ch;
}
.connect__mail {
  color: var(--cyan);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.connect__mail:hover { color: var(--text); text-decoration: underline; }

/* Socials */
.socials {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;       /* Touch-Target */
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.social svg {
  width: 20px; height: 20px;
  fill: var(--muted);
  transition: fill var(--dur) var(--ease);
}
.social:hover { border-color: var(--cyan); transform: translateY(-2px); }
.social:hover svg { fill: var(--cyan); }

/* ============================================================
   6. FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 560px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer__copy { color: var(--muted); font-size: 0.85rem; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a {
  color: var(--muted); font-size: 0.85rem;
  transition: color var(--dur) var(--ease);
}
.footer__legal a:hover { color: var(--text); }

/* ============================================================
   MOTION, scroll-reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__grid { animation: none; }
}

/* ============================================================
   Legal pages (Imprint / Privacy)
   ============================================================ */
.legal {
  padding-block: clamp(7rem, 14vw, 10rem) clamp(4rem, 10vw, 7rem);
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal p, .legal address {
  color: #C7CAD3;
  font-style: normal;
  margin-bottom: 1rem;
  max-width: 65ch;
}
.legal a { color: var(--cyan); }
.legal a:hover { text-decoration: underline; }
.legal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.legal .back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
}
.legal .back:hover { color: var(--text); }
.legal__lang { display: flex; gap: 0.75rem; font-size: 0.9rem; }
.legal__lang a { color: var(--muted-2); }
.legal__lang a:hover { color: var(--text); }
.legal__lang a[aria-current="true"] { color: var(--cyan); }
