@font-face {
  font-family: "Rubik Dirt"; /* SIL Open Font License – siehe fonts/RubikDirt-OFL.txt */
  src: url("fonts/RubikDirt-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-2: #101010;
  --card: #141414;
  --line: #ffffff14;
  --text: #f4f4f4;
  --muted: #8f8f8f;
  --accent: #ff5a1f;      /* Orange wie auf BeatStars */
  --accent-2: #ff8a3d;
  --radius: 10px;
  --player-h: 84px;
  --grunge: "Rubik Dirt", Impact, "Arial Black", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
body.has-player { padding-bottom: var(--player-h); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }

.grunge { font-family: var(--grunge); font-weight: normal; letter-spacing: .02em; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px clamp(16px, 5vw, 48px);
  background: rgba(5, 5, 5, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo img { height: 42px; display: block; }
.nav nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.nav nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 16px;
  background:
    radial-gradient(60% 60% at 50% 40%, #2a2a2a 0%, transparent 70%),
    var(--bg);
}
.hero-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--grunge);
  font-size: min(60vw, 760px);
  line-height: .8;
  color: #ffffff0b;
  user-select: none; pointer-events: none;
}
.hero-inner { position: relative; }
.promo {
  display: inline-block; margin: 0 0 18px;
  font-family: var(--grunge); font-size: clamp(22px, 4vw, 40px);
  color: var(--accent);
  text-shadow: 0 0 30px #ff5a1f55;
  transform: rotate(-2deg);
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 11vw, 150px);
  line-height: .9;
  text-transform: uppercase;
}
.tagline { color: var(--muted); font-size: clamp(15px, 2vw, 19px); margin: 20px 0 34px; text-transform: uppercase; letter-spacing: .12em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 6px; padding: 14px 26px;
  font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: 14px;
  border: 2px solid transparent;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { border-color: #ffffff40; color: var(--text); background: none; }
.btn.ghost:hover { border-color: var(--text); }
.btn.buy { background: var(--text); color: #000; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.btn.buy:hover { background: var(--accent); color: #fff; }
.btn.small { padding: 8px 14px; }

/* ---------- Sections ---------- */
.section { max-width: 1150px; margin: 0 auto; padding: 80px clamp(16px, 5vw, 48px); }
.section h2 { font-size: clamp(36px, 6vw, 62px); margin: 0 0 28px; line-height: 1; text-transform: uppercase; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
#search {
  flex: 1; max-width: 360px; min-width: 200px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; font: inherit;
}
#search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.chip {
  background: none; color: var(--muted);
  border: 1px solid #ffffff26; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.chip:hover { color: var(--text); border-color: #ffffff66; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Beat-Liste ---------- */
.beat-table { border-top: 1px solid var(--line); }
.beat-row {
  display: grid;
  grid-template-columns: 56px 1fr 64px 52px minmax(140px, 200px) auto;
  align-items: center; gap: 16px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.beat-row.head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding-block: 12px; }
.beat-row:not(.head):hover { background: #ffffff08; }
.beat-row.playing { background: #ff5a1f14; }
.beat-row.playing .beat-title { color: var(--accent); }

.thumb { position: relative; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; border: 0; padding: 0; background: #222; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #000a; color: #fff; font-size: 18px; opacity: 0; transition: opacity .15s;
}
.beat-row:hover .thumb span, .beat-row.playing .thumb span { opacity: 1; }

.beat-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.beat-sub { font-size: 12px; color: var(--muted); }
.beat-sub .ext { color: var(--accent); }
.num { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; color: #cfcfcf; background: #ffffff10; border-radius: 4px; padding: 2px 8px; white-space: nowrap; }

.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- Lizenzen ---------- */
.licenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.license {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column;
}
.license.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px #ff5a1f1f; }
.license h3 { margin: 0; font-family: var(--grunge); font-weight: normal; font-size: 34px; line-height: 1; }
.license .sub { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.license .price { font-size: 34px; font-weight: 800; margin: 18px 0; }
.license ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.license li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.license li::before { content: "✓"; color: var(--accent); margin-right: 10px; font-weight: 800; }
.note { color: var(--muted); margin-top: 22px; }
.note strong { color: var(--accent); }

/* ---------- About / Contact ---------- */
.about p { font-size: clamp(18px, 2.2vw, 22px); max-width: 780px; color: #d4d4d4; margin: 0; }
.email { font-size: clamp(20px, 3.4vw, 34px); font-weight: 800; color: var(--accent); text-decoration: none; word-break: break-all; }
.email:hover { text-decoration: underline; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.links a {
  text-decoration: none; padding: 10px 20px; border-radius: 6px;
  border: 1px solid #ffffff2a; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.links a:hover { background: var(--text); color: #000; }

.footer {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted); padding: 48px 16px; font-size: 13px; border-top: 1px solid var(--line); text-align: center;
}
.footer-logo { height: 48px; opacity: .7; }

/* ---------- Player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  min-height: var(--player-h);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 2fr) auto; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 3vw, 32px) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 16, 16, .95); backdrop-filter: blur(16px);
  border-top: 1px solid #ffffff1c;
}
.player-cover { width: 54px; height: 54px; border-radius: 6px; object-fit: cover; }
.player-info { display: flex; flex-direction: column; min-width: 0; }
.player-info strong, .player-info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info span { color: var(--muted); font-size: 13px; }
.player-controls { display: flex; gap: 6px; align-items: center; }
.player-controls button { background: none; border: 0; color: var(--text); font-size: 18px; padding: 6px; }
.player-controls .play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; }
.player-progress { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-progress input { flex: 1; }
input[type=range] { accent-color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --player-h: 132px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: 12px; }
  .logo img { height: 34px; }
  .beat-row { grid-template-columns: 48px 1fr auto; gap: 12px; }
  .beat-row.head { display: none; }
  .thumb { width: 48px; height: 48px; }
  .beat-row .num, .beat-row .col-tags { display: none; }
  .player { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 14px; }
  .player-progress { grid-column: 1 / -1; }
  .player #p-buy { display: none; }
}
@media (max-width: 460px) {
  .nav nav a[href="#about"] { display: none; }
}

/* ---------- Animationen ---------- */
.viz {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 34%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.hero-bg {
  transform: scale(calc(1 + var(--beat, 0) * .09));
  color: rgb(255 255 255 / calc(.045 + var(--beat, 0) * .08));
  will-change: transform;
}

/* Titel flackert beim Laden ein wie ein kaputtes Neonschild */
.hero h1 { animation: flicker 1.6s ease-out both; }
@keyframes flicker {
  0%   { opacity: 0; filter: blur(10px); transform: scale(1.06); }
  18%  { opacity: .9; filter: blur(0); }
  22%  { opacity: .15; }
  28%  { opacity: 1; }
  33%  { opacity: .35; }
  40%, 100% { opacity: 1; transform: none; }
}
.promo { animation: promo-in .7s 1s both, glow 2.6s 2s ease-in-out infinite; }
@keyframes promo-in {
  from { opacity: 0; transform: rotate(-2deg) translateY(-14px) scale(.9); }
  to   { opacity: 1; transform: rotate(-2deg); }
}
@keyframes glow {
  0%, 100% { text-shadow: 0 0 24px #ff5a1f44; }
  50%      { text-shadow: 0 0 40px #ff5a1faa, 0 0 6px #ff8a3d; }
}
.tagline  { animation: fade-up .8s 1.2s both; }
.hero-cta { animation: fade-up .8s 1.4s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease, background .15s; }
.reveal.in { opacity: 1; transform: none; }

/* Laufender Beat: Cover pulsiert leicht */
.beat-row.playing .thumb { box-shadow: 0 0 0 2px var(--accent); animation: pulse-ring 1.4s ease-in-out infinite; }
@keyframes pulse-ring { 50% { box-shadow: 0 0 0 2px var(--accent), 0 0 18px #ff5a1f88; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Autoplay-Hinweis ---------- */
.autoplay-hint {
  position: fixed; left: 50%; z-index: 25;
  bottom: calc(var(--player-h) + 16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 20px; font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 10px 30px #0009;
  animation: hint-bob 1.8s ease-in-out infinite;
}
@keyframes hint-bob { 50% { transform: translateX(-50%) translateY(-5px); } }

/* ---------- BeatStars Blaze Store ---------- */
.shop-note { color: var(--muted); margin: 0; }
.store-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #0d0d0d;
  box-shadow: 0 30px 80px #000a, 0 0 0 1px #ff5a1f22;
}
.store-frame iframe { display: block; width: 100%; height: 820px; border: 0; }
@media (max-width: 760px) { .store-frame iframe { height: 720px; } }

/* ---------- Store-Zustimmung (2-Klick) ---------- */
.store-gate {
  min-height: 460px; padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center;
  background: radial-gradient(60% 70% at 50% 30%, #ff5a1f1c, transparent 70%), #0d0d0d;
}
.gate-logo { height: 56px; opacity: .85; }
.store-gate h3 { margin: 0; font-size: 44px; line-height: 1; }
.store-gate p { max-width: 520px; color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.store-gate p a { color: var(--text); }
.remember { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.remember input { accent-color: var(--accent); }
.gate-alt { color: var(--muted); font-size: 13px; }
.gate-alt:hover { color: var(--accent); }

/* ---------- Footer-Links & Rechtliche Seiten ---------- */
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.legal { max-width: 780px; margin: 0 auto; padding: 60px clamp(16px, 5vw, 48px) 80px; }
.legal h1 { font-family: var(--grunge); font-weight: normal; font-size: clamp(40px, 7vw, 64px); line-height: 1; margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal p, .legal li { color: #cfcfcf; }
.legal a { color: var(--accent); }
.legal .todo { background: #ff5a1f26; border: 1px dashed var(--accent); color: #ffd2bf; padding: 1px 6px; border-radius: 4px; }
.legal .lead { color: var(--muted); }

/* ---------- Genre-Seiten (trap-beats.html usw.) ---------- */
.hero-small { min-height: 56vh; }
.hero-small h1 { font-size: clamp(48px, 11vw, 120px); }
.hero-intro { max-width: 640px; margin: -14px auto 30px; color: #d4d4d4; font-size: clamp(16px, 2vw, 19px); line-height: 1.5; }
.genre-table .beat-row { grid-template-columns: 56px 1fr auto; }
.genre-table .beat-title { margin: 0; }
.prose p { font-size: clamp(16px, 2vw, 19px); line-height: 1.6; max-width: 780px; color: #d4d4d4; margin: 0 0 18px; }
.prose a { color: var(--accent); }
a.chip { text-decoration: none; }
@media (max-width: 760px) {
  .genre-table .beat-row { grid-template-columns: 48px 1fr auto; }
}
.genre-chips { margin-top: 22px; }
