/*
Theme Name: Mordcast – Rekonstruktion des Bösen
Theme URI: https://www.mordcast.de
Author: kreatix Studios
Author URI: https://www.kreatix.de
Description: Custom WordPress Theme für den True-Crime-Podcast "Mordcast – Rekonstruktion des Bösen"
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mordcast
*/

/* ===== VARIABLES ===== */
:root {
  --red: #C41E1E;
  --red-dark: #8B0000;
  --red-bright: #E63030;
  --red-blood: #6B0000;
  --black: #080808;
  --black-card: #111;
  --gray: #777;
  --gray-light: #AAA;
  --white: #E8E0D8;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: 'Inter', sans-serif; overflow-x: hidden; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--red-dark); }

/* ===== GRAIN OVERLAY ===== */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ===== NAV ===== */
nav.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 40px; height: 56px; display: flex; justify-content: space-between; align-items: center; background: rgba(8,8,8,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(196,30,30,0.1); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; }
.nav-title { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 4px; color: var(--white); text-transform: uppercase; }
.nav-title span { color: var(--red); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: #555; text-decoration: none; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--red); }

/* Hamburger-Button: unterhalb 768px sichtbar, ersetzt die dann versteckten .nav-links */
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 110; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; padding: 100px 20px 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 30%, rgba(107,0,0,0.25) 0%, transparent 60%),
  radial-gradient(ellipse at 20% 80%, rgba(139,0,0,0.1) 0%, transparent 40%),
  radial-gradient(ellipse at 80% 70%, rgba(100,0,0,0.08) 0%, transparent 40%);
  z-index: 0; }
.hero-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 200px rgba(0,0,0,0.8); z-index: 1; pointer-events: none; }
.hero-scanlines { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px); }
.hero-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 300px; background: linear-gradient(transparent, var(--black)); z-index: 2; pointer-events: none; }

.hero-logo { width: 200px; height: 200px; border-radius: 16px; box-shadow: 0 0 100px rgba(196,30,30,0.4), 0 0 40px rgba(139,0,0,0.6), 0 20px 60px rgba(0,0,0,0.7); position: relative; z-index: 3; animation: logoPulse 4s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { box-shadow: 0 0 100px rgba(196,30,30,0.4), 0 0 40px rgba(139,0,0,0.6), 0 20px 60px rgba(0,0,0,0.7); } 50% { box-shadow: 0 0 120px rgba(196,30,30,0.5), 0 0 60px rgba(139,0,0,0.7), 0 20px 60px rgba(0,0,0,0.7); } }

/* ===== GLITCH ===== */
.glitch-wrap { position: relative; z-index: 3; margin-top: 36px; }
.glitch { margin: 0; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(52px, 10vw, 110px); letter-spacing: 8px; text-transform: uppercase; line-height: 0.9; color: var(--white); position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.glitch::before { color: var(--red-bright); z-index: -1; animation: glitch1 4s infinite step-end; text-shadow: 2px 0 var(--red-dark); }
.glitch::after { color: var(--red-blood); z-index: -2; animation: glitch2 4s infinite step-end; text-shadow: -2px 0 var(--red); }
@keyframes glitch1 {
  0%,100% { clip-path: inset(0 0 96% 0); transform: translate(0); }
  5% { clip-path: inset(25% 0 50% 0); transform: translate(-8px, 0); }
  5.5% { clip-path: inset(25% 0 50% 0); transform: translate(8px, 0); }
  6% { clip-path: inset(0 0 96% 0); transform: translate(0); }
  40% { clip-path: inset(0 0 96% 0); transform: translate(0); }
  40.5% { clip-path: inset(60% 0 10% 0); transform: translate(10px, 0); }
  41% { clip-path: inset(60% 0 10% 0); transform: translate(-6px, 0); }
  41.5% { clip-path: inset(80% 0 5% 0); transform: translate(12px, 0); }
  42% { clip-path: inset(0 0 96% 0); transform: translate(0); }
  70% { clip-path: inset(0 0 96% 0); transform: translate(0); }
  70.3% { clip-path: inset(10% 0 70% 0); transform: translate(-12px, 0); }
  70.6% { clip-path: inset(10% 0 70% 0); transform: translate(6px, 2px); }
  70.9% { clip-path: inset(45% 0 30% 0); transform: translate(14px, 0); }
  71.2% { clip-path: inset(45% 0 30% 0); transform: translate(-8px, -1px); }
  71.5% { clip-path: inset(0 0 96% 0); transform: translate(0); }
}
@keyframes glitch2 {
  0%,100% { clip-path: inset(96% 0 0 0); transform: translate(0); }
  15% { clip-path: inset(96% 0 0 0); transform: translate(0); }
  15.3% { clip-path: inset(40% 0 30% 0); transform: translate(6px, 0); }
  15.6% { clip-path: inset(40% 0 30% 0); transform: translate(-10px, 0); }
  15.9% { clip-path: inset(70% 0 10% 0); transform: translate(8px, 1px); }
  16.2% { clip-path: inset(96% 0 0 0); transform: translate(0); }
  55% { clip-path: inset(96% 0 0 0); transform: translate(0); }
  55.3% { clip-path: inset(5% 0 80% 0); transform: translate(-14px, 0); }
  55.6% { clip-path: inset(5% 0 80% 0); transform: translate(10px, -1px); }
  55.9% { clip-path: inset(30% 0 45% 0); transform: translate(-6px, 0); }
  56.2% { clip-path: inset(30% 0 45% 0); transform: translate(12px, 2px); }
  56.5% { clip-path: inset(96% 0 0 0); transform: translate(0); }
  85% { clip-path: inset(96% 0 0 0); transform: translate(0); }
  85.3% { clip-path: inset(50% 0 20% 0); transform: translate(10px, 0); }
  85.6% { clip-path: inset(15% 0 60% 0); transform: translate(-12px, 0); }
  85.9% { clip-path: inset(96% 0 0 0); transform: translate(0); }
}

.hero-sub { font-family: 'Source Serif 4', serif; font-style: italic; font-weight: 300; font-size: clamp(15px, 2.5vw, 20px); color: var(--red); margin-top: 18px; letter-spacing: 2px; z-index: 3; position: relative; text-shadow: 0 0 20px rgba(196,30,30,0.3); }
.hero-divider { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); margin: 24px auto; z-index: 3; position: relative; }
.hero-tagline { font-size: 11px; color: #555; letter-spacing: 4px; text-transform: uppercase; z-index: 3; position: relative; }

.hero-cta { margin-top: 36px; display: flex; gap: 14px; z-index: 3; position: relative; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transform: translateX(-100%); transition: transform 0.5s; }
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { background: var(--red-bright); box-shadow: 0 0 30px rgba(196,30,30,0.4); }
.btn-ghost { background: transparent; color: #555; border: 1px solid rgba(255,255,255,0.08); }
.btn-ghost:hover { border-color: var(--red-dark); color: var(--red); }

/* ===== TAPE ===== */
.tape { position: relative; z-index: 5; transform: rotate(-1.2deg); margin: -6px -60px 0; height: 28px;
  background: repeating-linear-gradient(-45deg, var(--red) 0px, var(--red) 16px, var(--white) 16px, var(--white) 32px);
  box-shadow: 0 3px 16px rgba(0,0,0,0.5); }

/* ===== SECTIONS ===== */
section, .section-wrap { padding: 100px 40px; max-width: 1100px; margin: 0 auto; }
.section-label { font-family: 'Oswald', sans-serif; font-size: 10px; letter-spacing: 6px; color: var(--red-dark); text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(26px, 4vw, 40px); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.section-desc { font-family: 'Source Serif 4', serif; font-size: 16px; color: var(--gray); line-height: 1.8; max-width: 560px; }

/* ===== ABOUT ===== */
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; display: flex; justify-content: center; max-width: 100%; overflow-x: hidden; }
.about-img { width: 100%; max-width: 340px; border-radius: 8px; box-shadow: 0 0 60px rgba(139,0,0,0.25), 0 20px 50px rgba(0,0,0,0.5); position: relative; z-index: 1; }
.about-frame { position: absolute; inset: -12px; border: 1px solid rgba(196,30,30,0.15); border-radius: 12px; z-index: 0; }
.about-splatter { position: absolute; width: 200px; height: 200px; background: radial-gradient(circle, rgba(139,0,0,0.15) 0%, transparent 70%); border-radius: 50%; top: -40px; right: -40px; z-index: 0; filter: blur(20px); }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(196,30,30,0.08); max-width: 1100px; margin: 0 auto; position: relative; }
.stat { background: var(--black); padding: 40px 20px; text-align: center; }
.stat-num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 42px; color: var(--red); line-height: 1; }
.stat-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #444; margin-top: 8px; }

/* ===== EPISODE GRID ===== */
.episodes-header { text-align: center; margin-bottom: 50px; }
.episodes-header .section-desc { margin: 0 auto; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.ep-card { background: var(--black-card); border: 1px solid rgba(255,255,255,0.04); border-radius: 4px; padding: 28px; transition: all 0.4s; position: relative; overflow: hidden; cursor: pointer; text-decoration: none; color: var(--white); display: block; }
.ep-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--red); transition: height 0.4s; }
.ep-card::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 0; background: linear-gradient(270deg, rgba(139,0,0,0.06), transparent); transition: width 0.5s; }
.ep-card:hover { border-color: rgba(196,30,30,0.2); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(139,0,0,0.08); }
.ep-card:hover::before { height: 100%; }
.ep-card:hover::after { width: 60%; }
.ep-num { font-family: 'Oswald', sans-serif; font-size: 10px; letter-spacing: 5px; color: var(--red-dark); margin-bottom: 10px; }
.ep-title { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; position: relative; z-index: 1; }
.ep-subtitle { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 14px; color: #555; margin-bottom: 14px; position: relative; z-index: 1; }
.ep-tags { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.ep-tag { padding: 3px 8px; border: 1px solid rgba(255,255,255,0.06); border-radius: 2px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #444; }

/* Newest episode flicker */
.ep-card.is-newest {
  animation: flicker 6s infinite;
}
.ep-card.is-newest .ep-num::after {
  content: ' · NEU';
  color: var(--red-bright);
  font-weight: 600;
}
@keyframes flicker {
  0%,100% { opacity: 1; border-color: rgba(255,255,255,0.04); }
  3% { opacity: 0.6; border-color: rgba(196,30,30,0.4); }
  3.5% { opacity: 1; border-color: rgba(255,255,255,0.04); }
  4% { opacity: 0.75; border-color: rgba(196,30,30,0.3); }
  4.3% { opacity: 1; border-color: rgba(255,255,255,0.04); }
  50% { opacity: 1; border-color: rgba(255,255,255,0.04); }
  50.5% { opacity: 0.5; border-color: rgba(196,30,30,0.5); }
  51% { opacity: 0.85; border-color: rgba(196,30,30,0.2); }
  51.3% { opacity: 1; border-color: rgba(255,255,255,0.04); }
  51.6% { opacity: 0.7; border-color: rgba(196,30,30,0.35); }
  52% { opacity: 1; border-color: rgba(255,255,255,0.04); }
}

/* ===== HOST ===== */
.host-section { text-align: center; padding: 100px 40px; position: relative; }
.host-content { max-width: 580px; margin: 0 auto; }
.host-name { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 28px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 6px; }
.host-role { font-family: 'Source Serif 4', serif; font-style: italic; color: var(--red-dark); font-size: 14px; margin-bottom: 20px; }
.host-bio { font-family: 'Source Serif 4', serif; font-size: 16px; color: var(--gray); line-height: 1.8; }

/* ===== CTA ===== */
.cta-section { text-align: center; padding: 80px 40px; position: relative; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(107,0,0,0.12) 0%, transparent 60%); pointer-events: none; }
.cta-section h2 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 32px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px; position: relative; }
.cta-section p { font-family: 'Source Serif 4', serif; color: #555; font-size: 15px; margin-bottom: 28px; position: relative; }
.platform-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.platform-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 3px; color: #555; text-decoration: none; font-size: 12px; letter-spacing: 1px; transition: all 0.3s; font-family: 'Oswald', sans-serif; text-transform: uppercase; }
.platform-btn:hover { border-color: var(--red-dark); color: var(--red); background: rgba(139,0,0,0.06); }
.platform-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ===== FOOTER-ANMELDUNG (neue Folgen) ===== */
.footer-notify { padding: 50px 20px 40px; text-align: center; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-notify .section-label { margin-bottom: 10px; }
.footer-notify-desc { font-family: 'Source Serif 4', serif; font-size: 14px; color: #666; margin-bottom: 20px; }
.footer-notify-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 400px; margin: 0 auto; }
.footer-notify-form input[type=email] { flex: 1; min-width: 200px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; padding: 12px 15px; color: var(--white); font-family: 'Inter', sans-serif; font-size: 13px; }
.footer-notify-form input[type=email]::placeholder { color: #555; }
.footer-notify-form input[type=email]:focus { outline: none; border-color: var(--red-dark); background: rgba(255,255,255,0.05); }
.footer-notify-form button { padding: 12px 22px; background: var(--red); color: #fff; border: none; border-radius: 3px; font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; white-space: nowrap; }
.footer-notify-form button:hover { background: var(--red-bright); }
.footer-notify-msg { margin-top: 12px; font-family: 'Source Serif 4', serif; font-size: 13px; }
.footer-notify-msg.ok { color: #8FCBA5; }
.footer-notify-msg.err { color: #E89898; }
.footer-notify-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== FOOTER ===== */
.site-footer { padding: 30px 40px; text-align: center; border-top: 1px solid rgba(255,255,255,0.03); }
.site-footer p { font-size: 11px; color: #333; letter-spacing: 1px; }
.site-footer a { color: var(--red-dark); text-decoration: none; }

/* ===== SINGLE EPISODE ===== */
.single-episode { max-width: 800px; margin: 0 auto; padding: 120px 40px 80px; }
.single-episode .ep-hero { text-align: center; margin-bottom: 50px; }
.single-episode .ep-hero .ep-num { font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 6px; color: var(--red-dark); text-transform: uppercase; margin-bottom: 12px; }
.single-episode .ep-hero h1 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(32px, 5vw, 52px); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.single-episode .ep-hero .ep-subtitle { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 18px; color: #555; margin-bottom: 24px; }
.single-episode .ep-hero .ep-tags { justify-content: center; margin-bottom: 30px; }
.single-episode .ep-featured-img { width: 100%; max-height: 450px; object-fit: cover; border-radius: 6px; margin-bottom: 50px; box-shadow: 0 0 60px rgba(139,0,0,0.15), 0 20px 40px rgba(0,0,0,0.4); }
.single-episode .ep-content { font-family: 'Source Serif 4', serif; font-size: 17px; line-height: 1.9; color: var(--gray-light); }
.single-episode .ep-content p { margin-bottom: 1.5em; }
.single-episode .ep-content h2 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 24px; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin: 2em 0 0.8em; }
.single-episode .ep-content h3 { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 18px; color: var(--red); margin: 1.5em 0 0.6em; }
.single-episode .ep-content blockquote { border-left: 3px solid var(--red-dark); padding-left: 20px; margin: 2em 0; font-style: italic; color: #666; }

/* ===== ARCHIVE / ALL EPISODES PAGE ===== */
.archive-header { text-align: center; padding: 120px 40px 40px; }
.archive-header h1 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 42px; letter-spacing: 4px; text-transform: uppercase; }
.archive-header p { font-family: 'Source Serif 4', serif; color: var(--gray); font-size: 16px; margin-top: 12px; }
.archive-grid { max-width: 1100px; margin: 0 auto; padding: 20px 40px 80px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 1px; border: 1px solid rgba(255,255,255,0.06); border-radius: 3px; color: #555; text-decoration: none; transition: all 0.3s; }
.pagination a:hover { border-color: var(--red-dark); color: var(--red); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== EPISODEN-NAVIGATION (vorheriger/naechster Fall) ===== */
/* ── Karte zum Schauplatz ───────────────────────────────────────────
   Die Karte ist ein einziges, fertig gerendertes Bild. Dunkler
   Kartenstil, rote Lasur und das Ausblenden zum Rand sind bereits
   eingebacken (siehe app/map-render.php) - hier bleibt nur Rahmung,
   Marker und Koernung.

   Die Ausblendung zielt auf den Seitenhintergrund #080808. Wird der
   geaendert, muss MAP_BG in map-render.php mitgezogen und
   regenerate-maps.php ausgefuehrt werden. */
.ep-map { margin-top: 46px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.06); }
.ep-map-head { font-family: 'Oswald', sans-serif; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--red-dark); margin-bottom: 6px; }

.ep-map-frame {
  position: relative; width: 100%; height: 340px; overflow: hidden;
  border: 0; background: none;
}
.ep-map-img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.ep-map-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Marker: eigener Punkt mit pulsierendem Ring statt der gruenen
   OSM-Stecknadel. Bleibt bewusst im CSS, damit er sich bewegt. */
.ep-map-marker { position: absolute; top: 50%; left: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.ep-map-marker span { position: absolute; top: -5px; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 3px rgba(196,30,30,0.28), 0 0 26px 6px rgba(196,30,30,0.6); }
.ep-map-marker::before {
  content: ''; position: absolute; top: -24px; left: -24px; width: 48px; height: 48px;
  border: 1px solid rgba(196,30,30,0.5); border-radius: 50%;
  animation: mapPulse 3.6s ease-out infinite;
}
@keyframes mapPulse {
  0%   { transform: scale(0.4); opacity: 0.85; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-map-marker::before { animation: none; opacity: 0.45; }
}

.ep-map-open { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 22px; text-decoration: none; z-index: 4; }
.ep-map-open span {
  font-family: 'Oswald', sans-serif; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #6f6f6f; opacity: 0; transition: opacity 0.4s, color 0.4s;
}
.ep-map-frame:hover .ep-map-open span, .ep-map-open:focus-visible span { opacity: 1; }
.ep-map-open:hover span { color: var(--red); }

.ep-map-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 2px; }
.ep-map-label { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 14px; color: #6a6a6a; }
/* Die Attribution ist lizenzrechtlich Pflicht (ODbL 4.3) und muss gut
   lesbar sein - deshalb bewusst nicht weiter abgedunkelt, und der
   Verweis auf die Lizenzseite ist als Link erkennbar. */
.ep-map-credit { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.3px; color: #5a5a5a; }
.ep-map-credit a { color: #7a7a7a; text-decoration: underline; text-underline-offset: 2px; transition: color 0.3s; }
.ep-map-credit a:hover { color: var(--red); }

@media (max-width: 768px) {
  .ep-map-frame { height: 270px; }
  /* Auf dem Telefon gibt es kein Darueberfahren - Beschriftung
     dauerhaft zeigen, sonst weiss niemand, dass die Karte anklickbar ist. */
  .ep-map-open span { opacity: 1; font-size: 9.5px; letter-spacing: 2px; }
  .ep-map-foot { gap: 4px; }
  .ep-map-label { font-size: 13.5px; }
}

.ep-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.06); }
.ep-nav a { flex: 1; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--gray); transition: color 0.3s; max-width: 46%; }
.ep-nav a:hover { color: var(--red); }
.ep-nav .ep-nav-dir { font-family: 'Oswald', sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--red-dark); }
.ep-nav .ep-nav-title { font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1.3; }
.ep-nav .ep-nav-next { text-align: right; align-items: flex-end; margin-left: auto; }
@media (max-width: 640px) { .ep-nav { flex-direction: column; gap: 24px; } .ep-nav a { max-width: 100%; } .ep-nav .ep-nav-next { align-items: flex-start; text-align: left; } }

/* ===== BACK LINK ===== */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--red-dark); text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 30px; transition: color 0.3s; }
.back-link:hover { color: var(--red); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  nav.site-nav { padding: 0 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: flex; flex-direction: column; gap: 0; list-style: none;
    position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
    background: rgba(8,8,8,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196,30,30,0.15);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }
  .nav-links.is-open { max-height: 320px; opacity: 1; }
  .nav-links li { width: 100%; border-top: 1px solid rgba(255,255,255,0.05); }
  .nav-links a { display: block; padding: 18px 24px; font-size: 12px; letter-spacing: 3px; }
  .about-section { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-visual { order: -1; }
  .about-img { max-width: 200px; }
  section, .section-wrap { padding: 60px 16px; }
  .ep-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 150px; height: 150px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .single-episode { padding: 100px 20px 60px; }
  .archive-grid { padding: 20px 16px 60px; }
}

/* Fade in */
.fade-up { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
