:root {
    --header-h: 60px;
    --footer-h: 40px;
    --sidebar-w: 350px;
    --secondary-bg: #1a252f;
    --accent: #f1c40f;
}

* { box-sizing: border-box; }
body, html { 
    margin: 0; padding: 0; width: 100vw; height: 100vh; 
    overflow: hidden; display: flex; flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
}

#main-header {
    height: var(--header-h); background: var(--secondary-bg); color: white;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; z-index: 1000;
}

#app-content { flex-grow: 1; display: flex; overflow: hidden; }

#viewport { flex-grow: 1; position: relative; background: #ddd; }
#map { width: 100%; height: 100%; z-index: 1; }

/* Setup Overlay */
.setup-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
}
.setup-box {
    background: white; padding: 30px; border-radius: 12px; text-align: center;
    max-width: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#sidebar {
    width: var(--sidebar-w); background: #2c3e50; color: white;
    display: flex; flex-direction: column; z-index: 1000;
}

.sidebar-scroll-area { flex-grow: 1; overflow-y: auto; padding: 15px; }

.task-card {
    background: #34495e; padding: 15px; border-radius: 8px; margin-bottom: 10px;
    border-left: 5px solid var(--accent);
}

#main-footer {
    height: var(--footer-h); background: var(--secondary-bg); color: #95a5a6;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px; z-index: 1000; font-size: 0.85rem;
}

.shipment-stats { display: flex; gap: 15px; background: rgba(0,0,0,0.3); padding: 5px 15px; border-radius: 20px; }
.hidden { display: none !important; }

/* Leaflet Popup Anpassung */
.leaflet-popup-content-wrapper { background: var(--secondary-bg); color: white; border-radius: 4px; }
.leaflet-popup-tip { background: var(--secondary-bg); }