/* Emergency Popup höchste Priorität */
.high-z-index-popup {
    z-index: 999999 !important;
}

.swal2-container.high-z-index-popup {
    z-index: 999999 !important;
}

.swal2-backdrop-show {
    z-index: 999998 !important;
}

/* SweetAlert2 allgemeine z-index Erhöhung */
.swal2-container {
    z-index: 999999 !important;
}

/* Overlay und Dialog für Szenario-Wechsel-Bestätigung */
#scenario-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2500;
    display: none;
}

#scenario-confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 2600;
    min-width: 340px;
    max-width: 90vw;
    display: none;
    text-align: center;
}
#mapid {
    height: 100vh; /* Die Karte nimmt die volle Höhe des Viewports ein */
    width: 100%;   /* Die Karte nimmt die volle Breite ein */
}

/* Area Selector Styles */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.area-point-marker {
    background: transparent !important;
    border: none !important;
}

.area-popup {
    min-width: 250px;
    font-family: Arial, sans-serif;
}

/* Deploy Button Styles */
.deploy-button {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.deploy-button:hover:not(:disabled) {
    background: linear-gradient(145deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.deploy-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.deploy-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Firefighter popup styling */
.firefighter-popup {
    font-family: Arial, sans-serif;
    max-width: 280px;
    min-width: 220px;
}

.firefighter-popup hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.firefighter-popup .deploy-button {
    font-size: 12px;
    padding: 6px 12px;
}

/* Firefighter list in truck popup */
.firefighters-list {
    font-family: Arial, sans-serif;
}

.firefighter-item {
    transition: background-color 0.2s ease;
}

.firefighter-item:hover {
    background-color: #f0f0f0 !important;
}

.firefighters-list::-webkit-scrollbar {
    width: 6px;
}

.firefighters-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.firefighters-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.firefighters-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.station-popup {
    font-family: Arial, sans-serif;
    max-width: 420px;
    min-width: 350px;
    min-height: 200px;
}

.station-popup hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #ddd;
}

/* Leaflet Popup Größe anpassen für Feuerwehr-Stationen */
.leaflet-popup-content-wrapper {
    max-width: none !important;
    min-width: 350px;
}

.leaflet-popup-content {
    width: auto !important;
    max-width: none !important;
    min-width: 350px;
    margin: 12px 16px !important;
}

/* Vehicle list container */
.vehicles-list {
    max-height: 250px;
    overflow-y: auto;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 8px;
    background-color: #fafafa;
}

/* Individual vehicle item */
.vehicle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
}

.vehicle-item:hover {
    background-color: #f0f0f0;
}

.vehicle-info {
    flex: 1;
    margin-right: 10px;
}

.vehicle-info strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.vehicle-info small {
    font-size: 12px;
    color: #666;
}

/* Alarm button styling */
.alarm-button {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.alarm-button:not(:disabled) {
    background-color: #ff4444;
    color: white;
}

.alarm-button:not(:disabled):hover {
    background-color: #cc3333;
    transform: translateY(-1px);
}

.alarm-button:disabled {
    background-color: #cccccc;
    color: #999999;
    cursor: not-allowed;
}

/* Scrollbar styling for webkit browsers */
.vehicles-list::-webkit-scrollbar {
    width: 6px;
}

.vehicles-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.vehicles-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.vehicles-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.area-popup h3 {
    margin: 0 0 10px 0;
    color: #00AA00;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

.area-popup p {
    margin: 5px 0;
    font-size: 14px;
}

/* Tooltip für Startpunkt */
.start-point-tooltip {
    background-color: #00AA00 !important;
    color: white !important;
    font-weight: bold !important;
    border: 2px solid white !important;
    font-size: 12px !important;
}

/* Fahrzeug-Auswahl Styling */
.selected-vehicle {
    filter: drop-shadow(0 0 8px #ff6b35) !important;
    z-index: 1000 !important;
}

.selected-vehicle img {
    border: 2px solid #ff6b35 !important;
    border-radius: 50% !important;
}

/* Simulation Time Control Styling */
.simulation-time-control {
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-family: monospace;
}

#simulation-time {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.simulation-controls {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.simulation-controls button {
    padding: 6px 8px;
    border: none;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    min-width: 32px;
}

.simulation-controls button:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.simulation-controls button.active {
    background: #2196f3;
    color: white;
    box-shadow: 0 2px 4px rgba(33,150,243,0.3);
}

.simulation-controls button:first-child,
.simulation-controls button:last-child {
    font-size: 14px;
}

#dropdown-container {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Gruppen-Dropdown Container */
#gruppen-dropdown-container {
    position: absolute;
    top: 72px;
    right: 200px;
    z-index: 1002;
    width: 156px;
}

/* Gruppen-Dropdown Button */
#gruppen-dropdown-button {
    width: 100%;
    height: 44px;
    padding: 10px 16px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
    margin-bottom: 8px;
}

#gruppen-dropdown-button:hover {
    background: #1976d2;
}

#gruppen-dropdown-button.open {
    background: #1565c0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

#gruppen-dropdown-button.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1003;
}

.dropdown-menu.open {
    display: block;
}

/* Dropdown Items */
.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.active {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
}

.dropdown-item.neue-gruppe {
    color: #4caf50;
    font-weight: bold;
    border-top: 1px solid #e0e0e0;
}

.dropdown-item.neue-gruppe:hover {
    background-color: #e8f5e8;
}

.dropdown-separator {
    height: 1px;
    background-color: #e0e0e0;
    margin: 4px 0;
}

/* Neue Gruppe Dialog */
#neue-gruppe-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 2000;
    min-width: 300px;
    display: none;
}

#neue-gruppe-dialog.open {
    display: block;
}

#neue-gruppe-dialog h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 1.2rem;
}

#neue-gruppe-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 16px;
    box-sizing: border-box;
}

#neue-gruppe-input:focus {
    outline: none;
    border-color: #2196f3;
}

.dialog-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.dialog-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.dialog-buttons .cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.dialog-buttons .cancel-btn:hover {
    background: #e0e0e0;
}

.dialog-buttons .confirm-btn {
    background: #4caf50;
    color: white;
}

.dialog-buttons .confirm-btn:hover {
    background: #45a049;
}

/* Overlay für Dialog */
#dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

#dialog-overlay.open {
    display: block;
}

#start-button {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 1001;
    padding: 10px 24px;
    font-size: 1rem;
    background: #e0e0e0;
    color: #222;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s;
    width: 156px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#filter-toggle-button {
    position: absolute;
    top: 72px;
    right: 30px;
    z-index: 1001;
    padding: 10px 24px;
    font-size: 1rem;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s;
    width: 156px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#filter-toggle-button:hover {
    background: #1976d2;
}

#filter-toggle-button.group-only {
    background: #ff9800;
}

#filter-toggle-button.group-only:hover {
    background: #f57c00;
}

#search-radius-toggle-button {
    position: absolute;
    top: 124px;
    right: 30px;
    z-index: 1001;
    padding: 10px 24px;
    font-size: 1rem;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s;
    width: 156px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-radius-toggle-button:hover {
    background: #388e3c;
}

#search-radius-toggle-button.active {
    background: #ff5722;
}

#search-radius-toggle-button.active:hover {
    background: #d84315;
}

/* Tooltip Styling */
.tooltip {
    position: fixed !important;
    background: rgba(50, 50, 50, 0.95) !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.15s ease-in-out !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    min-width: 200px !important;
    max-width: 350px !important;
    width: auto !important;
    line-height: 1.4 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.tooltip.visible {
    opacity: 1 !important;
}

/* Browser-Standard-Tooltips deaktivieren */
button[data-tooltip] {
    position: relative;
}

button[data-tooltip]:hover::before,
button[data-tooltip]:hover::after {
    display: none !important;
}

/* Pfeil für Tooltip - wird dynamisch positioniert */
.tooltip::after {
    content: '' !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
}

/* Pfeil links (Tooltip rechts von der Maus) */
.tooltip.arrow-left::after {
    top: 50% !important;
    right: 100% !important;
    margin-top: -6px !important;
    border-width: 6px 6px 6px 0 !important;
    border-color: transparent rgba(50, 50, 50, 0.95) transparent transparent !important;
}

/* Pfeil rechts (Tooltip links von der Maus) */
.tooltip.arrow-right::after {
    top: 50% !important;
    left: 100% !important;
    margin-top: -6px !important;
    border-width: 6px 0 6px 6px !important;
    border-color: transparent transparent transparent rgba(50, 50, 50, 0.95) !important;
}

#start-button:hover {
    background: #bdbdbd;
}

#start-button.active {
    background: #43a047;
    color: #fff;
}

#einfügen-button {
    position: absolute;
    top: 70px;
    right: 30px;
    z-index: 1001;
    padding: 10px 24px;
    font-size: 1rem;
    background: #e0e0e0;
    color: #222;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s;
    width: 156px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#einfügen-button:hover {
    background: #bdbdbd;
}

#einfügen-button.active {
    background: #43a047;
    color: #fff;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Verhindert Scrollbalken, falls die Karte die volle Größe einnimmt */
}

.drone-cluster {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
.drone-cluster-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.drone-cluster-count {
    display: block;
    margin-top: 0px;
    font-size: 1.1em;
    font-weight: bold;
    color: #222;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 2px 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

#drone-list-popup, #drone-list, #drone-list-popup h3, #drone-list li, #drone-list li .drone-coords, #drone-list li .drone-akku {
    display: none !important;
}

#insert-toggles {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 120px;
    right: 30px;
    z-index: 1001;
}

#insert-toggles.open {
    display: flex;
}

#insert-toggles button {
    width: 156px;
    height: 44px;
    background: #e0e0e0;
    color: #222;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#insert-toggles button:hover {
    background: #bdbdbd;
}

#insert-toggles button.active {
    background: #43a047;
    color: #fff;
}

#insert-toggles, #einfügen-button, .insert-toggle-btn {
    display: none !important;
}

#gruppen-landung-button {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 1001;
    padding: 10px 24px;
    font-size: 1rem;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s;
    width: 156px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

#gruppen-landung-button:hover {
    background: #e55a2b;
}

.control-button {
    padding: 10px 20px;
    font-size: 14px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.simulation-time-control {
    background: white;
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

#simulation-time {
    color: #333;
}

/* Nachrichtensystem */
#message-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 320px;
    height: 250px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#message-header {
    background: #2196f3;
    color: white;
    padding: 12px 16px;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#message-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    max-height: 200px;
}

.message-item {
    background: rgba(240, 248, 255, 0.8);
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: messageSlideIn 0.3s ease-out;
}

.message-item:last-child {
    margin-bottom: 0;
}

.message-time {
    color: #666;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 4px;
    font-family: monospace;
}

.message-text {
    color: #333;
    word-wrap: break-word;
}

/* Verschiedene Nachrichtentypen */
.message-item.info {
    background: rgba(240, 248, 255, 0.8);
    border-color: #2196f3;
}

.message-item.success {
    background: rgba(232, 245, 233, 0.8);
    border-color: #4caf50;
}

.message-item.warning {
    background: rgba(255, 248, 225, 0.8);
    border-color: #ff9800;
}

.message-item.error {
    background: rgba(255, 235, 238, 0.8);
    border-color: #f44336;
}

/* Scrollbar styling für Webkit-Browser */
#message-list::-webkit-scrollbar {
    width: 8px;
}

#message-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

#message-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#message-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Animation für neue Nachrichten */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Szenario-Panel */
#scenario-panel {
    position: absolute;
    bottom: 20px;
    left: 360px; /* Angepasst von right: 20px */
    width: 300px;
    max-height: 400px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1400;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#scenario-header {
    background: #ff6b35;
    color: white;
    padding: 12px 16px;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#scenario-content {
    padding: 16px;
    flex: 1;
}

.scenario-header h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
}

.scenario-points {
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
}

.scenario-progress {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.3s ease;
}

.scenario-objectives {
    margin-top: 12px;
}

.objective {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.objective.pending {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    color: #856404;
}

.objective.completed {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.objective.completed::before {
    content: "✓ ";
    color: #4caf50;
    font-weight: bold;
}

.objective-progress {
    font-weight: bold;
    font-family: monospace;
}

/* Szenario-Dialog */
#scenario-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    display: none;
}

#scenario-dialog-overlay.open {
    display: block;
}

#scenario-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 2200;
    min-width: 400px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
}

#scenario-dialog.open {
    display: block;
}

#scenario-dialog h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
    text-align: center;
}

.scenario-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.scenario-item:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.scenario-item.completed {
    background: rgba(76, 175, 80, 0.05);
    border-color: #4caf50;
}

.scenario-item.completed::after {
    content: "✓ Abgeschlossen";
    position: absolute;
    top: 8px;
    right: 12px;
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.scenario-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 6px;
}

.scenario-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.scenario-points-display {
    color: #ff6b35;
    font-weight: bold;
    font-size: 0.9rem;
}

#show-scenario-menu {
    width: 100%;
    padding: 12px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

#show-scenario-menu:hover {
    background: #e55a2b;
}

/* Drohnen Start-Modus Dropdown Styling */
.drone-control-group {
    position: absolute;
    top: 20px;
    right: 200px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    height: 44px;
}

/* Drohnen-Verfügbarkeitsanzeige Styling */
.drone-availability-display {
    position: absolute;
    top: 20px;
    right: 480px;
    background: rgba(52, 152, 219, 0.95);
    border-radius: 8px;
    padding: 0 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    height: 44px;
    color: white;
}

.drone-availability-display label {
    font-weight: bold;
    white-space: nowrap;
    font-size: 14px;
    margin: 0;
}

#available-drones-count {
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    min-width: 40px;
    text-align: center;
}

/* Akkubalken Styling */
.battery-bar-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.battery-bar {
    width: 40px;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
}

.battery-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.drone-control-group label {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    font-size: 14px;
    margin: 0;
}

.control-dropdown {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 150px;
    line-height: 1.2;
}

.control-dropdown:hover {
    border-color: #ff6b35;
}

.control-dropdown:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

/* Drohnen-Popup Styles */
.drone-popup {
    font-family: Arial, sans-serif;
    min-width: 200px;
}

.drone-popup h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.drone-popup p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.drone-popup strong {
    color: #333;
}

.drone-popup-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.land-button, .target-button {
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    flex: 1;
    transition: background-color 0.3s ease;
}

.land-button {
    background: #ff6b35;
}

.land-button:hover {
    background: #e55a2b;
}

.land-button:active {
    background: #d14f24;
}

.target-button {
    background: #4CAF50;
}

.target-button:hover {
    background: #45a049;
}

.target-button:active {
    background: #3e8e41;
}