/* ===== gasspeicherkarte.de - Stylesheet ===== */

:root {
    /* Marke - tiefes Indigo mit warmem Signalton fuer den Fuellstand.
       Bewusst anders als die uebrigen ...karte.de-Sites der Reihe.
       Alle Werte gegen WCAG AA durchgerechnet, siehe cli/check_contrast.php. */
    --primary: #3b2f63;          /* Flaechen und Buttons - Weiss darauf 11,9:1 */
    --primary-dark: #2a2148;     /* Ueberschriften - 14,9:1 */
    --primary-light: #6b5aa0;    /* Akzente auf dunklem Grund - 5,8:1 */
    --accent: #c2410c;           /* Signalfarbe - Weiss darauf 5,2:1 */
    --accent-dark: #9a340a;      /* Fliesstext-Akzent auf hell - 7,3:1 */
    --link: #4a3a7d;             /* Textlinks - 9,6:1 auf Weiss */
    --danger: #8c2d15;
    --success: #2f6b45;
    /* Flaechen */
    --bg: #f7f6fb;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-soft: #eeecf6;
    /* Text */
    --text: #1c1a2e;
    --text-light: #454059;
    --text-muted: #5d5872;
    /* Linien */
    --border: #ddd9ea;
    --border-light: #eae7f3;
    --border-strong: #b9b2d1;
    /* Geometrie */
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(42,33,72,0.08);
    --shadow-lg: 0 6px 24px rgba(42,33,72,0.16);
    --shadow-inset: inset 0 -1px 0 rgba(0,0,0,0.04);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }

/* Keyboard accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c1121f; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--link); color: var(--link); }
.btn-outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary, .btn-accent, .btn-danger { box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.btn-primary:hover, .btn-accent:hover, .btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; }

/* ===== Header ===== */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 4px 16px -10px rgba(91,72,15,0.18);
    position: sticky;
    top: 0;
    z-index: 1100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    color: var(--text);
}
.logo:hover { color: var(--primary); }
.logo-icon { font-size: 1.6rem; }
.logo-text { letter-spacing: -0.5px; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.main-nav a:not(.btn):hover { color: var(--primary-dark); text-decoration: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.2s;
}

/* ===== Flash Messages ===== */
.flash {
    padding: 12px 20px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
}
.flash-success { background: #d4edda; color: #155724; }
.flash-error { background: #f8d7da; color: #721c24; }
.flash-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

/* ===== Main Content ===== */
.main-content {
    min-height: calc(100vh - 64px - 200px);
    padding: 40px 0;
}
.main-content .container { max-width: 800px; }

/* ===== MAP PAGE ===== */
/* On map page, the body scrolls so the SEO content & footer below the map are reachable */
body.map-page {
    /* keep default: scroll allowed */
}
.main-map {
    display: block;
    width: 100%;
}
.map-flex {
    display: flex;
    height: calc(100vh - 64px); /* viewport minus sticky header */
    width: 100%;
}

/* Sidebar */
.map-sidebar {
    width: 340px;
    min-width: 340px;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow-y: auto;
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-header .logo { margin-bottom: 4px; }
.sidebar-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.sidebar-actions {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-actions .btn { justify-content: center; width: 100%; }

.sidebar-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Filters */
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}
.filter-item input[type="checkbox"] { accent-color: var(--primary); }
.filter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.date-filters {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.date-filters input {
    flex: 1;
    min-width: 0;
    padding: 6px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    max-width: 50%;
}

/* Recent sightings in sidebar */
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius);
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}
.recent-item:hover { background: var(--bg); color: var(--text); }
.recent-icon { font-size: 1.3rem; line-height: 1; }
.recent-info { flex: 1; }
.recent-info strong { font-size: 0.85rem; display: block; }
.recent-info span { font-size: 0.75rem; color: var(--text-muted); }

/* Map container */
.map-container {
    flex: 1;
    position: relative;
}
#map { width: 100%; height: 100%; }

/* Custom Leaflet popup */
.hornet-popup { min-width: 220px; }
.hornet-popup .popup-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.hornet-popup .popup-location {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}
.hornet-popup .popup-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.hornet-popup .popup-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.4;
}
.hornet-popup .popup-thumb {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 8px;
}
.hornet-popup .popup-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--link);
}

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

/* Sidebar stats */
.sidebar-stats {
    display: flex;
    gap: 12px;
}
.sidebar-stat {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: var(--bg);
    border-radius: var(--radius);
}
.sidebar-stat strong {
    display: block;
    font-size: 1.3rem;
    color: var(--primary-dark);
}
.sidebar-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sidebar close button */
.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
    line-height: 1;
}
.sidebar-close:hover { color: var(--text); }

/* Sidebar toggle button (visible when sidebar is collapsed) */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 80px;
    left: 12px;
    z-index: 1000;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    line-height: 1;
}
.sidebar-toggle:hover { background: var(--primary-dark); }

/* Sidebar collapsed state (desktop + mobile) */
.map-sidebar.collapsed {
    display: none;
}
.map-sidebar {
    transition: margin-left 0.2s;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group .hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-white);
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245,127,23,0.1);
}
textarea { min-height: 100px; resize: vertical; }

.form-errors {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.form-errors ul { margin: 6px 0 0 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Map picker in form */
#location-map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 8px;
}
.location-search {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.location-search input { flex: 1; }

.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
}
.file-upload:hover { border-color: var(--primary); }
.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.file-upload-label { color: var(--text-muted); font-size: 0.9rem; }
.file-upload-preview {
    max-width: 200px;
    margin-top: 12px;
    border-radius: var(--radius);
    display: none;
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; }

/* ===== SIGHTING DETAIL ===== */
.sighting-detail { max-width: 700px; margin: 0 auto; }
.sighting-detail .detail-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.detail-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}
.detail-meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.sighting-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.sighting-info {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.sighting-info dt { font-weight: 600; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
.sighting-info dd { margin-bottom: 16px; font-size: 1rem; }
.sighting-info dd:last-child { margin-bottom: 0; }
#detail-map { width: 100%; height: 250px; border-radius: var(--radius); margin-bottom: 24px; }
.detail-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }

/* ===== ADMIN ===== */
.admin-wrap { max-width: 1100px; margin: 0 auto; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-card .stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-muted); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-table th {
    background: var(--primary-dark);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
}
.admin-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    vertical-align: top;
}
.admin-table tr:hover td { background: var(--bg); }
.admin-table .actions { display: flex; gap: 6px; }

.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    border: 1px solid var(--border);
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Login form */
.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.login-box h1 { text-align: center; margin-bottom: 24px; }

/* ===== STATIC PAGES ===== */
.page-content h1 { font-size: 2rem; margin-bottom: 8px; color: var(--primary-dark); }
.page-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--primary-dark); }
.page-content p { margin-bottom: 16px; line-height: 1.8; color: var(--text-light); }
.page-content ul { margin: 0 0 16px 24px; line-height: 1.8; color: var(--text-light); }

.hero-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}
.hero-banner {
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-banner::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 110%, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}
.hero-banner > * { position: relative; z-index: 1; }
.hero-banner h1 { color: #fff; font-size: 2.2rem; text-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.hero-banner p { color: rgba(255,255,255,0.95); font-size: 1.1rem; margin-top: 8px; }

/* ===== SIGHTING LIST ===== */
.sighting-list { display: flex; flex-direction: column; gap: 8px; }
.sighting-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s;
}
.sighting-list-item:hover { box-shadow: var(--shadow-lg); color: var(--text); }
.list-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}
.list-content { flex: 1; }
.list-content strong { font-size: 1rem; display: block; margin-bottom: 2px; }
.list-meta { font-size: 0.8rem; color: var(--text-muted); }
.list-desc { font-size: 0.85rem; color: var(--text-light); margin-top: 6px; line-height: 1.5; }

/* ===== BLOG ===== */
.blog-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.blog-card {
    display: block;
    padding: 20px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s;
}
.blog-card:hover { box-shadow: var(--shadow-lg); color: var(--text); }
.blog-card h2 { font-size: 1.2rem; margin-bottom: 4px; color: var(--primary-dark); }
.blog-date { font-size: 0.8rem; color: var(--text-muted); }
.blog-card p { font-size: 0.9rem; color: var(--text-light); margin-top: 8px; line-height: 1.5; }

/* Table of contents */
.toc {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px 16px 24px;
    margin-bottom: 28px;
}
.toc strong { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.toc ol { margin: 8px 0 0 20px; padding: 0; }
.toc li { font-size: 0.9rem; margin-bottom: 4px; line-height: 1.5; }
.toc a { color: var(--primary); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.blog-article { max-width: 750px; margin: 0 auto; }
.blog-content { line-height: 1.9; color: var(--text-light); }
.blog-content h2 { font-size: 1.4rem; color: var(--primary-dark); margin: 32px 0 12px; }
.blog-content h3 { font-size: 1.15rem; color: var(--primary-dark); margin: 24px 0 8px; }
.blog-content p { margin-bottom: 16px; }
.blog-content ul, .blog-content ol { margin: 0 0 16px 24px; }
.blog-content li { margin-bottom: 6px; }
.blog-content a { color: var(--primary); text-decoration: underline; }
.blog-content blockquote {
    border-left: 4px solid var(--primary-light);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #2a1f0c;
    color: rgba(255,255,255,0.92);
    padding: 48px 0 24px;
    border-top: 4px solid var(--primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 30px;
}
.footer-about .logo-icon,
.footer-about .logo-text { color: #fff; }
.footer-about p { font-size: 0.9rem; margin-top: 8px; line-height: 1.6; }
.footer-links h2 { color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
    padding: 3px 0;
}
.footer-links a:hover { color: var(--primary-light); text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== 404 ===== */
.not-found {
    text-align: center;
    padding: 80px 20px;
}
.not-found h1 { font-size: 5rem; color: var(--primary-dark); margin-bottom: 4px; }
.not-found p { font-size: 1.2rem; color: var(--text-light); margin: 16px 0 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }

    /* Mobile map layout: fixed heights instead of flex:1, so iOS Safari URL-bar
       resizing can't collapse the map to 0px. */
    .map-flex { flex-direction: column; height: auto; }
    .map-container {
        order: 1;
        flex: 0 0 55vh;
        height: 55vh;
        min-height: 320px;
    }
    .map-sidebar {
        width: 100%;
        min-width: 100%;
        order: 3;
        flex: 0 0 auto;
        max-height: none;
        border-right: none;
        border-top: 1px solid var(--border);
    }
    .sidebar-toggle { display: block; }
    .map-sidebar.collapsed { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-banner { padding: 40px 16px; }
    .hero-banner h1 { font-size: 1.6rem; }
}

/* ===== Bundesland / Hotspot cards ===== */
.bundesland-grid a,
.hotspot-grid a {
    border: 1px solid var(--border) !important;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    box-shadow: 0 1px 2px rgba(91,72,15,0.06);
}
.bundesland-grid a:hover,
.hotspot-grid a:hover {
    transform: translateY(-2px);
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-lg);
    text-decoration: none !important;
}

/* ===== Page content links readability ===== */
.page-content a:not(.btn):not(.blog-card):not(.bundesland-card):not(.hotspot-card):not(.sighting-list-item),
.sighting-info a:not(.btn) { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:not(.btn):hover { color: var(--primary-dark); }

/* ===== Article body links ===== */
.blog-content a:not(.btn) { color: var(--link); }
.blog-content a:not(.btn):hover { color: var(--primary-dark); }

/* ===== TOC links ===== */
.toc a { color: var(--link); }
.toc a:hover { color: var(--primary-dark); }

/* ===== Sighting list items ===== */
.sighting-list li a:not(.btn) { color: var(--link); }
.sighting-list li a:not(.btn):hover { color: var(--primary-dark); }

/* Card-block links should NOT carry inline link styling */
.blog-card, .bundesland-grid a, .hotspot-grid a, .sighting-list-item, .recent-item {
    text-decoration: none !important;
    color: var(--text) !important;
}
.blog-card h2 { color: var(--primary-dark); }
.blog-card:hover h2 { color: var(--link); }
.blog-card .blog-date { color: var(--text-muted) !important; text-decoration: none !important; }

/* ===== Subtle section headings ===== */
.sidebar-section h3 { color: var(--text-light); font-weight: 700; }

/* ===== Detail meta improvements ===== */
.detail-meta { color: var(--text-light); }
.detail-status { letter-spacing: 0.2px; }
.status-pending { background: #fff3cd; color: #6b4f00; border: 1px solid #f0d878; }
.status-approved { background: #d4edda; color: #0f4419; border: 1px solid #a3d3b1; }

/* ===== Mobile scroll affordance between map and SEO =====
   Mobile-first: visible by default, hidden on desktop via min-width query. */
.mobile-scroll-hint {
    display: flex;
    order: 2;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.08);
}
.mobile-scroll-hint:hover,
.mobile-scroll-hint:focus { background: var(--primary-dark); color: #fff; }
.mobile-scroll-hint::after { content: "↓"; font-size: 1.1rem; }
@media (min-width: 769px) {
    .mobile-scroll-hint { display: none; }
}

/* ===== Map page intro (SEO content under the map) ===== */
.map-page-intro {
    padding: 60px 0 70px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}
.map-page-intro .container { max-width: 1100px; }
.map-page-intro h2 {
    font-size: 1.9rem;
    margin-bottom: 14px;
    color: var(--primary-dark);
}
.map-page-intro .lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: 36px;
}
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}
.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 24px;
    box-shadow: var(--shadow);
}
.intro-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--primary-dark);
}
.intro-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-light);
    margin: 0 0 16px;
}
.intro-card .btn { margin-top: 4px; }
.intro-sources {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.intro-sources h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--text);
}
.intro-sources p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0;
}
.intro-sources a { color: var(--link); }
.intro-sources a:hover { color: var(--primary-dark); }

@media (max-width: 800px) {
    .intro-grid { grid-template-columns: 1fr; }
    .map-page-intro { padding: 40px 0 50px; }
    .map-page-intro h2 { font-size: 1.5rem; }
}

/* Sidebar header tightened (logo now lives in main site header) */
body.map-page .sidebar-header { padding: 14px 20px 12px; position: relative; }
body.map-page .sidebar-header > strong { line-height: 1.2; }
body.map-page .sidebar-close {
    position: absolute; top: 12px; right: 12px;
    font-size: 0.8rem; color: var(--text-muted);
    background: none; border: none; cursor: pointer; padding: 4px;
}
body.map-page .sidebar-close:hover { color: var(--text); }

/* ===== Smoother focus + skip link ===== */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff;
    padding: 10px 16px; border-radius: var(--radius);
    z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Cookie consent banner ===== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1f2937; color: #f9fafb;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
    z-index: 9999; padding: 16px 20px;
    animation: cookieSlideUp 280ms ease-out;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 20px;
    align-items: center; justify-content: space-between;
}
.cookie-banner__text { flex: 1 1 420px; font-size: 0.92rem; line-height: 1.45; }
.cookie-banner__text a { color: #93c5fd; text-decoration: underline; }
.cookie-banner__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__btn {
    border: 0; border-radius: 6px; padding: 10px 18px;
    font-size: 0.9rem; font-weight: 600; cursor: pointer;
    transition: background 140ms ease;
}
.cookie-banner__btn--primary { background: var(--accent, #16a34a); color: #fff; }
.cookie-banner__btn--primary:hover { filter: brightness(0.92); }
.cookie-banner__btn--secondary { background: #4b5563; color: #fff; }
.cookie-banner__btn--secondary:hover { background: #374151; }

/* ===== Blog dropdown in main nav ===== */
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    display: none;
    z-index: 500;
}
.main-nav .has-dropdown:hover > .dropdown-menu,
.main-nav .has-dropdown:focus-within > .dropdown-menu,
.main-nav .has-dropdown.open > .dropdown-menu { display: block; }
.main-nav .dropdown-menu a {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
    padding: 8px 14px;
    font-size: 0.92rem;
    color: var(--text, #1f2937);
    white-space: nowrap;
}
.main-nav .dropdown-menu a:hover { background: #f3f4f6; }
.main-nav .dropdown-menu .count {
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 0.78rem;
    font-weight: 600;
}
.main-nav .dropdown-menu .dropdown-divider {
    height: 1px; background: var(--border, #e5e7eb); margin: 6px 0;
}
.main-nav .has-dropdown > a::after {
    content: " \25BE";
    font-size: 0.75em;
    opacity: 0.7;
}


/* ===== Blog: category pills ===== */
.category-pills {
    margin: 20px 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-pills .pill,
.page-content a.pill {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border, #d7ccc8);
    background: #fff;
    color: var(--text, #3e2723) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.15s;
    line-height: 1.2;
}
.category-pills .pill:hover {
    border-color: var(--accent, #f57c00);
    background: #fff3e0;
    color: var(--accent-dark, #bf360c) !important;
}
.category-pills .pill-active {
    background: var(--accent, #f57c00);
    color: #fff !important;
    border-color: var(--accent, #f57c00);
    font-weight: 600;
}
.category-pills .pill-active:hover {
    background: var(--accent-dark, #bf360c);
    color: #fff !important;
}

/* ===== Blog list: image-left cards ===== */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
}
.blog-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-decoration: none !important;
    color: var(--text, #1f2937) !important;
    transition: box-shadow 0.18s, transform 0.18s;
}
.blog-card:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}
.blog-card__image {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    display: block;
    background: #e3f2fd;
}
.blog-card__body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-card h2 {
    font-size: 1.15rem;
    margin: 0 0 6px;
    color: var(--text, #1f2937);
    line-height: 1.3;
}
.blog-card:hover h2 {
    color: var(--accent, #f57c00);
}
.blog-card .blog-date {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.blog-card p {
    font-size: 0.92rem;
    color: var(--text-muted, #555);
    margin: 0;
    line-height: 1.5;
}
.blog-card:not(:has(.blog-card__image)) {
    grid-template-columns: 1fr;
}
.blog-card:not(:has(.blog-card__image)) .blog-card__body {
    padding: 22px 26px;
}
@media (max-width: 640px) {
    .blog-card { grid-template-columns: 1fr; }
    .blog-card__image { aspect-ratio: 16/9; min-height: 0; height: auto; }
    .blog-card__body { padding: 16px 20px; }
}

/* =====================================================================
   gasspeicherkarte.de - extra componenten (hergebruikt van portfolio-basis)
   ===================================================================== */

/* ---- Hero + zoek ---- */
.hero-map { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); color: #fff; padding: 36px 0 28px; }
.hero-map__intro h1, .hero-map h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.hero-map .hero-sub { color: #ffffff; font-size: 1.1rem; max-width: 720px; text-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.country-search { position: relative; max-width: 520px; margin-top: 18px; }
.country-search input { width: 100%; padding: 13px 16px; border-radius: 999px; border: none; font-size: 1rem; box-shadow: var(--shadow-lg); }
.country-search__results { position: absolute; z-index: 600; left: 0; right: 0; margin-top: 6px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); list-style: none; overflow: hidden; }
.country-search__results li a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text); }
.country-search__results li a:hover { background: var(--bg-soft); text-decoration: none; }
.country-search__results .muted { margin-left: auto; font-size: .85rem; }

/* ---- Wereldkaart ---- */
.world-map { width: 100%; height: 520px; background: #cfe8f3; }
@media (max-width: 700px) { .world-map { height: 380px; } }
.map-info { background: rgba(255,255,255,.95); padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.4; max-width: 220px; }
.leaflet-container { font: inherit; }

/* ---- Legenda + status ---- */
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 16px 0; margin: 8px 0; border-bottom: 1px solid var(--border-light); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: .95rem; }
.status-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; flex: none; }
.status-badge { display: inline-block; color: #fff; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* ---- Country grid + cards ---- */
.section { margin: 36px 0; }
.section--split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .section--split { grid-template-columns: 1fr; } }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.country-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.country-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.country-card__flag { font-size: 1.8rem; line-height: 1; }
.country-card__name { font-weight: 600; color: var(--text); }
.country-card--continent { align-items: center; text-align: center; justify-content: center; min-height: 84px; }

/* ---- Quick links ---- */
.quick-links { display: flex; flex-direction: column; gap: 10px; }
.quick-link { background: #fff; border: 1px solid var(--border-light); border-left: 4px solid var(--primary); border-radius: 8px; padding: 12px 16px; font-weight: 600; box-shadow: var(--shadow); }
.quick-link--safe { border-left-color: #2E7D32; }
.quick-link--unsafe { border-left-color: #C62828; }
.status-explainer { list-style: none; margin: 12px 0; }
.status-explainer li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.recent-blog { margin: 10px 0 10px 20px; }

/* ---- Country page ---- */
.breadcrumbs { font-size: .9rem; color: var(--text-muted); margin-bottom: 14px; }
.country-header h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.country-flag { font-size: 2.2rem; }
.status-banner { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 14px 0; padding: 14px 18px; border-radius: 10px; background: var(--status-color); color: #fff; }
.status-banner__label { font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.status-banner__heading { font-size: 1.05rem; opacity: .95; }
.answer-box { background: var(--bg-soft); border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 8px; font-size: 1.1rem; margin-bottom: 20px; }
.country-hero { margin: 0 0 20px; }
.country-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin: 18px 0; }
.country-facts > div { background: #fff; border: 1px solid var(--border-light); border-radius: 8px; padding: 10px 14px; }
.country-facts span { display: block; font-size: .8rem; color: var(--text-muted); }
.country-facts strong { font-size: 1.05rem; }
.jmp-bar { position: relative; background: #e6eef3; border-radius: 999px; height: 26px; overflow: hidden; margin: 14px 0 24px; }
.jmp-bar__fill { height: 100%; border-radius: 999px; }
.jmp-bar__text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; color: #15303d; }
.country-content h2 { font-size: 1.4rem; margin: 30px 0 12px; color: var(--primary-dark); }
.country-content ul { margin: 0 0 16px 24px; }
.toc { background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.toc ol { margin: 8px 0 0 20px; }

/* ---- FAQ ---- */
.faq { margin: 28px 0; }
.faq h2 { color: var(--primary-dark); }
.faq-item { background: #fff; border: 1px solid var(--border-light); border-radius: 8px; margin-bottom: 10px; padding: 4px 16px; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq-answer { padding-bottom: 12px; color: var(--text-light); }

/* ---- Tabel ---- */
.country-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.country-table th, .country-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border-light); }
.country-table th { background: var(--bg-soft); font-size: .9rem; }
.country-table th.num, .country-table td.num { text-align: right; }
.country-table tbody tr:hover { background: var(--bg-soft); }
.flag-sm { font-size: 1.2rem; }

/* ---- Filter pills ---- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.filter-pills .pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .9rem; }
.filter-pills .pill-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Admin ---- */
.admin-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.admin-stats .stat { background: #fff; border: 1px solid var(--border-light); border-top: 3px solid var(--c, var(--primary)); border-radius: 8px; padding: 12px 18px; min-width: 90px; text-align: center; }
.admin-stats .stat span { display: block; font-size: 1.6rem; font-weight: 700; color: var(--c, var(--primary-dark)); }
.admin-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.admin-filter input, .admin-filter select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; }
.muted { color: var(--text-muted); }

/* ===== Kaart-componenten (map/map-shell/map-embed gebruikt elders al) ===== */
.map-opacity { background: #fff; padding: 6px 8px; border-radius: 6px; box-shadow: var(--shadow); font-size: .78rem; }
.map-opacity input { width: 90px; display: block; }
.map-popup { font-size: .9rem; }
.map-popup .soil-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }

/* Adres-zoeker */
.address-search { position: relative; max-width: 560px; margin: 16px auto 0; }
.address-search--inline, .address-search--big { margin-left: 0; }
.address-search--big { max-width: 100%; }
.address-search input {
    width: 100%; padding: 14px 18px; font-size: 1.05rem; border: 2px solid var(--border-strong);
    border-radius: 999px; background: #fff; box-shadow: var(--shadow);
}
.address-search input:focus { outline: none; border-color: var(--primary); }
.address-search__results {
    position: absolute; z-index: 600; left: 0; right: 0; top: calc(100% + 6px);
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    list-style: none; overflow: hidden;
}
.address-search__results li { padding: 11px 16px; cursor: pointer; border-bottom: 1px solid var(--border-light); }
.address-search__results li:last-child { border-bottom: 0; }
.address-search__results li:hover { background: var(--bg-soft); }

/* Grondsoort-resultaat */
.soil-result { max-width: 560px; margin: 14px auto 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; text-align: left; }
.soil-result--big { max-width: 100%; }
.soil-result__loading, .soil-result__empty { color: var(--text-muted); }
.soil-result__head { display: flex; align-items: center; gap: 12px; border-left: 5px solid; padding-left: 12px; }
.soil-result__group { font-size: 1.3rem; font-weight: 700; display: block; }
.soil-result__addr { color: var(--text-muted); font-size: .9rem; }
.soil-result__type { margin-top: 10px; }
.soil-result__note { margin-top: 10px; color: var(--text-light); font-size: .92rem; }
.soil-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; }
.btn-soil { background: var(--primary); color: #fff; }
.btn-soil:hover { background: var(--primary-dark); color: #fff; }

/* Grondsoort-tegels */
.soil-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.soil-grid--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.soil-card {
    display: block; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--soil-color, var(--primary));
    border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none;
    transition: transform .12s, box-shadow .12s;
}
.soil-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text); }
.soil-card__swatch { display: inline-block; width: 22px; height: 22px; border-radius: 5px; vertical-align: middle; }
.soil-card__name { font-weight: 700; font-size: 1.1rem; margin-left: 6px; }
.soil-card__desc { display: block; color: var(--text-light); font-size: .92rem; margin-top: 8px; }
.soil-card__where { display: block; color: var(--text-muted); font-size: .82rem; margin-top: 8px; }

/* Grondsoort-hero */
.soil-hero { background: linear-gradient(135deg, var(--soil-color, var(--primary)) 0%, rgba(0,0,0,.35) 220%); color: #fff; padding: 40px 0 28px; }
.soil-hero .breadcrumb, .soil-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.soil-hero__head { display: flex; align-items: center; gap: 14px; }
.soil-hero__swatch { width: 34px; height: 34px; border-radius: 7px; border: 2px solid rgba(255,255,255,.7); }
.soil-hero h1 { color: #fff; margin: 6px 0; }
.soil-hero .hero-sub { color: rgba(255,255,255,.92); }
.soil-hero__where { color: rgba(255,255,255,.9); margin-top: 6px; }

/* Legenda */
.map-legend { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 14px 0; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; }
.legend-source { color: var(--text-muted); font-size: .82rem; margin-left: auto; }
.status-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; flex: none; }

/* Content layout met sidebar */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding-top: 28px; }
.content-layout .sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; box-shadow: var(--shadow); }
.sidebar-box h3 { font-size: 1rem; margin-bottom: 10px; color: var(--primary-dark); }

/* Breakdown-balk */
.breakdown { margin: 8px 0 24px; }
.breakdown-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-inset); border: 1px solid var(--border); }
.breakdown-seg { height: 100%; }
.breakdown-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.breakdown-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }

/* Gemeente-chips + grid */

/* Provincie-kaarten */
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.prov-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--soil-color, var(--primary)); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.prov-card:hover { transform: translateY(-2px); text-decoration: none; color: var(--text); box-shadow: var(--shadow-lg); }
.prov-card__name { font-weight: 700; font-size: 1.15rem; }
.prov-card__soil { color: var(--text-muted); font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.prov-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.prov-links a { font-size: .9rem; }

/* Feeder-CTA (funderingskaart) */
.feeder-cta { background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.feeder-cta .btn { background: var(--accent); color: #fff; margin-top: 8px; }
.feeder-cta .btn:hover { background: var(--accent-dark); color: #fff; }

/* FAQ */
.faq { margin-top: 28px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--border-light); margin-bottom: 8px; }
.faq details > div { padding-bottom: 12px; }

/* Gids-kaarten */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; }
.guide-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.guide-card:hover { transform: translateY(-2px); text-decoration: none; color: var(--text); box-shadow: var(--shadow-lg); }
.guide-card h3 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 6px; }
.guide-card p { color: var(--text-light); font-size: .9rem; }

/* Lookup-pagina layout */
.lookup-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-top: 22px; }
.aside-soils { list-style: none; margin-top: 10px; }
.aside-soils li { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.aside-soils li a { display: inline-flex; align-items: center; gap: 8px; }

/* Filterbar + diversen */
.filterbar input { width: 100%; max-width: 420px; padding: 11px 16px; border: 2px solid var(--border-strong); border-radius: 999px; }
.page-head { padding: 28px 0 8px; }
.article-hero { width: 100%; border-radius: var(--radius); margin: 12px 0 20px; }
.prose h2 { color: var(--primary-dark); margin: 28px 0 12px; }
.prose h3 { color: var(--primary-dark); margin: 20px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }

/* Admin */
.admin-wrap { padding-top: 24px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.admin-nav a { margin-left: 14px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.admin-stats .stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.admin-stats .stat-num { font-size: 1.8rem; font-weight: 700; color: var(--primary); display: block; }
.admin-stats .stat-label { color: var(--text-muted); font-size: .85rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border-light); }

@media (max-width: 860px) {
    .content-layout, .lookup-layout { grid-template-columns: 1fr; }
    .bodem-map { height: 380px; }
}

/* ===================== Netcongestie-componenten ===================== */
.leaflet-map { width:100%; border-radius:12px; overflow:hidden; box-shadow:0 2px 14px rgba(0,0,0,.08); }
.map-section, .map-fullbleed { margin:1.5rem 0; }
.map-controls { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between; margin:.8rem 0; }
.map-toggle { display:inline-flex; border:1px solid #d7dce3; border-radius:999px; overflow:hidden; }
.map-toggle button { border:0; background:#fff; padding:.5rem 1rem; cursor:pointer; font-size:.9rem; color:#445; }
.map-toggle button.active { background:#1f6feb; color:#fff; }
.map-legend { display:flex; flex-wrap:wrap; gap:.6rem 1rem; font-size:.82rem; color:#445; }
.map-legend.inline { margin:.6rem 0 1rem; }
.legend-item { display:inline-flex; align-items:center; gap:.35rem; }
.legend-item i { width:14px; height:14px; border-radius:3px; display:inline-block; }
.map-note { font-size:.8rem; color:#778; margin:.3rem 0 0; }

.status-badge { display:inline-block; padding:.25rem .6rem; border-radius:999px; color:#fff; font-size:.85rem; font-weight:600; }
.status-overview { display:flex; flex-wrap:wrap; gap:1.2rem; margin:1rem 0 1.4rem; }
.status-block { background:#f6f8fa; border:1px solid #e7ebf0; border-radius:10px; padding:.8rem 1rem; min-width:210px; }
.status-cap { display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; color:#778; margin-bottom:.4rem; }
.status-meta { display:block; margin-top:.4rem; font-size:.85rem; color:#556; }

.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:1rem; }
.stat-card { background:#fff; border:1px solid #e7ebf0; border-radius:10px; padding:1rem; text-align:center; }
.stat-card strong { display:block; font-size:1.5rem; color:#1f2a37; }
.stat-card span { font-size:.82rem; color:#667; }
.stat-card.stat-red strong { color:#E14B3B; } .stat-card.stat-orange strong { color:#F09A3E; }

.tile-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:.8rem; }
.region-tile { display:flex; flex-direction:column; gap:.25rem; background:#fff; border:1px solid #e7ebf0; border-radius:10px; padding:.8rem .9rem; text-decoration:none; color:#223; transition:box-shadow .15s; }
.region-tile:hover { box-shadow:0 3px 12px rgba(0,0,0,.1); }
.region-tile.lg { padding:1rem; }
.tile-dot { width:14px; height:14px; border-radius:50%; display:inline-block; }
.tile-name { font-weight:600; }
.tile-sub { font-size:.8rem; color:#667; }

.chip-row { display:flex; flex-wrap:wrap; gap:.5rem; margin:.6rem 0 1.4rem; }
.chip { display:inline-flex; align-items:center; gap:.4rem; background:#fff; border:1px solid #dde3ea; border-radius:999px; padding:.35rem .8rem; font-size:.88rem; text-decoration:none; color:#334; }
.chip:hover { border-color:#1f6feb; color:#1f6feb; }
.dot { width:11px; height:11px; border-radius:50%; display:inline-block; }

.table-wrap { overflow-x:auto; margin:1rem 0 1.4rem; }
.vg-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.vg-table th, .vg-table td { text-align:left; padding:.55rem .6rem; border-bottom:1px solid #eceff3; }
.vg-table th { background:#f6f8fa; color:#556; font-weight:600; }
.vg-table td .dot { margin-right:.4rem; }

.breadcrumb { font-size:.85rem; color:#778; margin:.4rem 0 1rem; }
.breadcrumb a { color:#1f6feb; text-decoration:none; }
.faq details { background:#f6f8fa; border:1px solid #e7ebf0; border-radius:8px; padding:.7rem 1rem; margin-bottom:.6rem; }
.faq summary { font-weight:600; cursor:pointer; }
.faq details div { margin-top:.5rem; color:#445; }

.address-search { position:relative; max-width:560px; margin:1rem 0; }
.address-search.big { max-width:680px; }
.address-search input { width:100%; padding:.85rem 1rem; border:1px solid #cdd5df; border-radius:10px; font-size:1rem; }
.suggestions { position:absolute; z-index:1000; left:0; right:0; background:#fff; border:1px solid #dde3ea; border-radius:0 0 10px 10px; box-shadow:0 6px 18px rgba(0,0,0,.12); }
.suggestion { padding:.6rem 1rem; cursor:pointer; }
.suggestion:hover { background:#f1f5fb; }
.lookup-result { max-width:680px; margin:.6rem 0 1.4rem; }
.lookup-card { background:#fff; border:1px solid #e7ebf0; border-radius:12px; padding:1.1rem 1.2rem; }
.lookup-row { display:flex; align-items:center; justify-content:space-between; padding:.4rem 0; border-bottom:1px solid #f0f2f5; }
.lookup-cap { color:#556; }
.lookup-addr { font-weight:600; margin:0 0 .6rem; }
.lookup-meta { font-size:.9rem; color:#556; margin:.5rem 0 0; }
.lookup-loading, .lookup-empty { padding:.9rem 1.1rem; background:#f6f8fa; border-radius:10px; color:#556; }
.filter-input { width:100%; max-width:420px; padding:.6rem .9rem; border:1px solid #cdd5df; border-radius:8px; margin:.6rem 0 1rem; }

.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1rem; }
.card { display:flex; flex-direction:column; gap:.4rem; background:#fff; border:1px solid #e7ebf0; border-radius:10px; padding:1rem; text-decoration:none; color:#223; }
.card:hover { box-shadow:0 3px 12px rgba(0,0,0,.1); }
.card-title { font-weight:600; } .card-date { font-size:.8rem; color:#778; }
.center { text-align:center; } .lead { color:#556; font-size:1.05rem; max-width:760px; }
.region-cta { margin:1.6rem 0; }
.info-box { background:#f6f8fa; border:1px solid #e7ebf0; border-radius:12px; padding:1.1rem 1.3rem; margin:1.4rem 0; }
.hero-map { padding:2rem 0 1rem; } .hero-sub { color:#556; font-size:1.05rem; max-width:720px; }

/* Responsive tabellen in blog/gids-content (mobiel horizontaal scrollen i.p.v. paginabreedte) */
.blog-content table, .prose table { width:100%; border-collapse:collapse; font-size:.92rem; margin:1rem 0; }
.blog-content th, .blog-content td, .prose th, .prose td { border:1px solid #e7ebf0; padding:.5rem .6rem; text-align:left; vertical-align:top; }
.blog-content thead th, .prose thead th { background:#f6f8fa; }
.blog-content img, .prose img { max-width:100%; height:auto; }
.blog-content, .prose { overflow-wrap:break-word; }

/* ===== kaart-site additions ===== */
.lead{font-size:1.12rem;color:#33414f;max-width:70ch;margin:0 0 1.2rem}
.two-col{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:2rem}
@media(max-width:880px){.two-col{grid-template-columns:1fr}}
.sidebar .side-box{background:#f4f7fa;border:1px solid #e2e9f0;border-radius:10px;padding:1rem 1.1rem;margin-bottom:1rem}
.side-box h3{margin:0 0 .5rem;font-size:1rem}
.link-list{list-style:none;padding:0;margin:0}
.link-list li{margin:.25rem 0}
.card-meta{display:block;color:#5a6b7b;font-size:.9rem;margin-top:.2rem}
.card-desc{display:block;color:#46566a;font-size:.86rem;margin-top:.4rem}
.chip-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:.4rem 0 1.4rem}
.pill{display:inline-block;background:#eef3f8;border:1px solid #d8e2ec;border-radius:999px;padding:.35rem .8rem;color:#0e3a5f;text-decoration:none;font-size:.92rem;cursor:pointer}
.pill:hover,.pill.active{background:#0e3a5f;color:#fff;border-color:#0e3a5f}
.rank-list{list-style:none;counter-reset:r;padding:0;margin:.5rem 0 1rem}
.rank-list li{counter-increment:r;display:flex;justify-content:space-between;gap:.5rem;padding:.35rem 0;border-bottom:1px solid #eef2f6}
.rank-list li::before{content:counter(r) ".";color:#9aa7b4;margin-right:.4rem}
.rank-list li span{color:#5a6b7b;font-variant-numeric:tabular-nums}
.step-list{list-style:none;counter-reset:s;padding:0;margin:.5rem 0 1rem}
.step-list li{counter-increment:s;display:flex;gap:.7rem;padding:.5rem 0;border-bottom:1px solid #eef2f6}
.step-list li::before{content:counter(s);flex:0 0 auto;width:1.6rem;height:1.6rem;line-height:1.6rem;text-align:center;border-radius:50%;background:var(--zk-teal);color:#fff;font-weight:700;font-size:.85rem}
.rank-cols{column-count:2;column-gap:2rem}
@media(max-width:600px){.rank-cols{column-count:1}}
.az-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:.25rem .9rem}
.az-grid a{padding:.2rem 0;text-decoration:none;color:#15405f;font-size:.92rem}
.az-grid a small{color:#9aa7b4}
.data-table{width:100%;border-collapse:collapse;margin:.5rem 0 1.4rem;font-size:.95rem}
.data-table th,.data-table td{text-align:left;padding:.5rem .6rem;border-bottom:1px solid #e8eef3}
.data-table th{background:#0e3a5f;color:#fff;font-weight:600}
.data-table tr:nth-child(even) td{background:#f7fafc}
.near-list{list-style:none;padding:0;margin:.4rem 0}
.near-list li{padding:.3rem 0;border-bottom:1px solid #eef2f6}
.near-dist{display:inline-block;min-width:60px;color:#0e3a5f;font-weight:600;font-variant-numeric:tabular-nums}
.lookup-note{font-size:.82rem;color:#6b7886;margin-top:.6rem}
.stale-tag{color:#8a4b00;font-size:.85em;font-weight:600}

/* map */
#map{width:100%;height:520px;border-radius:10px;z-index:1}
.map-shell{position:relative;max-width:1100px;margin:1.5rem auto;padding:0 1rem}
.map-embed{max-width:1100px;margin:0 auto 1.5rem;padding:0 1rem;position:relative}
.map-embed #map{height:460px}
.map-toolbar{display:flex;justify-content:flex-end;margin-bottom:.5rem}
.map-toggle{display:inline-flex;border:1px solid #d8e2ec;border-radius:8px;overflow:hidden}
.map-toggle button{background:#fff;border:0;padding:.45rem .8rem;cursor:pointer;font-size:.88rem;color:#0e3a5f}
.map-toggle button.active{background:#0e3a5f;color:#fff}
.map-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(255,255,255,.92);padding:.5rem .9rem;border-radius:8px;font-size:.9rem;box-shadow:0 2px 8px rgba(0,0,0,.15);z-index:2}
.map-legend{background:#fff;border:1px solid #e2e9f0;border-radius:8px;padding:.6rem .8rem;font-size:.84rem;margin-top:.6rem;display:inline-block}
.legend-row{display:flex;align-items:center;gap:.5rem;margin:.2rem 0}
.legend-swatch{width:16px;height:16px;border-radius:3px;display:inline-block}
.filter-pills{display:flex;flex-wrap:wrap;gap:.4rem;margin:.3rem 0 1rem}

/* hero search */
.hero-search{position:relative;display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:1rem 0}
.hero-search input[type=text]{flex:1;min-width:240px;padding:.7rem .9rem;border:1px solid #c8d4df;border-radius:8px;font-size:1rem}
.radius-pick{font-size:.9rem;color:#33414f;display:flex;align-items:center;gap:.4rem}
/* Op de donkere hero-gradient (home) is de donkere labelkleur onleesbaar - daar wit (AA) */
.hero-banner .radius-pick{color:#fff}
.radius-pick select{padding:.45rem;border-radius:6px;border:1px solid #c8d4df}
.suggestions{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #d8e2ec;border-radius:0 0 8px 8px;z-index:1000;max-height:260px;overflow:auto;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.suggestion{padding:.55rem .9rem;cursor:pointer}
.suggestion:hover{background:#eef3f8}
.lookup-card{background:#f4f7fa;border:1px solid #e2e9f0;border-radius:10px;padding:1rem}
.lookup-loading,.lookup-empty{padding:.8rem;color:#5a6b7b}

/* full-page map layout (/kaart, /op-adres) */
.map-fullpage{display:grid;grid-template-columns:380px minmax(0,1fr);gap:0;min-height:calc(100vh - 64px)}
.map-side{padding:1.4rem 1.4rem 2rem;overflow:auto}
.map-main{position:relative}
.map-main #map{height:100%;min-height:480px;border-radius:0}
.map-side h1{font-size:1.5rem}
.map-side h3{margin:1rem 0 .4rem;font-size:.95rem}
@media(max-width:880px){.map-fullpage{grid-template-columns:1fr}.map-main #map{height:60vh}}
.hero-map{background:linear-gradient(180deg,#0e3a5f,#12506f);color:#fff;padding:2rem 0 0}
.hero-map .hero-banner{max-width:900px;margin:0 auto;padding:0 1rem}
.hero-map h1{color:#fff}
.hero-map .hero-sub{color:#dce8f0}
.hero-map .hero-search input[type=text]{background:#fff}
.hero-map .lookup-result{max-width:900px;margin:0 auto;padding:0 1rem}
.section--alt{background:#f4f7fa}

/* responsive tables (mobiel): horizontaal scrollen i.p.v. overflow */
@media (max-width: 760px) {
  .data-table, .prose table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table thead, .prose table thead { white-space: nowrap; }
}

/* ============================================================
   DESIGN POLISH v3 (zmk3) — premium layer, overrides earlier
   ============================================================ */
:root{
  /* Diese geerbte Schicht trug noch die Farben der Quellsite (pegelstand): ein Teal,
     das mit dem Indigo-Palett dieser Seite nichts zu tun hat. Es faerbte saemtliche
     Inhaltslinks um und war auf dunklen Flaechen (Hero, Footer) nicht mehr lesbar.
     Auf das eigene Palett gezogen - Werte stammen aus dem :root ganz oben. */
  --zk-navy:#2a2148; --zk-navy2:#3b2f63; --zk-ink:#1c1a2e; --zk-muted:#5d5872;
  --zk-teal:#4a3a7d; --zk-teal-l:#6b5aa0; --zk-amber:#9a340a;
  --zk-line:#eae7f3; --zk-bg:#ffffff; --zk-alt:#f7f6fb;
  --zk-shadow:0 1px 2px rgba(42,33,72,.05), 0 6px 20px rgba(42,33,72,.06);
  --zk-shadow-h:0 6px 14px rgba(42,33,72,.10), 0 14px 34px rgba(42,33,72,.12);
}
body{ font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; color:var(--zk-ink); background:var(--zk-bg); }
h1,h2,h3,h4,.logo-text,.stat-num,.hero-banner h1,.map-side h1{ font-family:'Outfit','Inter',sans-serif; letter-spacing:-.02em; }
h1{ font-weight:800; } h2{ font-weight:700; } h3{ font-weight:600; }

/* logo */
.logo{ display:inline-flex; align-items:center; gap:.55rem; font-weight:700; }
.logo-icon{ width:30px; height:30px; flex:0 0 auto; display:inline-block; }
.logo-text{ font-size:1.18rem; letter-spacing:-.5px; }
.site-header{ box-shadow:0 1px 0 var(--zk-line), 0 2px 14px rgba(14,58,95,.04); }

/* content links accent (scoped, nav/footer/buttons untouched) */
.main-content a:not(.btn):not(.pill):not(.card):not(.logo),
.prose a, .lead a, .faq-answer a, .data-table a, .rank-list a, .link-list a, .az-grid a{
  color:var(--zk-teal); text-decoration:none;
}
.main-content a:not(.btn):not(.pill):not(.card):hover,
.prose a:hover, .lead a:hover, .data-table a:hover{ color:#2a2148; text-decoration:underline; text-underline-offset:2px; }

/* section rhythm + headings */
.section{ margin:0; padding:56px 0; }
.section--alt{ background:var(--zk-alt); }
.section > .container > h2, .section > .container > .two-col h2, .section .container > h2{ position:relative; }
.section h2{ font-size:1.55rem; margin:0 0 1.1rem; padding-bottom:.5rem; }
.section h2::after{ content:""; display:block; width:48px; height:3px; border-radius:3px; margin-top:.55rem; background:linear-gradient(90deg,var(--zk-teal),var(--zk-teal-l)); }
.lead{ font-size:1.16rem; line-height:1.7; color:#34424f; }

/* subpage hero accent */
.breadcrumbs{ font-size:.85rem; color:var(--zk-muted); margin-bottom:.8rem; }
.breadcrumbs a{ color:var(--zk-teal); }
.section > .container > h1{ font-size:2rem; line-height:1.15; margin:0 0 .7rem; border-left:4px solid var(--zk-teal-l); padding-left:.75rem; }

/* STAT cards -> premium cijferband */
.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin:1.6rem 0 .6rem; }
.stat-card{ background:#fff; border:1px solid var(--zk-line); border-radius:14px; padding:1.3rem 1.1rem; text-align:left; box-shadow:var(--zk-shadow); position:relative; overflow:hidden; }
.stat-card::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(180deg,var(--zk-teal),var(--zk-teal-l)); }
.stat-card .stat-num{ display:block; font-size:2.1rem; font-weight:800; color:var(--zk-navy); line-height:1.05; font-variant-numeric:tabular-nums; }
.stat-card .stat-label{ display:block; font-size:.82rem; color:var(--zk-muted); margin-top:.25rem; text-transform:uppercase; letter-spacing:.04em; }
@media(max-width:760px){ .stat-grid{ grid-template-columns:repeat(2,1fr); } }

/* cards: shadow + hover lift + accent */
.card-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1.1rem; }
.card{ display:block; background:#fff; border:1px solid var(--zk-line); border-radius:14px; padding:1.15rem 1.2rem; box-shadow:var(--zk-shadow); transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; text-decoration:none; color:var(--zk-ink); }
.card:hover{ transform:translateY(-3px); box-shadow:var(--zk-shadow-h); border-color:#cfe0ea; text-decoration:none; }
.card .card-title{ font-family:'Outfit',sans-serif; font-weight:600; font-size:1.05rem; color:var(--zk-navy); display:block; }
.card .card-title::after{ content:" \2192"; color:var(--zk-teal-l); opacity:0; transition:opacity .15s; }
.card:hover .card-title::after{ opacity:1; }

/* pills */
.pill{ border-radius:999px; border:1px solid #d4e2ec; background:#fff; box-shadow:var(--zk-shadow); }
.pill:hover,.pill.active{ background:var(--zk-navy); border-color:var(--zk-navy); color:#fff; }

/* rank list */
.rank-list li{ padding:.5rem 0; }
.rank-list li::before{ color:var(--zk-teal); font-weight:700; }
.rank-list li a{ font-weight:500; }

/* tables */
.data-table{ border:1px solid var(--zk-line); border-radius:12px; overflow:hidden; box-shadow:var(--zk-shadow); }
.data-table th{ background:var(--zk-navy); font-family:'Outfit',sans-serif; font-weight:600; letter-spacing:.01em; }
.data-table td:nth-child(n+2), .data-table th:nth-child(n+2){ text-align:right; font-variant-numeric:tabular-nums; }
.data-table td:first-child, .data-table th:first-child{ text-align:left; }
.data-table tr:hover td{ background:#eef5f9; }

/* sidebar boxes */
.side-box{ border-radius:14px; box-shadow:var(--zk-shadow); border-color:var(--zk-line); }
.side-box h3{ color:var(--zk-navy); }

/* buttons */
.btn{ border-radius:10px; font-weight:600; font-family:'Outfit',sans-serif; }
.btn-primary{ background:var(--zk-navy); } .btn-primary:hover{ background:#0a2c49; }
.btn-outline{ border:2px solid var(--zk-teal); color:var(--zk-teal); }
.btn-outline:hover{ background:var(--zk-teal); border-color:var(--zk-teal); color:#fff; }

/* hero refinements */
.hero-map{ background:linear-gradient(135deg,#0c3252 0%,#0e3a5f 45%,#11607a 100%); padding:3rem 0 0; }
.hero-banner h1{ font-size:2.5rem; line-height:1.08; }
.hero-sub{ font-size:1.14rem; max-width:60ch; }
.hero-search input[type=text]{ border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,.12); border:none; }
.hero-search .btn,.hero-search button{ border-radius:10px; }

/* map legend as overlay on embedded maps */
.map-shell, .map-embed{ position:relative; }
.map-shell #map-legend, .map-embed #map-legend{
  position:absolute; right:14px; bottom:14px; z-index:600; margin:0;
  background:rgba(255,255,255,.95); box-shadow:var(--zk-shadow-h); border-radius:10px; font-size:.8rem;
}
@media(max-width:600px){ .map-shell #map-legend, .map-embed #map-legend{ left:14px; right:auto; bottom:14px; } }
.legend-swatch{ border:1px solid rgba(0,0,0,.1); }
.map-toggle{ border-radius:10px; box-shadow:var(--zk-shadow); }
.map-toggle button.active{ background:var(--zk-navy); }
#map{ border-radius:14px; box-shadow:var(--zk-shadow); }

/* footer */
.site-footer{ background:#0b2742; }
.site-footer .logo-icon{ width:28px; height:28px; }
.site-footer h2{ font-family:'Outfit',sans-serif; }

/* az-grid */
.az-grid a{ border-radius:8px; padding:.3rem .5rem; transition:background .12s; }
.az-grid a:hover{ background:var(--zk-alt); text-decoration:none; }

/* ---- polish v4: map-hint leesbaar + hero ademruimte ---- */
.map-hint{
  z-index:1200 !important;            /* boven Leaflet-markers/panes */
  background:rgba(255,255,255,.97); color:var(--zk-ink);
  font-weight:600; font-size:.92rem; padding:.6rem 1.1rem;
  border-radius:999px; box-shadow:0 4px 16px rgba(14,58,95,.22);
  pointer-events:none; max-width:84%; text-align:center; white-space:normal;
}
.hero-map{ padding:4.5rem 0 1rem; }
.hero-map .hero-banner{ padding:.4rem 1rem 1.4rem; }
.hero-banner h1{ margin:0 0 .8rem; }
.hero-map .hero-sub{ margin-bottom:1.2rem; }
@media(max-width:760px){ .hero-map{ padding:2.6rem 0 1rem; } .hero-banner h1{ font-size:1.9rem; } }

/* ===== Gasspeicher: eigene Bausteine ===== */

/* Hero mit der grossen Zahl */
.fill-hero { background: linear-gradient(160deg, var(--primary-dark), var(--primary)); color: #fff; padding: 40px 0 34px; }
.fill-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; margin-bottom: 10px; }
.fill-hero .hero-sub { color: #e6e2f4; max-width: 60ch; }
.fill-hero a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.fill-hero__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 28px; align-items: center; }
.fill-big { display: flex; flex-direction: column; gap: 4px; }
.fill-big__num { font-size: clamp(2.8rem, 8vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.fill-big__label { font-size: 1rem; color: #e6e2f4; }
.fill-big__meta { font-size: 0.9rem; color: #ded9ef; }

/* Fuellstandsbalken */
.fill-bar { position: relative; height: 26px; border-radius: 6px; background: rgba(255,255,255,0.22); overflow: hidden; }
.fill-bar__fill { height: 100%; border-radius: 6px 0 0 6px; }
.fill-bar--light { background: var(--bg-soft); border: 1px solid var(--border); }
.fill-bar--sm { height: 16px; }
.fill-bar__text { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 8px; font-size: 0.82rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.45); }
.fill-bar--light .fill-bar__text { color: var(--text); text-shadow: none; }
.fill-target { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.35); }
.fill-bar--light .fill-target { background: var(--primary-dark); box-shadow: none; }

/* Choropleth */
.map-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.choropleth { width: 100%; height: auto; display: block; max-height: 620px; }
.choropleth--de { max-height: 560px; }
.cp-area { stroke: #ffffff; stroke-width: 1.1; transition: opacity .12s ease; }
.cp-area--link { cursor: pointer; }
a:hover .cp-area--link, .cp-area--link:focus { opacity: .78; stroke: var(--primary-dark); stroke-width: 1.6; }
.cp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; font-size: 0.86rem; color: var(--text-light); }
.cp-legend li { display: flex; align-items: center; gap: 7px; }
.cp-swatch { width: 15px; height: 15px; border-radius: 3px; flex: none; border: 1px solid rgba(0,0,0,.12); }

/* Kennzahlen */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi__num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); line-height: 1.15; }
.kpi__label { display: block; font-size: 0.84rem; color: var(--text-muted); margin-top: 3px; }
.kpi__hint { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

/* Badges */
.pct-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 0.76rem; color: var(--text-light); }
.tag--prelim { background: #fdf0e6; border-color: #f0cdb0; color: #7d3708; }
.tag--hist { background: #efedf6; border-color: var(--border-strong); color: var(--primary-dark); }

/* Tabellen */
.rank-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.rank-table th, .rank-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: middle; }
.rank-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); background: var(--bg-soft); }
.rank-table td.num, .rank-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-table tr:hover td { background: #faf9fd; }
.rank-table .bar-cell { width: 34%; min-width: 130px; }

/* Quellenhinweis unter jedem Datenblock - GIE-Attribution ist Pflicht */
.source-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }
.source-note a { color: var(--link); }

.stale-warning { background: #fdf0e6; border: 1px solid #f0cdb0; color: #7d3708; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 18px; font-size: .92rem; }

.chart-wrap { position: relative; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; }
.chart-wrap canvas { width: 100% !important; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill-row a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--bg-white); border: 1px solid var(--border); font-size: .88rem; }
.pill-row a:hover { border-color: var(--primary-light); text-decoration: none; }
.pill-row a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 820px) {
    .fill-hero__grid { grid-template-columns: 1fr; }
    .choropleth { max-height: 460px; }
}

/* =====================================================================
   STARTSEITE v2 (Redesign 2026-08-27)
   Baender ueber die volle Breite mit breitem Innencontainer. Diese Schicht
   steht bewusst am Ende: sie ueberschreibt den schmalen .container der
   geerbten Basis, aber nur innerhalb von .page-home.
   Alle Text-/Hintergrundkombinationen sind gegen WCAG AA durchgerechnet.
   ===================================================================== */

.page-home .main-content { padding: 0; }

.gs-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.gs-prose { max-width: 74ch; color: var(--text-light); font-size: 1.04rem; }
.gs-prose--spalte { max-width: none; }
.gs-prose p + p { margin-top: 12px; }

/* ---- Baender ---- */
.gs-sec { padding: 60px 0; background: #fff; }
.gs-sec--alt { background: var(--bg); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.gs-kopf { font-size: clamp(1.5rem, 2.2vw, 1.95rem); color: var(--primary-dark); margin-bottom: 10px; }
.gs-kopf::after { content: ""; display: block; width: 52px; height: 3px; border-radius: 3px; margin-top: 12px; background: linear-gradient(90deg, var(--accent), #e07b3c); }
.gs-sec .gs-prose { margin-bottom: 26px; }

/* ---- Hero ---- */
.gs-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0 96px;
    background: linear-gradient(135deg, #241c3f 0%, #3b2f63 46%, #52447f 100%);
    color: #fff;
}
.gs-hero::after {
    content: "";
    position: absolute;
    right: -170px; top: -230px;
    width: 660px; height: 660px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194,65,12,.30) 0%, rgba(194,65,12,0) 68%);
    pointer-events: none;
}
.gs-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gs-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(14,10,26,.45); border: 1px solid rgba(255,255,255,.28);
    color: #f0ecf8; border-radius: 999px; padding: 5px 14px;
    font-size: .84rem; letter-spacing: .02em; margin-bottom: 16px;
}
.gs-badge__punkt { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.22); }
.gs-hero h1 { font-size: clamp(1.9rem, 3.1vw, 2.7rem); line-height: 1.12; margin-bottom: 14px; color: #fff; }
.gs-hero__intro { color: #ded7ee; font-size: 1.08rem; max-width: 62ch; }

.gs-hero__zahlen { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 44px; margin: 26px 0 14px; }
.gs-zahl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gs-zahl__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #c6bce0; }
.gs-zahl__gross { font-size: clamp(2.6rem, 4.4vw, 3.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -1px; color: #fff; font-variant-numeric: tabular-nums; }
.gs-zahl__mittel { font-size: 2.05rem; font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.gs-zahl__delta { font-size: .92rem; color: #ded7ee; }
.gs-zahl__delta--auf { color: #86efac; }
.gs-zahl__delta--ab { color: #fca5a5; }

.gs-hero__balken { max-width: 620px; }
.gs-hero__balkenmeta { font-size: .92rem; color: #ded7ee; margin-top: 6px; }
.gs-hero__kontext { color: #e6e0f2; margin-top: 12px; max-width: 62ch; }
.gs-hero__knoepfe { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.gs-hero .btn-outline { border-color: #fff; color: #fff; }
.gs-hero .btn-outline:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
.gs-fakten { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 8px; padding: 0; }
.gs-fakten li {
    font-size: .88rem; color: #e8e3f5;
    background: rgba(14,10,26,.40); border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px; padding: 5px 13px;
}
.gs-hero .source-note { color: #ded7ee; }
.gs-hero .source-note a, .gs-hero__panel a.gs-panel__link { color: #ffd9b8; }
.gs-hero .source-note a:hover, .gs-hero__panel a.gs-panel__link:hover { color: #fff; }

/* Seitenpanel */
.gs-hero__panel {
    background: rgba(14,10,26,.42);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 16px;
    padding: 20px 22px 18px;
}
.gs-panel__kopf { font-size: 1.05rem; color: #fff; margin: 0 0 4px; }
.gs-panel__sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #c6bce0; margin: 16px 0 6px; }
.gs-panel__eu { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.20); }
.gs-panel__eu .gs-panel__sub { margin-top: 0; }
.gs-panel__eumeta { font-size: .86rem; color: #e8e3f5; margin-top: 6px; }
.gs-panel__link { display: inline-block; margin-top: 16px; font-weight: 600; }
.gs-panel__link:hover { text-decoration: underline; }

/* ---- Kompakte Ranglisten ---- */
.minirang { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.minirang li { display: grid; grid-template-columns: minmax(0, 1fr) 78px 62px; align-items: center; gap: 10px; font-size: .95rem; }
.minirang--breit li { grid-template-columns: minmax(0, 1fr) 70px 62px; }
.minirang a { color: var(--link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minirang__balken { display: block; height: 8px; border-radius: 999px; background: rgba(0,0,0,.10); overflow: hidden; }
.minirang__balken > span { display: block; height: 100%; border-radius: 999px; }
.minirang__pct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.minirang--dunkel a { color: #ffffff; }
.minirang--dunkel a:hover { color: #ffd9b8; }
.minirang--dunkel .minirang__balken { background: rgba(255,255,255,.22); }
.minirang--dunkel .minirang__pct { color: #ffffff; }

/* ---- Kennzahlenband, ragt in den Hero ---- */
.gs-kpi { position: relative; z-index: 2; background: #fff; padding: 0 0 8px; }
.gs-kpi__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -56px; }
.gs-kpi__karte {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 18px 18px 16px;
    box-shadow: 0 8px 26px rgba(42,33,72,.14);
    display: flex; flex-direction: column; gap: 3px;
    border-top: 3px solid var(--primary-light);
}
.gs-kpi__label { font-size: .8rem; line-height: 1.3; min-height: 2.6em; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.gs-kpi__wert { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); line-height: 1.1; font-variant-numeric: tabular-nums; }
.gs-kpi__wert.ist-ab { color: #8c2d15; }
.gs-kpi__wert.ist-auf { color: #245c39; }
.gs-kpi__hinweis { font-size: .88rem; color: var(--text-muted); margin-top: auto; }

/* ---- Zweispaltige Abschnitte ---- */
.gs-split { display: grid; gap: 28px; align-items: start; }
.gs-split--diagramm { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.gs-split--karte { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.gs-split--erklaerung { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }

.gs-deutung, .gs-rangliste {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow);
}
.gs-deutung h3, .gs-rangliste h3 { font-size: 1.02rem; color: var(--primary-dark); margin: 0 0 12px; }
.gs-rangliste h3 + ol { margin-bottom: 20px; }
.gs-deutung__liste { display: grid; gap: 12px; margin: 0; }
.gs-deutung__liste dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.gs-deutung__liste dd { margin: 2px 0 0; font-weight: 600; color: var(--text); }
.gs-deutung__delta { font-weight: 500; color: var(--text-muted); font-size: .92rem; }
.gs-deutung__links { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-light); font-size: .95rem; }
.gs-mehrlink { display: inline-block; font-weight: 600; }
.gs-mehrzeile { margin-top: 22px; }
.gs-kartenspalte .map-card { margin: 0; }
.gs-sec .chart-wrap { margin: 0; }

/* Die Deutschlandkarte ist hochkant (760 x 1000). In einer breiten Spalte stuende sie
   sonst als schmaler Streifen in viel Leerraum, deshalb bekommt dieser Abschnitt eine
   schmalere Kartenspalte als der Europa-Abschnitt. */
.gs-split--dekarte { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.gs-split--dekarte .choropleth--de { max-height: 520px; }
@media (max-width: 1080px) { .gs-split--dekarte { grid-template-columns: 1fr; } }

.gs-anzahl { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--text-muted); background: var(--bg-soft); border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.gs-rangliste__zweit { margin-top: 4px; }
.gs-ohne { font-size: .93rem; line-height: 1.9; color: var(--text-muted); }
.gs-ohne a { color: var(--link); }

/* ---- Groesste Speicher ---- */
.gs-speicher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.gs-speicherkarte {
    display: flex; flex-direction: column; gap: 4px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 18px 19px; color: var(--text); box-shadow: var(--shadow);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.gs-speicherkarte:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); text-decoration: none; }
.gs-speicherkarte__betreiber { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); font-weight: 600; }
.gs-speicherkarte__name { font-weight: 600; color: var(--primary-dark); font-size: 1.05rem; line-height: 1.35; min-height: 2.7em; }
.gs-speicherkarte__pct { font-size: 1.6rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.gs-speicherkarte__balken { display: block; height: 7px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: 2px 0 3px; }
.gs-speicherkarte__balken > span { display: block; height: 100%; border-radius: 999px; }
.gs-speicherkarte__meta { font-size: .87rem; color: var(--text-muted); }

/* ---- Linkkarten in der Erklaerung ---- */
.gs-linkkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 20px; }

/* ---- FAQ ---- */
.gs-faq { display: grid; gap: 10px; align-content: start; }
.gs-faq__item { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.gs-faq__item summary {
    cursor: pointer; list-style: none; padding: 15px 46px 15px 18px;
    font-weight: 600; color: var(--primary-dark); position: relative;
}
.gs-faq__item summary::-webkit-details-marker { display: none; }
.gs-faq__item summary::after {
    content: ""; position: absolute; right: 20px; top: 50%;
    width: 10px; height: 10px; margin-top: -6px;
    border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg); transition: transform .15s ease;
}
.gs-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.gs-faq__item p { margin: 0; padding: 0 18px 16px; color: var(--text-light); }

/* ---- Blogkarten ---- */
.gs-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.gs-blogkarte {
    display: flex; flex-direction: column; gap: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 20px; color: var(--text); box-shadow: var(--shadow);
    border-left: 3px solid var(--primary-light);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.gs-blogkarte:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; border-left-color: var(--accent); }
.gs-blogkarte__datum { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.gs-blogkarte__titel { font-weight: 600; font-size: 1.08rem; color: var(--primary-dark); line-height: 1.35; min-height: 2.7em; }
.gs-blogkarte__mehr { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--link); }

/* ---- Tabelle etwas luftiger in der breiten Spalte ---- */
.gs-sec .rank-table th, .gs-sec .rank-table td { padding: 10px 12px; }
.gs-sec .rank-table .bar-cell { width: 26%; }

/* ---- Responsiv ---- */
@media (max-width: 1080px) {
    .gs-kpi__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gs-split--diagramm, .gs-split--karte { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .gs-hero__grid { grid-template-columns: 1fr; gap: 26px; }
    .gs-split--erklaerung { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
    .gs-wrap { padding: 0 16px; }
    .gs-hero { padding: 34px 0 84px; }
    .gs-sec { padding: 44px 0; }
    .gs-hero__zahlen { gap: 12px 28px; }
    .gs-kpi__grid { gap: 12px; margin-top: -60px; }
    .gs-kpi__wert { font-size: 1.55rem; }
    .minirang li, .minirang--breit li { grid-template-columns: minmax(0, 1fr) 58px 58px; }
}
@media (max-width: 460px) {
    .gs-kpi__grid { grid-template-columns: 1fr; }
    .gs-speicher-grid, .gs-blog-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Kontrastkorrekturen (Audit 2026-08-27)
   --------------------------------------------------------------------- */

/* Footer: die geerbte Schicht setzte hier ein Dunkelblau (#0b2742) aus der
   Quellsite, das neben dem Indigo dieser Seite fremd wirkte. Dazu hatten die
   Footerlinks ueberhaupt keine eigene Farbe und fielen auf --link zurueck:
   dunkles Indigo auf dunklem Grund, 1,6:1 - praktisch unlesbar. */
.site-footer { background: #241c3f; }
.site-footer a { color: #cabfe8; }          /* 8,5:1 auf #241c3f */
.site-footer a:hover { color: #ffffff; }

/* Hero-Links. Die geerbte Regel .main-content a:not(...)... hat eine hoehere
   Spezifitaet als jede Klassenregel hier, deshalb ausnahmsweise !important. */
.gs-hero .source-note a,
.gs-hero .gs-panel__link { color: #ffd9b8 !important; }   /* 6,4:1 auf #52447f */
.gs-hero .source-note a:hover,
.gs-hero .gs-panel__link:hover { color: #ffffff !important; }
.gs-hero .minirang--dunkel a { color: #ffffff !important; } /* 8,4:1 */
.gs-hero .minirang--dunkel a:hover { color: #ffd9b8 !important; }

/* ---------------------------------------------------------------------
   Bedienbarkeit auf dem Handy (Audit 2026-08-27)
   Der Menuknopf war 32 x 24 Pixel und die Links im aufgeklappten Menue nur
   24 Pixel hoch. Empfohlen sind mindestens 44 x 44 Pixel, sonst trifft man
   mit dem Daumen daneben. Nur Abstaende, das Aussehen bleibt gleich.
   --------------------------------------------------------------------- */
.nav-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

@media (max-width: 768px) {
    .main-nav { padding: 8px 20px 14px; gap: 0; }
    .main-nav a:not(.btn) {
        display: block;
        padding: 11px 0;
        min-height: 44px;
        line-height: 22px;
    }
    /* Das Untermenue klappt auf dem Handy dauerhaft aus - sonst waeren die vier
       Auswertungsseiten ueber die Navigation gar nicht erreichbar, weil :hover
       auf einem Touchscreen nicht zuverlaessig ausloest. */
    .main-nav .has-dropdown { width: 100%; }
    .main-nav .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border);
        border-radius: 0;
        padding: 0 0 0 14px;
        margin: 0 0 4px;
        min-width: 0;
        width: 100%;
    }
    .main-nav .dropdown-menu a { font-size: .92rem; color: var(--text-light); }
}

/* ---------------------------------------------------------------------
   Weisse Ueberschrift auf weisser Karte (Audit 2026-08-27)

   .fill-hero faerbt saemtliche Ueberschriften weiss, weil der Hero dunkel ist.
   Innerhalb des Heros steht aber eine .map-card mit fast weissem Hintergrund
   (rgba(255,255,255,.96)). Die Ueberschrift darin war damit weiss auf weiss:
   1,07:1, praktisch unsichtbar. Betraf jede Detailseite mit Diagrammkarte
   (Deutschland, jede Laenderseite, jede Speicherseite).
   Die Links in dieser Karte hatten dasselbe Problem: .fill-hero a ist weiss.
   --------------------------------------------------------------------- */
.fill-hero .map-card h1,
.fill-hero .map-card h2,
.fill-hero .map-card h3 { color: var(--primary-dark); }

.fill-hero .map-card a { color: var(--link); }
.fill-hero .map-card a:hover { color: var(--primary-dark); }

/* ---------------------------------------------------------------------
   Aktive Filterpille (Audit 2026-08-27)

   .pill-row a[aria-current="page"] setzt zwar color:#fff, wird aber von der
   geerbten Regel .main-content a:not(.btn):not(.pill):not(.card):not(.logo)
   ueberstimmt - die hat mit vier :not() eine hoehere Spezifitaet. Die aktive
   Pille bekam dadurch dunkle Linkfarbe auf dunklem Grund: 1,24:1, unlesbar.
   Das :not(.pill) der geerbten Regel greift hier nicht, weil die Klasse an der
   Zeile haengt (.pill-row) und nicht am Link selbst. Betrifft /historie und
   jede andere Seite mit Pillenfilter.
   --------------------------------------------------------------------- */
.pill-row a[aria-current="page"],
.main-content .pill-row a[aria-current="page"] { color: #fff !important; }

/* ---------------------------------------------------------------------
   Waagerechtes Scrollen auf /bundesland (Audit 2026-08-27)

   Die Mobilregel setzte .two-col auf grid-template-columns:1fr. Ein 1fr ist
   minmax(auto,1fr), und dieses auto respektiert die intrinsische Mindestbreite
   des Inhalts. Die hochkant stehende Deutschlandkarte forderte darueber knapp
   440 Pixel an - bei 375 Pixeln Viewport scrollte die ganze Seite seitwaerts.
   minmax(0,1fr) erlaubt der Spalte zu schrumpfen, die Karte skaliert dann mit.
   --------------------------------------------------------------------- */
@media (max-width: 880px) {
    .two-col { grid-template-columns: minmax(0, 1fr); }
    .two-col > * { min-width: 0; }
}

/* =====================================================================
   QA-ronde 02-09-2026
   ===================================================================== */

/* 1. Leesbaar percentage in de balk.
   De --light-variant zet donkere tekst, maar die tekst ligt boven de
   gekleurde vulling: 1,93:1 op donkerblauw, 2,99:1 op olijf. Een licht
   plaatje onder de cijfers houdt het label leesbaar in beide zones. */
.fill-bar__label { display: inline-block; }
.fill-bar--light .fill-bar__label {
    background: rgba(255, 255, 255, 0.93);
    border-radius: 4px;
    padding: 0 5px;
}

/* 2. Tikdoelen minimaal 24x24 px (WCAG 2.2 AA, SC 2.5.8).
   Links in tabellen, chips, linklijsten en kruimelpaden staan niet in
   een lopende zin en vallen dus niet onder de inline-uitzondering. */
.rank-table td a,
.rank-table th a,
.link-list a,
.breadcrumbs a,
.breadcrumbs li,
.tag,
.tag a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

/* 3. Cookiebalk op een smal scherm.
   Op 320 px besloeg de balk 42% van het beeld. */
@media (max-width: 420px) {
    .cookie-banner { padding: 11px 13px; }
    .cookie-banner__inner { gap: 10px; }
    .cookie-banner__text { font-size: 0.82rem; line-height: 1.35; flex-basis: 100%; }
    .cookie-banner__btn { padding: 8px 14px; font-size: 0.85rem; }
}
