/* ==========================================================================
   Liyoli Multi-Site — Haupt-CSS
   Token-getrieben: alle Farben/Fonts kommen aus den :root-Variablen,
   die im <head> von base.njk pro Marke injiziert werden.
   ========================================================================== */

/* ─── Fonts (lokal als WOFF2 — DSGVO-konform, KEIN Google Fonts CDN) ─────── */
/* Fonts werden je Marke unterschiedlich sein. Die Marke legt ihre WOFF2-Dateien
   unter /assets/fonts/ ab und trägt die @font-face-Regeln hier ein.
   Platzhalter für drownedlibrary: Cormorant Garamond + Source Serif 4
   (Download: https://fonts.google.com/download — als WOFF2 konvertieren)      */

/* @font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/CormorantGaramond-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/CormorantGaramond-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
} */


/* ─── Reset & Box-Model ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--color-bg-deep);
  color: var(--color-text);
  line-height: 1.7;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-light); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-gold-light); }
a:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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


/* ─── Typografie ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* Serif-Headline-Akzent: Gold-Farbgebung für markante Elemente */
.headline-accent { color: var(--color-gold); }


/* ─── Layout-Utilities ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose p, .prose li { line-height: 1.8; }
.prose a { color: var(--color-accent-light); }
.prose strong { color: var(--color-gold-light); }
.prose blockquote {
  border-left: 3px solid var(--color-gold);
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 1.5em 0;
}


/* ─── Skip-Link (A11y) ───────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-gold);
  color: var(--color-bg-deep);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }


/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

/* Logo */
.site-logo { text-decoration: none; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.03em;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: auto;
}
.nav-link {
  color: var(--color-text);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-link:hover { color: var(--color-gold); background: rgba(255,255,255,0.06); }
.nav-link--active { color: var(--color-gold); font-weight: 600; }

/* Sprachumschalter */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.lang-btn {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.lang-btn:hover { color: var(--color-gold); }
.lang-btn--active { color: var(--color-gold); cursor: default; }
.lang-separator { color: var(--color-border); font-size: 0.75rem; }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .lang-switcher { margin-left: 0; }
}


/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(300px, 50vw, 600px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-picture {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(11,26,30,0.9) 0%,
    rgba(11,26,30,0.6) 60%,
    rgba(11,26,30,0.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 700px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-headline {
  color: var(--color-text);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}
.hero-subline {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}


/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: none;
  min-height: 48px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  letter-spacing: 0.02em;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--color-gold);
  color: var(--color-bg-deep);
}
.btn--primary:hover {
  background: var(--color-gold-light);
  color: var(--color-bg-deep);
  box-shadow: 0 4px 16px rgba(201,162,39,0.35);
}
.btn--secondary {
  background: transparent;
  color: var(--color-accent-light);
  border: 2px solid var(--color-accent);
}
.btn--secondary:hover {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}
.btn--small { padding: 0.5rem 1.25rem; font-size: 0.85rem; min-height: 40px; }


/* ─── Karten-Grid ─────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.card-link { display: block; }

.card-image-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-surface);
  position: relative;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-image { transform: scale(1.03); }
.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg-surface);
}

.card-episode-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: var(--color-gold);
  color: var(--color-bg-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.card-duration::before { content: "· "; }
.card-title { font-size: 1.05rem; line-height: 1.3; }
.card-title-link { color: var(--color-text); text-decoration: none; }
.card-title-link:hover { color: var(--color-gold); }
.card-excerpt { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.5; }
.card-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-light);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.card-cta:hover { color: var(--color-gold); }

/* Preview-CTA Zentrierung */
.preview-cta { text-align: center; margin-top: 2.5rem; }

/* Section-Überschrift */
.section-headline {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 2rem;
  color: var(--color-text);
}
.section-headline::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--color-gold);
  margin-top: 0.5rem;
}


/* ─── Audio-Player ────────────────────────────────────────────────────────── */
.audio-player-wrap {
  margin: 2rem 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}
.audio-player {
  width: 100%;
  /* Nativer Player-Style-Override: begrenzte Cross-Browser-Anpassung */
  accent-color: var(--color-gold);
  height: 44px;
}
.also-on {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.82rem;
}
.also-on-label { color: var(--color-text-muted); margin-right: 0.25rem; }
.also-on-link {
  color: var(--color-accent-light);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-size: 0.78rem;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.also-on-link:hover { border-color: var(--color-accent-light); }


/* ─── Episoden-Detailseite ───────────────────────────────────────────────── */
.episode-detail {}
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  align-items: center;
}
.breadcrumb-item a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--color-accent-light); }
.breadcrumb-item--current { color: var(--color-text); }
.breadcrumb-separator { color: var(--color-border); }

.episode-header { margin-bottom: 1.5rem; }
.episode-number {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}
.episode-title { margin-bottom: 0.75rem; }
.episode-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.episode-image-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}
.episode-image { width: 100%; height: 100%; object-fit: cover; }
.episode-body { margin-top: 2rem; }
.transcript-link { margin-top: 1.5rem; }

/* Episoden-Navigation */
.episode-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.episode-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  padding: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  max-width: 48%;
  min-width: 200px;
  transition: border-color 0.2s;
}
.episode-nav-link:hover { border-color: var(--color-accent-light); }
.episode-nav-link--next { text-align: right; margin-left: auto; }
.episode-nav-direction { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.episode-nav-title { font-size: 0.9rem; color: var(--color-text); font-weight: 600; }


/* ─── Listen-Seite (Episodenliste) ──────────────────────────────────────── */
.list-header { margin-bottom: 2.5rem; }
.list-headline { color: var(--color-text); }
.list-description { color: var(--color-text-muted); max-width: 600px; margin-top: 0.75rem; }


/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  margin-top: auto;
}
.site-footer .container { display: flex; flex-direction: column; gap: 1.75rem; }
.footer-brand-name {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}
.footer-tagline { font-size: 0.85rem; color: var(--color-text-muted); }

.footer-listen {}
.footer-listen-label { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.footer-listen-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  min-height: 36px;
  transition: background 0.2s, border-color 0.2s;
}
.listen-btn:hover { border-color: var(--color-accent-light); color: var(--color-accent-light); }
.listen-btn--spotify:hover { background: #1db954; border-color: #1db954; color: #fff; }
.listen-btn--apple:hover { background: #fc3c44; border-color: #fc3c44; color: #fff; }
.listen-btn--rss:hover { background: #f26522; border-color: #f26522; color: #fff; }

.footer-social { }
.social-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
}
.social-link:hover { color: var(--color-accent-light); }

.footer-disclosure {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--color-accent);
}
.disclosure-text { font-size: 0.78rem; color: var(--color-text-muted); margin: 0; }

.footer-legal-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal-link { font-size: 0.82rem; color: var(--color-text-muted); text-decoration: none; }
.footer-legal-link:hover { color: var(--color-text); }

.footer-copyright { font-size: 0.75rem; color: var(--color-text-muted); }


/* ─── Impressum / Datenschutz ─────────────────────────────────────────────── */
.legal-page { padding: 4rem 0; }
.legal-page h1 { margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.legal-page p, .legal-page ul, .legal-page li { color: var(--color-text); line-height: 1.8; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page ul li { margin-bottom: 0.3rem; }
.legal-page a { color: var(--color-accent-light); }


/* ─── Sitemap.xml / Robots.txt: keine visuelle Darstellung ──────────────── */
