/* ==========================================================================
   KlangWelle – Podcast-Portal
   Self-contained: no external fonts, no external requests.
   ========================================================================== */

:root {
  --bg: #0e1016;
  --bg-soft: #141824;
  --card: #1a1f2d;
  --card-hover: #212839;
  --text: #eef1f6;
  --muted: #9aa3b5;
  --accent: #ffb347;
  --accent-2: #ff7a18;
  --accent-grad: linear-gradient(135deg, #ffb347, #ff7a18);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.section-link:hover {
  opacity: 0.8;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 16, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 6px 2px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a.active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.lang-btn.active {
  background: var(--accent-grad);
  color: #1a1205;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  place-items: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(255, 122, 24, 0.14), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(255, 179, 71, 0.08), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-grad);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-title em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  background: var(--accent-grad);
  color: #1a1205;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 122, 24, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  box-shadow: none;
  border-color: var(--accent);
  color: var(--accent);
}

/* Animated equalizer in hero */
.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  height: 240px;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.eq-bar {
  width: 10px;
  border-radius: 6px;
  background: var(--accent-grad);
  opacity: 0.9;
  animation: eq 1.6s ease-in-out infinite;
  height: 30%;
}

.eq-bar:nth-child(3n) { animation-duration: 1.3s; }
.eq-bar:nth-child(4n) { animation-duration: 1.9s; }
.eq-bar:nth-child(5n) { animation-duration: 1.1s; }
.eq-bar:nth-child(2)  { animation-delay: 0.15s; }
.eq-bar:nth-child(3)  { animation-delay: 0.4s; }
.eq-bar:nth-child(4)  { animation-delay: 0.1s; }
.eq-bar:nth-child(5)  { animation-delay: 0.55s; }
.eq-bar:nth-child(6)  { animation-delay: 0.25s; }
.eq-bar:nth-child(7)  { animation-delay: 0.7s; }
.eq-bar:nth-child(8)  { animation-delay: 0.05s; }
.eq-bar:nth-child(9)  { animation-delay: 0.45s; }
.eq-bar:nth-child(10) { animation-delay: 0.3s; }
.eq-bar:nth-child(11) { animation-delay: 0.6s; }
.eq-bar:nth-child(12) { animation-delay: 0.2s; }
.eq-bar:nth-child(13) { animation-delay: 0.5s; }
.eq-bar:nth-child(14) { animation-delay: 0.35s; }

@keyframes eq {
  0%, 100% { height: 22%; }
  50% { height: 92%; }
}

/* ---------- Player ---------- */

.player {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 26px;
  align-items: center;
  background: linear-gradient(160deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

.player-cover {
  width: 132px;
  height: 132px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.player-cover svg {
  width: 44px;
  height: 44px;
  opacity: 0.9;
}

.player-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.player-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.player-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.2s;
}

.player-play:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.4);
}

.player-play svg {
  width: 20px;
  height: 20px;
  fill: #1a1205;
}

.player-track {
  flex: 1;
  min-width: 0;
}

.player-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  overflow: hidden;
}

.player-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--accent-grad);
  transition: width 0.3s linear;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Episode cards ---------- */

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.episode-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.episode-card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: rgba(255, 179, 71, 0.35);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.card-cover svg.wave {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 16, 22, 0.75);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s, transform 0.15s;
}

.card-play:hover {
  background: var(--accent-2);
  transform: scale(1.08);
}

.card-play svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.card-body {
  padding: 20px;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card-meta span + span::before {
  content: "•";
  margin-right: 10px;
}

/* Cover gradients */
.cover-1  { background: linear-gradient(135deg, #ff9a56, #ff5e78); }
.cover-2  { background: linear-gradient(135deg, #4facfe, #00c9fb); }
.cover-3  { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.cover-4  { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.cover-5  { background: linear-gradient(135deg, #fa709a, #fee140); }
.cover-6  { background: linear-gradient(135deg, #30cfd0, #330867); }
.cover-7  { background: linear-gradient(135deg, #667eea, #764ba2); }
.cover-8  { background: linear-gradient(135deg, #f83600, #f9d423); }
.cover-9  { background: linear-gradient(135deg, #0ba360, #3cba92); }
.cover-10 { background: linear-gradient(135deg, #eb3349, #f45c43); }
.cover-11 { background: linear-gradient(135deg, #4776e6, #8e54e9); }
.cover-12 { background: linear-gradient(135deg, #dd2476, #ff512f); }

/* ---------- Categories ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: transform 0.2s, border-color 0.2s;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 71, 0.4);
}

.category-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Newsletter ---------- */

.newsletter {
  background: linear-gradient(160deg, rgba(255, 122, 24, 0.12), rgba(255, 179, 71, 0.04));
  border: 1px solid rgba(255, 179, 71, 0.25);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.newsletter-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.newsletter-text {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 26px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(14, 16, 22, 0.6);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-msg {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.newsletter-msg.error { color: #ff7a7a; }
.newsletter-msg.ok { color: #7be495; }

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 18px;
}

.about-text p strong {
  color: var(--text);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
}

.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

.team-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.team-role {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ---------- Legal pages ---------- */

.legal-body h2 {
  font-size: 1.15rem;
  margin: 32px 0 10px;
  color: var(--accent);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: var(--muted);
  margin-bottom: 10px;
  max-width: 75ch;
}

.page-head {
  padding: 64px 0 8px;
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-sub {
  color: var(--muted);
  margin-top: 10px;
  max-width: 60ch;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 34ch;
}

.footer-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: var(--text);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(140%);
  width: min(680px, 92%);
  background: rgba(26, 31, 45, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  z-index: 200;
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--accent-grad);
  color: #1a1205;
}

.cookie-btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 160px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(14, 16, 22, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 4%;
    display: none;
  }

  .site-header.nav-open .main-nav {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 10px 6px;
  }

  .burger {
    display: grid;
  }

  .player {
    grid-template-columns: 1fr;
  }

  .player-cover {
    width: 100%;
    height: 120px;
  }

  .newsletter {
    padding: 32px 22px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eq-bar {
    animation: none;
    height: 45%;
  }

  html {
    scroll-behavior: auto;
  }
}
