:root {
    --bg-color: #f4f4f9;
    --text-color: #2c3e50;
    --accent-red: #e74c3c;
    --accent-gold: #f1c40f;
    --eu-blue: #003399;
    --card-bg: #ffffff;
    --meta-color: #718096;
    --success-green: #2ecc71;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top-Bar */
.top-bar {
    background-color: #edf2f7;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.4rem 1.5rem;
    font-size: 0.85rem;
    color: var(--meta-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.top-bar a {
    color: var(--meta-color);
    text-decoration: none;
    font-weight: 500;
}

.top-bar a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.top-bar .center-url {
    font-weight: 600;
    letter-spacing: 0.5px;
}

header {
    background-color: var(--card-bg);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Euro-Kennzeichen */
header h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.eu-plate {
    background-color: var(--eu-blue);
    color: #ffffff;
    font-size: 1.8rem;
    padding: 0.1rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 8px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.2);
}

.text-black { color: #000000; }
.text-red { color: var(--accent-red); }
.text-gold { color: var(--accent-gold); text-shadow: 1px 1px 1px rgba(0,0,0,0.1); }

main {
    flex: 1;
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    text-align: center;
}

.status-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    background-color: #fed7d7;
    color: #9b2c2c;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-headline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-red);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.headline {
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.coalition-question {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--eu-blue);
    margin: 0 0 2rem 0;
    font-style: italic;
}

/* Tabelle */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    text-align: left;
}

.dashboard-table th {
    background-color: #f8fafc;
    padding: 1rem;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
}

.dashboard-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.badge-info {
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Interaktive Knöpfe */
.vote-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid #cbd5e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    margin-right: 5px;
}

.btn-yes:hover { background-color: #e6fffa; border-color: var(--success-green); color: #234e52; }
.btn-no:hover { background-color: #fff5f5; border-color: var(--accent-red); color: #742a2a; }

/* Welt-Sektion */
.world-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.dial-code {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--eu-blue);
    margin-bottom: 1rem;
}

.translations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    font-size: 1rem;
    color: #718096;
    margin-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 1rem;
}

.translation-item {
    background: #f8fafc;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #edf2f7;
}

footer {
    background-color: var(--card-bg);
    border-top: 1px solid #e2e8f0;
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #718096;
}
.footer-bar {
    background-color: transparent !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: none !important;
    padding: 1rem 0 0 0 !important;
    margin-top: 1rem;
}
/* --- REGULÄRER NACHTMODUS (DARK THEME) --- */
body.dark-theme {
    --bg-color: #1a202c;         /* Dunkelgrauer Hintergrund */
    --card-bg: #2d3748;          /* Etwas helleres Grau für die Karten */
    --text-color: #edf2f7;       /* Nahezu weiße Schrift */
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Anpassung der Tabellen und Ränder für den Nachtmodus */
body.dark-theme .dashboard-table th {
    background-color: #4a5568;
    color: #edf2f7;
}
body.dark-theme .dashboard-table td {
    border-bottom: 1px solid #4a5568;
}
body.dark-theme .target-box {
    background-color: #4a5568;
    color: #edf2f7;
}
body.dark-theme .teaser-card {
    background-color: #2d3748;
    border: 1px solid #4a5568;
}
body.dark-theme .top-bar {
    background-color: #2d3748;
    border-bottom: 1px solid #4a5568;
}
body.dark-theme footer {
    background-color: #2d3748;
}
/* ==========================================================================
   STRENG GEHEIMES KIOSK-RASTER: STICKY HEADER & FOOTER
   ========================================================================== */

/* 1. Den gesamten Bildschirm als festen Kasten definieren */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Verhindert, dass der äußere Bildschirm scrollt */
    display: flex;
    flex-direction: column;
}

/* 2. Kopfzeile oben festtackern */
#global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Bleibt immer im Vordergrund */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 3. Der Hauptinhalt: Nur dieser Bereich darf unaufhörlich scrollen */
main {
    flex: 1;
    overflow-y: auto; /* Aktiviert das Scrollen nur für die Mitte */
    -webkit-overflow-scrolling: touch; /* Macht das Scrollen auf Handys butterweich */
    
    /* WICHTIG: Genug Sicherheitsabstand, damit kein Text unter den Leisten verschwindet */
    margin-top: 190px;    /* Platz für den Kiosk-Kopf */
    margin-bottom: 70px;  /* Platz für den Kiosk-Fuß */
    padding: 1rem 0;
    box-sizing: border-box;
}

/* 4. Fußzeile unten festtackern */
#global-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* --- REPARATUR FÜR SCHMALE SMARTPHONE-BILDSCHIRME --- */
@media (max-width: 768px) {
    main {
        margin-top: 240px; /* Braucht mobil etwas mehr Platz, weil das Menü umbricht */
        margin-bottom: 90px;
    }
}
/* --- HOCHPROPROTIONALES MINIMAL-RASTER --- */
#global-header .top-bar, 
#global-footer .top-bar {
    padding: 0.4rem 1rem !important; /* Extrem flache Zeilenhöhe */
    box-sizing: border-box;
}

/* Die neuen, extrem flachen Abstände für den Hauptinhalt */
main {
    margin-top: 130px !important;   /* Drastisch verringert von 190px */
    margin-bottom: 40px !important;  /* Drastisch verringert von 70px */
}

/* Mobil-Reparatur: Verhindert das Umbrechen und staucht die Schrift */
@media (max-width: 768px) {
    main {
        margin-top: 150px !important; /* Mobil-Kopf flach halten */
        margin-bottom: 50px !important;
    }
    .top-bar {
        font-size: 0.7rem !important; /* Schrift wird auf Handys dezent kleiner */
    }
    .top-bar span {
        font-size: 0.65rem !important; /* Blink-Texte schrumpfen synchron mit */
    }
}
/* ==========================================================================
   BLAUEN BALKEN UNTEN BÜNDIG FIXIEREN (WEISSE STREIFEN LÖSCHEN)
   ========================================================================== */

/* 1. Verhindert, dass der Footer künstlich nach oben geschoben wird */
#global-footer footer {
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Setzt das Welt-Übersetzungs-Kästchen bündig direkt ÜBER den blauen Balken */
#global-footer .world-section {
    margin-bottom: 0 !important; /* Löscht den Abstand nach unten */
    margin-top: 1rem !important;
    background-color: var(--card-bg); /* Passt sich dem Hintergrund an */
    border-radius: 4px 4px 0 0; /* Schöne abgerundete Ecken nur oben */
}

/* 3. Garantiert, dass der blaue Balken ganz unten am Bildschirmrand klebt */
#global-footer {
    bottom: 0 !important;
}
