/* style.css */
body { 
    background-color: #000; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    font-family: 'Segoe UI', sans-serif;
}

/* Header-Zeile */
.header-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    color: #00ffcc;
    letter-spacing: 1px;
}
.status-title { font-weight: bold; text-transform: uppercase; }
.divider { opacity: 0.5; }
#current-time { color: #fff; text-shadow: 0 0 10px #00ffcc; font-weight: bold; min-width: 90px; }

/* Viewport & Karte */
#map-viewport {
    position: relative;
    width: 2000px;
    height: 1125px;
    transform: scale(0.5);
    transform-origin: top center;
    overflow: hidden;
}
.base { position: absolute; top: 0; left: 0; width: 2000px; z-index: 1; }

/* Layer & Animationen */
.layer {
    position: absolute; top: 0; left: 0; width: 2000px;
    z-index: 10; opacity: 0; transition: opacity 0.4s; pointer-events: none;
}

@keyframes pulse-green {
    0% { opacity: 0.7; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.3) drop-shadow(0 0 15px #00ffcc); }
    100% { opacity: 0.7; filter: brightness(1); }
}

.layer.visible { opacity: 1; animation: pulse-green 4s infinite ease-in-out; }

/* Statisches Rot für Ausfälle */
.layer.outage {
    animation: none !important;
    filter: hue-rotate(250deg) brightness(1.5) drop-shadow(0 0 10px red) !important;
    opacity: 1 !important;
    z-index: 20;
}

/* Info Boxen */
.stelen-info {
    position: absolute; z-index: 100;
    background: rgba(0, 25, 25, 0.9); border-left: 4px solid #00ffcc;
    padding: 10px 15px; font-size: 18px; opacity: 0;
    transition: all 0.4s; pointer-events: none;
}
.stele { margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.online { color: #00ffcc; }
.offline { color: #ff4444; }
.os-tag { font-weight: bold; color: #00ccff; margin-left: 8px; font-size: 14px; }

/* --- BUTTON POSITIONIERUNG FIX --- */

#controls {
    /* Da scale(0.5) die Höhe halbiert (1125 / 2 = 562.5), 
       ziehen wir das Panel um ca. 560px nach oben */
    margin-top: -560px; 
    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: rgba(0, 20, 20, 0.9);
    padding: 20px;
    border: 1px solid #00ffcc;
    border-radius: 2px;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.2);
    z-index: 200;
    width: 960px; /* Passt sich der skalierten Breite der Karte an */
}

/* Optional: Damit das Dashboard auf kleineren Bildschirmen nicht abgeschnitten wird */
body {
    min-height: 100vh;
    padding-bottom: 50px;
}

button {
    background: rgba(0, 40, 40, 0.5);
    color: #00ffcc;
    border: 1px solid #00ffcc;
    padding: 15px 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%); /* Angeschrägte Ecken */
}

button:hover {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 20px #00ffcc;
    transform: translateY(-2px);
}

/* Spezial-Style für die Haupt-Buttons (ALLE EIN / AUS) */
button[onclick*="setAll(true)"] {
    background: rgba(0, 255, 204, 0.2);
    border-width: 2px;
    grid-column: span 2;
}

button[onclick*="setAll(false)"] {
    border-color: #ff4444;
    color: #ff4444;
    grid-column: span 2;
}

button[onclick*="setAll(false)"]:hover {
    background: #ff4444;
    color: #fff;
    box-shadow: 0 0 20px #ff4444;
}

/* OS Button */
#btn-os {
    grid-column: span 4;
    margin-bottom: 10px;
    border-style: dashed;
}
/* --- EXECUTIVE SUMMARY & ROADMAP (Ergänzung am Ende der Datei) --- */

#summary-section { 
    width: 1000px; 
    margin-top: 20px; 
    padding-bottom: 80px; /* Zusätzlicher Platz nach unten */
    color: #00ffcc;
    font-family: sans-serif;
}

#summary-section h3 { 
    color: #00ffcc; 
    letter-spacing: 2px; 
    text-align: center; 
    text-transform: uppercase;
    border-bottom: 1px dashed #004444;
    padding-bottom: 15px;
}

.summary-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-top: 30px; 
}

.summary-card { 
    background: rgba(0, 40, 40, 0.2); 
    border: 1px solid #004444; 
    padding: 20px; 
    border-radius: 4px; 
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 60, 60, 0.3);
}

/* Spezial-Stil für Q2 (Fokus) */
.summary-card.highlight { 
    border-color: #00ffcc; 
    background: rgba(0, 255, 204, 0.05); 
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

.summary-card h4 { 
    color: #00ffcc; 
    margin-top: 0; 
    font-size: 18px;
    border-bottom: 1px solid #004444; 
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.summary-card ul { 
    list-style: none; 
    padding: 0; 
    font-size: 14px; 
    line-height: 1.8; 
}

.summary-card ul li {
    margin-bottom: 8px;
}

.summary-card ul li:before { 
    content: "» "; 
    color: #00ffcc; 
    font-weight: bold;
}

/* --- PRINT STYLES (Für den PDF-Export) --- */
@media print {
    /* Verstecke alles, was nicht ins PDF soll */
    #controls, button, h2 { 
        display: none !important; 
    }

    body { 
        background: #fff; /* Weißer Hintergrund für den Druck spart Tinte */
        color: #000;
    }

    #map-viewport {
        transform: scale(0.4) !important; /* Passt die große Karte auf eine DIN-A4 Seite */
        transform-origin: top left;
        margin-bottom: -600px; /* Korrigiert den Platzbedarf nach der Skalierung */
        border: none;
    }

    #summary-section {
        display: block !important;
        width: 100%;
        color: #000;
        margin-top: 20px;
    }

    .summary-card {
        background: #f0f0f0 !important;
        border: 1px solid #ccc !important;
        color: #000 !important;
    }

    .summary-card h4, .summary-card ul li:before {
        color: #006666 !important;
    }
}
/* Fix für die Textfarbe in den Summary-Boxen */
.summary-card { 
    background: rgba(0, 40, 40, 0.3); 
    border: 1px solid #004444; 
    padding: 20px; 
    border-radius: 4px; 
    color: #00ffcc !important; /* Erzwingt das UKHD-Grün für den Text */
    transition: transform 0.3s ease;
}

/* Spezifisch für die Überschriften in den Boxen */
.summary-card h4 { 
    color: #00ffcc !important; 
    margin-top: 0; 
    border-bottom: 1px solid #004444; 
    padding-bottom: 10px;
}

/* Spezifisch für die Listenpunkte */
.summary-card ul li { 
    color: #aafff5 !important; /* Ein etwas helleres, sehr gut lesbares Cyan-Weiß */
    margin-bottom: 8px;
    list-style: none;
}

/* Das "»" Zeichen vor den Listenpunkten */
.summary-card ul li:before { 
    content: "» "; 
    color: #00ffcc; 
    font-weight: bold;
}

/* --- STELEN FEATURE GRAFIK --- */
#stelen-feature {
    position: relative;
    width: 1000px; /* Gleiche Breite wie das Summary */
    margin-top: 30px;
    border: 1px solid #004444;
    background: rgba(0, 20, 20, 0.5);
    overflow: hidden; /* Wichtig, damit nichts rauslappt */
    border-radius: 4px;
    /* Sorgt für ein sanftes Ein-/Ausblenden */
    transition: opacity 0.4s ease, height 0.4s ease;
    opacity: 1;
    height: auto; /* Wird per JS gesteuert */
}

/* Klasse zum Verstecken (wird per JS hinzugefügt) */
#stelen-feature.hidden {
    opacity: 0;
    height: 0;
    margin-top: 0;
    border: none;
}

#stelen-feature img {
    width: 100%;
    display: block;
    opacity: 0.7; /* Etwas abdunkeln, damit der Text besser lesbar ist */
}

.feature-text {
    position: absolute;
    top: 50%;
    left: 50px; /* Text linksbündig platzieren */
    transform: translateY(-50%);
    max-width: 400px;
    color: #00ffcc;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.feature-text h3 {
    margin-top: 0;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #00ffcc;
    padding-bottom: 10px;
    display: inline-block;
}

.feature-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #e0ffff; /* Ein sehr helles Cyan für gute Lesbarkeit */
}

/* Im Druck verstecken wir die Grafik natürlich */
@media print {
    #stelen-feature { display: none !important; }
}
/* Rechter Text in der Feature-Grafik */
.feature-text-right {
    position: absolute;
    top: 50%;
    right: 50px; /* Abstand vom rechten Rand */
    transform: translateY(-50%);
    max-width: 350px;
    color: #00ffcc;
    text-align: right; /* Rechtsbündiger Text */
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.feature-text-right h3 {
    margin-top: 0;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #00ffcc;
    padding-bottom: 10px;
    display: inline-block;
}

.feature-text-right ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.feature-text-right ul li {
    font-size: 15px;
    line-height: 1.6;
    color: #e0ffff;
    margin-bottom: 10px;
}

/* Der Pfeil für die rechte Liste (umgedreht) */
.feature-text-right ul li:after {
    content: " «";
    color: #00ffcc;
    font-weight: bold;
}

/* Responsive Fix: Falls der Bildschirm zu schmal wird, rücken die Boxen etwas zusammen */
@media (max-width: 1600px) {
    .feature-text { left: 20px; max-width: 300px; }
    .feature-text-right { right: 20px; max-width: 300px; }
}
/* --- GEMEINSAMES DESIGN FÜR ALLE FEATURE-BOXEN --- */
.cyber-box {
    width: 1000px; /* Deine Zielbreite */
    box-sizing: border-box; /* DAS IST DER FIX: Padding zählt zur Breite dazu! */
    margin: 30px auto 0 auto; /* Zentriert die Boxen unter der Karte */
    
    position: relative;
    border: 1px solid #004444;
    background: rgba(0, 20, 20, 0.5);
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
    display: flex; 
    align-items: center;
    padding: 20px; /* Jetzt einheitlicher Abstand nach innen */
    
    transition: opacity 0.4s ease, height 0.4s ease;
}

/* Entferne falls vorhanden explizite Breitenangaben bei den IDs, 
   damit nur die Klasse steuert: */
#stelen-feature, #video-feature {
    width: 1000px;
}
/* Gemeinsamer Rahmen für beide Feature-Boxen */
.cyber-box {
    width: 1000px;
    box-sizing: border-box; /* WICHTIG: Padding wird in die 1000px eingerechnet */
    margin: 30px auto;
    border: 1px solid #004444; /* Dunkelgrüner Rahmen */
    background: rgba(0, 20, 20, 0.6);
    display: flex; /* Video und Text nebeneinander */
    align-items: center;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1); /* Sanfter Glow */
}

/* Video-Bereich Styling */
.video-container {
    flex: 1.2; /* Video bekommt etwas mehr Platz */
    margin-right: 30px;
    border: 1px solid #00ffcc; /* Heller grüner Rahmen direkt ums Video */
    line-height: 0; /* Verhindert kleine Lücken unter dem Video */
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* Sorgt für das richtige Format */
}

/* Text-Bereich Styling */
.video-text {
    flex: 1;
    color: #00ffcc;
}

.video-text h3 {
    margin-top: 0;
    border-bottom: 2px solid #00ffcc;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.video-text ul {
    list-style: none;
    padding: 0;
}

.video-text ul li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #e0ffff;
}

.video-text ul li:before {
    content: "» ";
    color: #00ffcc;
    font-weight: bold;
}