/* ============================================
   BUNDESTAGWAHLUMFRAGE.DE — CSS
   Clean, White, Minimal
   ============================================ */

:root {
    --white: #ffffff;
    --bg: #f8f9fa;
    --text: #1a1a1a;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --header-h: 64px;
    --footer-h: auto;
    --max-w: 1200px;

    /* Parteifarben */
    --cdu: #000000;
    --spd: #e3000f;
    --gruene: #46962b;
    --fdp: #ffed00;
    --afd: #009ee0;
    --bsw: #731331;
    --linke: #be3075;
    --sonstige: #999999;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* ============================================
   HEADER (Fixed)
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover { color: var(--text); }

.logo-mark {
    background: var(--text);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-tld { color: var(--text-light); font-weight: 400; }

.main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.main-nav a {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: var(--bg);
}

/* Nav Dropdowns */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-drop-trigger { cursor: pointer; }
.nav-drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}
.nav-dropdown:hover .nav-drop-menu { display: block; }
.nav-drop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.nav-drop-grid a {
    display: block;
    padding: 6px 10px;
    font-size: 0.8125rem;
    color: var(--text);
    border-radius: 4px;
    white-space: nowrap;
}
.nav-drop-grid a:hover { background: var(--bg); }
.nav-drop-all {
    display: block;
    padding: 8px 10px 4px;
    margin-top: 6px;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-toggle,
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    color: var(--text-light);
    transition: all 0.15s;
}

.search-toggle:hover,
.menu-toggle:hover {
    background: var(--bg);
    color: var(--text);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.2s;
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: none;
    box-shadow: var(--shadow-lg);
}

.search-bar.open { display: block; }

.search-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

#searchInput {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

#searchInput:focus { border-color: var(--accent); }

#searchClose {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0 8px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.site-main {
    flex: 1;
    margin-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
}

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

.section {
    padding: 48px 0;
}

.section + .section {
    border-top: 1px solid var(--border-light);
}

/* ============================================
   MEGA NAV (Check24-Style)
   ============================================ */

.mega-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0 10px;
}

.mega-search {
    position: relative;
    margin-bottom: 12px;
}

.mega-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    background: var(--bg);
    transition: all 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

.mega-search input:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.mega-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 4px;
}

.mega-search-results.show { display: block; }

.mega-search-results a {
    display: block;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}

.mega-search-results a:hover { background: var(--bg); }
.mega-search-results a small { color: var(--text-light); margin-left: 6px; }

.mega-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 8px;
}
.mega-tabs::-webkit-scrollbar { display: none; }

.mega-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
    text-decoration: none;
}
.mega-tab:hover, .mega-tab.active { background: var(--bg); color: var(--text); }
.mega-tab-icon { font-size: 0.8125rem; }

.mega-quick {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.mega-quick::-webkit-scrollbar { display: none; }

.mega-bl {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg);
    border-radius: 4px;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.mega-bl:hover { color: var(--accent); background: #eef2ff; }

@media (max-width: 768px) {
    .mega-search input { font-size: 0.8125rem; padding: 9px 14px 9px 36px; }
    .mega-tab { padding: 5px 8px; font-size: 0.6875rem; }
}

/* ============================================
   VIDEO LOOPS
   ============================================ */

.video-loop {
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
}

.video-loop video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    padding: 48px 0 32px;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero .subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CARDS & GRID
   ============================================ */

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: var(--shadow);
    border-color: #d1d5db;
}

.card-link {
    display: block;
    color: inherit;
}

.card-link:hover { color: inherit; }

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   UMFRAGE-WERTE (Grosse Zahlen)
   ============================================ */

.poll-values {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 24px 0;
}

.poll-item {
    text-align: center;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    min-width: 100px;
}

.poll-party {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.poll-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.poll-change {
    font-size: 0.75rem;
    margin-top: 2px;
}

.poll-change.up { color: #16a34a; }
.poll-change.down { color: #dc2626; }
.poll-change.stable { color: var(--text-light); }

/* ============================================
   CHART CONTAINER
   ============================================ */

.chart-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.chart-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.chart-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chart-filters select,
.chart-filters button {
    font-family: inherit;
    font-size: 0.8125rem;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
}

.chart-filters select:hover,
.chart-filters button:hover {
    border-color: #d1d5db;
}

.chart-filters button.active {
    background: var(--text);
    color: var(--white);
    border-color: var(--text);
}

.chart-wrap {
    position: relative;
    width: 100%;
    min-height: 300px;
}

/* ============================================
   TABELLE
   ============================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: var(--bg);
    position: sticky;
    top: 0;
}

.data-table td { white-space: nowrap; }

.data-table tbody tr:hover { background: var(--bg); }

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ============================================
   BUNDESLAENDER GRID
   ============================================ */

.laender-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.land-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
}

.land-card:hover {
    background: var(--bg);
    color: var(--text);
    border-color: #d1d5db;
}

/* Bundeslaender Big Cards */
.land-card-big {
    display: flex;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: inherit;
    transition: all 0.2s;
}
.land-card-big:hover { box-shadow: var(--shadow); border-color: #d1d5db; color: inherit; }

.land-card-img { width: 200px; min-height: 110px; flex-shrink: 0; overflow: hidden; background: var(--bg); }
.land-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.land-card-big:hover .land-card-img img { transform: scale(1.03); }

.land-card-body { padding: 14px 16px 14px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }

.land-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.land-card-abbr { font-size: 0.625rem; font-weight: 700; color: var(--text-light); }
.land-card-name { font-size: 0.9375rem; }
.land-card-party { font-size: 0.6875rem; font-weight: 600; margin-left: auto; }

.land-card-meta { font-size: 0.75rem; color: var(--text-light); margin-bottom: 8px; }

.land-card-polls { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.land-poll-bar { display: flex; align-items: center; gap: 3px; font-size: 0.6875rem; }
.land-poll-dot { width: 5px; height: 5px; border-radius: 50%; }

@media (max-width: 768px) {
    .land-card-big { flex-direction: column; }
    .land-card-img { width: 100%; height: 140px; min-height: auto; }
    .land-card-body { padding: 12px 14px; }
}

.land-card .land-abbr {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-light);
    min-width: 24px;
}

/* ============================================
   NEWSLETTER BAR
   ============================================ */

.newsletter-bar {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin: 32px 0;
}

.newsletter-bar h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.newsletter-bar p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    background: var(--white);
}

.newsletter-form input:focus { border-color: var(--accent); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--text);
    color: var(--white);
}

.btn:hover { background: #333; color: var(--white); }

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg);
    color: var(--text);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover { background: var(--accent-hover); color: var(--white); }

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    padding: 16px 0;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span { margin: 0 6px; }

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ============================================
   TREND BADGES
   ============================================ */

.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.trend-badge.up { background: #dcfce7; color: #16a34a; }
.trend-badge.down { background: #fee2e2; color: #dc2626; }
.trend-badge.stable { background: #f3f4f6; color: #6b7280; }

/* ============================================
   WAHLKALENDER
   ============================================ */

.wahl-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.wahl-countdown .days {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 48px;
    text-align: center;
}

/* ============================================
   MAP CONTAINER
   ============================================ */

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 24px 0;
    min-height: 400px;
    background: var(--bg);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.6;
}

.footer-col a {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
    padding: 3px 0;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-light);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a { color: var(--text-light); }
.footer-legal a:hover { color: var(--text); }

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    z-index: 2000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
    display: none;
}

.cookie-banner.show { display: block; }

.cookie-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cookie-inner p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ============================================
   MOBILE NAVIGATION OVERLAY
   ============================================ */

.mob-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #f8f9fb;
    z-index: 1100;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mob-nav.open { display: flex; }

.mob-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.mob-nav-close {
    background: #f1f3f5;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
.mob-nav-close:hover { background: #e5e7eb; color: var(--text); }

.mob-nav-links {
    flex: 1;
    padding: 12px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mob-nav-group {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.mob-nav-sep {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    padding: 12px 18px 8px;
    display: block;
    background: var(--white);
}

.mob-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    padding: 14px 18px;
    border-top: 1px solid #f1f3f5;
    text-decoration: none;
    transition: background .12s;
}
.mob-nav-links a:first-of-type { border-top: none; }
.mob-nav-links a:hover,
.mob-nav-links a:active { background: #f8f9fb; }
.mob-nav-links a.active { color: var(--primary); background: #eef2ff; }
.mob-nav-links a.active .mni svg { stroke: var(--primary); }

.mob-nav-links a.mob-nav-highlight { color: var(--primary); }
.mob-nav-links a.mob-nav-highlight .mni svg { stroke: var(--primary); }

.mni {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
    line-height: 1;
}
.mni svg { stroke: #6b7280; }
.mob-nav-links a.active .mni { background: #dde4ff; }
.mob-nav-links a.mob-nav-highlight .mni { background: #eef2ff; }
.mni-flag { font-size: 1.25rem; background: transparent; }

.mni-arrow {
    margin-left: auto;
    flex-shrink: 0;
    stroke: #d1d5db;
}
.mob-nav-links a:hover .mni-arrow,
.mob-nav-links a.active .mni-arrow { stroke: var(--primary); }

.mob-nav-footer {
    display: flex;
    gap: 20px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.mob-nav-footer a {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-decoration: none;
}
.mob-nav-footer a:hover { color: var(--text); }

/* ============================================
   HERO (Enhanced)
   ============================================ */

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.hero-update {
    margin-top: 12px;
    font-size: 0.6875rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 20px;
}

.hero-update::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
}

/* ============================================
   TOP 3 PARTEIEN (Hero-Bereich)
   ============================================ */

.top3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.top3-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.top3-item:first-child {
    border-width: 2px;
    padding: 16px 20px;
}

.top3-rank {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--border);
    min-width: 24px;
    text-align: center;
}

.top3-item:first-child .top3-rank {
    font-size: 1.5rem;
    color: var(--text-light);
}

.top3-bar {
    height: 8px;
    border-radius: 4px;
    min-width: 20px;
    flex-shrink: 0;
}

.top3-item:first-child .top3-bar { height: 10px; }

.top3-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1;
}

.top3-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.top3-item:first-child .top3-name { font-size: 1rem; }

.top3-val {
    font-size: 1.25rem;
    font-weight: 700;
}

.top3-item:first-child .top3-val { font-size: 1.5rem; }

.top3-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top3-btw {
    font-size: 0.6875rem;
    color: var(--text-light);
}

/* ============================================
   HERO GRID (BTW links | Umfragen rechts)
   ============================================ */

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 12px;
}

.hero-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px 18px;
}

.hero-box-head {
    margin-bottom: 16px;
}

.hero-box-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-bottom: 2px;
}

.hero-box-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

@media (min-width: 900px) {
    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: stretch;
    }
    .hero-box .top3 {
        max-width: none;
        margin: 0 0 12px;
    }
    .hero-box .video-loop video {
        max-height: 180px;
        object-fit: cover;
    }
}

/* Party name links */
.party-link {
    text-decoration: none;
    color: inherit;
}
.party-link:hover {
    text-decoration: underline;
}

/* ============================================
   PARTY COMPARE CARDS (Startseite)
   ============================================ */

.party-compare {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin: 20px 0 8px;
}

.pc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 10px;
    text-align: center;
    color: inherit;
    transition: all 0.15s;
    display: block;
}

.pc-card:hover { box-shadow: var(--shadow); border-color: #d1d5db; color: inherit; }

.pc-name { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-light); margin-bottom: 4px; }
.pc-val { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.pc-btw { margin-top: 4px; font-size: 0.6875rem; }
.pc-label { color: var(--text-light); margin-left: 2px; }

@media (max-width: 768px) {
    .party-compare { grid-template-columns: repeat(4, 1fr); }
    .pc-val { font-size: 1rem; }
}

@media (max-width: 480px) {
    .party-compare { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   COUNTDOWN
   ============================================ */

.countdown-hero {
    text-align: center;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.countdown-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 12px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.cd-block {
    text-align: center;
    min-width: 60px;
}

.cd-block span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cd-block small {
    font-size: 0.625rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cd-sep {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    margin-top: -12px;
}

.countdown-date {
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ============================================
   BL GRID (Bundeslaender kompakt mit Bildern)
   ============================================ */

.bl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bl-card {
    display: flex;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: inherit;
    transition: all 0.15s;
}

.bl-card:hover { box-shadow: var(--shadow); border-color: #d1d5db; color: inherit; }

.bl-img {
    width: 72px;
    min-height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg);
}

.bl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bl-info {
    padding: 8px 8px 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.bl-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bl-polls {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

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

@media (max-width: 480px) {
    .top3-bar { display: none; }
    .top3-val { font-size: 1rem; }
    .top3-item:first-child .top3-val { font-size: 1.25rem; }
}

/* ============================================
   SOURCE LINE
   ============================================ */

.source-line {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 32px;
    padding: 0 16px;
}

/* ============================================
   POLL ITEMS (Enhanced with color border)
   ============================================ */

.poll-item {
    text-align: center;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    min-width: 100px;
    transition: all 0.15s;
}

.poll-item:hover {
    box-shadow: var(--shadow);
}

.poll-pct {
    font-size: 0.875rem;
    font-weight: 400;
}

/* ============================================
   SEAT BARS (Sitzverteilung)
   ============================================ */

.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.seat-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
}

.seat-label {
    width: 64px;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.75rem;
}

.seat-bar-bg {
    flex: 1;
    height: 20px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.seat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.seat-count {
    width: 32px;
    text-align: right;
    font-weight: 600;
    font-size: 0.8125rem;
}

.seat-total {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

/* ============================================
   COALITION ROWS
   ============================================ */

.coal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius);
    margin-bottom: 4px;
    font-size: 0.8125rem;
}

.coal-yes { background: #f0fdf4; }
.coal-no { background: #fef2f2; }

.coal-parties {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.coal-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.coal-seats {
    font-weight: 600;
    white-space: nowrap;
}

.coal-status { font-size: 0.875rem; margin-left: 4px; }
.coal-yes .coal-status { color: #16a34a; }
.coal-no .coal-status { color: #dc2626; }

.coal-link {
    display: block;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

/* ============================================
   TABLE (Enhanced)
   ============================================ */

.th-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.td-date { color: var(--text-light); font-size: 0.8125rem; }
.td-institute { font-weight: 500; }
.td-client { display: block; font-size: 0.6875rem; color: var(--text-light); }
.td-highlight { font-weight: 700; }

/* ============================================
   WAHL CARDS (Countdown)
   ============================================ */

.wahl-card {
    text-align: center;
    padding: 24px !important;
}

.wahl-days {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.wahl-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.wahl-name {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 4px;
}

.wahl-region {
    font-size: 0.875rem;
    color: var(--text-light);
}

.wahl-date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============================================
   LAND CARD (Enhanced)
   ============================================ */

.land-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.land-name {
    flex: 1;
    font-weight: 500;
}

.land-party {
    font-size: 0.6875rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   ICON CARDS
   ============================================ */

.card-icon { text-align: center; padding: 28px 20px !important; }

.card-icon-wrap {
    font-size: 1.5rem;
    margin-bottom: 8px;
    opacity: 0.4;
}

.card-icon h3 { font-size: 0.9375rem; }
.card-icon p { font-size: 0.8125rem; }

/* ============================================
   NEWSLETTER (Enhanced)
   ============================================ */

.newsletter-note {
    margin-top: 10px;
    font-size: 0.6875rem;
    color: var(--text-light);
}

.newsletter-note a { color: var(--text-light); text-decoration: underline; }

/* ============================================
   ARTICLE / RATGEBER
   ============================================ */

/* Article Layout */
.article {
    max-width: 100%;
}

.article h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}

.article-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.article h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
}

.article h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
}

.article h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.article p {
    margin-bottom: 16px;
    line-height: 1.75;
    font-size: 0.9375rem;
}

.article ul, .article ol {
    margin: 0 0 24px 24px;
    line-height: 1.75;
    font-size: 0.9375rem;
}

.article li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.article a { text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { text-decoration-color: var(--accent); }
.article .scroll-card,
.article .scroll-card:hover,
.article .blogroll-item,
.article .blogroll-item:hover,
.article .blogroll-card,
.article .blogroll-card:hover { text-decoration: none; }

.article .grid { max-width: 100%; }
.article .table-scroll { max-width: 100%; }

/* Mobile: alle Tabellen im Article-Kontext scrollbar */
@media (max-width: 768px) {
    .article table:not(.no-scroll) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 0.8125rem;
    }
    .data-table th, .data-table td { padding: 8px 10px; }
}

/* Info Box */
.info-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin: 32px 0;
}

.info-box h4 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.info-box ul { margin: 0; list-style: none; padding: 0; }
.info-box li {
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-light);
    line-height: 1.6;
}
.info-box li:last-child { border-bottom: none; padding-bottom: 0; }

.info-box p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.info-box-warn {
    border-left: 3px solid var(--accent);
    background: #f0f4ff;
}

.info-box-warn h4 { color: var(--accent); }
.info-box-warn p { margin-bottom: 10px; font-size: 0.875rem; }
.info-box-warn p:last-child { margin-bottom: 0; }

/* FAQ Section */
.faq-section { margin: 32px 0; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.faq-item:hover { border-color: #d1d5db; }

.faq-item h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    padding: 0;
}

.faq-item p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.65;
}

.faq-item a { color: var(--accent); }

/* Article Hero Image (Thumbnail / Featured) */
.article-hero {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Article Content Images */
.article-img {
    margin: 32px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: auto;
    display: block;
}

.article-img figcaption {
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 8px 0 0;
    text-align: center;
}

/* Blogroll / Post Listing */
.blogroll {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blogroll-item {
    display: flex;
    gap: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    color: inherit;
}

.blogroll-item:hover {
    box-shadow: var(--shadow);
    border-color: #d1d5db;
    color: inherit;
}

.blogroll-thumb {
    width: 280px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg);
}

.blogroll-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.blogroll-item:hover .blogroll-thumb img {
    transform: scale(1.03);
}

.blogroll-body {
    padding: 20px 24px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blogroll-cat {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 4px;
}

.blogroll-body h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.35;
}

.blogroll-body p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blogroll-meta {
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* Blogroll Grid (for category pages) */
.blogroll-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blogroll-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    color: inherit;
    display: block;
}

.blogroll-card:hover {
    box-shadow: var(--shadow);
    border-color: #d1d5db;
    color: inherit;
}

.blogroll-card-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg);
}

.blogroll-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.blogroll-card:hover .blogroll-card-thumb img {
    transform: scale(1.03);
}

.blogroll-card-body {
    padding: 16px 20px;
}

.blogroll-card-body h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.35;
}

.blogroll-card-body p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .blogroll-item {
        flex-direction: column;
    }
    .blogroll-thumb {
        width: 100%;
        height: 200px;
        min-height: auto;
    }
    .blogroll-body { padding: 16px; }
    .blogroll-grid { grid-template-columns: 1fr; }
}

/* ============================================
   HORIZONTAL SCROLL SLIDER
   ============================================ */

.scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin: 0 -4px;
    scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }

.scroll-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: all 0.2s;
    color: inherit;
    display: block;
    text-decoration: none;
}
.scroll-card:hover {
    box-shadow: var(--shadow);
    border-color: #d1d5db;
    color: inherit;
}
.scroll-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.scroll-card:hover img { transform: scale(1.03); }
.scroll-card-body {
    padding: 14px 16px;
}
.scroll-card-body .sc-label {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.scroll-card-body h3 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
}
.scroll-card-body p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stat pills */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.stat-pill .sp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   UPDATE BANNER (PWA)
   ============================================ */

.update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--accent);
    color: var(--white);
    z-index: 3000;
    padding: 8px 24px;
    display: none;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.update-banner.show {
    display: block;
    transform: translateY(0);
}

.update-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.update-banner .btn {
    background: var(--white);
    color: var(--accent);
    padding: 4px 12px;
    font-size: 0.75rem;
}

/* ============================================
   WEBPUSH POPUP
   ============================================ */

.push-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2500;
    display: none;
    animation: slideUp 0.3s ease;
}

.push-popup.show { display: block; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.push-popup-inner {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 320px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    position: relative;
}

.push-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
}

.push-icon {
    margin-bottom: 12px;
    color: var(--accent);
}

.push-popup h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.push-popup p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

.push-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   TOOLTIPS
   ============================================ */

[data-tooltip] {
    border-bottom: 1px dashed var(--accent);
    cursor: help;
    color: inherit;
    text-decoration: none;
}

[data-tooltip]:hover {
    border-bottom-color: var(--accent-hover);
    color: var(--accent);
}

.tooltip-box {
    position: absolute;
    z-index: 2000;
    width: 320px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: none;
    pointer-events: auto;
}

.tooltip-box.show { display: block; }

.tooltip-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.tooltip-body {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}

.tooltip-link {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================
   NEWS LIST
   ============================================ */

.news-list { display: flex; flex-direction: column; gap: 1px; background: var(--border-light); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

.news-item { display: block; padding: 16px 20px; background: var(--white); color: inherit; transition: background 0.15s; }
.news-item:hover { background: var(--bg); color: inherit; }

.news-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.news-source { font-size: 0.625rem; font-weight: 400; color: #bbb; text-transform: uppercase; letter-spacing: 0.3px; }
.news-time { font-size: 0.6875rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }

.news-flash { font-size: 0.75rem; }
.news-fresh { border-left: 3px solid var(--accent); }
.news-fresh .news-time { color: var(--accent); font-weight: 600; }

.news-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.news-excerpt { font-size: 0.8125rem; color: var(--text-light); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================
   LIVE TICKER (Clean: schwarz/grau/weiss, einheitliche Schrift)
   ============================================ */

.ticker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #111;
    color: #fff;
    z-index: 900;
    overflow: hidden;
}

.ticker-track {
    height: 100%;
    overflow: hidden;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    will-change: transform;
}

.ticker-bar:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    padding: 0 12px 0 16px;
    flex-shrink: 0;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    flex-shrink: 0;
}

.ticker-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ticker-party {
    font-size: 0.6875rem;
    font-weight: 400;
    color: #999;
}

.ticker-val {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
}

.ticker-source {
    font-size: 0.5625rem;
    color: #555;
    padding-left: 8px;
    flex-shrink: 0;
}

.ticker-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: #333;
    margin: 0 6px;
    flex-shrink: 0;
}

.ticker-news {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    font-size: 0.6875rem;
    font-weight: 400;
    color: #ccc;
    flex-shrink: 0;
}

.ticker-news-src {
    font-weight: 600;
    color: #666;
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   TV PLAYER (Fullsize)
   ============================================ */

.tv-fullscreen {
    margin-top: calc(-1 * var(--header-h));
    padding-top: var(--header-h);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 32px);
    overflow: hidden;
    background: #000;
}

.tv-fullscreen ~ .site-footer { display: none; }
.tv-fullscreen + .site-footer { display: none; }

.tv-screen {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 16:9 Container innerhalb */
.tv-video-wrap {
    position: relative;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 16/9;
}

.tv-video-wrap iframe, .tv-video-wrap #ytPlayer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

/* Custom Play-Overlay ueber YouTube */
.tv-play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    background: transparent;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tv-play-overlay.show {
    pointer-events: auto;
    background: rgba(0,0,0,0.3);
}

.tv-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}

.tv-play-btn:hover { transform: scale(1.1); }
.tv-play-btn svg { margin-left: 4px; }

.tv-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    z-index: 5;
}

.tv-overlay-text {
    color: #666;
    font-size: 0.875rem;
}

.tv-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #111;
    border-top: 1px solid #222;
    flex-shrink: 0;
    gap: 12px;
}

.tv-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tv-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #dc2626;
    animation: tvPulse 2s infinite;
}
@keyframes tvPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.tv-channel-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.tv-bar-channels {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    justify-content: center;
}
.tv-bar-channels::-webkit-scrollbar { display: none; }

.tv-ch-btn {
    background: none;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    font-size: 0.6875rem;
    font-family: inherit;
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}

.tv-ch-btn:hover { border-color: #555; color: #ccc; }
.tv-ch-btn.active { border-color: var(--accent); color: #fff; background: rgba(37,99,235,0.15); }

.tv-bar-right { flex-shrink: 0; }

.tv-skip-btn {
    background: none;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    font-size: 0.6875rem;
    font-family: inherit;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.tv-skip-btn:hover { border-color: #555; color: #ccc; }

@media (max-width: 768px) {
    .tv-bar { flex-wrap: wrap; padding: 6px 10px; gap: 6px; }
    .tv-bar-channels { order: 3; width: 100%; justify-content: flex-start; }
    .tv-ch-btn { font-size: 0.625rem; padding: 3px 8px; }
}

/* ============================================
   PWA INSTALL BANNER
   ============================================ */

.pwa-install-banner {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2100;
    display: none;
    animation: slideUp 0.3s ease;
}

.pwa-install-banner.show { display: block; }

.pwa-install-inner {
    background: #1a1a1a;
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.pwa-install-text { font-size: 0.8125rem; }
.pwa-install-text strong { font-weight: 600; }

.pwa-install-actions { display: flex; gap: 6px; flex-shrink: 0; }

@media (max-width: 480px) {
    .pwa-install-inner { flex-direction: column; white-space: normal; text-align: center; }
}

/* Ticker schiebt Footer + Cookie + Push hoch */
.site-footer { margin-bottom: 32px; }
.cookie-banner { bottom: 32px; }
.push-popup { bottom: 72px; }

/* ============================================
   STANDALONE PWA (iOS safe area)
   ============================================ */

@supports (padding-top: env(safe-area-inset-top)) {
    .site-header {
        padding-top: env(safe-area-inset-top);
        height: calc(var(--header-h) + env(safe-area-inset-top));
    }
    .site-main {
        margin-top: calc(var(--header-h) + env(safe-area-inset-top));
    }
    .site-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
    .cookie-banner,
    .push-popup {
        bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .laender-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 56px; }

    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 8px;
        box-shadow: var(--shadow-lg);
        z-index: 200;
        max-height: 80vh;
        overflow-y: auto;
    }
    .main-nav.open > a,
    .main-nav.open > .nav-dropdown > a { padding: 12px 16px; display: block; }

    /* Dropdowns im Mobile-Menu: kein Hover, kein absolutes Positioning */
    .main-nav.open .nav-dropdown { position: static; }
    .main-nav.open .nav-drop-menu {
        display: none;
        position: static;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        min-width: auto;
        border-radius: 0;
    }
    .main-nav.open .nav-dropdown.mob-open .nav-drop-menu { display: block; }
    .main-nav.open .nav-drop-grid { grid-template-columns: 1fr; gap: 0; }
    .main-nav.open .nav-drop-grid a { padding: 8px 16px; font-size: 0.8125rem; }
    .main-nav.open .nav-drop-all { font-size: 0.75rem; padding: 8px 16px; }

    .menu-toggle { display: flex; }

    .hero h1 { font-size: 1.5rem; }

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }

    .laender-grid { grid-template-columns: repeat(2, 1fr); }

    .poll-values { gap: 8px; }
    .poll-item { min-width: 80px; padding: 12px; }
    .poll-value { font-size: 1.25rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; }

    .newsletter-form { flex-direction: column; }

    .cookie-inner { flex-direction: row; gap: 8px; }
    .cookie-inner p { font-size: 0.6875rem; }
    .cookie-actions .btn { padding: 4px 10px; font-size: 0.6875rem; }

    .chart-container { padding: 16px; }

    .push-popup { bottom: 16px; right: 16px; left: 16px; }
    .push-popup-inner { width: 100%; }

    .tooltip-box { width: calc(100vw - 32px); left: 16px !important; }
}

@media (max-width: 480px) {
    .laender-grid { grid-template-columns: 1fr; }
    .logo-text { display: none; }
}

/* Podcast Platform Buttons */
.podcast-platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}
.podcast-platform-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 10px;
    padding: 20px 0 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    flex-wrap: wrap;
}
.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--border);
    color: #555;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    text-decoration: none;
}
.footer-social-icon:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* OPcache-Patch: Doppelte Party-Compare-Box verstecken */
.party-compare { display: none !important; }
