/* ============================================
   pb4 CMS — stattZEITUNG.net Design
   ============================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --red-50: #FEF2F2;
  --red-100: #FDE8E8;
  --red-200: #FABCBC;
  --red-400: #E04545;
  --red-500: #C41E1E;
  --red-600: #9B1818;
  --red-700: #751212;
  --gray-0: #FFFFFF;
  --gray-50: #FAFAF8;
  --gray-100: #F2F0ED;
  --gray-200: #E0DDD8;
  --gray-300: #C5C0B8;
  --gray-400: #A09A90;
  --gray-500: #8A8680;
  --gray-600: #6B6660;
  --gray-700: #4A4640;
  --gray-800: #2E2B28;
  --gray-900: #1A1A1A;
  --green: #2C5F2D;
  --green-bg: #E8F5E9;

  /* Legacy aliases (used in templates/inline styles) */
  --yellow: var(--red-500);
  --yellow-hover: var(--red-600);
  --yellow-dark: var(--red-600);
  --black: var(--gray-900);
  --white: var(--gray-0);
  --footer-bg: var(--gray-900);

  /* Typography */
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', 'Arial', sans-serif;
  --font-heading: 'Source Serif 4', 'Georgia', serif;
  --serif: var(--font-heading);
  --sans: var(--font-body);

  /* Layout */
  --max-width: 1200px;
  --section-gap: 64px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.2s ease;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* DARK MODE — manual toggle via data-theme attribute */
[data-theme="dark"] {
  --gray-0: #1E1E1C;
  --gray-50: #141413;
  --gray-100: #1E1E1C;
  --gray-200: #3A3835;
  --gray-300: #4A4640;
  --gray-400: #6B6660;
  --gray-500: #8A8680;
  --gray-600: #A09A90;
  --gray-700: #C5C0B8;
  --gray-800: #E0DDD8;
  --gray-900: #E8E6E2;
  --red-500: #E04545;
  --red-600: #F28B8B;
  --footer-bg: #0a0a09;
}

/* Auto dark mode for users without manual toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --gray-0: #1E1E1C;
    --gray-50: #141413;
    --gray-100: #1E1E1C;
    --gray-200: #3A3835;
    --gray-300: #4A4640;
    --gray-400: #6B6660;
    --gray-500: #8A8680;
    --gray-600: #A09A90;
    --gray-700: #C5C0B8;
    --gray-800: #E0DDD8;
    --gray-900: #E8E6E2;
    --red-500: #E04545;
    --red-600: #F28B8B;
    --footer-bg: #0a0a09;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--gray-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-600); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
*:focus-visible { outline: 3px solid var(--red-500); outline-offset: 2px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   CONTENT GRID (main + sidebar)
   ============================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 40px 0;
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   HEADER (Sticky)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gray-0);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  border-bottom-color: transparent;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo — text wordmark */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--gray-900);
}
.logo em { font-style: normal; color: var(--red-500); }
.logo .logo-tld { font-weight: 400; color: var(--gray-500); font-size: 18px; }
.logo-icon {
  flex-shrink: 0;
  margin-right: 10px;
}
.logo-img {
  height: 32px;
  width: auto;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  padding: 4px 0;
  border-radius: 4px;
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--red-500);
}
.nav-links a[data-nav].active {
  color: var(--red-500);
}
.nav-links a[data-nav].active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red-500);
}
.nav-links .nav-spenden {
  background: var(--red-500);
  color: var(--gray-0) !important;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius);
}
.nav-links .nav-spenden:hover {
  background: var(--red-600);
  color: var(--gray-0) !important;
}
.nav-links .nav-spenden::after { display: none; }

/* Account link */
.nav-account {
  display: inline-flex;
  align-items: center;
}
.nav-account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red-100);
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* Search in header */
.nav-search {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: background var(--transition);
}
.nav-search:hover {
  background: var(--gray-200);
}

/* Dark mode toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition);
  margin-left: 4px;
}
.theme-toggle:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-icon-sun, .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
:root:not([data-theme="dark"]) .theme-icon-sun { display: none; }
:root:not([data-theme="dark"]) .theme-icon-moon { display: block; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-0);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
  min-height: 56px;
  text-decoration: none;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  color: var(--red-500);
}
.mobile-nav a svg {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}
.mobile-nav .mobile-nav-spenden {
  margin-top: 16px;
  background: var(--red-500);
  color: var(--gray-0) !important;
  font-weight: 700;
  border-radius: var(--radius);
  border-bottom: none;
  justify-content: center;
}
.mobile-nav .mobile-nav-spenden:hover {
  background: var(--red-600);
}

/* ============================================
   HERO (Homepage — Full-width background image)
   ============================================ */
.hero {
  position: relative;
  color: white;
  padding: 100px 0 80px;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(26,26,26,0.97) 0%, rgba(26,26,26,0.65) 45%, rgba(26,26,26,0.3) 100%),
    linear-gradient(90deg, rgba(26,26,26,0.5) 0%, transparent 70%);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-photo {
  display: none; /* Hidden in new design — hero uses background image */
}
.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-400);
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-eyebrow {
  color: var(--red-400);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.hero-content {
  flex: 1;
}
.hero-content h1,
.hero-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 760px;
  color: white;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-size: 16px;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 24px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Hero action row + CTA */
.hero-action-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}
.hero-cta, .hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--red-500);
  color: white;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: background var(--transition);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-cta:hover, .hero-btn:hover {
  background: var(--red-600);
  color: white;
}
.hero-cta svg { opacity: 0.7; }
.hero-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Social Proof */
.social-proof {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.social-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.social-proof-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}
.social-proof-item strong {
  color: var(--red-400);
  font-size: 17px;
  font-weight: 700;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-500);
  color: white;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  min-height: 48px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--red-600);
  color: white;
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.25);
  min-height: 48px;
  transition: border-color var(--transition), color var(--transition);
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--red-400);
  color: var(--red-400);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-gap) 24px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.section-header h1,
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-header h1::before,
.section-header h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--red-500);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red-500);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-link:hover { color: var(--red-600); }

/* Dark variants for sections on dark backgrounds */
.section-header-dark h2 { color: white; }
.section-header-dark h2::before { background: var(--red-400); }
.section-link-dark { color: var(--red-400); }

/* ============================================
   ARTICLE CARDS (Mockup style)
   ============================================ */
.article-card {
  background: var(--gray-0);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--gray-900);
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06); }
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
}
.card-body { padding: 20px; }
.card-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.card-excerpt { font-size: 14px; color: var(--gray-600); line-height: 1.5; margin-bottom: 12px; }
.card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray-400); align-items: center; }

/* Article list rows */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  text-decoration: none;
  color: var(--gray-900);
  transition: background 0.1s;
}
.article-row:hover { background: var(--gray-100); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--radius); }
.article-row:last-child { border-bottom: none; }
.row-img { width: 100px; height: 70px; border-radius: var(--radius); object-fit: cover; background: var(--gray-200); flex-shrink: 0; }
.row-body { flex: 1; min-width: 0; }
.row-category { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red-500); margin-bottom: 4px; }
.row-title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.row-meta { font-size: 12px; color: var(--gray-400); }

/* ============================================
   POSTS CAROUSEL
   ============================================ */
.posts-section {
  background: var(--gray-900);
  padding: var(--section-gap) 0;
}
[data-theme="dark"] .posts-section { background: #0a0a09; }
.posts-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.posts-inner .section-header h2 { color: white; }
.posts-inner .section-header h2::before { background: var(--red-400); }
.posts-inner .section-link { color: var(--red-400); }

.posts-carousel-wrap {
  position: relative;
}
.posts-carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 12px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--gray-900));
  pointer-events: none;
  z-index: 1;
}
[data-theme="dark"] .posts-carousel-wrap::after {
  background: linear-gradient(to right, transparent, #0a0a09);
}
.posts-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--red-500) transparent;
}
.posts-carousel::-webkit-scrollbar { height: 4px; }
.posts-carousel::-webkit-scrollbar-track { background: transparent; }
.posts-carousel::-webkit-scrollbar-thumb { background: var(--red-500); border-radius: 2px; }

.post-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--gray-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(196,30,30,0.15);
}
.post-card:first-child {
  flex: 0 0 400px;
}
.post-card-img {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}
.post-card:first-child .post-card-img {
  height: 220px;
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red-500);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-tag-en {
  background: var(--gray-0);
  color: var(--gray-900);
}
.post-card-body {
  padding: 16px 20px 20px;
}
.post-card-date {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.post-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: white;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:first-child .post-card-title {
  font-size: 20px;
  -webkit-line-clamp: 3;
}
.post-card-excerpt {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.carousel-btn:hover {
  background: var(--red-500);
  color: white;
}
.carousel-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   NEWSLETTER INLINE CTA
   ============================================ */
.newsletter-inline {
  background: var(--red-500);
  padding: 36px 0;
}
.newsletter-inline-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-inline-text {
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
}
.newsletter-inline-text span {
  display: block;
  font-weight: 400;
  font-size: 14px;
  opacity: 0.85;
  margin-top: 2px;
}
.newsletter-inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.newsletter-inline-form input {
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  width: 300px;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.15);
  color: white;
  min-height: 48px;
}
.newsletter-inline-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-inline-form input:focus {
  outline: none;
  border-color: white;
  background: rgba(255,255,255,0.2);
}
.newsletter-inline-form button {
  background: white;
  color: var(--red-600);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  min-height: 48px;
  transition: opacity var(--transition);
}
.newsletter-inline-form button:hover { opacity: 0.9; }

/* ============================================
   VIDEOS SECTION
   ============================================ */
.video-hero {
  display: block;
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
a.video-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(196,30,30,0.15);
  color: inherit;
}
.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.video-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.video-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6));
  z-index: 1;
}
.video-embed.playing::after { display: none; }
.play-btn {
  width: 72px;
  height: 72px;
  background: var(--red-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(196,30,30,0.35);
  border: 4px solid rgba(255,255,255,0.9);
  animation: playPulse 2.5s ease-in-out infinite;
  color: white;
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(196,30,30,0.35); transform: scale(1); }
  50% { box-shadow: 0 6px 40px rgba(196,30,30,0.55); transform: scale(1.06); }
}
.video-embed:hover .play-btn {
  animation: none;
  transform: scale(1.12);
  box-shadow: 0 8px 40px rgba(196,30,30,0.6);
}
@media (prefers-reduced-motion: reduce) {
  .play-btn { animation: none; }
}
.play-btn svg { width: 28px; height: 28px; margin-left: 3px; }
.video-info { padding: 20px 24px 24px; color: white; }
.video-label {
  color: var(--red-400);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.video-info h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.video-info h3 a { color: white; text-decoration: none; }
.video-info h3 a:hover { color: var(--red-400); }
.video-date {
  color: var(--gray-500);
  font-size: 14px;
}
.video-hero .video-card-views {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 6px;
}

/* Series Navigation Cards */
.series-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.series-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gray-0);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--gray-900);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
.series-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.series-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--gray-100);
}
.series-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.series-thumb-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-500);
  border-radius: 8px;
}
.series-thumb-icon svg {
  width: 32px;
  height: 32px;
  fill: white;
}
.series-info { flex: 1; min-width: 0; }
.series-info h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 4px;
}
.series-meta {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
  margin-bottom: 6px;
}
.series-latest {
  font-size: 12px;
  font-weight: 700;
  color: var(--red-500);
  opacity: 0.7;
  transition: opacity var(--transition);
}
.series-card:hover .series-latest { opacity: 1; }
.series-card:hover .series-info h3 { color: var(--red-500); }

/* External series card */
.series-card-external .series-thumb {
  border-radius: 0;
  background: transparent;
}
.series-card-external .series-thumb img {
  object-fit: contain;
}

/* Section link below */
.section-link-below {
  display: block;
  text-align: center;
  margin-top: 20px;
  border: none;
  padding: 0;
  min-height: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: none;
}
.section-link-below:hover {
  color: var(--red-500);
}

/* ============================================
   SPENDEN SECTION
   ============================================ */
.spenden-section {
  background: var(--gray-100);
  padding: var(--section-gap) 0;
}
.spenden-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.spenden-visual {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  display: flex;
  align-items: center;
  justify-content: center;
}
.spenden-visual svg {
  width: 48px;
  height: 48px;
  color: white;
}
.spenden-content { flex: 1; }
.spenden-content h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.2;
}
.spenden-desc {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 8px;
  line-height: 1.6;
}
.spenden-supporters {
  font-size: 14px;
  color: var(--red-600);
  font-weight: 700;
  margin-bottom: 20px;
}
.spenden-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red-500);
  color: white;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius);
  min-height: 48px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.spenden-btn:hover {
  background: var(--red-600);
  color: white;
  transform: translateY(-1px);
}
.spenden-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   NEWSLETTER FOOTER SECTION
   ============================================ */
.newsletter-footer {
  background: var(--gray-900);
  color: white;
  padding: var(--section-gap) 0;
}
[data-theme="dark"] .newsletter-footer { background: #0a0a09; }
.newsletter-footer-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.newsletter-footer h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin-bottom: 8px;
}
.newsletter-footer .nl-sub {
  font-size: 15px;
  opacity: 0.6;
  margin-bottom: 28px;
}
.nl-form-compact {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.nl-form-compact input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: white;
  font-family: var(--font-body);
  min-height: 48px;
  transition: border-color var(--transition);
}
.nl-form-compact input:focus {
  border-color: var(--red-500);
  outline: none;
}
.nl-form-compact button {
  background: var(--red-500);
  color: white;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  min-height: 48px;
  white-space: nowrap;
  transition: background var(--transition);
}
.nl-form-compact button:hover { background: var(--red-600); }
.nl-legal {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
}
.nl-legal a {
  text-decoration: underline;
  color: rgba(255,255,255,0.65);
}

/* ============================================
   SIDEBAR — Inline widgets
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  background: var(--gray-0);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
.widget-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: 16px;
}
.widget-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}
.widget-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  text-decoration: none;
  display: block;
  color: var(--gray-900);
}
.widget-item:last-child { border-bottom: none; }
.widget-item-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.widget-item-meta { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.widget-item:hover .widget-item-title { color: var(--red-500); }

/* Support widget */
.support-widget {
  background: linear-gradient(145deg, var(--red-500) 0%, var(--red-700) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  text-align: center;
  border: none;
  box-shadow: 0 8px 24px rgba(196,30,30,0.2);
  position: relative;
  overflow: hidden;
}
.support-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.support-widget h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.support-widget p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; line-height: 1.5; }
.support-btn {
  display: inline-block;
  background: white;
  color: var(--red-600);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s;
}
.support-btn:hover { transform: translateY(-1px); color: var(--red-700); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Legacy sticky sidebar — hidden now */
.sticky-sidebar { display: none; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--gray-500);
  padding: 64px 0 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-brand .logo {
  font-size: 20px;
  color: white;
}
.footer-brand p {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
  max-width: 300px;
}
.footer-links-grid {
  display: flex;
  gap: 48px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  padding: 4px 0;
  text-decoration: none;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { transform: translateY(-2px); }
.footer-social-telegram:hover { color: #26A5E4; background: rgba(38,165,228,0.12); }
.footer-social-facebook:hover { color: #1877F2; background: rgba(24,119,242,0.12); }
.footer-social-x:hover { color: #fff; background: rgba(255,255,255,0.15); }
.footer-social-rss:hover { color: #F26522; background: rgba(242,101,34,0.12); }
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--gray-500);
  text-decoration: none;
}
.footer-links a:hover { color: white; }

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 959px) {
  :root { --section-gap: 48px; }

  .nav-links { display: none; }
  .nav-search { display: none; }
  .theme-toggle { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 48px 0; min-height: 320px; }
  .hero-content h1,
.hero-inner h1 { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .hero-action-row {
    flex-direction: column;
    gap: 20px;
  }
  .hero-divider { display: none; }
  .social-proof { gap: 14px; }
  .social-proof-item { font-size: 12px; }
  .social-proof-item strong { font-size: 15px; }

  .post-card { flex: 0 0 300px; }
  .post-card:first-child { flex: 0 0 340px; }
  .post-card-img { height: 160px; }
  .post-card:first-child .post-card-img { height: 180px; }

  .newsletter-inline-inner { flex-direction: column; text-align: center; }
  .newsletter-inline-form { width: 100%; }
  .newsletter-inline-form input { width: 100%; flex: 1; }
  .newsletter-inline-form button { width: 100%; }

  .video-embed { aspect-ratio: 3/2; }
  .video-info h3 { font-size: 18px; }
  .series-nav { grid-template-columns: 1fr; gap: 10px; }
  .series-thumb { width: 56px; height: 56px; }
  .nl-form-compact { flex-direction: column; }
  .nl-form-compact button { width: 100%; }

  .spenden-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .spenden-visual { width: 96px; height: 96px; }
  .spenden-visual svg { width: 40px; height: 40px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-top { flex-direction: column; align-items: center; }
  .footer-links-grid { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   RESPONSIVE — Phone
   ============================================ */
@media (max-width: 480px) {
  :root { --section-gap: 40px; }

  .hero { padding: 32px 0 28px; }
  .hero-content h1,
.hero-inner h1 { font-size: 22px; }
  .hero-label, .hero-eyebrow { font-size: 10px; }
  .hero-desc { font-size: 14px; }
  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 14px; min-height: 44px; }

  .section-header { flex-direction: column; gap: 12px; }
  .section-header h1,
  .section-header h2 { font-size: 22px; }
  p { font-size: 16px; }

  .post-card { flex: 0 0 270px; }
  .post-card:first-child { flex: 0 0 300px; }
  .post-card-img { height: 140px; }
  .post-card:first-child .post-card-img { height: 160px; }

  .newsletter-inline-text { font-size: 16px; }

  .spenden-content h2 { font-size: 24px; }
  .spenden-btn { font-size: 15px; padding: 14px 28px; }

  .footer-social { flex-wrap: wrap; justify-content: center; }

  /* iOS auto-zoom prevention */
  input[type="text"],
  input[type="email"],
  input[type="search"],
  input[type="password"],
  textarea,
  select { font-size: 16px !important; }
}

/* PeerTube iframe responsive */
iframe[src*="theplattform.net"],
iframe[src*="peertube"],
.elementor-widget-video iframe {
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

/* ============================================
   ARTICLE CARDS GRID (Homepage 2-col inside content-grid)
   ============================================ */
.article-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .article-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SIDEBAR SOCIAL LINKS
   ============================================ */
.sidebar-social-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sidebar-social-link:hover { background: var(--gray-100); }
.sidebar-social-telegram svg { color: #26A5E4; }
.sidebar-social-facebook svg { color: #1877F2; }
.sidebar-social-x svg { color: var(--gray-900); }
.sidebar-social-rss svg { color: #F26522; }
.sidebar-social-telegram:hover { color: #26A5E4; }
.sidebar-social-facebook:hover { color: #1877F2; }
.sidebar-social-x:hover { color: var(--gray-900); }
.sidebar-social-rss:hover { color: #F26522; }

/* ============================================
   PeerTube Video-Embed responsive (Content)
   ============================================ */
.video-embed-inline { margin: 24px 0; }
.responsive-video { position: relative; width: 100%; }
.responsive-video iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 8px; }

/* Top video (first video pulled to top of article) */
.content-top-video { margin: 20px 0 28px; }
.content-top-video .video-embed-inline { margin: 0; }

/* Bottom media gallery (images + extra videos at end of article) */
.content-bottom-media { margin: 32px 0 24px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.content-bottom-media .image_container { margin: 16px 0; }
.content-bottom-media .video-embed-inline { margin: 16px 0; }

/* Content figure images */
.content-body figure { margin: 20px 0; }
.content-body figure img { width: 100%; height: auto; border-radius: 8px; }
.content-body figcaption { font-size: 13px; color: var(--gray-500); margin-top: 6px; font-style: italic; }

/* Legacy Contao classes from imported content */
.content-body .image_container img { width: 100%; height: auto; border-radius: 8px; }
.content-body .video_container { margin: 24px 0; }
.content-body .video_container .responsive { position: relative; width: 100%; }
.content-body .video_container .responsive iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 8px; }

/* ============================================
   SHARE BAR — Brand-colored icon buttons
   ============================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  margin: 24px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.share-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 8px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  background: var(--gray-100);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  padding: 0;
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover { transform: scale(1.1); }
.share-telegram:hover { color: #26A5E4; background: rgba(38,165,228,0.12); }
.share-x:hover { color: var(--gray-900); background: var(--gray-200); }
.share-facebook:hover { color: #1877F2; background: rgba(24,119,242,0.12); }
.share-linkedin:hover { color: #0A66C2; background: rgba(10,102,194,0.12); }
.share-reddit:hover { color: #FF4500; background: rgba(255,69,0,0.12); }
.share-email:hover { color: var(--red-500); background: var(--red-50); }
.share-copy:hover { color: var(--green); background: var(--green-bg); }
[data-theme="dark"] .share-btn { background: var(--gray-200); }
[data-theme="dark"] .share-x:hover { color: #fff; }

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   SECTION HEADER REFINEMENT
   ============================================ */
.section-header {
  margin-bottom: 28px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}
.section-header h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--red-500);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
}

/* ============================================
   FIX 1: TYPOGRAPHIC HIERARCHY — Article Header
   ============================================ */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}
.category-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-500);
  background: var(--red-50);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
[data-theme="dark"] .category-pill {
  background: rgba(224,69,69,0.15);
}
.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ============================================
   FIX 2: WHITESPACE RHYTHM — Article Body
   ============================================ */
.content-body {
  padding-top: 40px;
}
.content-body p {
  margin-bottom: 1.2em;
}
.content-body .audio-player {
  margin-bottom: 32px;
}
.content-body .share-bar {
  margin-top: 40px;
}
.content-body .comments-section {
  margin-top: 56px;
  padding-top: 40px;
}

/* ============================================
   FIX 4: SHARE BUTTONS — Force round shape
   ============================================ */
.share-bar .share-btn {
  border-radius: 50% !important;
}

/* ============================================
   FIX 5: NEWSLETTER CTA on article pages
   ============================================ */
.spenden-section + .newsletter-inline {
  margin-top: 0;
}

/* ============================================
   FIX 6a: RELATED CARDS — Subtle border
   ============================================ */
.posts-section .post-card {
  border: 1px solid rgba(255,255,255,0.06);
}

/* ============================================
   FIX 6b: AUDIO PLAYER — Subtle shadow
   ============================================ */
.audio-player {
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* ============================================
   FIX 6c: HOMEPAGE CARDS — Stronger shadow
   ============================================ */
.article-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
}
.article-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.07);
}
