/* BaaboMusic · öffentliche Seiten
 * Rein lokale, systemschriftbasierte Gestaltung ohne Laufzeit-JavaScript.
 */

:root {
  color-scheme: light dark;
  --public-canvas: #f7f7f8;
  --public-surface: #ffffff;
  --public-surface-soft: #efeff2;
  --public-text: #17171a;
  --public-text-secondary: #5f6068;
  --public-text-muted: #70717a;
  --public-line: rgba(23, 23, 26, .12);
  --public-line-strong: rgba(23, 23, 26, .2);
  --public-accent: #6750e8;
  --public-accent-hover: #5942d5;
  --public-on-accent: #ffffff;
  --public-success: #16823b;
  --public-danger: #b4232e;
  --public-danger-bg: #fff0f1;
  --public-header: rgba(247, 247, 248, .82);
  --public-shadow: 0 24px 80px rgba(25, 23, 38, .12), 0 2px 8px rgba(25, 23, 38, .06);
  --public-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --public-width: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --public-canvas: #0b0b0d;
    --public-surface: #18181c;
    --public-surface-soft: #222228;
    --public-text: #f5f5f7;
    --public-text-secondary: #b3b3bc;
    --public-text-muted: #96969f;
    --public-line: rgba(245, 245, 247, .13);
    --public-line-strong: rgba(245, 245, 247, .22);
    --public-accent: #9587ff;
    --public-accent-hover: #aa9fff;
    --public-on-accent: #121018;
    --public-success: #4bc477;
    --public-danger: #ff8d94;
    --public-danger-bg: #32181c;
    --public-header: rgba(11, 11, 13, .84);
    --public-shadow: 0 28px 90px rgba(0, 0, 0, .44), 0 2px 10px rgba(0, 0, 0, .32);
  }
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--public-canvas);
  color: var(--public-text);
  font-family: var(--public-font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -.008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--public-text);
  color: var(--public-surface);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.public-container {
  width: min(calc(100% - 48px), var(--public-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--public-line);
  background: var(--public-header);
  -webkit-backdrop-filter: saturate(150%) blur(22px);
  backdrop-filter: saturate(150%) blur(22px);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--public-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}

.wordmark img { border-radius: 9px; }

.header-nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease,
              transform 160ms ease;
}

.button-compact {
  min-height: 44px;
  padding-inline: 17px;
  font-size: 14px;
}

.button-primary {
  background: var(--public-accent);
  color: var(--public-on-accent);
}

.landing-page {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 78% 24%, rgba(103, 80, 232, .11), transparent 34rem),
    var(--public-canvas);
}

.landing-page main {
  display: grid;
  min-height: 0;
}

.hero {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding-block: clamp(28px, 5vh, 54px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--public-accent);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(46px, 5.15vw, 72px);
  font-weight: 730;
  line-height: .98;
  letter-spacing: -.058em;
}

.hero-lede {
  max-width: 570px;
  margin-top: 21px;
  color: var(--public-text-secondary);
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.45;
  letter-spacing: -.018em;
}

.hero-points {
  display: grid;
  max-width: 570px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--public-text-secondary);
  font-size: 13px;
  font-weight: 610;
}

.hero-points li > span {
  position: relative;
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--public-accent) 13%, transparent);
}

.hero-points li > span::before {
  position: absolute;
  top: 5px;
  left: 6px;
  width: 6px;
  height: 3px;
  border-bottom: 1.5px solid var(--public-accent);
  border-left: 1.5px solid var(--public-accent);
  content: "";
  transform: rotate(-45deg);
}

.hero-actions { margin-top: 25px; }

.service-state {
  display: flex;
  min-height: 32px;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: var(--public-text-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--public-text-muted);
}

.status-dot.is-ready { background: var(--public-success); }

.service-separator {
  width: 3px;
  height: 3px;
  margin-inline: 2px;
  border-radius: 50%;
  background: var(--public-line-strong);
}

.product-stage {
  position: relative;
  width: min(100%, 596px);
  justify-self: end;
  isolation: isolate;
  border: 1px solid var(--public-line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--public-surface) 96%, var(--public-accent)),
                    var(--public-surface));
  box-shadow: var(--public-shadow);
}

.product-stage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 35%, rgba(125, 100, 255, .1), transparent 40%);
  content: "";
  pointer-events: none;
}

.stage-topline {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 21px;
  border-bottom: 1px solid var(--public-line);
  border-radius: 28px 28px 0 0;
  background: color-mix(in srgb, var(--public-surface) 72%, transparent);
}

.stage-preview {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--public-text-secondary);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .025em;
}

.stage-window-dots {
  display: inline-flex;
  gap: 5px;
}

.stage-window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6d66;
}

.stage-window-dots i:nth-child(2) { background: #eebf45; }
.stage-window-dots i:nth-child(3) { background: #43bc68; }

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--public-text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.live-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--public-success);
}

.stage-body { padding: 18px 22px 22px; }

.stage-channel {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stage-channel strong {
  display: block;
  margin-top: 1px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.018em;
}

.stage-kicker {
  display: block;
  color: var(--public-text-muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.stage-listeners {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--public-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--public-surface) 76%, transparent);
  color: var(--public-text-secondary);
  font-size: 11px;
  font-weight: 620;
}

.stage-now {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 17px 0 20px;
}

.stage-artwork {
  position: relative;
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 23px;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 203, 112, .9) 0 5%, transparent 24%),
    radial-gradient(circle at 28% 75%, rgba(55, 222, 198, .8), transparent 34%),
    linear-gradient(145deg, #7766f5 6%, #4930a6 48%, #1c164a 100%);
  box-shadow: 0 16px 42px rgba(54, 38, 143, .25), inset 0 1px rgba(255, 255, 255, .25);
  clip-path: inset(0 round 23px);
}

.stage-artwork::before,
.stage-artwork::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  content: "";
}

.stage-artwork::before { width: 110px; height: 110px; }
.stage-artwork::after { width: 72px; height: 72px; }

.stage-orbit {
  width: 28px;
  height: 28px;
  border: 7px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(15, 8, 50, .25);
}

.stage-equalizer {
  position: absolute;
  right: 14px;
  bottom: 13px;
  display: flex;
  height: 24px;
  align-items: end;
  gap: 3px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 8px;
  background: rgba(15, 10, 42, .42);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.stage-equalizer i {
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: #ffffff;
  transform-origin: bottom;
  animation: stage-pulse 900ms ease-in-out infinite alternate;
}

.stage-equalizer i:nth-child(2) { animation-delay: -620ms; }
.stage-equalizer i:nth-child(3) { animation-delay: -240ms; }
.stage-equalizer i:nth-child(4) { animation-delay: -760ms; }
.stage-equalizer i:nth-child(5) { animation-delay: -430ms; }

@keyframes stage-pulse {
  from { transform: scaleY(.28); }
  to { transform: scaleY(1); }
}

.stage-track { min-width: 0; }

.stage-track .stage-kicker {
  margin-bottom: 7px;
  color: var(--public-accent);
}

.stage-track strong {
  display: block;
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.stage-track > span:not(.stage-kicker) {
  display: block;
  margin-top: 7px;
  color: var(--public-text-secondary);
  font-size: 13px;
}

.stage-progress {
  height: 4px;
  margin-top: 20px;
  border-radius: 4px;
  background: var(--public-surface-soft);
}

.stage-progress span {
  display: block;
  width: 49%;
  height: 100%;
  border-radius: inherit;
  background: var(--public-accent);
}

.stage-times {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--public-text-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.stage-bottom {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--public-line);
}

.stage-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-pause,
.stage-skip {
  position: relative;
  display: block;
  flex: none;
}

.stage-pause {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--public-accent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--public-accent) 30%, transparent);
}

.stage-pause::before {
  position: absolute;
  inset: 14px 13px;
  background: linear-gradient(90deg,
    var(--public-on-accent) 0 4px, transparent 4px 10px,
    var(--public-on-accent) 10px 14px, transparent 14px);
  content: "";
}

.stage-skip {
  width: 34px;
  height: 34px;
  color: var(--public-text-secondary);
}

.stage-skip::before {
  position: absolute;
  top: 10px;
  left: 11px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
  content: "";
}

.stage-skip::after {
  position: absolute;
  top: 10px;
  right: 8px;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.stage-skip-back { transform: scaleX(-1); }

.stage-next {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
  padding: 10px 13px;
  border: 1px solid var(--public-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--public-surface-soft) 72%, transparent);
}

.stage-next > span {
  grid-column: 1 / -1;
  color: var(--public-text-muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.stage-next strong {
  min-width: 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.stage-next small {
  color: var(--public-text-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

/* Anmeldung --------------------------------------------------------------- */

.auth-page {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.auth-header {
  width: min(calc(100% - 48px), var(--public-width));
  min-height: 76px;
  margin-inline: auto;
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
}

.auth-main {
  display: grid;
  width: min(calc(100% - 48px), 980px);
  flex: 1;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(56px, 10vw, 120px);
  margin-inline: auto;
  padding-block: 56px 88px;
}

.auth-context .eyebrow { margin-bottom: 16px; }

.auth-context h1 {
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -.052em;
}

.auth-context > p:last-child {
  max-width: 540px;
  margin-top: 24px;
  color: var(--public-text-secondary);
  font-size: 18px;
}

.auth-panel {
  padding: 32px;
  border: 1px solid var(--public-line);
  border-radius: 24px;
  background: var(--public-surface);
  box-shadow: 0 18px 60px rgba(25, 23, 38, .09);
}

.auth-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 15px;
}

.auth-panel h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.auth-lede {
  margin-top: 10px;
  color: var(--public-text-secondary);
  font-size: 15px;
}

.auth-notice {
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--public-danger) 32%, transparent);
  border-radius: 12px;
  background: var(--public-danger-bg);
  color: var(--public-danger);
  font-size: 14px;
  font-weight: 560;
}

.auth-button { width: 100%; margin-top: 24px; }

.auth-facts {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--public-line);
}

.auth-facts li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding-block: 13px;
  border-bottom: 1px solid var(--public-line);
  color: var(--public-text-secondary);
  font-size: 13px;
}

.auth-facts li::before {
  content: "✓";
  color: var(--public-success);
  font-weight: 800;
}

.auth-fineprint {
  margin-top: 18px;
  color: var(--public-text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.auth-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--public-text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) {
  .auth-back:hover { color: var(--public-text); }
  .button-primary:hover { background: var(--public-accent-hover); }
  .button:hover { transform: translateY(-1px); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    align-content: center;
    gap: 20px;
    padding-block: 20px;
  }

  .product-stage {
    width: min(100%, 680px);
    justify-self: start;
    border-radius: 22px;
  }

  .stage-topline { min-height: 44px; padding-inline: 14px; border-radius: 22px 22px 0 0; }
  .stage-body { padding: 14px; }
  .stage-channel, .stage-bottom { display: none; }
  .stage-now { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 0; }
  .stage-artwork { width: 110px; border-radius: 18px; clip-path: inset(0 round 18px); }
  .stage-artwork::before { width: 82px; height: 82px; }
  .stage-artwork::after { width: 54px; height: 54px; }
  .stage-orbit { width: 22px; height: 22px; border-width: 6px; }
  .stage-equalizer { right: 8px; bottom: 8px; height: 20px; gap: 2px; padding: 4px 6px; }
  .stage-equalizer i { width: 2px; height: 10px; }

  .auth-main {
    max-width: 580px;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-content: center;
  }
}

@media (max-width: 600px) {
  .public-container,
  .auth-header,
  .auth-main { width: min(calc(100% - 32px), var(--public-width)); }

  .header-inner { min-height: 62px; }
  .wordmark { font-size: 15px; }
  .wordmark img { width: 30px; height: 30px; }

  .hero { gap: 20px; padding-block: 24px; }
  .eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero-lede { margin-top: 14px; font-size: 16px; line-height: 1.35; }
  .hero-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin-top: 14px; }
  .hero-points li { gap: 6px; font-size: 12px; }
  .hero-points li > span { width: 17px; height: 17px; }
  .hero-points li > span::before { top: 4px; left: 5px; }
  .hero-actions { margin-top: 18px; }
  .service-state { min-height: 24px; margin-top: 8px; font-size: 12px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }

  .product-stage { border-radius: 22px; }
  .stage-topline { min-height: 44px; padding-inline: 14px; border-radius: 22px 22px 0 0; }
  .stage-body { padding: 12px; }
  .stage-channel, .stage-bottom { display: none; }
  .stage-now { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 0; }
  .stage-artwork { width: 84px; border-radius: 16px; clip-path: inset(0 round 16px); }
  .stage-artwork::before { width: 64px; height: 64px; }
  .stage-artwork::after { width: 42px; height: 42px; }
  .stage-orbit { width: 18px; height: 18px; border-width: 5px; }
  .stage-equalizer { right: 7px; bottom: 7px; height: 19px; gap: 2px; padding: 4px 5px; }
  .stage-equalizer i { width: 2px; height: 9px; }
  .stage-track strong { font-size: 17px; }
  .stage-track > span:not(.stage-kicker) { margin-top: 5px; font-size: 11px; }
  .stage-progress { margin-top: 13px; }
  .stage-bottom { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 16px; }
  .stage-controls { width: 128px; justify-self: center; }

  .auth-header { min-height: 66px; }
  .auth-main { align-content: start; gap: 32px; padding-block: 42px 64px; }
  .auth-context h1 { font-size: clamp(40px, 13vw, 54px); }
  .auth-context > p:last-child { margin-top: 18px; font-size: 16px; }
  .auth-panel { padding: 24px 20px; border-radius: 20px; }
}

@media (max-width: 900px) and (max-height: 760px) {
  .hero { padding-block: 16px; }
  .hero-points, .product-stage { display: none; }
}

@media (max-width: 360px) {
  .site-header .wordmark span { display: none; }
  .header-nav .button { padding-inline: 13px; font-size: 13px; }
  .stage-now { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .stage-artwork { width: 72px; }
  .stage-kicker { font-size: 9px; }
  .stage-track strong { font-size: 16px; }
  .stage-listeners { padding-inline: 9px; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--public-canvas);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .stage-equalizer i {
    animation: none;
    transform: scaleY(.58);
  }
}

@media (forced-colors: active) {
  .status-dot,
  .live-label span { forced-color-adjust: none; }
  .button { border-color: ButtonText; }
}
