/* ============================================
   USPOLLINGDATA.COM — CSS
   Clean, White, Minimal
   ============================================ */

:root {
    --white: #ffffff;
    --bg: #f8f9fa;
    --text: #1a1a1a;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --accent: #1a6bb5;
    --accent-hover: #155a94;
    --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;
}

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

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

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;
}

/* Header actions row (BWU: social + search + hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.header-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    color: var(--text-light);
    transition: all 0.15s;
    text-decoration: none;
}
.header-social-btn:hover { background: var(--bg); color: var(--text); }

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: var(--radius);
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    transition: all 0.15s;
}
.search-toggle:hover { background: var(--bg); color: var(--text); }

/* Search button inside nav (desktop only) */
.search-toggle-nav { display: flex; }
@media (max-width: 1200px) { .search-toggle-nav { display: none !important; } }

.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.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

/* Search Bar */
.search-bar {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: none;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    z-index: 500;
}

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

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

.search-field-wrap {
    flex: 1;
    position: relative;
}

.search-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    flex-shrink: 0;
}

#megaSearch {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

#megaSearch:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,107,181,0.10);
}

#megaSearch::-webkit-search-cancel-button,
#megaSearch::-webkit-search-decoration { display: none; }

.search-submit-btn {
    padding: 12px 22px;
    background: var(--accent, #1a6bb5);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    transition: background 0.15s;
    letter-spacing: 0.01em;
}

.search-submit-btn:hover { background: #155a9e; }

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

.site-main {
    flex: 1;
    margin-top: 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);
}

.section p {
    margin-bottom: 20px;
    line-height: 1.78;
    font-size: 0.9375rem;
    color: var(--text);
}

.section p:last-child { margin-bottom: 0; }

.section h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--text);
}

/* Pull quote */
.pull-quote {
    border-left: 4px solid var(--accent);
    padding: 14px 20px;
    margin: 28px 0;
    background: rgba(26,107,181,0.04);
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--text);
    border-radius: 0 8px 8px 0;
}

.pull-quote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: .03em;
}

/* Party profile header stat cards — 2-col grid on mobile, 4-col on wider screens */
.party-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 700px) {
    .party-stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Inline stat row */
.stat-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.stat-pill {
    flex: 1;
    min-width: 120px;
    background: var(--bg-alt, #f7f8fa);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
}

.stat-pill-num {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-pill-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-light);
}

/* Poll-average cards — own class, "stat-pill" collides with the inline dot-badge
   pill further below in this file (display:flex row), which broke card layout. */
.poll-avg-pill {
    display: block;
    flex: 1;
    min-width: 120px;
    background: var(--bg-alt, #f7f8fa);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
}

.poll-avg-pill-num {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.poll-avg-pill-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-light);
}

/* Key takeaway box */
.takeaway {
    background: #fffbea;
    border: 1px solid #f5d020;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.takeaway strong { color: #7a5c00; }

/* ============================================
   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, .mega-search-results a.active { background: var(--bg); }
.mega-search-results a small { color: var(--text-light); margin-left: 6px; }
.mega-search-results a strong { font-weight: 700; }

.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; }
}

@media (max-width: 640px) {
    .search-bar { padding: 12px 14px; }
    .search-inner { gap: 8px; }
    #megaSearch { font-size: 1rem; padding: 13px 14px 13px 42px; border-radius: 10px; }
    .search-submit-btn { padding: 13px 16px; font-size: 0.875rem; border-radius: 10px; }
}

/* ============================================
   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); }
.grid-5 { grid-template-columns: repeat(5, 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:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:disabled:hover { background: var(--text); }

.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: repeat(4, 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: 10px 16px;
    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, .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, .article h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
}

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

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

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

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

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

article a, .article a { text-decoration: underline; text-underline-offset: 2px; }
article a:hover, .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.65rem;
    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: 38px;
    background: #0d1117;
    color: #fff;
    z-index: 900;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}

.ticker-live-badge {
    flex-shrink: 0;
    align-self: stretch;
    background: #B22234;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.ticker-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    will-change: transform;
    flex-shrink: 0;
}

.ticker-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    padding: 0 10px 0 18px;
    flex-shrink: 0;
}

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

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

.ticker-party {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
}

.ticker-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.ticker-news-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    border-left: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.ticker-news-src {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
}

.ticker-news-title {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
}

.ticker-news-title:hover {
    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: rgba(255,255,255,0.35);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================
   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; }
}

/* Stacking über Ticker (38px hoch) */
.site-footer { margin-bottom: 38px; }
.cookie-banner { bottom: 38px; z-index: 2000; border-bottom: none; }
.push-popup { bottom: 78px; }

/* ============================================
   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-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .laender-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

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

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

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }
    .grid-5 { 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; }
    .logo-dot { display: none; }
    .news-feat-desc { display: none; }
    .news-top-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Full-bleed Page Hero (House / Senate / Governors / States) ── */
.page-hero { position:relative; overflow:hidden; }
.page-hero-img { width:100%; height:420px; object-fit:cover; display:block; }
.page-hero-gradient { position:absolute; inset:0; background:linear-gradient(to bottom,rgba(0,0,0,0.25) 0%,rgba(0,0,0,0.78) 100%); }
.page-hero-content { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; }
.page-hero-content > .container { padding-bottom:36px; }
.page-hero-label { font-size:0.6875rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:rgba(255,255,255,0.6); margin-bottom:8px; }
.page-hero-h1 { font-size:2.25rem; font-weight:800; color:#fff; margin:0 0 10px; line-height:1.15; }
.page-hero-sub { color:rgba(255,255,255,0.85); font-size:1rem; margin:0; max-width:640px; line-height:1.5; }

@media (max-width:768px) {
    .page-hero-img { height:400px; }
    .page-hero-h1 { font-size:1.875rem; }
}
@media (max-width:480px) {
    .page-hero-img { height:300px; }
    .page-hero-h1 { font-size:1.5rem; }
    .page-hero-sub { font-size:0.9rem; }
    .page-hero-content > .container { padding-bottom:28px; }
}

/* Hero Stat Boxes (House/Senate/Governor hero sections) */
.hero-stat-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.hero-stat-box {
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    min-width: 110px;
}
.hero-stat-num { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.hero-stat-lbl { font-size: 0.625rem; opacity: 0.85; margin-top: 3px; }

@media (max-width: 560px) {
    .hero-stat-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .hero-stat-box {
        padding: 14px 12px;
        border-radius: 8px;
        min-width: 0;
    }
    .hero-stat-num { font-size: 1.15rem; }
    .hero-stat-lbl { font-size: 0.7rem; margin-top: 3px; }
}

/* 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: 24px;
    padding: 20px 0 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.footer-social-group { display: flex; flex-direction: column; }
.footer-social-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
    margin-bottom: 8px;
}
.footer-social-row { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-social-label { display: none; }
.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-light);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    flex-shrink: 0;
}
.footer-social-icon:hover { background: var(--accent); color: #fff; }

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

/* ── Political Term Tooltips ── */
.tip {
  position: relative;
  border-bottom: 1px dotted var(--text-light);
  cursor: help;
  display: inline;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0a1628;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 10px 16px;
  border-radius: 14px;
  white-space: normal;
  width: 300px;
  max-width: 92vw;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
  text-align: left;
}
.tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0a1628;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 999;
}
.tip:hover::after,
.tip:focus::after,
.tip:hover::before,
.tip:focus::before {
  opacity: 1;
}
/* Mobile: show tooltip below when near top of screen */
@media (max-width: 600px) {
  .tip::after {
    bottom: auto;
    top: calc(100% + 6px);
    font-size: 0.7rem;
    width: 180px;
  }
  .tip::before {
    bottom: auto;
    top: calc(100% + 1px);
    border-top-color: transparent;
    border-bottom-color: #0a1628;
  }
}

@keyframes navpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.6)} }

/* Mobile: header inner padding */
@media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
}

/* Hamburger X animation (aria-expanded) */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   FRAMEWORK v2 — NAV + LOGO + FOOTER
   ============================================ */

:root { --primary: var(--accent); }

/* site-logo (framework header class alias for .logo) */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}
.site-logo:hover { color: var(--text); }
.site-logo svg { display: block; flex-shrink: 0; }

/* Hide redundant mob-menu-btn (JS targets #navHamburger) */
.mob-menu-btn { display: none !important; }

/* Hide nav-brand inside nav (logo lives in .site-logo outside nav) */
.nav-brand { display: none !important; }

/* nav-container: flex row inside .main-nav */
.nav-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* When header-actions has own hamburger (.menu-toggle), hide nav.php's duplicate */
.header-inner:has(.menu-toggle) .nav-hamburger { display: none !important; }

/* nav-hamburger + BWU .menu-toggle: hidden on desktop */
.nav-hamburger,
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    color: var(--text-light);
    transition: all 0.15s;
    flex-direction: column;
    gap: 4px;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
}
.nav-hamburger:hover,
.menu-toggle:hover { background: var(--bg); color: var(--text); }
.nav-hamburger span,
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.2s;
}

/* nav-menu: horizontal list on desktop */
.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* nav items + links */
.nav-item { position: relative; list-style: none; }
.nav-link {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}
.nav-link:hover { color: var(--accent); background: transparent; }
.nav-link.active {
    color: var(--text);
    background: transparent;
    font-weight: 600;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* nav arrow indicator */
.nav-arrow { display: inline-block; margin-left: 3px; font-size: 0.6em; vertical-align: middle; opacity: 0.6; transition: transform 0.15s; }
.nav-arrow::after { content: '▾'; }
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* nav dropdown */
.nav-dropdown {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.4s;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-top: 2px solid var(--accent);
    padding: 6px 0;
    min-width: 230px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 200;
    list-style: none;
    margin: 0;
    pointer-events: none;
}
.nav-dropdown.has-descs { min-width: 280px; }
.has-dropdown:hover .nav-dropdown,
.has-dropdown.dropdown-open .nav-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
}
.nav-dropdown-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    color: var(--text);
    transition: color 0.12s, background 0.12s;
    text-decoration: none;
    border-left: 2px solid transparent;
}
.nav-dropdown-link:hover { background: var(--bg); color: var(--accent); border-left-color: var(--accent); }
.nav-dd-label { font-weight: 500; font-size: 0.8125rem; line-height: 1.2; }
.nav-dd-desc { font-size: 0.72rem; color: var(--text-light); font-weight: 400; line-height: 1.3; opacity: 0.85; }
.nav-dropdown-link:hover .nav-dd-desc { opacity: 1; color: var(--accent); }
.nav-dropdown-link:not(.has-desc) .nav-dd-label { padding: 0; }

/* ── BWU custom nav (direct <a> + div.nav-dropdown in .main-nav) ── */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.main-nav .nav-container { flex: 1; }

/* BWU: nav-dropdown = group wrapper (trigger + submenu), not a panel */
.main-nav > .nav-dropdown {
    display: block !important;
    position: relative;
    top: auto; left: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    box-shadow: none;
    z-index: auto;
}
.main-nav > a {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.main-nav > a:hover,
.main-nav > a.active { color: var(--text); background: var(--bg); }

.nav-drop-trigger {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.nav-drop-trigger:hover,
.nav-drop-trigger.active { color: var(--text); background: var(--bg); }

.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: 220px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
}
.main-nav > .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: 7px 10px;
    font-size: 0.8125rem;
    color: var(--text);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.1s;
}
.nav-drop-grid a:hover { background: var(--bg); }
.nav-drop-all {
    display: block;
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}
.nav-drop-all:hover { opacity: 0.8; }

/* ── Mobile override ── */
@media (max-width: 1200px) {
    .main-nav { display: flex !important; }
    .nav-hamburger,
    .menu-toggle { display: flex; }
    /* BWU: hide direct nav items on mobile (overlay handles nav) */
    .main-nav > a,
    .main-nav > .nav-dropdown { display: none !important; }

    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 12px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }
    .nav-menu.is-open { display: flex; }

    .nav-item { width: 100%; }
    .nav-link { padding: 14px 16px; font-size: 1rem; }

    .nav-dropdown {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-light);
        padding: 4px 0 4px 16px;
        min-width: auto;
        border-radius: 0;
        margin: 0;
    }
    .has-dropdown.dropdown-open .nav-dropdown { display: block; }
    .nav-dropdown-link { padding: 10px 16px; }
}

/* ── Footer: BWU custom wrapper (nested structure: footer-grid + footer-social) ── */
.footer-bwu-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 24px 24px;
}

/* ── Footer framework classes (USP + BritPolls: footer-inner = direct grid) ── */
.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-logo { flex-direction: column; }
    .footer-social { justify-content: center; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-legal { justify-content: center; }
}

.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.footer-logo-badge { display: flex; flex-shrink: 0; }
.footer-logo-badge svg { display: block; }
.footer-logo-name { font-weight: 700; font-size: 0.9375rem; color: var(--text); }
.footer-tagline { font-size: 0.8125rem; color: var(--text-light); line-height: 1.6; margin-top: 8px; }
.footer-social-link {
    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;
    text-decoration: none;
}
.footer-social-link:hover { background: var(--accent); color: #fff; }

.footer-col-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.footer-col-list { list-style: none; margin: 0; padding: 0; }
.footer-col-link {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
    padding: 3px 0;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-col-link:hover { color: var(--text); }

.footer-bottom { padding: 24px 24px 0; max-width: var(--max-w); margin: 0 auto; }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-light);
}
.footer-copyright { font-size: 0.75rem; color: var(--text-light); }
.footer-legal-link { font-size: 0.75rem; color: var(--text-light); text-decoration: none; transition: color 0.15s; }
.footer-legal-link:hover { color: var(--text); }

/* ============================================
   Mob Overlay 2027 — USP / BWU / BritPolls
   ============================================ */
.mob-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.45);z-index:900;opacity:0;transition:opacity .25s;}
.mob-backdrop.is-open{display:block;opacity:1;}
.mob-overlay{position:fixed;top:0;right:0;transform:translateX(100%);width:min(420px,100vw);height:100%;height:100dvh;background:#fff;z-index:1000;display:flex;flex-direction:column;transition:transform .3s cubic-bezier(.4,0,.2,1);box-shadow:-4px 0 32px rgba(0,0,0,.14);overflow:hidden;}
.mob-overlay.is-open{transform:translateX(0);}
.mob-ov-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #f0f2f4;flex-shrink:0;}
.mob-ov-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#111;}
.mob-ov-badge{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:0.68rem;font-weight:800;color:#fff;letter-spacing:.2px;flex-shrink:0;}
.mob-ov-name{font-size:.95rem;font-weight:700;color:#111;letter-spacing:-.2px;}
.mob-ov-close{width:34px;height:34px;border:1.5px solid #e5e7eb;border-radius:50%;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#6b7280;flex-shrink:0;transition:background .15s,border-color .15s;}
.mob-ov-close:hover{background:#f9fafb;border-color:#d1d5db;}
.mob-ov-search{padding:14px 20px 8px;flex-shrink:0;}
.mob-ov-search-input{width:100%;box-sizing:border-box;padding:10px 16px 10px 40px;border:1.5px solid #e5e7eb;border-radius:24px;font-size:.9rem;color:#374151;background:#f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 13px center/15px no-repeat;outline:none;transition:border-color .15s;font-family:inherit;}
.mob-ov-search-input:focus{border-color:var(--accent,#374151);background-color:#fff;}
.mob-ov-search-input::placeholder{color:#9ca3af;}
.mob-ov-nav{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:6px 0 0;}
.mob-ov-row{border-bottom:1px solid #f3f4f6;}
.mob-ov-row:last-child{border-bottom:none;}
.mob-ov-btn{display:flex;align-items:center;justify-content:space-between;width:100%;padding:15px 20px;background:none;border:none;font-family:inherit;font-size:.93rem;font-weight:600;color:#111;cursor:pointer;text-decoration:none;text-align:left;gap:12px;transition:background .12s;-webkit-tap-highlight-color:transparent;}
.mob-ov-btn:hover,.mob-ov-btn:focus-visible{background:#f9fafb;}
.mob-ov-chevron{width:15px;height:15px;color:#9ca3af;flex-shrink:0;transition:transform .2s;}
.mob-ov-row.is-open .mob-ov-chevron{transform:rotate(90deg);}
.mob-ov-row.is-open .mob-ov-btn{color:var(--accent,#111);}
.mob-ov-sub{background:#f9fafb;padding:4px 0 10px;}
.mob-ov-sub-link{display:block;padding:9px 20px 9px 34px;font-size:.875rem;color:#4b5563;text-decoration:none;transition:color .12s,background .12s;border-left:2px solid transparent;}
.mob-ov-sub-link:hover{color:var(--accent,#111);background:rgba(0,0,0,.025);border-left-color:var(--accent,#111);}
.mob-ov-cta{display:flex;flex-direction:column;gap:10px;padding:16px 20px;padding-bottom:max(16px,env(safe-area-inset-bottom,16px));border-top:1px solid #f0f2f4;flex-shrink:0;}
.mob-ov-cta1,.mob-ov-cta2{display:block;padding:13px 20px;text-align:center;border-radius:10px;font-weight:600;font-size:.88rem;text-decoration:none;transition:opacity .15s;letter-spacing:.1px;}
.mob-ov-cta1{color:#fff;}
.mob-ov-cta1:hover{opacity:.9;}
.mob-ov-cta2{background:#111;color:#fff;}
.mob-ov-cta2:hover{background:#1f2937;}

/* ============================================
   READER POLLS + ACCOUNT SYSTEM (ported from BWU)
   ============================================ */

.account-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius, 8px);
    color: var(--text-light);
    transition: all 0.15s;
    position: relative;
}

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

.account-btn.logged-in { color: var(--accent); }

.account-btn .account-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    display: none;
}

.account-btn.logged-in .account-dot { display: block; }

.up-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    z-index: 2600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.up-overlay.show { display: flex; animation: bpFadeIn 0.2s ease; }

@keyframes bpFadeIn { from { opacity: 0; } to { opacity: 1; } }

.up-modal {
    background: var(--white, #fff);
    border-radius: var(--radius-lg, 16px);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.up-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.375rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.up-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.up-modal h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 4px;
    padding-right: 20px;
}

.up-modal p.up-sub {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.5;
}

.up-party-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.up-party-btn {
    border: 1.5px solid var(--border);
    background: var(--white, #fff);
    border-radius: 9px;
    padding: 10px 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    color: var(--text);
}

.up-party-btn:hover { border-color: var(--party-c, var(--accent)); }

.up-party-btn.selected {
    background: var(--party-c, var(--accent));
    border-color: var(--party-c, var(--accent));
    color: #fff;
}

.up-party-btn.has-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 6px 10px;
}

.up-party-btn-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg);
}

.leaderboard-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 2px;
}

.leaderboard-row.rank-1 .leaderboard-avatar {
    width: 34px;
    height: 34px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--party-c, var(--accent));
}

.leaderboard-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e4ea;
}

.up-field { margin-bottom: 14px; }

.up-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}

.up-field select,
.up-field input,
.up-optin-fields input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white, #fff);
}

.up-select-btn {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white, #fff);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.up-select-btn::after { content: "\25be"; color: var(--text-light); margin-left: 8px; }
.up-select-btn.placeholder { color: var(--text-light); }

.pw-toggle-wrap { position: relative; }
.pw-toggle-wrap input { padding-right: 42px !important; }
.pw-toggle-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}
.pw-toggle-btn:hover { color: var(--text); }

.up-live-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #2e7d32;
    background: #e8f5e9;
    border-radius: 20px;
    vertical-align: middle;
}

.up-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.up-actions-center { justify-content: center; }
.up-actions-center .btn { min-width: 220px; padding: 12px 24px; font-size: 0.9375rem; justify-content: center; }

.up-more-toggle {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    margin: 4px 0 4px;
}

.up-party-grid-more { margin-bottom: 8px; }

.up-field-autocomplete { position: relative; }

.up-city-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white, #fff);
    border: 1.5px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.up-city-suggestions.show { display: block; }

.up-city-item {
    padding: 9px 12px;
    font-size: 0.875rem;
    cursor: pointer;
}

.up-city-item:hover { background: var(--bg); }

.up-step { display: none; }
.up-step.active { display: block; }

.up-results-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 0.8125rem;
}

.up-results-bar-row .up-bar-label {
    width: 72px;
    flex-shrink: 0;
    font-weight: 600;
}

.up-results-bar-track {
    flex: 1;
    height: 10px;
    background: #f1f2f4;
    border-radius: 6px;
    overflow: hidden;
}

.up-results-bar-fill {
    display: block;
    height: 100%;
    border-radius: 6px;
    min-width: 2px;
    transition: width 0.4s ease;
}

.up-results-bar-val {
    width: 42px;
    text-align: right;
    font-weight: 700;
    flex-shrink: 0;
}

.up-thanks-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.up-optin-box {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.up-optin-box p { font-size: 0.8125rem; color: var(--text-light); margin-bottom: 10px; }

.up-optin-fields { display: flex; flex-direction: column; gap: 8px; }
.up-optin-fields .btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 0.9375rem; }

.up-next-poll-btn { width: 100%; justify-content: center; margin-top: 14px; }

.up-install-link {
    display: none;
    text-align: center;
    margin-top: 14px;
    padding: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
@media (max-width: 640px) {
    .up-install-link { display: block; }
}

.up-skip-link {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 10px;
    cursor: pointer;
}

.up-error { color: #c0392b; font-size: 0.75rem; margin-top: 6px; display: none; }
.up-error.show { display: block; }

@media (max-width: 480px) {
    .up-party-grid { grid-template-columns: 1fr 1fr; }
    .up-modal { padding: 22px 16px; }
    .up-overlay { align-items: flex-start; padding-top: 24px; }
}

/* ============================================
   ACCOUNT PAGE
   ============================================ */

.konto-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.konto-tab {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.konto-tab.active { color: var(--text); border-bottom-color: var(--accent); }

.konto-panel { display: none; }
.konto-panel.active { display: block; }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.kpi-tile {
    background: var(--white, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    padding: 16px;
}

.kpi-tile .kpi-val { font-size: 1.5rem; font-weight: 700; }
.kpi-tile .kpi-label { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }

.vote-history-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.vote-history-item .vh-month { font-weight: 700; font-size: 0.9375rem; }
.vote-history-item .vh-party { font-size: 0.8125rem; color: var(--text-light); margin-top: 2px; }

.nutzer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.nutzer-table th {
    text-align: left;
    padding: 8px 10px;
    background: var(--bg);
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.nutzer-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.nutzer-table tr:hover td { background: var(--bg); }

.notif-block {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.notif-block:last-of-type { border-bottom: none; padding-bottom: 4px; }

.notif-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notif-block-title { font-weight: 700; font-size: 0.9375rem; }

.notif-cat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text);
    margin-bottom: 6px;
    cursor: pointer;
}

.notif-more-toggle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    margin: 2px 0 8px;
}

.notif-cats-more { padding-left: 4px; }

/* ============================================
   READER POLLS — POLL CARDS
   ============================================ */

.poll-card {
    background: var(--white, #fff);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.poll-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.poll-month-nav {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
}

.poll-month-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}
.poll-month-row:last-child { border-bottom: none; }
.poll-month-row:hover { background: #f7f8fa; }
.poll-month-row.active { background: #f1f4ff; }

.pmr-label { font-weight: 700; font-size: 0.9375rem; display: flex; align-items: center; gap: 8px; }
.pmr-count { margin-left: auto; font-size: 0.8125rem; color: var(--text-light); }
.pmr-arrow { color: var(--text-light); flex-shrink: 0; }
.poll-month-row.active .pmr-arrow { color: var(--accent); }

.poll-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.poll-card-title-row { display: flex; align-items: center; gap: 12px; }

.poll-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f4ff;
    color: var(--accent);
    flex-shrink: 0;
}

.poll-card-title { font-size: 1.125rem; font-weight: 800; margin: 0; }

.poll-question {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-style: italic;
    margin: 14px 0 22px;
    padding-left: 16px;
    border-left: 3px solid var(--border);
}

.poll-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.poll-meta-row h4 { margin: 0; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-light); }
.poll-meta-count { font-size: 0.8125rem; color: var(--text-light); }

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    opacity: 0;
    animation: bpRowIn 0.4s ease forwards;
}

@keyframes bpRowIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.leaderboard-row:nth-child(1) { animation-delay: 0.02s; }
.leaderboard-row:nth-child(2) { animation-delay: 0.08s; }
.leaderboard-row:nth-child(3) { animation-delay: 0.14s; }
.leaderboard-row:nth-child(4) { animation-delay: 0.2s; }
.leaderboard-row:nth-child(5) { animation-delay: 0.26s; }
.leaderboard-row:nth-child(6) { animation-delay: 0.32s; }
.leaderboard-row:nth-child(7) { animation-delay: 0.38s; }
.leaderboard-row:nth-child(n+8) { animation-delay: 0.42s; }

.leaderboard-rank {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-light);
    font-size: 0.6875rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-row.rank-1 .leaderboard-rank { background: #1a1a1a; color: #fff; }
.leaderboard-row.rank-1 .leaderboard-name { font-weight: 800; }
.leaderboard-row.rank-1 .leaderboard-pct { font-weight: 800; font-size: 1rem; }

.leaderboard-name {
    width: 150px;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-name.has-avatar-name { width: 200px; }

.leaderboard-track {
    flex: 1;
    height: 12px;
    background: #f1f2f4;
    border-radius: 8px;
    overflow: hidden;
}

.leaderboard-fill {
    display: block;
    height: 100%;
    border-radius: 8px;
    min-width: 3px;
    transition: width 0.5s ease;
}

.leaderboard-pct {
    width: 52px;
    flex-shrink: 0;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 700;
}

.poll-empty-state {
    text-align: center;
    padding: 28px 16px;
    color: var(--text-light);
}

.poll-empty-state .poll-empty-icon { font-size: 1.75rem; margin-bottom: 8px; opacity: 0.5; }
.poll-empty-state p { font-size: 0.875rem; margin-bottom: 14px; }

/* ============================================
   NATIVE-STYLE PWA INSTALL BAR
   ============================================ */

.pwa-native-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2600;
    transform: translateY(120%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 8px max(8px, env(safe-area-inset-bottom, 8px));
}

.pwa-native-bar.show { transform: translateY(0); }

.pwa-native-inner {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 12px 12px 12px 14px;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.16);
    border: 1px solid rgba(0,0,0,0.06);
}

.pwa-native-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pwa-native-text { flex: 1; min-width: 0; }

.pwa-native-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-native-sub {
    font-size: 0.6875rem;
    color: #888;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-native-install {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    padding: 8px 10px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px;
    transition: background 0.15s;
}

.pwa-native-install:hover { background: rgba(37,99,235,0.08); }

.pwa-native-close {
    width: 26px;
    height: 26px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #888;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
