﻿/* Partei Die Linke CI + Bestehendes Layout */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

#main-content {
    display: flex;
    flex: 1;
    overflow: hidden; /* verhindert Scrollbalken */
}

#map {
    flex: 1 1 70%;
    height: 100%;
}

#details {
    flex: 1 1 30%;
    padding: 1em;
    overflow-y: auto;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

#details h2 {
    margin-top: 0;
    color: #E3000F; /* Die Linke Rot */
}

#details h3 {
    color: #E3000F;
    margin-top: 1em;
}

/* Tabellen in #details */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 0.5em;
    font-size: 0.95em;
}

th, td {
    border: 1px solid #ccc;
    padding: 0.3em 0.5em;
    text-align: left;
}

th {
    background-color: #f0f0f0;
    font-weight: 600;
}

/* Sortierter Tabellenkopf (optisch hervorgehoben) */
th.sorted {
    background-color: #E3000F;
    color: white;
}

/* Dropdown-Feld Fokus-Markierung in CI-Farbe */
#districtSelect:focus {
    border: 2px solid #E3000F;
    outline: none;
}

/* Optional: farblicher Rahmen für aktive Bezirksauswahl */
.leaflet-interactive.selected {
    stroke: #E3000F;
    stroke-width: 3;
}

/* Auswahlbox über der Tabelle */
.selector-box {
    background-color: #c30000;
    color: white;
    padding: 0.5em;
    border-radius: 4px;
    margin-bottom: 1em;
}

.selector-box label,
.selector-box select {
    display: block;
    margin-bottom: 0.3em;
}

.selector-box select {
    width: 100%;
    padding: 0.3em;
    font-size: 1em;
    border: none;
    border-radius: 3px;
}

.section-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 1em 0;
}

/* Optionaler Footer (nicht mehr im Einsatz, falls gewünscht) */
footer {
    position: fixed;
    bottom: 0;
    right: 0;
    background-color: #f0f0f0;
    font-size: 0.8em;
    padding: 0.4em 0.8em;
    border-top-left-radius: 6px;
    box-shadow: -2px -2px 4px rgba(0,0,0,0.1);
}

footer a {
    color: #c30000;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Header oben über gesamte Breite */
header {
    background-color: #c30000;
    color: white;
    padding: 0.8em 1em;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3em;
}

.header-content h1 {
    margin: 0;
    font-size: 1.6em;
}

.header-meta {
    font-size: 0.85em;
}

.header-meta a {
    color: white;
    text-decoration: underline;
}
