/* styles.css - WBAH, kein Framework.
   Zwei Themes über html[data-theme]: "house" (hell) und "techno" (dunkel). */

:root,
[data-theme="house"] {
  --bg: #f5f1e8;
  --fg: #0a0a0a;
  --inv-bg: #0a0a0a;
  --inv-fg: #f5f1e8;
  --accent: #ff2e63;
  --accent-text: #c8003f;
  --on-accent: #0a0a0a;
  color-scheme: light;
}

[data-theme="techno"] {
  --bg: #050505;
  --fg: #e6e6e6;
  --inv-bg: #121212;
  --inv-fg: #e6e6e6;
  --accent: #c6ff00;
  --accent-text: var(--accent);
  --on-accent: #050505;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body, .section, .site-header, .card, .mix, .btn {
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.dot { color: var(--accent); }

[data-theme="house"] .only-techno,
[data-theme="techno"] .only-house { display: none; }

/* ---------- Typo ---------- */
.logo, .eyebrow, .h2, .h3, .hero__title, .hero__genre, .btn, .toggle, .nav__links, .gig__date, .card__num, .mix__tag {
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: color-mix(in srgb, currentColor 55%, transparent);
  margin-bottom: 1.25rem;
}
.eyebrow--accent { color: var(--accent-text); }
.h2 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 3rem;
}
.h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.lead { font-size: 1.15rem; max-width: 38rem; color: color-mix(in srgb, currentColor 80%, transparent); }
.link { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 0.875rem; text-decoration: none; }
.link:hover { color: var(--accent); }

[data-theme="techno"] .h2,
[data-theme="techno"] .h3,
[data-theme="techno"] .hero__genre { text-transform: uppercase; letter-spacing: -0.02em; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--fg); color: var(--bg);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
}
.nav { height: 4rem; display: flex; align-items: center; gap: 2rem; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.nav__links { display: none; gap: 1.75rem; margin-left: auto; font-size: 0.875rem; font-weight: 500; }
.nav__links a { text-decoration: none; }
.nav__links a:hover { color: var(--accent); }
@media (min-width: 640px) { .nav__links { display: flex; } }
@media (max-width: 639px) {
  html { scroll-padding-top: 7rem; }
  .nav { height: auto; flex-wrap: wrap; padding-block: 0.75rem; gap: 0.5rem 1rem; }
  .nav__links { display: flex; order: 1; width: 100%; margin-left: 0; gap: 1.25rem; font-size: 0.8rem; }
  .hero { padding-top: 8rem; }
}

/* ---------- Theme Toggle ---------- */
.toggle {
  margin-left: auto;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__links + .toggle { margin-left: 0; }
@media (max-width: 639px) { .nav__links + .toggle { margin-left: auto; } }
.toggle__opt { padding: 0.35rem 0.75rem; border-radius: 999px; transition: background-color 300ms ease, color 300ms ease; }
[data-theme="house"] .toggle__opt--house,
[data-theme="techno"] .toggle__opt--techno { background: var(--accent); color: var(--on-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
}
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--fg); color: var(--bg); }
.btn--outline { border-color: currentColor; background: transparent; color: inherit; }
.btn--outline:hover { background: var(--fg); color: var(--bg); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; background: var(--bg); color: var(--fg); }
.section--invert { --accent-text: var(--accent); --bg: var(--inv-bg); --fg: var(--inv-fg); }
[data-theme="techno"] .section--invert { border-block: 1px solid #1f1f1f; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 90svh;
  display: flex; align-items: center;
  padding: 6rem 0 4rem;
  background:
    radial-gradient(ellipse at 75% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--bg);
}
.hero > .wrap { width: 100%; }
.hero__title {
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
}
.hero__genre {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 0.5rem;
  color: color-mix(in srgb, currentColor 35%, transparent);
}
.hero__sub { margin-top: 1rem; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-text); }
.hero__lead { margin-top: 2rem; max-width: 36rem; font-size: 1.2rem; color: color-mix(in srgb, currentColor 75%, transparent); }
.hero__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Mixes ---------- */
.mixes { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .mixes { grid-template-columns: 1fr 1fr; } }
.mix {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
}
[data-theme="techno"] .mix--techno { order: -1; }
.mix__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent-text); }
.mix__meta { font-size: 0.875rem; color: color-mix(in srgb, currentColor 60%, transparent); }
.mix__player { margin: 0.5rem 0; min-height: 120px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.75rem; }
.mix__player iframe { width: 100%; height: 120px; border: 0; }
.mix__note { font-size: 0.75rem; color: color-mix(in srgb, currentColor 70%, transparent); }

/* ---------- Gigs ---------- */
.gig {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
}
.gigs__next { margin-top: 2rem; }
.gig:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); }
.gig__date { font-weight: 700; color: var(--accent-text); }
.gig__venue { font-size: 1.25rem; font-weight: 600; }
.gig__info { font-size: 0.875rem; color: color-mix(in srgb, currentColor 60%, transparent); }
@media (max-width: 539px) { .gig { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- About ---------- */
.about { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .about { grid-template-columns: 2fr 3fr; gap: 4rem; } }
.about__photo {
  aspect-ratio: 4 / 5;
  width: 100%; height: auto; object-fit: cover; display: block;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

/* ---------- Booking ---------- */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  padding: 2rem;
  border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}
.card p:not(.card__num) { flex: 1; color: color-mix(in srgb, currentColor 75%, transparent); }
.card__num { font-size: 0.75rem; letter-spacing: 0.2em; color: color-mix(in srgb, currentColor 50%, transparent); }
.note { margin-top: 1.5rem; font-size: 0.875rem; color: color-mix(in srgb, currentColor 60%, transparent); }
.contact { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.25rem; font-weight: 700; }
.contact a { text-decoration: none; }
.contact a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  --accent-text: var(--accent); --bg: var(--inv-bg); --fg: var(--inv-fg);
  background: var(--bg); color: var(--fg);
  padding: 3rem 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  font-size: 0.875rem;
}
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { text-decoration: none; color: color-mix(in srgb, currentColor 70%, transparent); }
.footer__links a:hover { color: var(--accent); }

/* ---------- Easter Egg (WBAH = With Blackjack and House) ---------- */
.easter-egg { position: relative; cursor: help; border-bottom: 1px dotted currentColor; }
.easter-egg__hint { opacity: 0.5; font-size: 0.75em; margin-left: 2px; }
.easter-egg:hover .easter-egg__hint,
.easter-egg:focus .easter-egg__hint { opacity: 1; color: var(--accent); }
.easter-egg::after {
  content: "With Blackjack and House";
  position: absolute; bottom: calc(100% + 8px); right: 0;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  background: var(--fg); color: var(--bg);
  font-size: 0.75rem; font-weight: 500;
  opacity: 0; transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.easter-egg:hover::after,
.easter-egg:focus::after { opacity: 1; transform: translateY(0); }

/* ---------- Legal pages ---------- */
.legal { max-width: 48rem; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.legal .h2 { font-size: clamp(2.5rem, 7vw, 4rem); }
.legal section { margin-bottom: 2rem; }
.legal h2:not(.h2) { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.legal p, .legal li { color: color-mix(in srgb, currentColor 80%, transparent); }
.legal p + p { margin-top: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.5rem; margin: 0.75rem 0; }
.legal a:not(.link) { color: var(--accent); }
.legal .placeholder { padding: 1rem; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 0.875rem; margin-bottom: 2rem; }
.legal .back { display: inline-block; margin-bottom: 3rem; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
