/**
 * BesserNews v3.0 – US Style Redesign
 * Clean Cards, Electric Blue Theme, Moderne Struktur
 */

:root {
  /* BesserNews v4.0 – Radical Modernization 2026 */
  /* Core Brand Colors */
  --bn-brand-primary: #6366f1; /* Indigo */
  --bn-brand-secondary: #ec4899; /* Pink */
  --bn-brand-accent: #f43f5e; /* Rose */
  
  /* Trending & Topic Colors */
  --bn-trend-tech: #3b82f6;
  --bn-trend-climate: #10b981;
  --bn-trend-lifestyle: #f59e0b;
  --bn-trend-world: #8b5cf6;
  --bn-trend-politics: #64748b; /* Deprioritized - muted slate */

  /* Modern Interface Colors */
  --bn-bg: #f8fafc; /* Cool Grey 50 */
  --bn-white: #ffffff;
  --bn-text: #0f172a; /* Slate 900 */
  --bn-text-muted: #64748b; /* Slate 500 */
  --bn-heading: #020617; /* Slate 950 */
  --bn-border: rgba(148, 163, 184, 0.15);
  
  /* Advanced Shadows */
  --bn-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --bn-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --bn-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --bn-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --bn-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --bn-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --bn-glow-primary: 0 0 20px rgba(99, 102, 241, 0.4);

  /* Modern Radius */
  --bn-radius-sm: 0.5rem;
  --bn-radius: 1rem;
  --bn-radius-lg: 1.5rem;
  --bn-radius-xl: 2rem;
  --bn-radius-2xl: 3rem;
  --bn-radius-full: 9999px;
  
  /* Typography */
  --bn-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bn-font-display: 'Poppins', var(--bn-font-sans);

  /* Spacing */
  --bn-space-xs: 0.5rem;
  --bn-space-sm: 1rem;
  --bn-space-md: 1.5rem;
  --bn-space-lg: 2.5rem;
  --bn-space-xl: 4rem;
  --bn-space-2xl: 6rem;

  /* Glassmorphism */
  --backdrop-blur: 24px;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);

  /* Legacy Mapping for Compatibility */
  --bn-blue: var(--bn-brand-primary);
  --bn-blue-light: #eff6ff;
  --bn-blue-dark: #4338ca;
  --primary-color: var(--bn-brand-primary);
  --card-background: var(--bn-white);
  --text-color: var(--bn-text);
  --heading-color: var(--bn-heading);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* stop global horizontal scrolling */
}

body {
  font-family: var(--bn-font-sans);
  background: var(--bn-bg);
  color: var(--bn-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* guard against layout shifts */
}

/* Header/Navigation - Modern Glassmorphism 2026 */
.bn-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid rgba(0, 122, 255, 0.08);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 20px rgba(0, 122, 255, 0.04);
}

.bn-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.75rem var(--bn-space-lg);
  gap: var(--bn-space-md);
}

.bn-nav-panel {
  display: flex;
  align-items: center;
  gap: var(--bn-space-lg);
  flex: 1;
}

.bn-nav-panel .bn-nav-center {
  flex: 1;
}

.bn-nav-panel .bn-nav-right {
  margin-left: auto;
}

.bn-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--bn-radius);
  border: 1px solid var(--bn-border);
  background: var(--bn-white);
  color: var(--bn-heading);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.35rem;
}

.bn-nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.bn-nav-toggle span+span {
  margin-top: 0;
}

.bn-nav-toggle:hover {
  border-color: var(--bn-blue);
  color: var(--bn-blue);
}

.bn-nav-toggle.is-active span:nth-child(1) {
  transform: translateY(0.55rem) rotate(45deg);
}

.bn-nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.bn-nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-0.55rem) rotate(-45deg);
}

.bn-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 900;
}

.bn-nav-overlay[hidden] {
  display: none;
}

body.bn-menu-open {
  overflow: hidden;
}

.bn-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.375rem 0.625rem;
  border-radius: var(--bn-radius);
  transition: all 0.2s ease;
}

.bn-logo-link:hover {
  background: rgba(0, 122, 255, 0.04);
}

.bn-logo-link img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.bn-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.bn-wordmark-top {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--bn-heading);
  line-height: 1;
}

.bn-wordmark-bottom {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--bn-blue);
  line-height: 1;
  margin-top: 0.125rem;
}

/* Subline "AI" positioned visually under the SS of BESSER (approximate) */
.bn-wordmark .bn-wordmark-ai {
  font-size: 0.6rem;
  font-weight: 900;
  color: #e50914;
  /* BesserAI Rot */
  line-height: 1;
  margin-left: 1.1rem;
  /* Optimiert für mittig unter SS */
  margin-top: 0.1rem;
  opacity: 0.85;
  display: none;
  /* Only shown in switcher when needed */
  letter-spacing: 0.1em;
}

.bn-wordmark.show-ai .bn-wordmark-ai {
  display: block;
}

/* Portal Switcher Dropdown */
.bn-portal-switcher[hidden] {
  display: none;
}

.bn-portal-switcher {
  position: absolute;
  top: 60px;
  left: 16px;
  z-index: 1100;
}

.bn-portal-switcher-inner {
  min-width: 280px;
  background: var(--bn-white);
  border: 1px solid var(--bn-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-radius: var(--bn-radius-xl);
  padding: var(--bn-space-md);
  animation: bnNavSlide 160ms ease-out;
}

.bn-portal-heading {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--bn-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--bn-space-sm);
}

.bn-portal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bn-portal-item {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: var(--bn-radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.bn-portal-item:hover,
.bn-portal-item:focus {
  background: var(--bn-bg);
  border-color: var(--bn-border);
  outline: none;
}

.bn-portal-item.is-active {
  background: linear-gradient(135deg, var(--bn-blue-light) 0%, #fff 100%);
  border-color: rgba(0, 122, 255, 0.25);
}

/* Portal-spezifische Farben */
.bn-portal-item[data-portal="news"] {
  background: linear-gradient(135deg, var(--bn-blue-light) 0%, #fff 100%);
  border-color: rgba(0, 122, 255, 0.2);
}

.bn-portal-item[data-portal="news"]:hover {
  background: var(--bn-blue);
  border-color: var(--bn-blue-dark);
}

.bn-portal-item[data-portal="news"]:hover .bn-portal-label-main,
.bn-portal-item[data-portal="news"]:hover .bn-portal-desc {
  color: var(--bn-white);
}

.bn-portal-item[data-portal="growen"] {
  background: linear-gradient(135deg, #faf5ff 0%, #fff 100%);
  border-color: rgba(139, 92, 246, 0.2);
}

.bn-portal-item[data-portal="growen"]:hover {
  background: #8b5cf6;
  border-color: #7c3aed;
}

.bn-portal-item[data-portal="growen"]:hover .bn-portal-label-main,
.bn-portal-item[data-portal="growen"]:hover .bn-portal-desc {
  color: var(--bn-white);
}

.bn-portal-item[data-portal="ai"] {
  background: linear-gradient(135deg, #fff1f2 0%, #fff 100%);
  border-color: rgba(229, 9, 20, 0.2);
}

.bn-portal-item[data-portal="ai"]:hover {
  background: #e50914;
  border-color: #b91c1c;
}

.bn-portal-item[data-portal="ai"]:hover .bn-portal-label-main,
.bn-portal-item[data-portal="ai"]:hover .bn-portal-desc {
  color: var(--bn-white);
}

.bn-portal-label-main {
  display: block;
  font-weight: 700;
  color: var(--bn-heading);
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
}

.bn-portal-label-main strong {
  font-weight: 900;
}

/* Farbige Highlights für Portalnamen */
.bn-portal-item[data-portal="news"] .bn-portal-label-main strong {
  color: var(--bn-blue);
}

.bn-portal-item[data-portal="growen"] .bn-portal-label-main strong {
  color: #8b5cf6;
}

.bn-portal-item[data-portal="ai"] .bn-portal-label-main strong {
  color: #e50914;
}

.bn-portal-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--bn-text-muted);
  margin-top: 0.25rem;
}

.bn-portal-close {
  margin-top: var(--bn-space-sm);
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: var(--bn-radius);
  border: 1px solid var(--bn-border);
  background: var(--bn-white);
  cursor: pointer;
}

/* Responsive: keep dropdown within nav width */
@media (max-width: 640px) {
  .bn-portal-switcher {
    left: var(--bn-space-lg);
    right: var(--bn-space-lg);
  }

  .bn-portal-switcher-inner {
    min-width: auto;
  }
}

/* Navigation Center - Temporal & Toggle */
.bn-nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.bn-nav-center .bn-nav-links {
  justify-content: center;
}

/* Desktop-only Sections dropdown (cleaner header) */
.bn-sections {
  position: relative;
}

.bn-sections-summary {
  list-style: none;
  user-select: none;
}

.bn-sections-summary::-webkit-details-marker {
  display: none;
}

.bn-sections-summary::after {
  content: '▾';
  font-size: 0.85em;
  margin-left: 0.5rem;
  opacity: 0.7;
}

.bn-sections-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--bn-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 6px 18px rgba(0, 122, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1200;
}

.bn-sections[open] .bn-sections-menu {
  display: flex;
  animation: bnNavSlide 160ms ease-out;
}

.bn-sections-menu .bn-nav-link {
  display: flex;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--bn-text);
  font-weight: 700;
}

.bn-sections-menu .bn-nav-link:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--bn-blue-dark);
}

/* Category links should live in the mobile drawer, not the desktop bar */
.bn-nav-links.bn-nav-links--mobile {
  display: none;
}

.bn-temporal {
  display: flex;
  align-items: center;
  gap: var(--bn-space-md);
}

.bn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--bn-blue-light) 0%, rgba(255, 247, 237, 0.8) 100%);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: var(--bn-radius-full);
  color: var(--bn-blue-dark);
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.08);
}

.bn-pill-weekday {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bn-pill-day {
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1;
}

.bn-pill-month {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bn-party-article-item {
  display: block;
  padding: var(--bn-space-md);
  border-bottom: 1px solid var(--bn-border);
  text-decoration: none;
  transition: background 0.2s ease;
}

.bn-party-article-item:last-child {
  border-bottom: none;
}

/* Visual-first party items with 16:9 media */
.bn-party-article-visual {
  padding: var(--bn-space-md) var(--bn-space-md) calc(var(--bn-space-md) + 2px);
}

.bn-pa-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--bn-radius-lg);
  overflow: hidden;
  background: var(--bn-bg);
  border: none;
  box-shadow: var(--bn-shadow-lg);
}

.bn-pa-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.25s ease;
}

.bn-party-article-item:hover .bn-pa-img {
  transform: scale(1.04);
  filter: brightness(1.02);
}

.bn-pa-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 90%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.bn-pa-meta {
  display: flex;
  align-items: center;
  gap: var(--bn-space-sm);
  font-size: 0.8125rem;
  color: var(--bn-text-muted);
  margin-top: var(--bn-space-sm);
}


.bn-pill:hover {
  background: var(--bn-blue);
  color: var(--bn-white);
  transform: translateY(-1px);
  box-shadow: var(--bn-shadow);
}

.bn-pill-weekday,
.bn-pill-day,
.bn-pill-month {
  font-variant-numeric: tabular-nums;
}

/* Mode Toggle – Lang/Kurz Switch */
.bn-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--bn-radius-full);
  border: 1px solid rgba(0, 122, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.bn-mode-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bn-text-muted);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.bn-mode-label:first-child {
  color: var(--bn-blue-dark);
}

.bn-mode-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.bn-mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bn-mode-slider {
  position: absolute;
  inset: 0;
  border-radius: var(--bn-radius-full);
  background: rgba(173, 181, 189, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-mode-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bn-white);
  left: 3px;
  top: 3px;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-mode-switch input:checked+.bn-mode-slider {
  background: linear-gradient(135deg, var(--bn-blue) 0%, var(--bn-blue-dark) 100%);
}

.bn-mode-switch input:checked+.bn-mode-slider::before {
  transform: translateX(24px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.bn-mode-switch input:checked~#bnModeLabelKurz,
.bn-mode-toggle:has(input:checked) .bn-mode-label:last-child {
  color: var(--bn-blue-dark);
}

.bn-mode-toggle:has(input:checked) .bn-mode-label:first-child {
  color: var(--bn-text-muted);
}

.bn-nav-right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* Cleaner icon-only action button (used for search) */
.bn-icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  gap: 0;
}

.bn-icon-btn span {
  display: none;
}

/* In the mobile drawer, show label again and use full-width button */
@media (max-width: 1200px) {
  .bn-nav-panel .bn-icon-btn {
    width: 100%;
    height: auto;
    padding: 0.625rem 1.125rem;
    border-radius: var(--bn-radius);
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .bn-nav-panel .bn-icon-btn span {
    display: inline;
  }
}

.bn-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--bn-radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bn-text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.bn-ghost-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.bn-ghost-btn:hover {
  background: linear-gradient(135deg,
      rgba(255, 247, 237, 0.95) 0%,
      rgba(255, 237, 213, 0.9) 100%);
  border-color: rgba(0, 122, 255, 0.4);
  color: var(--bn-blue-dark);
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(0, 122, 255, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bn-ghost-btn:hover i {
  transform: scale(1.1);
}

.bn-ghost-btn:active {
  transform: translateY(0);
}

/* Main Content */
.bn-main {
  padding: 120px 0 var(--bn-space-2xl) 0;
}

/* =====================================================
   Hero Minimal – BesserGrowen-Style Clean Design
   ===================================================== */
.bn-hero-minimal {
  text-align: center;
  padding: 80px 24px 60px;
  background: #fff;
  border-bottom: 1px solid var(--bn-border);
  position: relative;
  overflow: hidden;
}

.bn-hero-minimal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bn-hero-minimal-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Mode Toggle in Hero */
.bn-mode-toggle-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.bn-mode-toggle-hero .bn-mode-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bn-text);
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bn-mode-toggle-hero .bn-mode-label:first-child.active,
.bn-mode-toggle-hero .bn-mode-label:last-child.active {
  color: var(--bn-blue);
}

.bn-mode-toggle-hero .bn-mode-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
}

.bn-mode-toggle-hero .bn-mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bn-mode-toggle-hero .bn-mode-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e2e8f0;
  border-radius: 30px;
  transition: all 0.4s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bn-mode-toggle-hero .bn-mode-slider::before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(.68, -0.55, .27, 1.55);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.bn-mode-toggle-hero input:checked+.bn-mode-slider {
  background: linear-gradient(135deg, var(--bn-blue) 0%, #c2410c 100%);
}

.bn-mode-toggle-hero input:checked+.bn-mode-slider::before {
  transform: translateX(24px);
}

/* Wordmark Hero Title */
.bn-wordmark-hero {
  margin: 0 0 28px;
}

.bn-wordmark-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.bn-wordmark-top-hero {
  font-size: clamp(2.8rem, 6.4vw, 4.2rem);
  font-weight: 900;
  color: var(--bn-heading);
  display: inline-flex;
  align-items: center;
  gap: 0.35ch;
}

.bn-wordmark-bottom-hero {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 900;
  color: var(--bn-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4ch;
  transform: rotate(180deg);
  transform-origin: center;
}

.bn-wordmark-bottom-hero span {
  display: inline-block;
}

/* Hero Subtitle */
.bn-hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--bn-text);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Hero Badge */
.bn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--bn-blue-light) 0%, #fff 100%);
  color: var(--bn-blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--bn-radius-full);
  border: 1px solid rgba(0, 122, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.15);
}

.bn-hero-badge i {
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .bn-hero-minimal {
    padding: 60px 16px 40px;
  }

  .bn-wordmark-stack {
    letter-spacing: 0.18em;
  }

  .bn-wordmark-bottom-hero {
    transform: rotate(180deg) scale(0.92);
  }

  .bn-mode-toggle-hero {
    gap: 8px;
  }

  .bn-mode-toggle-hero .bn-mode-label {
    font-size: 0.85rem;
  }
}

/* sr-only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   Legacy Hero Section – Keep for backwards compat
   ===================================================== */
/* Hero Section – Enhanced with Animated Gradient */
.bn-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bn-space-2xl);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto var(--bn-space-2xl);
  padding: var(--bn-space-2xl) var(--bn-space-lg);
  min-height: 60vh;
  position: relative;
}

.bn-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-20px, -30px) scale(1.1);
  }
}

.bn-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--bn-space-md);
  animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.bn-language-chip {
  display: inline-block;
  width: fit-content;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--bn-blue-light) 0%, #fff 100%);
  color: var(--bn-blue-dark);
  font-size: 0.875rem;
  font-weight: 800;
  border-radius: var(--bn-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 122, 255, 0.2);
  animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards;
}

.bn-hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--bn-heading);
  margin: 0;
  animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

.bn-hero-title span:first-child {
  display: block;
  color: var(--bn-heading);
}

.bn-title-rotate {
  display: block;
  background: linear-gradient(135deg, var(--bn-blue) 0%, var(--bn-blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.bn-title-rotate::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, var(--bn-blue) 0%, transparent 100%);
  border-radius: 3px;
  animation: expandWidth 1s ease-out 0.5s backwards;
}

@keyframes expandWidth {
  0% {
    width: 0;
  }

  100% {
    width: 120px;
  }
}

.bn-hero-sub {
  font-size: 1.125rem;
  color: var(--bn-text-muted);
  line-height: 1.7;
  max-width: 540px;
  animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
}

.bn-hero-cta {
  display: flex;
  gap: var(--bn-space-md);
  margin-top: var(--bn-space-md);
  animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards;
}

.bn-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.bn-hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--bn-radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-hero-art:hover img {
  transform: scale(1.03) rotate(-1deg);
}

@media (max-width: 968px) {
  .bn-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-left: max(var(--bn-space-lg), env(safe-area-inset-left));
    padding-right: max(var(--bn-space-lg), env(safe-area-inset-right));
    overflow-x: hidden;
    /* ensure no accidental horizontal scroll from animations */
  }

  .bn-hero-content {
    align-items: center;
  }

  .bn-hero-sub {
    max-width: 100%;
  }

  .bn-hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Mobile horizontal overflow guard – ensures no child component forces width > viewport */
html,
body,
.bn-main,
.bn-header,
.bn-section,
.bn-hero,
.bn-ticker,
.bn-ticker-shell,
.bn-nav {
  max-width: 100%;
}

/* Prevent long ticker content / flex grids from causing horizontal scroll */
.bn-news-grid,
.bn-party-grid {
  overflow: hidden;
}

/* Defensive: images / media never exceed viewport width */
img,
video,
iframe {
  max-width: 100%;
}

/* Avoid animation transform pushing layout outside viewport on very small screens */
@media (max-width: 480px) {
  .bn-hero-title {
    word-break: break-word;
  }

  .bn-hero::before {
    right: -20%;
    width: 400px;
    height: 400px;
  }
}

/* Section – Enhanced with Modern Typography */
.bn-section {
  max-width: 1280px;
  margin: 0 auto var(--bn-space-2xl);
  padding: 0 var(--bn-space-lg);
  scroll-margin-top: 100px;
}

.bn-section-header {
  text-align: center;
  margin-bottom: var(--bn-space-xl);
  position: relative;
}

.bn-section-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.bn-section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--bn-heading);
  margin-bottom: var(--bn-space-sm);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.bn-section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--bn-blue) 50%, transparent 100%);
  border-radius: 2px;
}

.bn-section-sub {
  font-size: 1.125rem;
  color: var(--bn-text-muted);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.7;
}

.bn-badge {
  display: inline-block;
  padding: 0.5rem 1.125rem;
  background: linear-gradient(135deg, var(--bn-blue-light) 0%, #fff 100%);
  color: var(--bn-blue-dark);
  font-size: 0.8125rem;
  font-weight: 800;
  border-radius: var(--bn-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--bn-space-md);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 122, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.bn-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    left: -100%;
  }

  50% {
    left: 100%;
  }
}

/* Card Grid */
.bn-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--bn-space-lg);
}

@media (max-width: 768px) {
  .bn-card-grid {
    grid-template-columns: 1fr;
  }
}

/* News Card – 2025 High-Dopamin Gen-Z Media Portal Vibe 🔥 */
.bn-news-card {
  position: relative;
  background: var(--bn-card-bg);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  isolation: isolate;
  transform-origin: center;
  will-change: transform;
}

.bn-news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 122, 255, 0.03) 0%,
      rgba(0, 122, 255, 0) 50%,
      rgba(0, 122, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.bn-news-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 122, 255, 0.25),
    0 0 0 2px var(--bn-blue),
    0 0 40px rgba(0, 122, 255, 0.15);
  border-color: var(--bn-blue);
}

.bn-news-card:hover::before {
  opacity: 1;
}

.bn-news-card:active {
  transform: translateY(-6px) scale(1.01);
}

/* Image Container mit Gradient Overlay */
.bn-news-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #007AFF 0%, #ff9d5c 100%);
}

.bn-news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.4s ease;
  filter: brightness(0.95) contrast(1.05);
}

.bn-news-card:hover .bn-news-card-image {
  transform: scale(1.1) rotate(1deg);
  filter: brightness(1) contrast(1.1);
}

/* Gradient Overlay on Image */
.bn-news-card-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.05) 40%,
      rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.bn-news-card:hover .bn-news-card-image-wrapper::after {
  opacity: 0.7;
}

.bn-news-card-body {
  padding: var(--bn-space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--bn-space-md);
  flex: 1;
  position: relative;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 247, 237, 0.3) 100%);
}

.bn-news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--bn-space-sm);
  font-size: 0.8125rem;
  color: var(--bn-text-muted);
}

/* Category Badge – Floating on Image */
.bn-news-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: var(--bn-blue-dark);
  border-radius: var(--bn-radius-full);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 122, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-news-card-category::before {
  content: '●';
  color: var(--bn-blue);
  font-size: 0.625rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.bn-news-card:hover .bn-news-card-category {
  transform: translateY(-2px) scale(1.05);
  background: var(--bn-blue);
  color: var(--bn-white);
  box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

.bn-news-card:hover .bn-news-card-category::before {
  color: var(--bn-white);
}

/* Time Pill – Floating Bottom Right */
.bn-news-card-date {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: var(--bn-white);
  border-radius: var(--bn-radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-news-card-date i {
  font-size: 0.6875rem;
  opacity: 0.8;
}

.bn-news-card:hover .bn-news-card-date {
  transform: translateY(-2px) scale(1.05);
  background: var(--bn-blue);
  box-shadow: 0 8px 30px rgba(0, 122, 255, 0.5);
}

.bn-news-card-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--bn-heading);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.015em;
  transition: all 0.3s ease;
}

.bn-news-card-title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, var(--bn-blue) 0%, var(--bn-blue-dark) 100%);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s ease;
}

.bn-news-card:hover .bn-news-card-title a {
  background-size: 100% 3px;
  color: var(--bn-blue-dark);
}

.bn-news-card-excerpt {
  font-size: 1rem;
  color: var(--bn-text);
  line-height: 1.65;
  flex: 1;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.bn-news-card:hover .bn-news-card-excerpt {
  opacity: 1;
}

.bn-news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--bn-space-md);
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  margin-top: auto;
  gap: var(--bn-space-sm);
}

.bn-news-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--bn-text-muted);
  font-weight: 500;
}

.bn-news-card-author i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.bn-news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--bn-blue) 0%, var(--bn-blue-dark) 100%);
  color: var(--bn-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--bn-radius-full);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.bn-news-card-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%);
  transition: left 0.5s ease;
}

.bn-news-card-link:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.5);
  gap: 0.75rem;
}

.bn-news-card-link:hover::before {
  left: 100%;
}

.bn-news-card-link i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-news-card:hover .bn-news-card-link i {
  transform: translateX(2px);
}

/* Buttons – Enhanced 2025 Style */
.bn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--bn-radius-full);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.bn-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.bn-btn:hover::before {
  width: 300px;
  height: 300px;
}

.bn-btn i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-btn:hover i {
  transform: translateX(3px);
}

.bn-btn-primary {
  background: linear-gradient(135deg, var(--bn-blue) 0%, var(--bn-blue-dark) 100%);
  color: var(--bn-white);
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bn-btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bn-btn-primary:active {
  transform: translateY(-1px) scale(1.01);
}

.bn-btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--bn-blue-dark);
  border: 2px solid var(--bn-blue);
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.15);
}

.bn-btn-outline:hover {
  background: var(--bn-blue);
  color: var(--bn-white);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4);
}

.bn-btn-ghost {
  background: transparent;
  color: var(--bn-text);
  border: 1px solid var(--bn-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bn-btn-ghost:hover {
  background: var(--bn-blue-light);
  border-color: var(--bn-blue);
  color: var(--bn-blue-dark);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.2);
}

/* Footer */
.bn-footer {
  background: var(--bn-heading);
  color: #9ca3af;
  padding: var(--bn-space-2xl) 0 var(--bn-space-lg);
  margin-top: var(--bn-space-2xl);
}

.bn-footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--bn-space-lg);
}

.bn-footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--bn-space-xl);
  padding-bottom: var(--bn-space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bn-footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: var(--bn-space-sm);
}

.bn-footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 320px;
}

.bn-footer-links h4 {
  color: var(--bn-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--bn-space-sm);
}

.bn-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bn-footer-links li {
  margin-bottom: 0.5rem;
}

.bn-footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.bn-footer-links a:hover {
  color: var(--bn-blue);
}

.bn-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--bn-space-lg);
  font-size: 0.875rem;
}

.bn-footer-copy {
  color: #6b7280;
}

.bn-footer-social {
  display: flex;
  gap: var(--bn-space-sm);
}

.bn-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bn-footer-social a:hover {
  background: var(--bn-blue);
  color: var(--bn-white);
  transform: translateY(-2px);
}

/* Search Modal */
.bn-search {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bn-search[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.bn-search-shell {
  position: relative;
  background: var(--bn-white);
  border-radius: var(--bn-radius-xl);
  padding: var(--bn-space-xl);
  max-width: 600px;
  width: 90%;
  box-shadow: var(--bn-shadow-xl);
}

.bn-search-close {
  position: absolute;
  top: var(--bn-space-md);
  right: var(--bn-space-md);
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--bn-text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.bn-search-close:hover {
  color: var(--bn-blue);
}

.bn-search-form input {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  border: 2px solid var(--bn-border);
  border-radius: var(--bn-radius);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.bn-search-form input:focus {
  outline: none;
  border-color: var(--bn-blue);
}

.bn-search-hint {
  margin-top: var(--bn-space-md);
  font-size: 0.875rem;
  color: var(--bn-text-muted);
  text-align: center;
}

.bn-search-hint a {
  color: var(--bn-blue);
  text-decoration: none;
  font-weight: 600;
}

.bn-search-hint a:hover {
  text-decoration: underline;
}

/* Section Actions */
.bn-section-actions {
  text-align: center;
  margin-top: var(--bn-space-xl);
}

/* Empty States */
.bn-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--bn-text-muted);
}

.bn-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.bn-empty-icon-orange {
  color: var(--bn-blue);
}

.bn-empty-state p {
  margin: 0;
}

.bn-empty-subtext {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.bn-empty-link {
  color: var(--bn-blue);
  text-decoration: none;
  font-weight: 600;
}

.bn-empty-link:hover {
  text-decoration: underline;
}

/* 🔶 BesserNews Ticker – Scroll von links nach rechts 🔶 */
@keyframes bn-ticker-move {
  0% {
    /* Start: Track halb nach links versetzt */
    transform: translateX(-50%);
  }
  100% {
    /* Ende: Track wieder bündig (Bewegung nach rechts) */
    transform: translateX(0%);
  }
}

.bn-ticker {
  position: relative;
  height: 40px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bn-ticker-shell {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.bn-ticker-row {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: bn-ticker-move 180s linear infinite;
}

.bn-ticker-row.is-animating {
  animation: bn-ticker-move 180s linear infinite;
}

.bn-ticker:hover .bn-ticker-row.is-animating {
  animation-play-state: paused;
}

.bn-ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.bn-ticker-item:hover {
  color: var(--bn-blue-dark);
}

.bn-ticker-item::after {
  content: '•';
  color: rgba(0, 122, 255, 0.3);
  margin-left: 24px;
}

.bn-ticker-label {
  background: var(--bn-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.bn-ticker-text {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* Auf kleineren Screens engeres Layout */
@media (max-width: 768px) {
  .bn-ticker {
    height: 36px;
  }

  .bn-ticker-item {
    font-size: 11.5px;
    padding: 0 14px;
  }

  .bn-ticker-item::after {
    margin-left: 16px;
  }

  .bn-ticker-label {
    font-size: 9px;
    padding: 2px 6px;
  }
}

/* Mobile Responsiveness - Optimiert */
@media (max-width: 1200px) {
  .bn-nav {
    position: relative;
    align-items: center;
    padding: 0.75rem var(--bn-space-md);
  }

  .bn-logo-link img {
    height: 28px;
  }

  .bn-wordmark-top,
  .bn-wordmark-bottom {
    font-size: 0.8125rem;
  }

  .bn-nav-panel {
    display: none;
    position: fixed;
    top: calc(4.5rem + env(safe-area-inset-top));
    left: 50%;
    transform: translate(-50%, -10px);
    width: min(calc(100vw - 2.5rem), 420px);
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--bn-radius-xl);
    padding: var(--bn-space-lg);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.15),
      0 8px 20px rgba(0, 122, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.6);
    flex-direction: column;
    gap: var(--bn-space-lg);
    z-index: 1100;
  }

  /* Prevent background scroll when menu open on iOS/Android */
  body.bn-menu-open {
    position: fixed;
    width: 100%;
  }

  .bn-nav.is-open .bn-nav-panel {
    display: flex;
    animation: bnNavSlide 0.25s ease;
    transform: translate(-50%, 0);
  }

  .bn-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .bn-nav-center {
    flex-direction: column;
    gap: var(--bn-space-md);
    justify-content: center;
    text-align: center;
  }

  .bn-nav .bn-temporal {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--bn-space-sm);
  }

  .bn-nav-right {
    flex-direction: column;
    gap: var(--bn-space-sm);
  }

  .bn-nav-right .bn-ghost-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .bn-footer-main {
    grid-template-columns: 1fr;
    gap: var(--bn-space-lg);
  }

  .bn-footer-bottom {
    flex-direction: column;
    gap: var(--bn-space-sm);
    text-align: center;
  }
}

@keyframes bnNavSlide {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Party Accent Utilities */
.party-accent {
  border-left: none;
  border-top: 3px solid var(--party-accent, var(--bn-blue));
}

.party-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--bn-radius);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--party-accent-light, var(--bn-blue-light));
  color: var(--party-accent-dark, var(--bn-blue-dark));
}

.party-card-header {
  background: linear-gradient(135deg, var(--party-accent-light, var(--bn-blue-light)) 0%, var(--bn-white) 100%);
  border-bottom: 2px solid var(--party-accent, var(--bn-blue));
}

/* Individual Party Themes */
[data-party="coalition"] {
  --party-accent: var(--party-coalition);
  --party-accent-light: var(--party-coalition-light);
  --party-accent-dark: var(--party-coalition-dark);
}

[data-party="afd"] {
  --party-accent: var(--party-afd);
  --party-accent-light: var(--party-afd-light);
  --party-accent-dark: var(--party-afd-dark);
}

[data-party="gruene"] {
  --party-accent: var(--party-gruene);
  --party-accent-light: var(--party-gruene-light);
  --party-accent-dark: var(--party-gruene-dark);
}

[data-party="fdp"] {
  --party-accent: var(--party-fdp);
  --party-accent-light: var(--party-fdp-light);
  --party-accent-dark: var(--party-fdp-dark);
}

[data-party="linke"] {
  --party-accent: var(--party-linke);
  --party-accent-light: var(--party-linke-light);
  --party-accent-dark: var(--party-linke-dark);
}

[data-party="bsw"] {
  --party-accent: var(--party-bsw);
  --party-accent-light: var(--party-bsw-light);
  --party-accent-dark: var(--party-bsw-dark);
}

[data-party="cdu"] {
  --party-accent: var(--party-cdu);
  --party-accent-light: var(--party-cdu-light);
  --party-accent-dark: var(--party-cdu-dark);
}

[data-party="spd"] {
  --party-accent: var(--party-spd);
  --party-accent-light: var(--party-spd-light);
  --party-accent-dark: var(--party-spd-dark);
}

/* Party Statement Boxes (für Multi-Perspektiven-Artikel) */
.party-statement {
  background: var(--party-accent-light);
  border-left: 4px solid var(--party-accent);
  padding: var(--bn-space-md);
  border-radius: var(--bn-radius);
  margin: var(--bn-space-md) 0;
}

.party-statement-header {
  display: flex;
  align-items: center;
  gap: var(--bn-space-sm);
  margin-bottom: var(--bn-space-sm);
  color: var(--party-accent-dark);
  font-weight: 700;
}

.party-statement-icon {
  font-size: 1.25rem;
}

/* Inactive Party Notice */
.party-inactive-notice {
  background: var(--bn-blue-light);
  border: 2px solid var(--bn-blue);
  border-radius: var(--bn-radius-lg);
  padding: var(--bn-space-lg);
  margin: var(--bn-space-xl) 0;
  text-align: center;
}

.party-inactive-notice h3 {
  color: var(--bn-blue-dark);
  margin-bottom: var(--bn-space-sm);
}

.party-inactive-notice p {
  color: var(--bn-text);
  line-height: 1.6;
}

.bn-link {
  color: var(--bn-blue);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

.bn-link:hover {
  color: var(--bn-blue-dark);
}

/* ========== PARTY FEED COMPONENTS ========== */

/* Party Grid Layout */
.bn-party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--bn-space-xl);
  margin-top: var(--bn-space-xl);
}

@media (max-width: 768px) {
  .bn-party-grid {
    grid-template-columns: 1fr;
    gap: var(--bn-space-lg);
  }
}

/* Individual Party Feed Card */
.bn-party-feed {
  background: var(--bn-card-bg);
  border-radius: var(--bn-radius-lg);
  box-shadow: var(--bn-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bn-party-feed:hover {
  transform: translateY(-4px);
  box-shadow: var(--bn-shadow-lg);
}

/* Party Header */
.bn-party-header {
  padding: var(--bn-space-lg);
  border-bottom: 2px solid var(--party-accent, var(--bn-blue));
}

.bn-party-title-row {
  display: flex;
  align-items: center;
  gap: var(--bn-space-sm);
  margin-bottom: var(--bn-space-sm);
}

.bn-party-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bn-heading);
  margin: 0;
}

.bn-party-tagline {
  font-size: 0.9375rem;
  color: var(--bn-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Party Articles List */
.bn-party-articles {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bn-party-article-item {
  display: block;
  padding: var(--bn-space-md);
  border-bottom: 1px solid var(--bn-border);
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.3s ease;
}

.bn-party-article-item:hover {
  background: var(--party-accent-light, var(--bn-blue-light));
  padding-left: calc(var(--bn-space-md) + 0.5rem);
}

.bn-party-article-item:last-child {
  border-bottom: none;
}

/* New: compact row with small image thumbnail */
.bn-party-article-row {
  display: flex;
  align-items: flex-start;
  gap: var(--bn-space-md);
}

.bn-party-article-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bn-bg);
  border: 1px solid var(--bn-border);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .bn-party-article-thumb {
    width: 56px;
    height: 56px;
  }
}

.bn-party-article-text {
  flex: 1;
  min-width: 0;
}

.bn-party-article-meta {
  display: flex;
  align-items: center;
  gap: var(--bn-space-sm);
  font-size: 0.8125rem;
  color: var(--bn-text-muted);
  margin-bottom: 0.375rem;
}

.bn-party-article-category {
  padding: 0.125rem 0.5rem;
  background: var(--party-accent-light, var(--bn-blue-light));
  color: var(--party-accent-dark, var(--bn-blue-dark));
  border-radius: var(--bn-radius);
  font-weight: 600;
  font-size: 0.75rem;
}

.bn-party-article-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bn-heading);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.bn-party-article-item:hover .bn-party-article-title {
  color: var(--party-accent-dark, var(--bn-blue-dark));
}

.bn-party-article-excerpt {
  font-size: 0.875rem;
  color: var(--bn-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Party Footer */
.bn-party-footer {
  padding: var(--bn-space-md);
  background: var(--bn-bg);
  border-top: 1px solid var(--bn-border);
}

/* Coalition News Grid (Standard News Grid) */
.bn-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--bn-space-xl);
  margin-top: var(--bn-space-xl);
}

@media (max-width: 768px) {
  .bn-news-grid {
    grid-template-columns: 1fr;
    gap: var(--bn-space-lg);
  }
}

/* Updated News Card for Party Context */
.bn-news-card {
  background: var(--bn-card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--bn-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bn-news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bn-shadow-xl);
  border-color: var(--party-accent, var(--bn-blue));
}

/* Subtile Glow für bestimmte Kategorien */
.bn-news-card[data-category="innere-sicherheit"]:hover,
.bn-news-card[data-category="security"]:hover {
  box-shadow: 0 24px 64px rgba(0, 122, 255, 0.15), 0 0 32px rgba(0, 122, 255, 0.08);
}

.bn-news-card[data-category="analyse"]:hover {
  box-shadow: 0 24px 64px rgba(139, 92, 246, 0.15), 0 0 32px rgba(139, 92, 246, 0.08);
}

.bn-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bn-card-image {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* Skeleton Loading State */
.bn-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeleton-shimmer 1.5s infinite;
  z-index: 1;
  pointer-events: none;
}

.bn-card-image img {
  position: relative;
  z-index: 2;
}

@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.bn-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bn-news-card:hover .bn-card-image img {
  transform: scale(1.08);
}

.bn-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.375rem 0.875rem;
  background: rgba(139, 92, 246, 0.95);
  color: white;
  border-radius: var(--bn-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4), 0 0 16px rgba(139, 92, 246, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bn-news-card:hover .bn-card-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5), 0 0 24px rgba(139, 92, 246, 0.3);
}

.bn-badge-featured {
  background: rgba(229, 9, 20, 0.95);
}

.bn-card-content {
  padding: var(--bn-space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--bn-space-sm);
  flex: 1;
}

.bn-card-category {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--party-accent, var(--bn-blue));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--party-accent-light, rgba(0, 122, 255, 0.1));
  border-radius: var(--bn-radius-full);
  transition: all 0.2s ease;
}

.bn-news-card:hover .bn-card-category {
  background: var(--party-accent, var(--bn-blue));
  color: white;
  transform: translateX(2px);
}

.bn-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bn-heading);
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
}

.bn-news-card:hover .bn-card-title {
  color: var(--party-accent-dark, var(--bn-blue-dark));
}

.bn-card-excerpt {
  font-size: 0.9375rem;
  color: var(--bn-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.bn-card-meta {
  font-size: 0.8125rem;
  color: var(--bn-text-muted);
  padding-top: var(--bn-space-sm);
  border-top: 1px solid var(--bn-border);
}

/* Section Footer */
.bn-section-footer {
  margin-top: var(--bn-space-xl);
  text-align: center;
}

/* Button Utilities */
.bn-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Generic Layout Containers (for Impressum, Datenschutz, etc.) */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

article {
  background: var(--bn-card-bg);
  padding: 40px;
  border-radius: var(--bn-radius-lg);
  box-shadow: var(--bn-shadow-lg);
  border: 1px solid var(--bn-border);
}

article h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--bn-heading);
  letter-spacing: -0.02em;
}

article h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--bn-heading);
}

article p {
  margin-bottom: 1rem;
  color: var(--bn-text);
  font-size: 1.1rem;
  line-height: 1.7;
}

article a {
  color: var(--bn-blue);
  text-decoration: none;
  font-weight: 600;
}

article a:hover {
  text-decoration: underline;
}

/* 
 * Modern Coalition Card Redesign 
 * Matches "BesserGrowen" / Modern Party Style
 * Removes "white box", adds rounded images, cleaner look
 */
/* 
 * Modern Coalition Carousel (One-Liner)
 * Compact, Full-Width Images, Author Pic, Auto-Scroll
 */
.bn-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--bn-space-sm) 0 var(--bn-space-xl);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.bn-carousel-track {
  display: flex;
  gap: var(--bn-space-md);
  width: max-content;
  animation: bn-scroll-right 240s linear infinite;
  animation-delay: 5s;
  /* Start nach 5 Sekunden damit man ersten Artikel lesen kann */
}

.bn-carousel-track:hover {
  animation-play-state: paused;
}

@keyframes bn-scroll-right {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.bn-carousel-card {
  width: 400px;
  flex-shrink: 0;
  background: transparent;
  border-radius: var(--bn-radius);
  transition: transform 0.3s ease;
}

.bn-carousel-card:hover {
  transform: translateY(-4px);
}

.bn-carousel-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Full Width 16:9 Image */
.bn-carousel-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--bn-radius);
  overflow: hidden;
  box-shadow: var(--bn-shadow);
}

.bn-carousel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bn-carousel-card:hover .bn-carousel-media img {
  transform: scale(1.05);
}

/* Compact Badge */
.bn-badge-compact {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--bn-radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bn-badge-2-0 {
  background: rgba(255, 255, 255, 0.9);
  color: #e50914;
}

.bn-badge-top {
  background: rgba(229, 9, 20, 0.9);
  color: white;
}

/* Content */
.bn-carousel-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bn-carousel-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bn-text-muted);
  gap: 0.75rem;
}

.bn-carousel-cat {
  color: var(--bn-blue);
  text-transform: uppercase;
}

.bn-carousel-time {
  white-space: nowrap;
  font-weight: 600;
}

.bn-carousel-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--bn-heading);
  margin: 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bn-carousel-desc {
  font-size: 0.9rem;
  color: var(--bn-text-muted);
  line-height: 1.55;
  margin: 0.25rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Author Section */
.bn-carousel-footer {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}

.bn-carousel-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bn-carousel-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bn-bg);
  border: 1px solid var(--bn-border);
}

.bn-carousel-author span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bn-text-muted);
}

/* Carousel Controls */
.bn-carousel-controls {
  position: absolute;
  top: var(--bn-space-sm);
  right: var(--bn-space-sm);
  z-index: 20;
}

.bn-stop-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--bn-heading);
  border: 1px solid var(--bn-border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--bn-radius-full);
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: var(--bn-shadow-sm);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bn-stop-btn:hover {
  background: var(--bn-blue);
  color: white;
  border-color: var(--bn-blue);
  transform: scale(1.05);
}

.bn-stop-btn i {
  font-size: 0.6rem;
}

/* Navigation Arrows (Hidden by default) */
.bn-carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--bn-space-xs);
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bn-carousel-wrapper.is-stopped .bn-carousel-nav {
  opacity: 1;
}

.bn-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--bn-border);
  color: var(--bn-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--bn-shadow);
  transition: all 0.2s ease;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.bn-nav-btn:hover {
  background: var(--bn-blue);
  color: white;
  border-color: var(--bn-blue);
  transform: scale(1.1);
}

/* Stopped / Native Scroll State */
.bn-carousel-wrapper.is-stopped .bn-carousel-track {
  animation: none;
}

.bn-carousel-wrapper.is-native-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  /* Hide scrollbar but allow scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bn-carousel-wrapper.is-native-scroll::-webkit-scrollbar {
  display: none;
}

.bn-carousel-wrapper.is-native-scroll .bn-carousel-track {
  width: max-content;
  transform: none !important;
  padding-left: var(--bn-space-sm);
  padding-right: var(--bn-space-sm);
}


/* Clock Pill Styles */
.bn-clock-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 122, 255, 0.15);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
}

.bn-clock {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bn-text);
  font-variant-numeric: tabular-nums;
}

.bn-doy {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bn-ticker-meta {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .bn-clock-pill {
    display: none;
  }

  .bn-ticker-meta {
    display: none;
  }
}

/* =====================================================
   BesserNews v3.0 – Enhanced Responsive Menu
   ===================================================== */

/* Tablet & Mobile Responsive */
@media (max-width: 1024px) {
  .bn-nav {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .bn-temporal {
    gap: 0.5rem;
  }

  .bn-mode-toggle {
    padding: 0.375rem 0.625rem;
  }

  .bn-mode-label {
    font-size: 0.7rem;
  }

  .bn-mode-switch {
    width: 40px;
    height: 20px;
  }

  .bn-mode-slider::before {
    width: 14px;
    height: 14px;
  }

  .bn-mode-switch input:checked+.bn-mode-slider::before {
    transform: translateX(20px);
  }

  .bn-pill {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .bn-ghost-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
  }

  .bn-ghost-btn span {
    display: none;
  }
}

@media (max-width: 640px) {
  .bn-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .bn-logo-link {
    flex: 0 0 auto;
  }

  .bn-nav-center {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }

  .bn-temporal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .bn-nav-right {
    flex: 0 0 auto;
    gap: 0.5rem;
  }

  .bn-pill {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
  }

  .bn-mode-toggle {
    padding: 0.25rem 0.5rem;
    gap: 0.375rem;
  }

  .bn-mode-switch {
    width: 32px;
    height: 16px;
  }

  .bn-mode-slider::before {
    width: 12px;
    height: 12px;
    left: 2px;
    top: 2px;
  }

  .bn-mode-switch input:checked+.bn-mode-slider::before {
    transform: translateX(16px);
  }

  .bn-ghost-btn {
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
  }

  .bn-ticker {
    font-size: 0.65rem;
    padding: 6px 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * 📰 RELATED ARTICLES – YouTube-Style Playlist Component
 * BesserNews v3.0 – Parteien-optimiertes Empfehlungssystem
 * ═══════════════════════════════════════════════════════════════════════════ */

.bn-related-section {
  margin-block-start: var(--bn-space-xl);
  padding-block-start: var(--bn-space-lg);
  border-top: 1px solid var(--bn-border);
}

.bn-related-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bn-heading);
  margin-block-end: var(--bn-space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bn-related-section h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background: var(--party-color, var(--bn-blue));
  border-radius: 2px;
}

/* Related Grid – 3 Columns Desktop */
.bn-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Related Card – YouTube-Style */
.bn-related-card {
  display: flex;
  flex-direction: column;
  background: var(--bn-card-bg);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--bn-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.bn-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bn-shadow);
  border-color: var(--party-color, var(--bn-blue));
}

.bn-related-card:focus-visible {
  outline: 2px solid var(--bn-blue);
  outline-offset: 2px;
}

/* Card Image – 16:9 Aspect Ratio */
.bn-related-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.bn-related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bn-related-card:hover .bn-related-card-image img {
  transform: scale(1.05);
}

/* Party Badge on Card */
.bn-related-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--party-color, var(--bn-blue));
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Article Type Badge (Lang/Kurz) */
.bn-related-card-type {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.6rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  backdrop-filter: blur(4px);
}

/* Card Content Body */
.bn-related-card-body {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.bn-related-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bn-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.bn-related-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--bn-text-muted);
}

.bn-related-card-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bn-related-card-tag {
  padding: 0.15rem 0.4rem;
  background: var(--bn-blue-light);
  color: var(--bn-blue-dark);
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.7rem;
}

/* Party-Specific Hover Colors */
.bn-related-card[data-party="koalition"]:hover {
  border-color: var(--party-coalition);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
}

.bn-related-card[data-party="afd"]:hover {
  border-color: var(--party-afd);
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.15);
}

.bn-related-card[data-party="gruene"]:hover {
  border-color: var(--party-gruene);
  box-shadow: 0 8px 24px rgba(70, 150, 43, 0.15);
}

.bn-related-card[data-party="spd"]:hover {
  border-color: var(--party-spd);
  box-shadow: 0 8px 24px rgba(227, 0, 15, 0.15);
}

.bn-related-card[data-party="cdu"]:hover {
  border-color: var(--party-cdu);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bn-related-card[data-party="fdp"]:hover {
  border-color: var(--party-fdp);
  box-shadow: 0 8px 24px rgba(255, 237, 0, 0.25);
}

.bn-related-card[data-party="linke"]:hover {
  border-color: var(--party-linke);
  box-shadow: 0 8px 24px rgba(190, 48, 117, 0.15);
}

.bn-related-card[data-party="bsw"]:hover {
  border-color: var(--party-bsw);
  box-shadow: 0 8px 24px rgba(93, 58, 122, 0.15);
}

/* Party Badge Colors */
.bn-related-card-badge[data-party="koalition"] { background: var(--party-coalition); }
.bn-related-card-badge[data-party="afd"] { background: var(--party-afd); }
.bn-related-card-badge[data-party="gruene"] { background: var(--party-gruene); }
.bn-related-card-badge[data-party="spd"] { background: var(--party-spd); }
.bn-related-card-badge[data-party="cdu"] { background: var(--party-cdu); }
.bn-related-card-badge[data-party="fdp"] { background: var(--party-fdp); color: #1a1a1a; }
.bn-related-card-badge[data-party="linke"] { background: var(--party-linke); }
.bn-related-card-badge[data-party="bsw"] { background: var(--party-bsw); }

/* Responsive: Tablet */
@media (max-width: 900px) {
  .bn-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: Mobile */
@media (max-width: 600px) {
  .bn-related-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .bn-related-card {
    flex-direction: row;
    align-items: stretch;
  }

  .bn-related-card-image {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }

  .bn-related-card-body {
    padding: 0.75rem;
    justify-content: center;
  }

  .bn-related-card-title {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }

  .bn-related-card-badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.35rem;
  }

  .bn-related-card-type {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * 🏷️ CATEGORY SECTIONS – "Mehr von [Partei]" Dividers
 * ═══════════════════════════════════════════════════════════════════════════ */

.bn-related-category {
  margin-block-start: var(--bn-space-lg);
}

.bn-related-category:first-of-type {
  margin-block-start: 0;
}

.bn-related-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: var(--bn-space-sm);
  padding-block-end: 0.5rem;
  border-bottom: 2px solid var(--bn-border);
}

.bn-related-category-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--party-color, var(--bn-blue));
  color: white;
  font-size: 0.75rem;
}

.bn-related-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bn-text);
  margin: 0;
}

/* Back to Overview Link */
.bn-related-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: var(--bn-space-lg);
  padding: 0.75rem 1.25rem;
  background: var(--bn-blue-light);
  color: var(--bn-blue);
  border-radius: var(--bn-radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bn-related-back:hover {
  background: var(--bn-blue);
  color: white;
  transform: translateX(-4px);
}

.bn-related-back i {
  font-size: 0.75rem;
}

/* ============================================
   BESSERNEWS v4.0 MODERNIZATION - 2026
   Inspired by BesserStudy design language
   ============================================ */

/* Modern Footer Wordmark */
.bn-wordmark-footer {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bn-wordmark-footer .bn-wordmark-top {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1;
}

.bn-wordmark-footer .bn-wordmark-bottom {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--bn-blue);
  line-height: 1;
  margin-top: 0.125rem;
}

/* Enhanced Footer Styling */
.bn-footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #94a3b8;
  padding: var(--bn-space-2xl) 0 var(--bn-space-lg);
  margin-top: var(--bn-space-2xl);
  position: relative;
  overflow: hidden;
}

.bn-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bn-blue), transparent);
}

.bn-footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: var(--bn-space-xl);
  padding-bottom: var(--bn-space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bn-footer-col {
  display: flex;
  flex-direction: column;
}

.bn-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bn-footer-tagline {
  font-size: 0.9375rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.5rem;
}

.bn-footer-title {
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--bn-space-md);
  position: relative;
  padding-bottom: 0.5rem;
}

.bn-footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--bn-blue);
  border-radius: 1px;
}

.bn-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.bn-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bn-footer-links a:hover {
  color: #f8fafc;
  transform: translateX(4px);
}

.bn-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--bn-space-lg);
  font-size: 0.8125rem;
  color: #64748b;
}

.bn-footer-bottom p {
  margin: 0;
}

/* Party Grid - Modern Cards with Better Images */
.bn-party-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bn-space-lg);
  margin-top: var(--bn-space-xl);
}

@media (max-width: 1024px) {
  .bn-party-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bn-party-grid {
    grid-template-columns: 1fr;
  }
}

/* Modern Party Feed Card */
.bn-party-feed {
  background: var(--bn-card-bg);
  border-radius: var(--bn-radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.bn-party-feed:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 122, 255, 0.1);
}

/* Party Header - Modernized */
.bn-party-header {
  padding: var(--bn-space-lg);
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.02) 0%, transparent 100%);
  border-bottom: none;
  position: relative;
}

.bn-party-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--bn-space-lg);
  right: var(--bn-space-lg);
  height: 1px;
  background: linear-gradient(90deg, var(--party-accent, var(--bn-blue)), transparent);
}

.bn-party-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--party-accent, var(--bn-blue)) 0%, var(--party-accent-dark, var(--bn-blue-dark)) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.bn-party-name {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--bn-heading);
  margin: 0;
  letter-spacing: -0.02em;
}

.bn-party-tagline {
  font-size: 0.875rem;
  color: var(--bn-text-muted);
  line-height: 1.5;
  margin: 0.25rem 0 0;
}

/* Party Article Images - Fixed Aspect Ratio */
.bn-party-article-visual {
  padding: var(--bn-space-sm) var(--bn-space-md);
}

.bn-pa-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--bn-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.bn-pa-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.bn-party-article-item:hover .bn-pa-img {
  transform: scale(1.06);
  filter: brightness(1.03) saturate(1.05);
}

.bn-pa-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bn-pa-meta {
  display: flex;
  align-items: center;
  gap: var(--bn-space-sm);
  font-size: 0.8125rem;
  color: var(--bn-text-muted);
  margin-top: var(--bn-space-xs);
  padding: 0 var(--bn-space-md);
}

/* Party More Link - Modern */
.bn-party-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--bn-space-md);
  color: var(--bn-blue);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  margin-top: auto;
}

.bn-party-more:hover {
  background: var(--bn-blue-light);
  color: var(--bn-blue-dark);
}

.bn-party-more i {
  transition: transform 0.2s ease;
}

.bn-party-more:hover i {
  transform: translateX(4px);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .bn-footer-main {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--bn-space-lg);
  }
  
  .bn-footer-col:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }
  
  .bn-footer-col:first-child .bn-footer-brand {
    align-items: center;
  }
  
  .bn-footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .bn-footer-main {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  
  .bn-footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .bn-footer-links a:hover {
    transform: none;
  }
  
  .bn-footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
/* ==========================================================================
   BESSERNEWS 2026 MODERNIZATION - RADICAL REDESIGN
   ========================================================================== */

/* 1. Global Modernizations */
body {
  background-color: var(--bn-bg);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(236, 72, 153, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* 2. Enhanced Header (Glass + Blur) */
.bn-header {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.bn-nav-link {
  font-weight: 600;
  color: var(--bn-text-muted);
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: var(--bn-radius-sm);
}

.bn-nav-link:hover, .bn-nav-link.active {
  color: var(--bn-brand-primary);
  background: rgba(99, 102, 241, 0.08);
}

/* 3. New "Trending" Ticker */
.bn-trending-ticker-container {
  background: linear-gradient(90deg, #6366f1, #ec4899);
  padding: 2px 0; /* Gradient Border Effect */
  position: relative;
  z-index: 900;
}

.bn-trending-ticker {
  background: var(--bn-white);
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.bn-trending-badge {
  background: #000;
  color: #fff;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(0,0,0,0.1);
}

.bn-trending-badge i {
  color: #f43f5e;
  margin-right: 0.5rem;
  animation: pulse-fire 1.5s infinite;
}

@keyframes pulse-fire {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* 4. Modern News Cards (Lift & Glow) */
.bn-card-modern {
  background: var(--bn-white);
  border-radius: var(--bn-radius-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--bn-border);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bn-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--bn-shadow-xl), 0 0 0 1px rgba(99, 102, 241, 0.1);
  z-index: 10;
}

.bn-card-modern-image {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}

.bn-card-modern-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bn-card-modern:hover .bn-card-modern-image img {
  transform: scale(1.1);
}

.bn-card-modern-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.bn-card-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.bn-tag-tech { background: #eff6ff; color: #3b82f6; }
.bn-tag-style { background: #fff1f2; color: #ec4899; }
.bn-tag-trend { background: #fef3c7; color: #d97706; }
.bn-tag-world { background: #f3e8ff; color: #8b5cf6; }

.bn-card-modern-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--bn-heading);
  letter-spacing: -0.02em;
}

.bn-card-modern:hover .bn-card-modern-title {
  color: var(--bn-brand-primary);
}

.bn-card-modern-excerpt {
  color: var(--bn-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5. Hero Area Modernization */
.bn-hero-modern {
  padding: 4rem 1rem 2rem;
  text-align: center;
}

.bn-hero-modern-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.bn-hero-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.bn-cat-pill {
  padding: 0.75rem 1.5rem;
  background: var(--bn-white);
  border: 1px solid var(--bn-border);
  border-radius: 999px;
  font-weight: 700;
  color: var(--bn-heading);
  text-decoration: none;
  box-shadow: var(--bn-shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bn-cat-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--bn-shadow-md);
  border-color: var(--bn-brand-primary);
  color: var(--bn-brand-primary);
}

/* 6. Section Titles */
.bn-section-head-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bn-section-title-modern {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bn-heading);
  position: relative;
}

.bn-section-title-modern::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: -8px;
  width: 12px;
  height: 12px;
  background: var(--bn-brand-secondary);
  border-radius: 50%;
}


/* ========================================
   BESSERNEWS 2026 - TICKER COMPATIBILITY
   Styles for app.js generated ticker items
   ======================================== */

.bn-ticker-label {
  background: #e0e7ff;
  color: #4338ca;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bn-ticker-text {
  white-space: nowrap;
}

/* Modern Ticker Wrapper */
.bn-ticker-modern {
  background: linear-gradient(90deg, #6366f1, #a855f7);
  padding: 2px 0;
}
.bn-ticker-inner {
  background: #fff;
  display: flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
}
.bn-ticker-badge {
  background: #0f172a;
  color: #fff;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
  gap: 0.5rem;
}
.bn-ticker-badge i { color: #f43f5e; }
.bn-ticker-scroll {
  display: flex;
  animation: ticker-scroll 240s linear infinite;
  animation-direction: reverse;
  white-space: nowrap;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bn-ticker-scroll {
    animation: none;
    transform: none;
  }
}
.bn-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
}
.bn-ticker-item:hover {
  color: var(--bn-brand-primary, #6366f1);
}

/* ========================================
   BESSERNEWS 2026 - TICKER OVERLAP FIX
   ======================================== */

.bn-ticker-inner {
  position: relative;
}

.bn-ticker-badge {
  position: relative;
  z-index: 2;
}

.bn-ticker-scroll {
  position: relative;
  z-index: 1;
  padding-left: 0.75rem;
  will-change: transform;
}

.bn-ticker-item {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .bn-ticker-inner { height: 44px; }
  .bn-ticker-badge {
    padding: 0 0.75rem;
    font-size: 0.75rem;
  }
  .bn-ticker-item {
    padding: 0 1rem;
    font-size: 0.85rem;
  }
}

/* ========================================
   BESSERNEWS 2026 - LANGUAGE PILLS
   ======================================== */

.bn-nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Keep mobile-only list hidden on desktop (overrides .bn-nav-links above) */
.bn-nav-links.bn-nav-links--mobile {
  display: none;
}

.bn-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.04);
  border: 1px solid rgba(2, 6, 23, 0.06);
}

.bn-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #334155;
}

.bn-lang-pill.is-active,
.bn-lang-pill[aria-current="page"] {
  background: linear-gradient(135deg, var(--bn-brand-primary, #6366f1), var(--bn-brand-secondary, #ec4899));
  color: #fff;
  box-shadow: 0 10px 25px -12px rgba(99, 102, 241, 0.55);
}

@media (max-width: 1024px) {
  .bn-nav-links { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .bn-nav-links .bn-nav-link { width: 100%; }
}

@media (max-width: 1200px) {
  .bn-sections { display: none; }
  .bn-nav-panel .bn-nav-links--mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
  }
  .bn-nav-panel .bn-nav-links--mobile .bn-nav-link {
    width: 100%;
  }
}

/* ================================================================
   DARK MODE – @media (prefers-color-scheme: dark)
   Overrides hardcoded light values so dark-mode browsers
   get the same polished look as the white theme.
   ================================================================ */
@media (prefers-color-scheme: dark) {

  /* ── CSS Variable Overrides ─────────────────────────── */
  :root {
    --bn-bg:         #0f172a;
    --bn-white:      #1e293b;
    --bn-text:       #e2e8f0;
    --bn-text-muted: #94a3b8;
    --bn-heading:    #f1f5f9;
    --bn-border:     rgba(255, 255, 255, 0.08);
    --bn-card-bg:    #1e293b;
    --card-background: #1e293b;
    --glass-bg:      rgba(30, 41, 59, 0.8);
    --glass-border:  1px solid rgba(255, 255, 255, 0.08);
    --bn-shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --bn-shadow:     0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --bn-shadow-md:  0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --bn-shadow-lg:  0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --bn-blue-light: #1e1b4b;
  }

  /* ── Base ───────────────────────────────────────────── */
  body {
    background: #0f172a;
    color: #e2e8f0;
  }

  /* ── Header ─────────────────────────────────────────── */
  .bn-header,
  .bn-header.bn-header--slim {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .bn-logo-text { color: #f1f5f9 !important; }
  .bn-logo-accent { color: #818cf8; }

  .bn-nav-pill {
    color: #94a3b8;
  }
  .bn-nav-pill:hover,
  .bn-nav-pill.active {
    color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
  }

  .bn-tiktok-btn, .bn-tiktok-link { background: #1e293b; color: #e2e8f0; }
  .bn-search-btn, .bn-ghost-btn    { color: #94a3b8; }
  .bn-search-btn:hover, .bn-ghost-btn:hover {
    color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
  }

  /* Mobile nav panel */
  .bn-nav-panel {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
  }
  .bn-nav-toggle {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
  }

  /* ── Ticker ─────────────────────────────────────────── */
  .bn-ticker-slim {
    background: rgba(10, 17, 30, 0.85) !important;
    border-top-color: rgba(255, 255, 255, 0.04) !important;
  }
  .bn-ticker-slim .bn-ticker-dot {
    background: #6366f1 !important;
  }
  .bn-ticker-slim .bn-ticker-scroll,
  .bn-ticker-slim .bn-ticker-scroll a,
  .bn-ticker-text {
    color: #94a3b8 !important;
  }
  .bn-ticker-slim .bn-ticker-scroll a:hover { color: #818cf8 !important; }
  .bn-ticker-label { color: #818cf8 !important; }

  /* ── Cards & Feed ───────────────────────────────────── */
  .bn-card,
  .bn-article-card,
  .article-card,
  .feed-card,
  .news-card,
  .kt-article,
  [class*="-card"],
  [class*="card-"] {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.06);
  }

  /* hero::after gradient needs to match dark bg */
  .bn-hero::after,
  .kt-hero::after {
    background: linear-gradient(to top, #0f172a, transparent);
  }

  /* ── Tags ───────────────────────────────────────────── */
  .bn-tag-style { background: #3f1244; color: #f0abfc !important; }
  .bn-tag-trend { background: #422006; color: #fde68a !important; }
  .bn-tag-world { background: #2e1065; color: #c4b5fd !important; }

  /* Category badge backgrounds (pastel → dark equivalents) */
  [class*="cat-badge"],
  [class*="category-badge"] {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.25);
  }

  /* ── Text & Headings ────────────────────────────────── */
  h1, h2, h3, h4, h5, h6 { color: #f1f5f9; }
  p, li, span { color: inherit; }

  .bn-text-muted,
  [class*="muted"],
  [class*="meta"],
  .date,
  .time,
  .author {
    color: #94a3b8;
  }

  /* ── Borders & Dividers ─────────────────────────────── */
  hr,
  [class*="divider"],
  [class*="separator"] {
    border-color: rgba(255, 255, 255, 0.06);
  }

  /* ── Search overlay ─────────────────────────────────── */
  #bnSearchOverlay,
  .bn-search-overlay {
    background: rgba(2, 6, 23, 0.9);
  }
  .bn-search-box {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
  }
  .bn-search-box input {
    background: transparent;
    color: #f1f5f9;
  }
  .bn-search-box input::placeholder { color: #64748b; }

  /* ── Footer ─────────────────────────────────────────── */
  .bn-footer,
  footer {
    background: #020617 !important;
    color: #94a3b8 !important;
    border-top-color: rgba(255, 255, 255, 0.06) !important;
  }
  .bn-footer-title  { color: #e2e8f0 !important; }
  .bn-footer-links a,
  .bn-footer a      { color: #94a3b8 !important; }
  .bn-footer a:hover { color: #818cf8 !important; }
  .bn-footer-tagline { color: #64748b !important; }
  .bn-footer-newsletter {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
  }

  /* ── Scrollbar (Webkit) ─────────────────────────────── */
  ::-webkit-scrollbar       { background: #0f172a; }
  ::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
}
/* ----------------------------------------------------
   BESSER NETWORK - MODERN SLEEK OVERRIDES
   Injecting BesserGrowen aesthetic over old BesserNews
   ---------------------------------------------------- */
:root {
  --bn-bg: #fafafa !important;
  --bn-text: #1e293b !important;
  --bn-brand-primary: #8b5cf6 !important;
  --bn-brand-secondary: #f472b6 !important;
  --bn-brand-accent: #10b981 !important;
  
  --primary-color: #8b5cf6 !important;
  --primary-light: #f5f3ff !important;
  --heading-color: #0f172a !important;
  --text-muted: #64748b !important;
  --border-color: rgba(148, 163, 184, 0.2) !important;
  --glass-bg: rgba(255, 255, 255, 0.8) !important;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02) !important;
  --shadow: 0 8px 24px rgba(0,0,0,0.04) !important;
  --shadow-hover: 0 24px 64px rgba(0,0,0,0.12) !important;
  --border-radius: 1.5rem !important;

  --bn-font-sans: 'Poppins', -apple-system, sans-serif !important;
  --bn-font-display: 'Poppins', var(--bn-font-sans) !important;
}

body {
  background: var(--bn-bg) !important;
  color: var(--bn-text) !important;
  font-family: var(--bn-font-sans) !important;
}

h1, h2, h3, h4, .kt-wm-top, .kt-wm-bottom {
  font-family: var(--bn-font-display) !important;
  color: var(--heading-color) !important;
}

/* Feed & Cards: Transparent glassy modern */
.kt-feed {
  background: var(--bn-bg) !important;
}
.kt-feed-card, .kt-sidebar-card, .article-card {
  background: var(--glass-bg) !important;
  border-radius: var(--border-radius) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(20px) !important;
  transition: all 0.3s ease !important;
  color: var(--bn-text) !important;
}

.kt-feed-card:hover, .kt-sidebar-card:hover, .article-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: var(--primary-color) !important;
}

/* Typography on cards */
.kt-fc-title, .kt-card-title {
  color: var(--heading-color) !important;
  font-weight: 800 !important;
}
.kt-fc-desc, .kt-card-excerpt {
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}

/* Huge letters and clunky stuff overwritten */
.kt-fc-kicker, .kt-sidebar-card h3 {
  font-size: 0.9rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--primary-color) !important;
  font-family: var(--bn-font-sans) !important;
}

/* Buttons */
.kt-btn {
  border-radius: 9999px !important;
  font-family: var(--bn-font-sans) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid var(--border-color) !important;
}
.kt-btn--tiktok {
  background: var(--heading-color) !important;
  color: white !important;
  border: none !important;
}
.kt-btn--tiktok:hover {
  background: black !important;
  box-shadow: var(--shadow) !important;
}

/* Newsletter & Promos */
.kt-newsletter-section {
  background: linear-gradient(135deg, var(--primary-light), white) !important;
  border-top: 1px solid var(--border-color) !important;
  border-bottom: 1px solid var(--border-color) !important;
}
.kt-newsletter-banner {
  background: var(--glass-bg) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow) !important;
  border-radius: var(--border-radius) !important;
}
.kt-newsletter-content h2 {
  color: var(--heading-color) !important;
}
.kt-newsletter-content p {
  color: var(--text-muted) !important;
}

/* Remove clunky dark theme styles from original */
.kt-card--dark {
  background: white !important;
  color: var(--bn-text) !important;
}

/* Slim Nav */
.bn-header.bn-header--slim {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border-color) !important;
}
.bn-logo-text {
  font-family: var(--bn-font-display) !important;
  color: var(--heading-color) !important;
}

/* Tags and Pills */
.kt-trending-pill, .kt-tag {
  background: white !important;
  border-radius: 999px !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  box-shadow: var(--shadow-sm) !important;
  font-family: var(--bn-font-sans) !important;
  font-weight: 600 !important;
}
.kt-trending-pill:hover, .kt-tag:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.kt-fc-meta {
  color: var(--text-muted) !important;
  border-top: 1px solid var(--border-color) !important;
  padding-top: 1rem !important;
}
