/* find your flow! Live: gemeinsame Design-Tokens, Schrift, Buttons und Einblendungen.
   Bewusst nur dunkles Theme: Die Marke lebt von der Festivalnacht (Navy, Gold, Bühnenlicht). */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/fonts/dm-sans-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

:root {
  color-scheme: dark;
  --bg-0: #05071c;
  --bg-1: #0a0d2a;
  --navy: #191e38;
  --royal: #22306d;
  --royal-2: #33479c;
  --gold-1: #f4c976;
  --gold-2: #f7e0a4;
  --gold-3: #ebb66d;
  --gold-4: #dea148;
  --gold: linear-gradient(100deg, #f4c976 0%, #f7e0a4 28%, #ebb66d 55%, #efd395 78%, #e3b574 100%);
  --pink: #e5007d;
  --pink-2: #ff4fa3;
  --ink: #161a35;
  --text: #f4efe7;
  --text-2: rgba(244, 239, 231, 0.74);
  --text-3: rgba(244, 239, 231, 0.52);
  --line: rgba(247, 224, 164, 0.16);
  --line-2: rgba(255, 255, 255, 0.08);
  --surface: rgba(14, 19, 54, 0.78);
  --surface-2: rgba(29, 37, 88, 0.55);
  --surface-solid: #11163d;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 18px 50px rgba(3, 5, 22, 0.55);
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--gold-2);
}

[hidden] {
  display: none !important;
}

.i {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.15em;
}

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

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0 1.4em;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn-gold,
.btn-cta {
  color: var(--ink);
  background: var(--gold);
  background-size: 160% 100%;
  box-shadow: 0 8px 26px rgba(235, 182, 109, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-gold:hover,
.btn-cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 34px rgba(235, 182, 109, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-sm {
  min-height: 38px;
  padding: 0 1.1em;
  font-size: 0.74rem;
}

/* ---------- Countdown-Chip ---------- */

.cd {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
}
.cd.cd-hot {
  color: var(--pink-2);
}
.cd.cd-hot .i {
  animation: cd-pulse 1s ease-in-out infinite;
}
@keyframes cd-pulse {
  50% {
    opacity: 0.35;
  }
}

/* ---------- Einblendungen (gemeinsam) ---------- */

.ov {
  --ov-accent: var(--gold-2);
  --ov-glow: rgba(235, 182, 109, 0.32);
  position: relative;
  color: var(--text);
}
.ov.theme-pink {
  --ov-accent: #ff8fc7;
  --ov-glow: rgba(229, 0, 125, 0.4);
}
.ov.theme-night {
  --ov-accent: #b9c8ff;
  --ov-glow: rgba(51, 71, 156, 0.5);
}

.ov-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 0.28em 0.75em;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
}
.theme-pink .ov-badge {
  color: #fff;
  background: linear-gradient(100deg, #e5007d, #ff4fa3);
}
.theme-night .ov-badge {
  color: var(--text);
  background: var(--royal-2);
}
.ov-title {
  display: block;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.ov-text {
  margin: 0;
  color: var(--text-2);
  line-height: 1.45;
}
.ov-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.ov-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ov-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: rgba(5, 7, 28, 0.6);
  cursor: pointer;
}
.ov-close:hover {
  background: rgba(5, 7, 28, 0.85);
}
.ov .btn-cta {
  align-self: stretch;
  margin-top: 0.25rem;
}
.theme-pink .btn-cta {
  color: #fff;
  background: linear-gradient(100deg, #e5007d 0%, #ff4fa3 60%, #e5007d 100%);
  box-shadow: 0 8px 26px rgba(229, 0, 125, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Karte (Slot "side" und "player") */
.ov-side,
.ov-player {
  overflow: hidden;
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(34, 48, 109, 0.92), rgba(12, 16, 48, 0.94));
  box-shadow: 0 0 0 1px var(--line), 0 16px 44px rgba(3, 5, 22, 0.55), 0 0 60px -10px var(--ov-glow);
}
.ov-side .ov-img {
  aspect-ratio: 21 / 9;
}
.ov-side .ov-body {
  padding: 16px 18px 18px;
}
.ov-side .ov-title {
  font-size: 1.15rem;
}
.ov-side .ov-text {
  font-size: 0.92rem;
}

.ov-player {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
}
.ov-player .ov-img {
  width: 108px;
}
.ov-player .ov-body {
  padding: 14px 40px 14px 16px;
  gap: 0.4rem;
}
.ov-player .ov-title {
  font-size: 1.02rem;
}
.ov-player .ov-text {
  font-size: 0.84rem;
}
.ov-player .btn-cta {
  min-height: 38px;
  font-size: 0.72rem;
  align-self: flex-start;
}
.ov-player:not(:has(.ov-img)) {
  grid-template-columns: 1fr;
}

/* Leiste (Slot "bar") */
.ov-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 6px 48px 6px 16px;
  background: linear-gradient(90deg, #2b1a4f, #6d0c4b 30%, #a3005c 50%, #6d0c4b 70%, #2b1a4f);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.ov-bar.theme-gold {
  color: var(--ink);
  background: var(--gold);
}
.ov-bar.theme-gold .ov-text,
.ov-bar.theme-gold .cd {
  color: var(--ink);
}
.ov-bar.theme-gold .ov-badge {
  color: var(--gold-2);
  background: var(--ink);
}
.ov-bar.theme-gold .btn-cta {
  color: var(--gold-2);
  background: var(--ink);
  box-shadow: none;
}
.ov-bar.theme-night {
  background: linear-gradient(90deg, #0e1440, #22306d 50%, #0e1440);
}
.ov-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  font-size: 0.92rem;
}
.ov-bar .ov-title {
  font-size: 0.95rem;
}
.ov-bar .ov-text {
  color: inherit;
  opacity: 0.9;
}
.ov-bar .btn-cta {
  align-self: center;
  min-height: 32px;
  margin: 0;
  padding: 0 1em;
  font-size: 0.7rem;
}
.ov-bar .ov-close {
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
}
.ov-bar .ov-badge {
  align-self: center;
}

@media (max-width: 600px) {
  .ov-bar {
    min-height: 40px;
    padding: 5px 40px 5px 12px;
  }
  .ov-bar-inner {
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 0.8rem;
    min-width: 0;
  }
  .ov-bar .ov-text,
  .ov-bar .ov-badge {
    display: none;
  }
  .ov-bar .ov-title {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .ov-bar .cd {
    white-space: nowrap;
    font-size: 0.74rem;
  }
  .ov-bar .btn-cta {
    min-height: 28px;
    padding: 0 0.8em;
    font-size: 0.64rem;
  }
}

/* Popup (Slot "modal") */
.ov-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 6, 24, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ov-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, #26357a, #0d1238 70%);
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(2, 3, 16, 0.7), 0 0 120px -20px var(--ov-glow);
}
.ov-modal .ov-img {
  aspect-ratio: 16 / 9;
}
.ov-modal .ov-body {
  padding: 24px 26px 22px;
  gap: 0.8rem;
}
.ov-modal .ov-title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
}
.ov-modal .ov-text {
  font-size: 1rem;
}
.ov-modal .cd {
  font-size: 1rem;
}
.ov-modal .btn-cta {
  min-height: 52px;
  font-size: 0.9rem;
}
.ov-later {
  align-self: center;
  margin-top: 0.1rem;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 0.86rem;
  cursor: pointer;
}
.ov-later:hover {
  color: var(--text-2);
}

@media (prefers-reduced-motion: no-preference) {
  .ov-in {
    animation: ov-in 0.6s var(--ease) both;
  }
  .ov-modal.ov-in {
    animation: ov-fade 0.4s ease both;
  }
  .ov-modal.ov-in .ov-modal-card {
    animation: ov-pop 0.6s var(--ease) both;
  }
  .btn-cta {
    animation: cta-shine 4s ease-in-out infinite;
  }
}
@keyframes ov-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}
@keyframes ov-fade {
  from {
    opacity: 0;
  }
}
@keyframes ov-pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
}
@keyframes cta-shine {
  0%,
  70%,
  100% {
    background-position: 0% 0;
  }
  85% {
    background-position: 100% 0;
  }
}
