/* Global Styles & Variables */
:root {
    --bg-dark: #121212;
    --bg-sidebar: #1e1e1e;
    --bg-card: #2a2a2a;
    --text-main: #e0e0e0;
    --text-muted: #b0b0b0;
    --primary: #d32f2f; /* Feuerwehr Rot */
    --primary-hover: #b71c1c;
    --secondary: #424242;
    --border: #333;
    --accent: #1976d2;
    
    /* Status Colors */
    --status-1: #4caf50; /* Grün */
    --status-2: #8bc34a; /* Hellgrün */
    --status-3: #ffeb3b; /* Gelb */
    --status-4: #ff9800; /* Orange */
    --status-5: #f44336; /* Rot */
    --status-6: #9e9e9e; /* Grau */
    
    /* Priority Colors */
    --priority-high: #f44336;
    --priority-medium: #ff9800;
    --priority-low: #4caf50;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow: hidden;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: block;
    padding: 15px 25px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-left: 4px solid var(--primary);
}

.sidebar-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

/* Content Sections */
.content-section {
    animation: fadeIn 0.3s ease-in-out;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

/* Tables */
.table-container {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

tr:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* Form Controls */
.filter-bar, .action-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

input[type="text"], select, textarea {
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px;
    border-radius: 4px;
}

input[type="text"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Status Badges & Selects */
.status-select {
    padding: 5px;
    border-radius: 4px;
    font-weight: bold;
    color: #000;
}

.status-1 { background-color: var(--status-1); }
.status-2 { background-color: var(--status-2); }
.status-3 { background-color: var(--status-3); }
.status-4 { background-color: var(--status-4); }
.status-5 { background-color: var(--status-5); }
.status-6 { background-color: var(--status-6); }

.priority-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.priority-hoch { background-color: var(--priority-high); color: white; }
.priority-mittel { background-color: var(--priority-medium); color: white; }
.priority-niedrig { background-color: var(--priority-low); color: white; }

/* Modals */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 15px 25px;
    border-radius: 4px;
    border-left: 5px solid var(--primary);
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    .sidebar-header h2, .sidebar-nav li a span, .sidebar-footer p {
        display: none;
    }
    .sidebar-nav li a {
        text-align: center;
        padding: 15px 0;
    }
}

/* Map Styles */
.map-container {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

#offline-map {
    flex-grow: 1;
    background-color: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0,0,0,0.7);
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
    z-index: 10;
}

.map-overlay h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.map-overlay p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.map-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 8px;
    position: relative;
    cursor: grab;
}

.map-wrapper:active {
    cursor: grabbing;
}

.region-map-svg {
    width: 100%;
    height: 100%;
    transform-origin: center;
    transition: transform 0.2s ease-out;
}

.map-controls {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.map-controls button {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.map-controls button:hover {
    background: var(--primary);
}

/* Heatmap Layer */
.heatmap-layer {
    pointer-events: none;
}

.heatmap-point {
    fill: radial-gradient(circle, rgba(255, 87, 34, 0.6) 0%, rgba(255, 87, 34, 0) 70%);
}

/* Animierte Fahrzeug-Marker */
.vehicle-marker {
    transition: all 1s linear;
}

.vehicle-marker circle {
    stroke: white;
    stroke-width: 1;
}

.vehicle-marker text {
    font-size: 8px;
    font-weight: bold;
    pointer-events: none;
}

.map-marker circle {
    cursor: pointer;
    transition: r 0.2s;
}

.map-marker:hover circle {
    r: 8;
}

/* Notruf Styles */
.notruf-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.notruf-form-card, .notruf-info-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.notruf-form-card h2 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-red {
    color: #ff0000;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

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

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.w-fragen {
    list-style: none;
    margin-top: 20px;
}

.w-fragen li {
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}



/* Auto-Einsatz Switch Styles */
.auto-einsatz-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ============================================================
   Funk-/Ereignislog – Styles
   ============================================================ */

/* Log-View Container */
.log-view-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    gap: 12px;
}

.log-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background-color: var(--bg-card);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.log-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.log-filter-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.log-filter-group input[type="text"] {
    width: 200px;
}

.log-counter {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

#log-entry-count {
    font-weight: bold;
    color: var(--primary);
}

/* Log-Konsole */
.log-console {
    flex: 1;
    background-color: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow-y: auto;
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
    scroll-behavior: smooth;
}

.log-console::-webkit-scrollbar { width: 6px; }
.log-console::-webkit-scrollbar-track { background: #111; }
.log-console::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.log-empty-msg {
    color: var(--text-muted);
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
}

/* Log-Einträge */
.log-entry {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: background 0.15s;
    flex-wrap: wrap;
    animation: log-fade-in 0.25s ease;
}

@keyframes log-fade-in {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

.log-entry:hover {
    background-color: rgba(255,255,255,0.04);
}

.log-entry-einsatz  { border-left-color: var(--primary); }
.log-entry-fahrzeug { border-left-color: var(--accent); }
.log-entry-alarm    { border-left-color: #ff9800; }
.log-entry-system   { border-left-color: #546e7a; }

.log-ts {
    color: #546e7a;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.log-type-badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.log-type-einsatz  { background: rgba(211,47,47,0.25);   color: #ef9a9a; }
.log-type-fahrzeug { background: rgba(25,118,210,0.25);  color: #90caf9; }
.log-type-alarm    { background: rgba(255,152,0,0.25);   color: #ffcc80; }
.log-type-system   { background: rgba(84,110,122,0.25);  color: #b0bec5; }

.log-msg {
    color: var(--text-main);
    flex: 1;
}

.log-detail {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ============================================================
   Mini-Log im Dashboard
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1100px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.log-mini-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.log-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.log-mini-link {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.log-mini-link:hover {
    color: #64b5f6;
}

.log-mini-console {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 260px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
}

.log-mini-console::-webkit-scrollbar { width: 4px; }
.log-mini-console::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.log-empty-mini {
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
    font-size: 0.8rem;
}

.log-mini-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 3px;
    border-left: 2px solid transparent;
}

.log-mini-entry.log-entry-einsatz  { border-left-color: var(--primary); }
.log-mini-entry.log-entry-fahrzeug { border-left-color: var(--accent); }
.log-mini-entry.log-entry-alarm    { border-left-color: #ff9800; }
.log-mini-entry.log-entry-system   { border-left-color: #546e7a; }

.log-mini-ts {
    color: #546e7a;
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.log-mini-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.log-mini-msg {
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ============================================================
   Status-Badges (Einsatz-Status)
   ============================================================ */
.status-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-offen            { background-color: rgba(255,152,0,0.2);  color: #ffcc80; border: 1px solid #ff9800; }
.status-in-bearbeitung   { background-color: rgba(25,118,210,0.2); color: #90caf9; border: 1px solid #1976d2; }
.status-abgeschlossen    { background-color: rgba(76,175,80,0.2);  color: #a5d6a7; border: 1px solid #4caf50; }

/* Status-Zelle */
.status-cell {
    white-space: nowrap;
}

/* ============================================================
   Danger-Button
   ============================================================ */
.btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    background-color: #b71c1c;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-danger.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* Toast-Varianten */
.toast-warn {
    border-left-color: #ff9800;
}

/* Manuelle Lagemeldung */
.log-manual-entry {
    background-color: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.manual-log-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.manual-log-row select {
    width: 120px;
    flex-shrink: 0;
}

.manual-log-row input[type="text"]#manual-log-msg {
    flex: 2;
}

.manual-log-row input[type="text"]#manual-log-detail {
    flex: 1;
}

/* Fahrzeug-Zuweisung & Details Modal */
.modal-large {
    max-width: 800px;
    width: 90%;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-group {
    margin-bottom: 15px;
}

.info-group label {
    display: block;
    font-weight: bold;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-group p {
    font-size: 1.1rem;
    line-height: 1.4;
}

.details-assignment h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.assigned-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    min-height: 100px;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.assigned-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary);
}

.assigned-item .remove-btn {
    color: var(--status-5);
    cursor: pointer;
    font-weight: bold;
    padding: 0 5px;
}

.empty-msg {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* Fahrzeug-Auswahl Grid */
.assign-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.assign-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.assign-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.assign-card:hover {
    border-color: var(--primary);
    background: rgba(211, 47, 47, 0.1);
}

.assign-card.selected {
    border-color: var(--primary);
    background: rgba(211, 47, 47, 0.2);
    box-shadow: 0 0 0 2px var(--primary);
}

.assign-card.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.assign-card .callsign {
    font-weight: bold;
    font-size: 0.9rem;
}

.assign-card .type-wache {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.assign-card .status-indicator {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    align-self: flex-start;
}

.btn-full {
    width: 100%;
}

.modal-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* Karten-Legende */
.map-legend {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.fw { background-color: #f44336; }
.dot.rd { background-color: #1976d2; }
.dot.umland { background-color: #9e9e9e; }

.map-marker circle {
    transition: all 0.3s;
    cursor: pointer;
}

.map-marker:hover circle {
    r: 10;
    stroke: white;
    stroke-width: 2;
}

.map-marker.active circle {
    animation: marker-pulse 1.5s infinite;
}

@keyframes marker-pulse {
    0% { stroke-width: 2; stroke: white; }
    50% { stroke-width: 6; stroke: rgba(255, 255, 255, 0.5); }
    100% { stroke-width: 2; stroke: white; }
}

.dot.einsatz { background-color: #ffeb3b; border: 1px solid #000; }

.dynamic-einsatz-marker circle {
    animation: einsatz-pulse 2s infinite;
}

@keyframes einsatz-pulse {
    0% { r: 5; opacity: 1; }
    50% { r: 8; opacity: 0.7; }
    100% { r: 5; opacity: 1; }
}

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border);
}

.role-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.btn-role {
    background: #222;
    border: 2px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
}

.btn-role:hover {
    border-color: var(--primary);
    background: #2a2a2a;
    transform: translateY(-5px);
}

.role-icon { font-size: 2.5rem; }
.role-name { font-weight: bold; font-size: 1.1rem; }
.role-desc { font-size: 0.75rem; color: var(--text-muted); }

.role-badge {
    font-size: 0.7rem;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hidden { display: none !important; }

/* Simulation Status */
.simulation-status {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin-bottom: 10px;
}

.sim-item {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-msg {
    font-style: italic;
    color: #81d4fa;
    border-left: 2px solid #0288d1;
    padding-left: 8px;
    margin: 4px 0;
}

/* Szenarien */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.scenario-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scenario-card h3 { color: var(--primary); }

.challenge-stats {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
}
