/* DER BEAT, Version 2: Stylesheet (mobile first) */

/* ---------- Schriften (lokal, auf lateinische Zeichen gekürzt) ---------- */
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../assets/fonts/SpaceMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Variablen ---------- */
:root {
  color-scheme: dark;

  /* Farben */
  --schwarz: #0a0a0a;
  --flaeche: #141414;
  --flaeche-2: #191919;
  --rand: #222222;
  --linie: #333333;
  --spur: #666666;      /* Fortschrittsbalken, 3:1 auf den Flächen */
  --weiss: #ffffff;
  --text: #c9c9c9;
  --grau: #8f8f8f;
  --akzent: #ffb627;
  --akzent-hover: #e6a01d;
  --akzent-rgb: 255, 182, 39;
  --auf-akzent: #0a0a0a;
  --fehler: #ff8a80;

  /* Schriften */
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Größen */
  --fs-text: 1rem;
  --fs-klein: 0.875rem;
  --fs-label: 0.75rem;
  --fs-h1: clamp(2.25rem, 9.5vw, 5rem);
  --fs-h2: clamp(1.75rem, 6vw, 3rem);
  --fs-h3: 1.0625rem;

  /* Abstände und Formen */
  --gutter: 16px;
  --max: 1120px;
  --sektion: clamp(64px, 11vw, 128px);
  --radius-karte: 10px;
  --radius: 3px;
  --touch: 44px;
  --header-h: 60px;
  --dock-h: 112px;

  /* Bewegung */
  --dauer: 0.2s;
  --kurve: cubic-bezier(0.2, 0.7, 0.2, 1);
  --takt: 0.65s;        /* Länge eines Schlags, wird vom Player auf das Tempo des Beats gesetzt */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--schwarz);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--schwarz);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  color: var(--weiss);
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }

a { color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--akzent-hover); }

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

::selection { background: var(--akzent); color: var(--auf-akzent); }

.mono, .eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: var(--fs-label); color: var(--akzent); }
.eyebrow::before { content: ""; flex: none; width: 24px; height: 2px; background: currentColor; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--akzent);
  color: var(--auf-akzent);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip:focus { top: calc(8px + env(safe-area-inset-top)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-klein);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dauer), color var(--dauer), border-color var(--dauer), box-shadow var(--dauer), translate var(--dauer) var(--kurve), scale 0.1s;
}
.btn:active { scale: 0.97; }
.btn-primary { background: var(--akzent); color: var(--auf-akzent); }
.btn-primary:hover { background: var(--akzent); color: var(--auf-akzent); translate: 0 -2px; box-shadow: 0 10px 30px -8px rgba(var(--akzent-rgb), 0.55); }
.btn-secondary { background: transparent; border-color: var(--linie); color: var(--weiss); }
.btn-secondary:hover { border-color: var(--akzent); color: var(--akzent); translate: 0 -2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Karten: Lichtkegel folgt dem Mauszeiger ---------- */
.karte { position: relative; }
@media (hover: hover) {
  .karte::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--akzent-rgb), 0.09), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .karte:hover::after { opacity: 1; }
}

/* ---------- Einblenden beim Scrollen (Klassen setzt effekte.js) ---------- */
.r-wait { opacity: 0; }
.r-in { animation: auf 0.75s var(--kurve) backwards; }
.r-in[data-r="1"] { animation-delay: 0.1s; }
.r-in[data-r="2"] { animation-delay: 0.2s; }
@keyframes auf { from { opacity: 0; translate: 0 32px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--rand);
  transition: background-color 0.3s, border-color 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.header-logo { display: flex; align-items: center; min-height: var(--touch); transition: opacity 0.3s, translate 0.3s var(--kurve), visibility 0.3s; }
.header-logo img { width: 96px; height: auto; }
.header-nav { display: flex; gap: 18px; }
.header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 2px;
  color: var(--weiss);
  font-size: var(--fs-label);
  text-decoration: none;
  transition: color var(--dauer);
}
.header-link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 9px;
  height: 2px;
  background: var(--akzent);
  scale: 0 1;
  transform-origin: 0 50%;
  transition: scale 0.25s var(--kurve);
}
.header-link:hover { color: var(--akzent); }
.header-link:hover::after { scale: 1 1; }

/* Oben auf der Startseite: Header durchsichtig, Logo steht groß im Hero */
.site-header.oben { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.oben .header-logo { opacity: 0; translate: 0 -8px; visibility: hidden; }

/* Lesefortschritt, ohne JavaScript */
.scroll-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--akzent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .scroll-bar { animation: fortschritt linear both; animation-timeline: scroll(root); }
}
@keyframes fortschritt { to { transform: scaleX(1); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 820px);
  margin-top: calc(-1 * var(--header-h) - env(safe-area-inset-top));
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 40px) 0 clamp(72px, 14vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
/* Warmes Licht hinter dem Titel */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(var(--akzent-rgb), 0.16), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(var(--akzent-rgb), 0.07), transparent 70%);
}
/* Pegel am unteren Rand, zeichnet effekte.js */
.hero-viz {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: min(46%, 360px);
  max-width: none;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent);
  mask-image: linear-gradient(to top, #000 10%, transparent);
  pointer-events: none;
}
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-logo { width: min(62%, 300px); height: auto; margin-bottom: 8px; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--akzent); }
.hero-text { max-width: 46ch; font-size: clamp(1.0625rem, 2.2vw, 1.1875rem); }
.hero .btn-row { margin-top: 12px; }

/* Auftritt beim Laden, reines CSS */
.hero-logo, .hero .eyebrow, .hero-text, .hero .btn-row { animation: auf 0.8s var(--kurve) backwards; }
.hero .eyebrow { animation-delay: 0.08s; }
.hero-text { animation-delay: 0.62s; }
.hero .btn-row { animation-delay: 0.72s; }
.w { display: inline-block; animation: wort 0.8s var(--kurve) backwards; }
.w:nth-child(1) { animation-delay: 0.14s; }
.w:nth-child(2) { animation-delay: 0.2s; }
.w:nth-child(3) { animation-delay: 0.26s; }
.w:nth-child(4) { animation-delay: 0.32s; }
em .w:nth-child(1) { animation-delay: 0.42s; }
em .w:nth-child(2) { animation-delay: 0.5s; }
@keyframes wort { from { opacity: 0; translate: 0 0.5em; rotate: 3deg; filter: blur(6px); } }

/* ---------- Laufband ---------- */
.band {
  overflow: hidden;
  padding: 14px 0;
  background: var(--akzent);
  color: var(--auf-akzent);
  font-size: var(--fs-label);
  white-space: nowrap;
  user-select: none;
}
.band-lauf { display: inline-flex; animation: band 36s linear infinite; }
.band span { display: inline-flex; align-items: center; }
.band span::after { content: ""; width: 6px; height: 6px; margin: 0 22px; background: currentColor; rotate: 45deg; }
@keyframes band { to { translate: -50% 0; } }

/* ---------- Sektionen ---------- */
.section { padding: var(--sektion) 0; }
.section + .section { border-top: 1px solid var(--rand); }
.section:focus { outline: none; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-lead { max-width: 56ch; font-size: 1.0625rem; }

/* ---------- Beat-Liste ---------- */
.beat-status {
  padding: 18px 20px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius-karte);
  color: var(--text);
}

.beat-tools { display: grid; gap: 14px; margin-bottom: 16px; }

/* Suchfeld (16 px Schrift, sonst zoomt das iPhone hinein) */
.beat-search { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; max-width: 420px; }
.beat-search-label { font-size: var(--fs-label); color: var(--grau); }
.beat-search-field { position: relative; }
.beat-search-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 48px 10px 14px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  color: var(--weiss);
  font: 400 1rem/1.4 var(--font-text);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dauer), box-shadow var(--dauer);
}
.beat-search-input::placeholder { color: var(--grau); }
/* Eigenes X statt dem Browser-X, damit es überall gleich aussieht */
.beat-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.beat-search-input:focus-visible { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(var(--akzent-rgb), 0.2); }
.beat-search-clear {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--grau);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}
.beat-search-clear:hover { color: var(--akzent); }
.beat-search-clear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Filter-Chips */
.beat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  min-height: var(--touch);
  padding: 0 16px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 700 var(--fs-label)/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: color var(--dauer), border-color var(--dauer), background-color var(--dauer), scale 0.1s;
}
.chip:hover { border-color: var(--akzent); color: var(--akzent); }
.chip:active { scale: 0.95; }
.chip[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.beat-filter-info { min-height: 1.5em; margin-bottom: 8px; font-size: var(--fs-klein); color: var(--grau); }
.beat-filter-info:empty { display: none; }

.beat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

/* Karte: Inhalte von .beat-main liegen direkt im Raster (display: contents) */
.beat {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas:
    "play head head"
    "play tags tags"
    "desc desc desc"
    "msg  msg  msg"
    "ask  ask  ask";
  column-gap: 14px;
  row-gap: 8px;
  align-items: center;
  padding: 14px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius-karte);
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s, translate 0.3s var(--kurve);
  /* Nacheinander einblenden, --i setzt player.js */
  animation: auf 0.55s var(--kurve) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@media (hover: hover) {
  .beat:hover { border-color: var(--linie); translate: 0 -2px; }
}
.beat.is-current {
  border-color: rgba(var(--akzent-rgb), 0.55);
  background: var(--flaeche-2);
  box-shadow: 0 0 0 1px rgba(var(--akzent-rgb), 0.18), 0 18px 50px -24px rgba(var(--akzent-rgb), 0.45);
}
.beat.has-error { border-color: #3a2424; }

/* Play-Button wie beim A/B-Player: Akzentfläche, darunter PLAY */
.beat-play {
  grid-area: play;
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--akzent);
  color: var(--auf-akzent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dauer), scale 0.15s var(--kurve);
}
.beat-play:hover { scale: 1.06; }
.beat-play:active { scale: 0.94; }
.beat-play .icon { width: 22px; height: 22px; fill: currentColor; }
/* Cover hinter dem Play-Button, abgedunkelt (auf allen Größen) */
.beat.has-cover .beat-play {
  background: linear-gradient(rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.55)), var(--cover) center / cover no-repeat, var(--flaeche);
  color: var(--weiss);
  box-shadow: inset 0 0 0 2px var(--akzent);
}
.icon-pause { display: none; }
.is-playing .icon-play { display: none; }
.is-playing .icon-pause { display: block; }
.beat-play-label { font: 700 9px/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; }
/* Ring im Tempo des Beats */
.beat.is-playing .beat-play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--akzent);
  animation: ring var(--takt) ease-out infinite;
  pointer-events: none;
}
@keyframes ring { to { scale: 1.45; opacity: 0; } }

.beat-main { display: contents; }
.beat-head { grid-area: head; display: flex; align-items: baseline; gap: 10px; min-width: 0; align-self: end; }
.beat-num { flex: none; font: 700 var(--fs-label)/1 var(--font-mono); letter-spacing: 0.1em; color: var(--grau); }
.beat-title { min-width: 0; font-size: 1.125rem; overflow-wrap: anywhere; text-wrap: wrap; }
.beat.is-current .beat-title { color: var(--akzent); }

/* Pegel-Balken: ersetzen die Nummer, solange der Beat läuft */
.eq { display: none; flex: none; align-items: flex-end; gap: 2px; width: 17px; height: 12px; }
.eq i { flex: 1; height: 100%; background: var(--akzent); transform-origin: 50% 100%; animation: eq calc(var(--takt) * 2) ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: calc(var(--takt) * -0.5); }
.eq i:nth-child(3) { animation-delay: calc(var(--takt) * -1.25); }
.eq i:nth-child(4) { animation-delay: calc(var(--takt) * -0.85); }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 25% { transform: scaleY(1); } 50% { transform: scaleY(0.45); } 75% { transform: scaleY(0.8); } }
.is-playing .eq { display: inline-flex; }
.beat.is-playing .beat-num { display: none; }

.beat-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; align-self: start; }
.tag {
  padding: 2px 8px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  font: 700 var(--fs-label)/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--akzent);
}
.tag-new { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.tag-genre { color: var(--text); }
.tag-sold { background: var(--weiss); border-color: var(--weiss); color: var(--schwarz); }
.tag-reserved { border-color: var(--weiss); color: var(--weiss); }

/* Verkaufte Beats: hörbar, aber zurückgenommen */
.beat.is-sold { background: var(--schwarz); }
.beat.is-sold .beat-title { color: var(--text); text-decoration: line-through; text-decoration-color: var(--grau); text-decoration-thickness: 1px; }
.beat.is-sold:not(.has-cover) .beat-play { background: var(--linie); color: var(--weiss); }
.beat-desc { grid-area: desc; font-size: var(--fs-klein); color: var(--text); max-width: 60ch; }

/* Schieberegler im Mini-Player: große Trefferfläche, 4 px sichtbare Linie */
.beat-range {
  --pos: 0%;
  flex: 1;
  min-width: 0;
  height: var(--touch);
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: none;
}
.beat-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--akzent) 0 var(--pos), var(--spur) var(--pos) 100%);
}
.beat-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--spur); }
.beat-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--akzent); }
.beat-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--weiss);
  transition: scale 0.15s;
}
.beat-range:hover::-webkit-slider-thumb { scale: 1.25; }
.beat-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--weiss); }
.beat-range:focus-visible { outline-offset: 0; }

.beat-msg { grid-area: msg; font-size: var(--fs-klein); color: var(--fehler); }

.beat-ask {
  grid-area: ask;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0 18px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  color: var(--weiss);
  font: 700 var(--fs-label)/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--dauer), border-color var(--dauer), background-color var(--dauer);
}
.beat-ask:hover, .beat-ask:focus-visible { color: var(--auf-akzent); background: var(--akzent); border-color: var(--akzent); }

.hinweis { margin: 0 0 24px; padding: 14px 16px; border-left: 3px solid var(--akzent); border-radius: 4px; background: rgba(255, 182, 39, 0.08); color: var(--text); white-space: pre-line; max-width: 75ch; }
.hinweis[hidden] { display: none; }
.beats-note { margin-top: 18px; font-size: var(--fs-klein); color: var(--grau); }

/* ---------- Preis ---------- */
.license-name { font-size: var(--fs-label); color: var(--akzent); }
.license-price { margin-top: 6px; font: 800 clamp(4rem, 18vw, 7.5rem)/1 var(--font-head); letter-spacing: -0.04em; color: var(--weiss); font-variant-numeric: tabular-nums; }
.license-sub { font-size: var(--fs-klein); color: var(--grau); margin: 6px 0 20px; }
.license-features { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--rand); display: grid; gap: 14px; }
.license-features li { position: relative; padding-left: 34px; color: var(--weiss); }
/* Haken */
.license-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--akzent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.5' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.offer {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 6vw, 56px);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(var(--akzent-rgb), 0.13), transparent 65%),
    var(--flaeche);
  border: 1px solid rgba(var(--akzent-rgb), 0.6);
  border-radius: var(--radius-karte);
  box-shadow: 0 30px 80px -50px rgba(var(--akzent-rgb), 0.5);
}
.offer-price { display: flex; flex-direction: column; align-items: flex-start; }
.offer-note { margin: 18px 0 0; max-width: 75ch; font-size: var(--fs-klein); color: var(--grau); }
.offer-agb { margin-top: 14px; font-size: var(--fs-klein); color: var(--grau); }
.offer-agb a, .step p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.offer-agb a:hover, .step p a:hover { color: var(--akzent); }
.gema {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 20px clamp(20px, 4vw, 32px);
  border: 1px solid var(--rand);
  border-radius: var(--radius-karte);
}
.gema p:last-child { max-width: 75ch; font-size: 0.9375rem; }

/* ---------- Studio ---------- */
.studio-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(24px, 6vw, 64px);
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(var(--akzent-rgb), 0.12), transparent 65%),
    var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius-karte);
  overflow: hidden;
}
.studio-card h2 { max-width: 20ch; }
.studio-card > p { max-width: 60ch; }
.studio-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.studio-points li { position: relative; padding-left: 22px; color: var(--weiss); }
.studio-points li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 2px; background: var(--akzent); }

/* ---------- So läuft es ---------- */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
.step { position: relative; padding-top: 22px; }
/* Linie zeichnet sich beim Einblenden */
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(to right, var(--akzent) 56px, var(--linie) 56px); transform-origin: 0 50%; }
.step.r-in::before { animation: linie 0.9s var(--kurve) backwards; animation-delay: inherit; }
@keyframes linie { from { transform: scaleX(0); } }
.step-num {
  display: block;
  margin-bottom: 10px;
  font: 800 clamp(3rem, 9vw, 4.5rem)/1 var(--font-head);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--akzent);
}
.step h3 { margin-bottom: 8px; font-size: 1.25rem; }

/* ---------- Über mich ---------- */
.about-inner { display: grid; gap: 28px; }
/* Unten Platz lassen, weil der Schriftzug über die Bildkante ragt */
.about-figure { position: relative; margin: 0 0 9%; }
.about-photo { display: block; width: 100%; height: auto; border-radius: var(--radius-karte); border: 1px solid var(--rand); }
/* D-Logo unten rechts wie auf den Blogbildern von derdan.de */
.photo-badge {
  position: absolute;
  right: 3%;
  bottom: 4.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13%;
  aspect-ratio: 1;
  background: rgba(20, 20, 20, 0.88);
  border-radius: 6px;
}
.photo-badge img { width: 58%; height: auto; }
/* Schriftzug "Dan" schräg über der linken Kante des D-Logos */
.photo-sign {
  position: absolute;
  z-index: 1;
  width: 21%;
  height: auto;
  right: calc(10.6% + 4px);
  bottom: calc(-3.5% + 5px);
  transform: rotate(-19deg);
  transform-origin: right bottom;
  pointer-events: none;
}
/* Unterschrift kommt nach dem Foto */
.about-figure.r-in .photo-sign { animation: signatur 0.6s 0.55s var(--kurve) backwards; }
@keyframes signatur { from { opacity: 0; scale: 0.6; } }
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text p { max-width: 60ch; }

/* ---------- Stimmen ---------- */
.voice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.voice {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius-karte);
  transition: border-color 0.3s;
}
.voice:hover { border-color: var(--linie); }
.voice-stars { color: var(--akzent); font-size: 1.0625rem; letter-spacing: 0.14em; line-height: 1; }
.voice blockquote { margin: 0; color: var(--weiss); }
.voice blockquote p::before { content: "„"; }
.voice blockquote p::after { content: "“"; }
.voice-name { margin-top: auto; padding-top: 4px; font-size: var(--fs-label); color: var(--akzent); }
.voices-toggle { margin-top: 20px; }
.voices-source { margin-top: 16px; font-size: var(--fs-klein); color: var(--grau); }

/* ---------- Referenzen ---------- */
.refs { text-align: center; overflow: hidden; }
.refs-head { align-items: center; }
.refs-head .eyebrow::before { content: none; }
.refs h2 em { font-style: normal; color: var(--akzent); }
.refs-top { max-width: 30ch; margin: 0 auto; font: 800 clamp(1.375rem, 5vw, 2.25rem)/1.25 var(--font-head); letter-spacing: -0.01em; color: var(--weiss); }
.refs-top span { white-space: nowrap; }
.refs-top span + span::before { content: "✕"; margin: 0 0.35em; color: var(--akzent); font-size: 0.7em; vertical-align: 0.12em; }
.refs-lauf {
  margin-top: clamp(28px, 5vw, 44px);
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.refs-lauf-in { display: inline-flex; animation: band 60s linear infinite; }
.refs-reihe { flex: none; margin: 0; padding-right: 0.6em; white-space: nowrap; font: 700 1.0625rem/1.4 var(--font-head); color: var(--grau); }
.refs-reihe span + span::before { content: "·"; margin: 0 0.6em; color: var(--akzent); }
.refs-mehr { margin-top: clamp(28px, 5vw, 40px); }
.refs-mehr summary { list-style: none; cursor: pointer; }
.refs-mehr summary::-webkit-details-marker { display: none; }
.refs-mehr .auf, .refs-mehr[open] .zu { display: none; }
.refs-mehr[open] .auf { display: inline; }
.refs-alle { max-width: 70ch; margin: 24px auto 0; font-size: var(--fs-klein); line-height: 1.9; color: var(--grau); }
.refs-alle b { color: var(--akzent); }

/* ---------- Kontakt: gelbe Fläche als Schlusspunkt ---------- */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(28px, 7vw, 72px);
  background: var(--akzent);
  border-radius: var(--radius-karte);
  color: #1c1400;
}
.contact-card .eyebrow, .contact-card h2 { color: var(--auf-akzent); }
.contact-card h2 { font-size: clamp(2rem, 7vw, 3.75rem); }
.contact-card p { max-width: 52ch; }
.contact-card a { color: var(--auf-akzent); }
.contact-card :focus-visible { outline-color: var(--auf-akzent); }
.contact-card .btn { text-transform: none; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.contact-card .btn-primary { background: var(--schwarz); color: var(--weiss); }
.contact-card .btn-primary:hover { background: var(--schwarz); color: var(--akzent); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); }
.contact-card .btn-secondary { border-color: var(--auf-akzent); color: var(--auf-akzent); }
.contact-card .btn-secondary:hover { background: var(--auf-akzent); border-color: var(--auf-akzent); color: var(--akzent); }
.contact-studio { font-size: var(--fs-klein); }
.contact-studio a { display: inline-flex; align-items: center; min-height: var(--touch); font-weight: 600; }

/* ---------- Mini-Player am unteren Rand ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(16, 16, 16, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid var(--rand);
  translate: 0 110%;
  visibility: hidden;
  transition: translate 0.45s var(--kurve), visibility 0.45s;
}
.dock.is-open { translate: 0 0; visibility: visible; }
.dock-seek { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.dock-zeit { flex: none; min-width: 4.5ch; color: var(--grau); font: 400 var(--fs-label)/1 var(--font-text); font-variant-numeric: tabular-nums; }
.dock-zeit:last-child { text-align: right; }
.dock-range { height: 36px; }
/* Gelber Punkt zum Antippen und Schieben */
.dock-range::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7px; background: var(--akzent); box-shadow: 0 0 0 5px rgba(var(--akzent-rgb), 0.22); }
.dock-range::-moz-range-thumb { width: 18px; height: 18px; background: var(--akzent); box-shadow: 0 0 0 5px rgba(var(--akzent-rgb), 0.22); }
.dock-range:active::-webkit-slider-thumb { scale: 1.3; }
.dock-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; padding-bottom: 6px; }
.dock-tasten { display: flex; align-items: center; gap: 4px; }
.dock-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--weiss);
  cursor: pointer;
  touch-action: manipulation;
  transition: color var(--dauer), scale 0.1s;
}
.dock-btn:hover { color: var(--akzent); }
.dock-btn:active { scale: 0.92; }
.dock-btn svg { width: 22px; height: 22px; fill: currentColor; }
.dock-play { background: var(--akzent); color: var(--auf-akzent); }
.dock-play:hover { color: var(--auf-akzent); background: var(--akzent-hover); }
.dock-neben { display: none; }
.dock-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.dock-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--weiss); font: 700 1rem/1.3 var(--font-head); }
.dock-meta { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; color: var(--grau); font-size: 0.6875rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.dock-ask { flex: none; min-height: var(--touch); padding: 8px 14px; font-size: var(--fs-label); }
/* Platz für den Mini-Player, damit er den Footer nicht verdeckt */
.has-dock .site-footer { padding-bottom: calc(32px + var(--dock-h) + env(safe-area-inset-bottom)); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rand);
  font-size: var(--fs-klein);
  transition: padding-bottom 0.3s;
}
.footer-inner { display: flex; flex-direction: column; gap: 8px; }
/* Normale Schreibweise, damit "DER Dan" nicht zu "DER DAN" wird */
.footer-claim { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font: 700 var(--fs-klein)/1.5 var(--font-mono); letter-spacing: 0.04em; color: var(--text); }
.footer-logo { display: inline-block; width: 64px; height: auto; }
.footer-claim a.footer-dan { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; }
.footer-dlogo { width: 18px; height: auto; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--text);
  text-decoration: none;
}
.footer-links a:hover { color: var(--akzent); }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(40px, 8vw, 80px) 0 var(--sektion); }
.legal .wrap { max-width: 760px; }
.legal .eyebrow::before { content: none; }
.legal h1 { font-size: var(--fs-h2); margin: 8px 0 28px; }
.legal h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 36px 0 10px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 4px; }
.legal .stand { margin-top: 40px; font-size: var(--fs-label); color: var(--grau); }
.back { display: inline-flex; align-items: center; min-height: var(--touch); font-size: var(--fs-label); }

/* ---------- Ab großem Handy ---------- */
@media (min-width: 560px) {
  .dock-neben { display: flex; }
  .dock-inner { gap: 18px; }
  .dock-ask { padding: 8px 20px; }
}

/* ---------- Ab Tablet ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 68px; --dock-h: 116px; }
  .header-logo img { width: 112px; }
  .header-nav { gap: 28px; }
  .hero-logo { width: 340px; }
  .band { padding: 18px 0; font-size: var(--fs-klein); }

  .beat {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "play head ask"
      "play tags ask"
      ".    desc ask"
      ".    msg  msg";
    row-gap: 4px;
    column-gap: 20px;
    padding: 18px 22px;
  }
  .beat-play { width: 64px; height: 64px; }
  .beat-ask { justify-self: end; }

  .offer { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 56px; }
  .offer-features { border-top: 0; border-left: 1px solid var(--rand); padding: 8px 0 8px 56px; }
  .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .about-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .about-figure { margin-bottom: 0; }
  /* Unterschiedlich lange Stimmen: Spalten statt Raster */
  .voice-list { display: block; columns: 2; column-gap: 12px; }
  .voice { break-inside: avoid; margin-bottom: 12px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .voice-list { columns: 3; }
  .hero-viz { height: min(52%, 420px); }
}

/* Animationen laufen bewusst auch bei „Bewegung reduzieren“ (Entscheidung von Dan) */
