:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --text: #1b1b1f;
  --muted: #6b6b75;
  --line: #e4dfd4;
  --accent: #e53935;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --surface: #1d1d22;
    --text: #f1f1f4;
    --muted: #9a9aa6;
    --line: #2c2c34;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Kopf */
.top { background: #1b1b1f; color: #fff; }
.top-inner { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 28px; letter-spacing: .04em; text-decoration: none; }
.logo-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a80, var(--accent) 55%, #8e0000); box-shadow: 0 3px 0 #6d0000; }
.tagline { margin: 0; color: #b9b9c4; font-size: 15px; }

/* Steuerung */
main { flex: 1; padding-top: 20px; padding-bottom: 40px; }
.controls > * { min-width: 0; }
.controls { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 20px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0; }
.tabs { display: flex; gap: 6px; background: var(--surface); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tab { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); }
.count { font-weight: 500; opacity: .7; font-size: 13px; margin-left: 2px; }
.tools { display: flex; gap: 8px; flex: 1; justify-content: flex-end; min-width: 240px; }
.search { flex: 1; max-width: 360px; min-width: 0; font: inherit; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn, .btn-ghost { font: inherit; font-weight: 700; border-radius: 999px; padding: 9px 16px; cursor: pointer; white-space: nowrap; }
.btn { background: var(--accent); color: #fff; border: 0; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

/* Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card {
  --c: #e53935; --p: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 18px 16px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  scroll-margin-top: 90px; transition: border-color .2s;
}
.card.highlight { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
.play { position: relative; width: 92px; height: 92px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 360deg), color-mix(in srgb, var(--c) 18%, transparent) 0);
}
.knob {
  position: absolute; inset: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--c) 45%, #fff), var(--c) 58%, color-mix(in srgb, var(--c) 60%, #000));
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 55%, #000), inset 0 -3px 6px rgba(0,0,0,.2);
  transition: transform .08s, box-shadow .08s;
}
.play:hover .knob { filter: brightness(1.06); }
.play:active .knob, .card.playing .knob { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 55%, #000), inset 0 -3px 6px rgba(0,0,0,.2); }
.play:focus-visible { outline: 3px solid var(--c); outline-offset: 4px; border-radius: 50%; }
.title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 800; }
.transcript {
  margin: 0; width: 100%; font-size: 14px; color: var(--text); background: color-mix(in srgb, var(--c) 9%, transparent);
  border-left: 3px solid var(--c); border-radius: 6px; padding: 8px 10px; text-align: left; font-style: italic;
  max-height: 9.5em; overflow: auto;
}
.meta { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; }
.dur { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 2px; }
.icon { border: 0; background: none; color: var(--muted); font-size: 17px; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; text-decoration: none; }
.icon:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.icon.on { color: #f9a825; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* Fuß */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Cookie-Banner */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px; }
.cookie-inner { max-width: 900px; margin: 0 auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie p { margin: 0; flex: 1 1 360px; font-size: 14px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1b1b1f; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 30; }
[hidden] { display: none !important; }

/* Rechtsseiten */
.legal { max-width: 760px; }
.legal h1 { font-size: 30px; margin: 10px 0 20px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal .back { display: inline-block; margin-bottom: 8px; color: var(--muted); }

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tagline { font-size: 13px; }
  .card { padding: 14px 10px 8px; }
  .play { width: 74px; height: 74px; }
  .tools { min-width: 100%; }
  .search { max-width: none; }
  .transcript { font-size: 13px; }
}
main.wrap { padding-top: 20px; padding-bottom: 40px; }
