/* Basic Styling for Feuerwehr App */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
}

.nav-link.active {
    font-weight: 700;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

/* Tables */
.table th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Vehicle Cards */
.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Incident Reports */
.incident-report {
    line-height: 1.6;
}

.incident-report img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #dc3545;
}

.breadcrumb-item a:hover {
    color: #c82333;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        border: none;
    }
}

/* Custom utilities */
.text-danger {
    color: var(--fire-main) !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}
.bg-danger-dark {
    background-color: var(--fire-main) !important;
}

/* Loading states */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Form styling */
.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Margin-Top Utilities (falls Bootstrap nicht richtig lädt) */
.mt-4 {
    margin-top: 1.5rem !important;
}

/* Large screens - kein margin-top */
@media (min-width: 992px) {
    .mt-lg-0 {
        margin-top: 0 !important;
    }
}

/* Zusätzliche Spacing-Utilities für bessere Kontrolle */
.mt-3 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

/* Responsive Margin-Top für verschiedene Bildschirmgrößen */
@media (max-width: 991.98px) {
    .mt-md-4 {
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 767.98px) {
    .mt-sm-3 {
        margin-top: 1rem !important;
    }
}

/* Spezielle Klasse für Sidebar-Elemente */
.sidebar-spacing {
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .sidebar-spacing {
        margin-top: 0;
    }
}

/* ============== JUGENDFEUERWEHR STYLES ============== */
.jf-hero {
    background: linear-gradient(135deg, #fd7e14, #e55d0e);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.jf-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.jf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(253, 126, 20, 0.15);
}

.age-badge {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

/* ============== KINDERFEUERWEHR STYLES ============== */
.kf-hero {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.kf-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.kf-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.15);
}

.activity-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ============== FÖRDERVEREIN STYLES ============== */
.fv-hero {
    background: linear-gradient(135deg, #6f42c1, #563d7c);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.fv-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.fv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(111, 66, 193, 0.15);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.membership-plan {
    transition: all 0.3s ease;
    cursor: pointer;
}

.membership-plan:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ============== ADMIN STYLES ============== */
/* Admin Card Styles */
.admin-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.admin-section-header {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-dark, #0056b3));
    color: white;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
}

.admin-section-header.bg-danger {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    color: white;
}
.admin-section-header.bgdanger {
    background: linear-gradient(135deg, #000050, #000030);
    color: white;
}

.admin-section-header.bg-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.admin-section-header.bg-warning {
    background: linear-gradient(135deg, #ffc107, #d39e00);
    color: white !important;
}

/* Überschriften explizit weiß setzen */
.admin-section-header h3,
.admin-section-header h5 {
    color: white !important;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color, #dc3545);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    position: relative;
}

.admin-item {
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.admin-item:hover {
    background-color: rgba(255,255,255,0.8);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.activity-item {
    border-left: 4px solid var(--bs-primary);
    background: linear-gradient(90deg, rgba(13,110,253,0.05), transparent);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: linear-gradient(90deg, rgba(13,110,253,0.1), transparent);
    transform: translateX(3px);
}

.quick-action-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40,167,69,0.3);
    color: white;
}

.welcome-header {
    background: linear-gradient(135deg, #dc3545, #6f42c1, #20c997);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: white;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.status-online { background-color: #28a745; }
.status-warning { background-color: #ffc107; }
.status-offline { background-color: #dc3545; }

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

/* ============== SORTABLE STYLES ============== */
.sortable-category {
    cursor: move;
    transition: all 0.3s ease;
}

.sortable-category:hover {
    background-color: rgba(196, 30, 58, 0.1) !important;
}

.ui-sortable-helper {
    background-color: #fff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    transform: rotate(2deg);
}

.ui-sortable-placeholder {
    background-color: rgba(196, 30, 58, 0.2);
    border: 2px dashed #c41e3a;
    visibility: visible !important;
    height: 60px;
}

.sort-handle {
    color: #6c757d;
    cursor: grab;
    font-size: 1.2rem;
}

.sort-handle:hover {
    color: #c41e3a;
}

.sort-handle:active {
    cursor: grabbing;
}

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

.group-header {
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* ============== VEHICLE DETAIL STYLES ============== */
.vehicle-hero {
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.vehicle-image-main {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.vehicle-image-main:hover {
    transform: scale(1.02);
}

.incident-card {
    transition: all 0.3s ease;
}

.incident-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vehicle-specs dl {
    margin-bottom: 0;
}

.vehicle-specs dt {
    font-weight: 600;
    color: #495057;
}

.vehicle-specs dd {
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.badge-type {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* ============== HOVER EFFECTS ============== */
.hover-border-primary {
    transition: all 0.3s ease;
}

.vehicle-description {
    line-height: 1.8;
}

.vehicle-description h1,
.vehicle-description h2,
.vehicle-description h3,
.vehicle-description h4,
.vehicle-description h5,
.vehicle-description h6 {
    color: #c41e3a;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.vehicle-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.pagination .page-link:hover {
    background-color: rgba(196, 30, 58, 0.1);
    border-color: #c41e3a;
    color: #c41e3a;
}

.pagination .page-item.active .page-link {
    background-color: #c41e3a;
    border-color: #c41e3a;
}

/* ============== COMMON ANIMATION ============== */
/* ============== LOGIN PAGE STYLES ============== */
.login-page {
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    margin: 2rem;
}

.login-container .input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.login-container .form-control:focus {
    border-color: #c41e3a;
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

/* ============== INCIDENT REPORT STYLES ============== */
#incident-map {
    height: 350px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.vehicle-link:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    border-color: #0d6efd !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.vehicle-thumb img {
    transition: transform 0.2s ease;
}

.vehicle-link:hover .vehicle-thumb img {
    transform: scale(1.05);
}

/* ============== INCIDENTS PAGE STYLES ============== */
.einsaetze-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 400px;
}

.latest-einsatz {
    grid-row: 1 / 3;
}

.older-einsatz {
    height: 190px;
}

.einsatz-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.einsatz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.15);
}

.einsatz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #000050;
}

.latest-einsatz .einsatz-card::before {
    height: 6px;
}

.vehicle-badge {
    transition: all 0.2s ease;
}

.vehicle-badge:hover {
    background-color: #0d6efd !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ============== COMMAND PAGE STYLES ============== */
.command-member-card {
    transition: all 0.3s ease;
    cursor: default;
}

.command-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.command-photo {
    transition: all 0.3s ease;
}

.command-member-card:hover .command-photo {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.row.justify-content-center > .col-lg-4 {
    max-width: 350px;
}

.command-member-card .btn {
    transition: all 0.3s ease;
}

/* ============== CATEGORY PAGE STYLES ============== */
.news-article-card {
    transition: all 0.3s ease;
    border: 1px solid transparent !important;
}

.news-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-color: rgba(196, 30, 58, 0.2) !important;
}

.news-article-card:hover .article-title {
    color: #c41e3a !important;
}

.news-article-card:hover .read-more-btn {
    background-color: #c41e3a;
    border-color: #c41e3a;
    color: white;
    transform: translateX(5px);
}

.news-article-card:hover .author-name,
.news-article-card:hover .article-date,
.news-article-card:hover .article-time {
    color: #495057 !important;
}

.article-preview {
    transition: color 0.3s ease;
}

.news-article-card:hover .article-preview {
    color: #495057 !important;
}

.read-more-btn {
    transition: all 0.3s ease;
}

/* Category Header Enhancement */
.card-header.bg-danger {
    background: linear-gradient(135deg, #c41e3a, #8b0000) !important;
    position: relative;
    overflow: hidden;
}
.card-header.bgdanger {
    background: linear-gradient(135deg, #000050, #000030) !important;
    position: relative;
    overflow: hidden;
}
.card-header.bg-dark {
    background: --fire-main !important;
    position: relative;
    overflow: hidden;
}


/* SHIMMER-EFFEKT ENTFERNT - kein ::before mehr */

/* Empty State */
.empty-state {
    padding: 2rem;
}

.empty-state i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.breadcrumb-item a {
    color: #c41e3a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #8b0000;
}

.breadcrumb-item.active {
    font-weight: 600;
}

.article-date,
.article-time {
    font-weight: 500;
}

/* ============== NEWS DETAIL STYLES ============== */
.news-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6 {
    color: #c41e3a;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-content ul,
.news-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.news-content blockquote {
    border-left: 4px solid #c41e3a;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6c757d;
}

.card .bg-light:hover {
    background-color: #f8f9fa !important;
    border-color: rgba(23, 162, 184, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card .bg-light:hover .card-title a {
    color: #17a2b8 !important;
}

/* ============== ENHANCED PAGINATION ============== */
.pagination .page-link {
    border: none;
    color: #6c757d;
    margin: 0 2px;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: #c41e3a;
    border-color: #c41e3a;
    color: white;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.pagination .page-link:hover {
    background-color: rgba(196, 30, 58, 0.1);
    color: #c41e3a;
    transform: translateY(-1px);
}

/* ============== RESPONSIVE MOBILE ============== */
@media (max-width: 768px) {
    .einsaetze-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .latest-einsatz {
        grid-row: auto;
    }
    
    .older-einsatz {
        height: auto;
    }
    
    .row.justify-content-center .col-lg-4,
    .row.justify-content-center .col-lg-6 {
        max-width: 100%;
    }
    
    .news-article-card:hover {
        transform: none;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============== MENU FIX STYLES ============== */
/* Navigation Link Fixes */
.navbar-nav .nav-item .nav-link,
.navbar-nav .nav-item .dropdown-toggle {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: block !important;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link:focus,
.navbar-nav .nav-item .dropdown-toggle:hover,
.navbar-nav .nav-item .dropdown-toggle:focus {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Dropdown Item Fixes */
.dropdown-menu .dropdown-item {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    text-align: left !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* Sicherstellen dass alle Links funktionieren */
a[href]:not([href=""]):not([href="#"]) {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Bootstrap Override für Dropdown */
.dropdown-menu {
    pointer-events: auto !important;
}

.dropdown-menu.show {
    pointer-events: auto !important;
    display: block !important;
}

/* Mobile Menu Fixes */
.navbar-collapse {
    pointer-events: auto !important;
}

.navbar-toggler {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Z-Index Management */
.navbar {
    z-index: 1030 !important;
}

.dropdown-menu {
    z-index: 1050 !important;
}

/* Fix für mögliche CSS-Konflikte */
.navbar * {
    box-sizing: border-box;
}

/* Event Propagation Fix */
.dropdown-toggle[data-bs-toggle="dropdown"] {
    pointer-events: auto !important;
}

/* Hover State Fix */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block !important;
    }
}

/* ============== END MENU FIX ============== */
/* ============== ENHANCED MENU FIX STYLES ============== */
/* Navigation Link Fixes mit besserer Hover-Logik */
.navbar-nav .nav-item .nav-link,
.navbar-nav .nav-item .dropdown-toggle {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: block !important;
    transition: all 0.2s ease !important;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link:focus,
.navbar-nav .nav-item .dropdown-toggle:hover,
.navbar-nav .nav-item .dropdown-toggle:focus {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Dropdown Item Fixes mit verbesserter Hover-Zone */
.dropdown-menu .dropdown-item {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    text-align: left !important;
    position: relative !important;
    transition: all 0.2s ease !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* Erweiterte Hover-Zone für bessere Bedienbarkeit */
@media (min-width: 992px) {
    .dropdown {
        position: relative;
    }
    
    /* Größerer Hover-Bereich zwischen Menu-Button und Dropdown */
    .dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: -10px;
        right: -10px;
        height: 15px;
        z-index: 1049;
        background: transparent;
        pointer-events: auto;
    }
    
    /* Dropdown Menu Positionierung mit Puffer */
    .dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 200px;
        padding: 0.75rem 0;
        margin: 0;
    }
    
    /* Erweiterte Hover-States */
    .dropdown:hover > .dropdown-toggle,
    .dropdown-menu:hover + .dropdown-toggle {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Menu bleibt offen bei Hover über erweiterten Bereich */
    .dropdown:hover .dropdown-menu,
    .dropdown-menu:hover {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

/* Mobile Menu Fixes */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: none !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.75) !important;
        padding: 0.5rem 2rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .dropdown-item:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.1) !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Logo/Brand Icon */
.navbar-brand i {
    margin-right: 0.75rem;
    font-size: 1.75rem;
    color: var(--fire-yellow);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fireGlow 2s ease-in-out infinite alternate;
}

@keyframes fireGlow {
    from { 
        filter: drop-shadow(0 0 5px var(--fire-yellow));
    }
    to { 
        filter: drop-shadow(0 0 10px var(--fire-orange));
    }
}

/* Search Bar (falls vorhanden) */
.navbar-search {
    position: relative;
    margin: 0 1rem;
}

.navbar-search input {
    background: var(--fire-white-10);
    border: 1px solid var(--fire-white-25);
    color: var(--fire-white);
    border-radius: 25px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    min-width: 200px;
}

.navbar-search input::placeholder {
    color: var(--fire-white-75);
}

.navbar-search input:focus {
    background: var(--fire-white);
    color: var(--fire-dark-gray);
    box-shadow: 0 0 0 0.25rem var(--fire-red-25);
    border-color: var(--fire-red);
}

.navbar-search button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--fire-white-75);
    padding: 0.25rem;
}

/* Animation für Dropdown-Öffnen */
@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu.show {
    animation: dropdownSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance Optimierungen */
.dropdown-menu,
.dropdown-item,
.dropdown-toggle,
.navbar-brand,
.nav-link {
    will-change: transform, opacity;
}

/* Z-Index Management */
.navbar {
    z-index: 1030 !important;
}

.dropdown-menu {
    z-index: 1050 !important;
}

/* Cursor Fixes */
.dropdown-toggle,
.dropdown-item,
.nav-link,
.navbar-brand {
    cursor: pointer !important;
}

/* Link Aktivierung */
a[href]:not([href=""]):not([href="#"]) {
    cursor: pointer !important;
}

/* ============== END HEADER/NAVIGATION STYLES ============== */

/* ============== COLOR VARIABLES ============== */
:root {
    /* Feuerwehr Hauptfarben */
    --fire-main: #191e64;
    --fire-red: #c41e3a;
    --fire-dark-red: #8b0000;
    --fire-light-red: #dc3545;
    
    /* Sekundärfarben */
    --fire-orange: #fd7e14;
    --fire-yellow: #ffc107;
    --fire-green: #28a745;
    --fire-blue: #007bff;
    --fire-purple: #6f42c1;
    
    /* Neutrale Farben */
    --fire-white: #ffffff;
    --fire-light-gray: #f8f9fa;
    --fire-gray: #6c757d;
    --fire-dark-gray: #343a40;
    
    /* Transparenzen */
    --fire-red-10: rgba(196, 30, 58, 0.1);
    --fire-red-25: rgba(196, 30, 58, 0.25);
    --fire-main-10: rgba(0, 0, 80, 0.1);
    --fire-main-25: rgba(0, 0, 80, 0.25);
    --fire-white-10: rgba(255, 255, 255, 0.1);
    --fire-white-75: rgba(255, 255, 255, 0.75);
}

/* ============== HEADER/NAVIGATION STYLES ============== */
/* Hauptnavigation */
.navbar {
    background: linear-gradient(135deg, var(--fire-main), var(--fire-main)) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Brand Styling */
.navbar-brand {
    color: var(--fire-white) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.navbar-brand:hover {
    color: var(--fire-white-75) !important;
    transform: scale(1.05);
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: var(--fire-white-75) !important;
    font-weight: 500 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: block;
    position: relative;
    z-index: 1000;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--fire-white) !important;
    background: var(--fire-white-10);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--fire-white) !important;
    background: var(--fire-white-10);
    font-weight: 600 !important;
}

/* Dropdown Toggle */
.navbar-nav .dropdown-toggle {
    color: var(--fire-white-75) !important;
    font-weight: 500 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    margin: 0 0.25rem;
}

.navbar-nav .dropdown-toggle:hover,
.navbar-nav .dropdown-toggle.show {
    color: var(--fire-white) !important;
    background: var(--fire-white-10) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.75rem;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    background: var(--fire-white);
    backdrop-filter: blur(15px);
    border: 1px solid var(--fire-white-25);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    min-width: 250px;
    z-index: 1050;
    padding: 0.75rem 0;
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-top: 3px solid var(--fire-red);
}

.dropdown-menu.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Dropdown Items */
.dropdown-item {
    color: var(--fire-dark-gray) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: none !important;
    text-align: left !important;
    cursor: pointer !important;
    border-radius: 8px;
    margin: 0.1rem 0.5rem;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--fire-main), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, var(--fire-main), rgba(196, 30, 58, 0.05)) !important;
    color: var(--fire-main) !important;
    transform: translateX(8px);
    box-shadow: 0 4px 15px var(--fire-main);
    font-weight: 600;
}

.dropdown-item i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--fire-main);
    transition: transform 0.2s ease;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

/* User Dropdown (falls vorhanden) */
.navbar-nav .dropdown.user-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 200px;
}

.user-info {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--fire-light-gray);
    background: linear-gradient(135deg, var(--fire-light-gray), var(--fire-white));
}

.user-name {
    font-weight: 600;
    color: var(--fire-red);
    margin-bottom: 0.25rem;
}

.user-role {
    font-size: 0.875rem;
    color: var(--fire-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Navigation */
.navbar-toggler {
    border: 2px solid var(--fire-white-25) !important;
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: var(--fire-white-10);
    border-color: var(--fire-white-75);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem var(--fire-red-25) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5rem;
    height: 1.5rem;
}

.navbar-collapse {
    background: var(--fire-white-10);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-top: 0.5rem;
    padding: 1rem;
}

/* Desktop: Hover zum Öffnen */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .navbar-nav .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
}

/* Sicherstellen, dass der Hauptlink weiterhin funktioniert */
.nav-link.dropdown-toggle[href] {
    cursor: pointer;
}

/* Fahrzeuge-Dropdown auf Desktop: Klick auf Link = Navigation, Hover = Dropdown */
@media (min-width: 992px) {
    .nav-item.dropdown .nav-link.dropdown-toggle {
        position: relative;
    }
    
    .nav-item.dropdown .nav-link.dropdown-toggle::after {
        position: absolute;
        right: -5px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ============== ENHANCED VEHICLE DROPDOWN STYLES ============== */
/* Fahrzeuge-Dropdown speziell stylen */
.dropdown-menu-vehicles {
    min-width: 320px;
    max-width: 400px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    max-height: 80vh;
    overflow-y: auto;
}

/* Header-Link (Alle Fahrzeuge) */
.dropdown-header-link {
    padding: 0.75rem 1rem !important;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(196, 30, 58, 0.05));
    border: none !important;
    margin: 0 0.5rem 0.5rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-header-link:hover {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2), rgba(196, 30, 58, 0.1));
    transform: translateX(2px);
}

/* Fahrzeug-Dropdown-Items */
.vehicle-dropdown-item {
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    border: none;
    margin: 0 0.5rem;
    border-radius: 8px;
}

.vehicle-dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    transform: translateX(3px);
}

/* Mini-Thumbnails für Fahrzeuge */
.vehicle-thumb-mini {
    width: 40px;
    height: 30px;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}

.vehicle-thumb-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.vehicle-dropdown-item:hover .vehicle-thumb-mini img {
    transform: scale(1.1);
}

/* Fahrzeugname */
.vehicle-name {
    font-size: 0.9rem;
    line-height: 1.2;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-dropdown-item:hover .vehicle-name {
    color: #0d6efd !important;
}

/* Fahrzeugtyp-Badge */
.vehicle-type-badge {
    background: rgba(108, 117, 125, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #6c757d !important;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-dropdown-item:hover .vehicle-type-badge {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd !important;
}

/* Pfeil-Animation */
.vehicle-arrow {
    transition: all 0.3s ease;
    opacity: 0.5;
}

.vehicle-dropdown-item:hover .vehicle-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: #0d6efd !important;
}

/* Dropdown-Header für Fahrzeuge */
.dropdown-menu-vehicles .dropdown-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    padding: 0.5rem 1rem;
    margin-bottom: 0;
}

/* Divider in Fahrzeuge-Dropdown */
.dropdown-menu-vehicles .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0,0,0,0.1);
}

/* Scrollbar für langes Dropdown */
.dropdown-menu-vehicles::-webkit-scrollbar {
    width: 4px;
}

.dropdown-menu-vehicles::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-menu-vehicles::-webkit-scrollbar-thumb {
    background: #c41e3a;
    border-radius: 10px;
}

.dropdown-menu-vehicles::-webkit-scrollbar-thumb:hover {
    background: #8b0000;
}

/* Mobile Anpassungen für Fahrzeuge-Dropdown */
@media (max-width: 767px) {
    .dropdown-menu-vehicles {
        min-width: 280px;
        max-width: 90vw;
    }
    
    .vehicle-name {
        max-width: 150px;
    }
    
    .vehicle-type-badge {
        max-width: 60px;
    }
}

/* Hover-Effekt für Hauptnavigation bei Fahrzeuge */
.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: dropdownFadeIn 0.3s ease-in-out;
}

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

/* ============== INCIDENTS STYLES ============== */
.incidents-hero {
    background: linear-gradient(135deg, #dc3545, #b02a37, #8b1e2b);
    background-size: 200% 200%;
    animation: incidentGradient 8s ease infinite;
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

@keyframes incidentGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Emergency Lights Animation */
.emergency-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.emergency-lights .light {
    position: absolute;
    top: 20%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: emergencyFlash 2s infinite;
    box-shadow: 0 0 20px currentColor;
    opacity: 0.7;
}

.emergency-lights .light.red {
    background-color: #ff0000;
    color: #ff0000;
}

.emergency-lights .light.blue {
    background-color: #0066ff;
    color: #0066ff;
}

@keyframes emergencyFlash {
    0%, 50% { 
        opacity: 0.3;
        transform: scale(0.8);
        box-shadow: 0 0 10px currentColor;
    }
    25% { 
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 30px currentColor, 0 0 50px currentColor;
    }
    75% { 
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 20px currentColor;
    }
    100% { 
        opacity: 0.3;
        transform: scale(0.8);
        box-shadow: 0 0 10px currentColor;
    }
}

.badge-hero {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.badge-hero:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Siren Sound Wave Effect */
.incidents-hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 120%;
    height: 80%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    animation: sirenWaves 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sirenWaves {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.1) rotate(180deg);
    }
}

/* Enhanced Dropdown in Hero */
.incidents-hero .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.incidents-hero .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
}

.incidents-hero .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    color: #dc3545;
    transform: translateX(5px);
}

.incidents-hero .dropdown-item.active {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    color: white;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .incidents-hero {
        padding: 2rem 0;
    }
    
    .incidents-hero .display-4 {
        font-size: 2rem;
    }
    
    .emergency-lights .light {
        width: 15px;
        height: 15px;
    }
    
    .badge-hero {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Responsive Badge Layout */
@media (max-width: 576px) {
    .incidents-hero .d-flex.flex-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .badge-hero {
        display: inline-block;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Hauptfarben auf Grau ändern */
:root {
    --primary-color: #6c757d;
    --primary-dark: #5a6268;
    --primary-light: #adb5bd;
}

/* Header und Navigation */
.navbar-brand {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-dark) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Cards */
.card-header {
    background: var(--fire-main) !important;
    color: var(--fire-white) !important;
    border: none;
}

.card-header h5,
.card-header h6,
.card-header .mb-0 {
    color: var(--fire-white) !important;
}

/* Spezifische Sidebar-Styles */
.sidebar .card-header,
.col-lg-3 .card-header {
    background: var(--fire-main) !important;
    color: var(--fire-white) !important;
}

.sidebar .card-header h5,
.sidebar .card-header h6,
.col-lg-3 .card-header h5,
.col-lg-3 .card-header h6 {
    color: var(--fire-white) !important;
    font-weight: 600 !important;
}

/* ============== SIDEBAR FIXES ============== */
/* Sidebar Abstand vom Header */
.col-lg-3.sidebar {
    margin-top: 1.5rem;
}

/* Card in Sidebar - Abstand oben statt unten */
.sidebar .card,
.col-lg-3.sidebar .card {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Card Header in Sidebar - bessere Lesbarkeit */
.sidebar .card-header,
.col-lg-3.sidebar .card-header {
    background: var(--fire-main) !important;
    color: var(--fire-white) !important;
    border: none;
}

.sidebar .card-header h5,
.sidebar .card-header h6,
.sidebar .card-header .mb-0,
.col-lg-3.sidebar .card-header h5,
.col-lg-3.sidebar .card-header h6,
.col-lg-3.sidebar .card-header .mb-0 {
    color: var(--fire-white) !important;
    font-weight: 600 !important;
}

/* Alle Überschriften in Card-Headern weiß machen */
.sidebar .card-header *,
.col-lg-3.sidebar .card-header * {
    color: var(--fire-white) !important;
}

/* Social Icons in Sidebar */
.social-icons-sidebar {
    text-align: center;
    padding: 1.5rem 0;
}

.social-icons-sidebar h6 {
    color: var(--fire-white) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-icons-sidebar .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icons-sidebar .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icons-sidebar .btn-facebook {
    background-color: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-icons-sidebar .btn-facebook:hover {
    background-color: #166fe5;
    border-color: #166fe5;
    color: white;
}

.social-icons-sidebar .btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: white;
}

.social-icons-sidebar .btn-instagram:hover {
    filter: brightness(1.1);
    color: white;
}

.social-icons-sidebar .btn-youtube {
    background-color: #ff0000;
    border-color: #ff0000;
    color: white;
}

.social-icons-sidebar .btn-youtube:hover {
    background-color: #cc0000;
    border-color: #cc0000;
    color: white;
}

/* ============== INCIDENT FIXES ============== */
/* Bessere Stichwort-Anzeige */
.incident-category-display {
    display: inline-block;
}

.incident-category-unknown {
    color: var(--fire-gray) !important;
    font-style: italic;
}

/* ============== GALLERY STYLES ============== */
.gallery-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-image-item img {
    transition: transform 0.3s ease;
}

.gallery-image-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 0.5rem;
    background: rgba(255,255,255,0.9);
    border-radius: 0 0 8px 8px;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: var(--fire-red);
    color: white;
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 1rem;
    background: rgba(0,0,0,0.7);
    border-radius: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-caption {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }
}

