/**
 * BGG Geräte-Verwaltung - Dark Mode Variables
 * Diese Variablen ermöglichen Dark/Light Theme Switching
 */

:root {
    --neon-green: #00ff88;
    --dark-green: #00cc6a;
    --light-green: #66ffaa;
    --bg-black: #0a0a0a;
    --card-black: #1a1a1a;
    --border-dark: #2a2a2a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
}

/* Original style.css Inhalt folgt: */

/* style.css - RFID Marker System im Bruno Generators Design */

:root {
    --primary-color: #e63312;
    --secondary-color: #2c3e50;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --border-color: #dee2e6;
    --text-color: #212529;
    --header-height: 70px;
}

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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* Header Navigation */
.main-header {
    background-color: var(--card-black, #1a1a1a);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.username {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Main Container */
.main-container {
    min-height: calc(100vh - var(--header-height));
    padding: 30px 20px;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.page-header h1 {
    color: var(--secondary-color);
    font-size: 32px;
}

.page-header h2 {
    color: var(--medium-gray);
    font-size: 18px;
    font-weight: normal;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #c82a10;
}

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

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

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

.btn-success:hover {
    background-color: #218838;
}

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

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

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

.btn-info:hover {
    background-color: #138496;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

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

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

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

.btn-block {
    width: 100%;
    display: block;
}

.btn .icon {
    margin-right: 5px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--dark-gray);
}

.badge-info {
    background-color: var(--info-color);
    color: white;
}

.badge-secondary {
    background-color: var(--medium-gray);
    color: white;
}

.badge.large {
    padding: 8px 15px;
    font-size: 14px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: var(--info-color);
    color: #0c5460;
}

/* Map Container */
.map-container {
    background: var(--card-black, #1a1a1a);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

#map {
    height: 500px;
    border-radius: 5px;
    border: 2px solid var(--border-color);
}

#miniMap {
    border-radius: 5px;
    border: 2px solid var(--border-color);
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: var(--card-black, #1a1a1a);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
}

.map-legend h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--secondary-color);
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 12px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Marker Popup */
.marker-popup {
    min-width: 200px;
}

.marker-popup h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.marker-popup p {
    margin: 5px 0;
}

/* Tables */
.markers-list {
    background: var(--card-black, #1a1a1a);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.markers-list h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: var(--secondary-color);
    color: white;
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: var(--light-gray);
}

/* Fuel Indicator */
.fuel-indicator {
    position: relative;
    width: 100%;
    max-width: 150px;
    height: 25px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.fuel-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--danger-color) 0%, var(--warning-color) 50%, var(--success-color) 100%);
    transition: width 0.3s;
}

.fuel-indicator span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 12px;
    color: var(--dark-gray);
}

.fuel-indicator.large {
    max-width: 250px;
    height: 35px;
}

.fuel-indicator.large span {
    font-size: 14px;
}

/* Forms */
.marker-form, .user-form, .login-form {
    background: var(--card-black, #1a1a1a);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input[type="range"] {
    width: 100%;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--medium-gray);
    font-size: 12px;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Location Capture */
.location-capture {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

#locationStatus {
    font-weight: 600;
}

/* Fuel Display */
.fuel-display {
    margin-top: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Image Preview & Gallery */
.image-preview, .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid var(--border-color);
    transition: transform 0.3s;
}

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

.image-item {
    position: relative;
}

.image-item .btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* Marker Details */
.marker-details {
    background: var(--card-black, #1a1a1a);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.details-grid {
    display: grid;
    gap: 30px;
}

.info-card {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.info-card h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item .label {
    font-weight: 600;
    color: var(--medium-gray);
    font-size: 13px;
}

.info-item .value {
    font-size: 16px;
    color: var(--text-color);
}

.maintenance-action {
    margin-top: 20px;
    text-align: center;
}

/* Maintenance History */
.maintenance-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: var(--card-black, #1a1a1a);
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.history-date {
    min-width: 100px;
    font-weight: 600;
    color: var(--secondary-color);
}

.history-content p {
    margin-bottom: 5px;
}

.history-content small {
    color: var(--medium-gray);
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: var(--card-black, #1a1a1a);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.logo-section p {
    color: var(--medium-gray);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--medium-gray);
    font-size: 14px;
}

/* Admin Grid */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.admin-section {
    background: var(--card-black, #1a1a1a);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Info Box */
.info-box {
    background: var(--light-gray);
    border-left: 4px solid var(--info-color);
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.info-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-box li:last-child {
    border-bottom: none;
}

/* Existing Images */
.existing-images {
    margin-bottom: 25px;
}

.existing-images h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    #map {
        height: 300px;
    }
    
    .user-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
}

/* Text Utilities */
.text-muted {
    color: var(--medium-gray);
}

.text-center {
    text-align: center;
}

/* Leaflet Map Custom Styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 15px;
}

/* Zusätzliche CSS-Styles für users.php Modal und Checkbox-Labels */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: block;
}

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

.modal-content {
    background-color: var(--card-black, #1a1a1a);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--text-white, #ffffff);
}

/* Checkbox Label Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.checkbox-label:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #007bff;
}

.checkbox-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.checkbox-text i {
    margin-right: 8px;
    color: #007bff;
}

.form-text.text-muted {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-primary {
    background: #007bff;
    color: white;
}

.badge i {
    margin-right: 4px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.info-box h3 {
    margin-top: 0;
    font-size: 20px;
}

.info-box p {
    margin: 10px 0;
    line-height: 1.6;
}

.info-box i {
    margin-right: 8px;
}

.info-box .btn {
    background: var(--card-black, #1a1a1a);
    color: #667eea;
    border: none;
    margin-top: 10px;
}

.info-box .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .checkbox-label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .checkbox-label input[type="checkbox"] {
        margin-bottom: 8px;
    }
}

/* Karte und Dashboard Styles */

/* Map Dashboard Container */
.map-dashboard-container {
    position: relative;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: right 0.3s ease;
}

.map-container.dashboard-open {
    right: 350px;
}

#map {
    width: 100%;
    height: 100%;
}

/* Suchleiste */
.search-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--card-black, #1a1a1a);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 400px;
    max-width: calc(100vw - 40px);
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-dark, #2a2a2a);
    border-radius: 4px;
    font-size: 14px;
}

.search-input-group button {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-input-group button:hover {
    background: #0056b3;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.search-result-item p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.search-result-actions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.search-result-actions button {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-show-map {
    background: #28a745;
    color: white;
}

.btn-show-details {
    background: #007bff;
    color: white;
}

.btn-edit {
    background: #ffc107;
    color: #333;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    position: absolute;
    right: 0;
    top: 0;
    width: 350px;
    height: 100%;
    background: var(--card-black, #1a1a1a);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.dashboard-sidebar.collapsed {
    transform: translateX(100%);
}

.dashboard-toggle {
    position: absolute;
    left: -40px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--card-black, #1a1a1a);
    border: none;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #007bff;
}

.dashboard-toggle:hover {
    background: #007bff;
    color: white;
}

.dashboard-header {
    padding: 20px;
    border-bottom: 2px solid #007bff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 20px;
}

.dashboard-content {
    padding: 20px;
}

/* Statistik Cards */
.stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.stat-card.warning {
    border-left-color: #ffc107;
    background: #fff9e6;
}

.stat-card.danger {
    border-left-color: #dc3545;
    background: #ffe6e6;
}

.stat-card.success {
    border-left-color: #28a745;
    background: #e6f7e6;
}

.stat-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

/* Chart Container */
.chart-container {
    background: var(--card-black, #1a1a1a);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: 25px;
}

.dashboard-section h3 {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Highlight Pulse Animation */
@keyframes highlight-pulse {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 0.8; transform: scale(1); }
}

.highlight-pulse {
    animation: highlight-pulse 1.5s infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 300px;
    }
    .map-container.dashboard-open {
        right: 300px;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 100%;
        height: 50vh;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
    }
    .dashboard-sidebar.collapsed {
        transform: translateY(100%);
    }
    .dashboard-sidebar:not(.collapsed) {
        transform: translateY(0);
    }
    .dashboard-toggle {
        left: 50%;
        top: -40px;
        transform: translateX(-50%);
        border-radius: 4px 4px 0 0;
    }
    .map-container.dashboard-open {
        right: 0;
        bottom: 50vh;
    }
    .search-bar {
        width: calc(100vw - 40px);
    }
}

/* ========================================
   MOBILE & TABLET OPTIMIERUNGEN
   ======================================== */

/* Basis Mobile Anpassungen */
@media (max-width: 768px) {
    /* Header für Mobile */
    .main-header {
        height: auto;
        min-height: var(--header-height);
    }
    
    .header-container {
        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    /* Navigation horizontal scrollbar auf sehr kleinen Screens */
    .main-nav {
        width: 100%;
        overflow-x: auto;
    }
    
    .main-nav ul {
        flex-wrap: nowrap;
        gap: 10px;
        padding: 5px 0;
        min-width: min-content;
    }
    
    .main-nav a {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    /* User Menu */
    .user-menu {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }
    
    .user-info {
        align-items: flex-start;
        font-size: 12px;
    }
    
    .username {
        font-size: 14px;
    }
    
    /* Content */
    .main-container {
        padding: 15px 10px;
    }
    
    .content-wrapper {
        padding: 0;
    }
    
    /* Page Header */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Formulare */
    .marker-form,
    .user-form,
    .login-form {
        padding: 20px 15px;
    }
    
    .form-section {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .form-section h2 {
        font-size: 18px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 15px;
        touch-action: manipulation;
    }
    
    .btn-large {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    /* KRITISCH: Karte und Dashboard auf Mobile */
    .map-dashboard-container {
        position: relative;
        height: calc(100vh - 200px) !important;
        min-height: 500px !important;
        overflow: hidden;
    }
    
    .map-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #map {
        width: 100% !important;
        height: 100% !important;
        min-height: 500px !important;
    }
    
    /* Andere Maps */
    #miniMap,
    #markerMap,
    #createMap,
    #currentMap,
    #newMap {
        height: 350px !important;
        width: 100% !important;
    }
    
    /* KRITISCH: Suchleiste auf Mobile */
    .search-bar {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        transform: none !important;
        z-index: 1000;
        background: var(--card-black, #1a1a1a);
        padding: 8px !important;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    
    .search-input-group {
        display: flex;
        gap: 6px;
        margin-bottom: 0 !important;
    }
    
    .search-input-group input {
        flex: 1;
        padding: 6px 8px !important;
        border: 1px solid var(--border-dark, #2a2a2a);
        border-radius: 4px;
        font-size: 12px !important;
    }
    
    .search-input-group button {
        padding: 6px 10px !important;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px !important;
    }
    
    .search-results {
        max-height: 250px !important;
        overflow-y: auto;
        margin-top: 8px;
        font-size: 12px;
    }
    
    .search-result-item {
        padding: 8px;
        border-bottom: 1px solid #eee;
    }
    
    .search-result-item h4 {
        margin: 0 0 4px 0;
        font-size: 13px !important;
        color: #333;
    }
    
    .search-result-item p {
        margin: 0 0 6px 0;
        font-size: 11px !important;
        color: #666;
    }
    
    .search-result-actions {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .search-result-actions button {
        width: 100%;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .no-results {
        padding: 15px;
        text-align: center;
        color: #666;
        font-size: 12px;
    }
    
    /* KRITISCH: Legende ausblenden auf Mobile */
    .map-legend {
        display: none !important;
    }
    
    /* Dashboard auf Mobile */
    .dashboard-sidebar {
        width: 100% !important;
        height: 50vh !important;
        top: auto !important;
        bottom: 0 !important;
        transform: translateY(100%) !important;
    }
    
    .dashboard-sidebar.collapsed {
        transform: translateY(100%) !important;
    }
    
    .dashboard-sidebar:not(.collapsed) {
        transform: translateY(0) !important;
    }
    
    .dashboard-toggle {
        left: 50% !important;
        top: -40px !important;
        transform: translateX(-50%) !important;
        border-radius: 4px 4px 0 0 !important;
    }
    
    .map-container.dashboard-open {
        right: 0 !important;
        bottom: 50vh !important;
    }
    
    .dashboard-toggle-map {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
        white-space: nowrap;
    }
    
    /* Admin Grid */
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    /* Info Cards */
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Image Gallery */
    .image-preview,
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Marker Cards */
    .marker-grid {
        grid-template-columns: 1fr;
    }
    
    /* Options Grid */
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stats Summary */
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Roles Grid */
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Status Change Card Mobile */
    .status-change-card {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .status-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .status-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Sehr kleine Smartphones */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 16px;
    }
    
    .main-nav a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .image-preview,
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .search-input-group input {
        font-size: 11px !important;
    }
    
    .search-input-group button {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .marker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch-Optimierungen */
@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets */
    .btn,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Keine Hover-Effekte auf Touch-Geräten */
    .marker-card:hover {
        transform: none;
    }
    
    .image-gallery img:hover {
        transform: none;
    }
    
    /* Bessere Tap-Highlights */
    * {
        -webkit-tap-highlight-color: rgba(230, 51, 18, 0.2);
    }
}

/* Landscape Modus auf Smartphones */
@media (max-width: 896px) and (orientation: landscape) {
    .main-header {
        position: relative;
    }
    
    .map-dashboard-container {
        height: calc(100vh - 120px) !important;
        min-height: 400px !important;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .header-actions,
    .form-actions,
    .btn,
    .search-bar,
    .dashboard-toggle,
    .dashboard-toggle-map {
        display: none !important;
    }
    
    .main-container {
        padding: 0;
    }
    
    .marker-details,
    .info-card {
        page-break-inside: avoid;
    }
}

/* Legende auf Mobile ausblenden */
@media (max-width: 768px) {
    .map-legend {
        display: none !important;
    }
}

/* ==================== DARK MODE ==================== */

/* Dark Mode Toggle Button */
.header-dark-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.header-dark-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg) scale(1.1);
}

/* Dark Mode Variablen */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e4e4e4;
}

body.dark-mode .info-card,
body.dark-mode .admin-section,
body.dark-mode .marker-form,
body.dark-mode .form-section {
    background-color: #252525;
    color: #e4e4e4;
    border-color: #404040;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="number"],
body.dark-mode input[type="date"],
body.dark-mode textarea,
body.dark-mode select {
    background-color: #2d2d2d;
    color: #e4e4e4;
    border-color: #404040;
}

body.dark-mode .data-table,
body.dark-mode table {
    background-color: #252525;
    color: #e4e4e4;
}

body.dark-mode .data-table td,
body.dark-mode table td {
    border-color: #404040;
}

body.dark-mode .alert-info {
    background-color: #1a3a52;
    color: #9fd3ff;
}

body.dark-mode .alert-success {
    background-color: #1a4d2e;
    color: #9ff0c7;
}

body.dark-mode .alert-warning {
    background-color: #4d3d1a;
    color: #ffd89f;
}

body.dark-mode .alert-danger {
    background-color: #4d1a1a;
    color: #ff9f9f;
}

body.dark-mode .sidebar {
    background-color: #1f1f1f;
}

body.dark-mode .page-header {
    border-bottom-color: #404040;
}

/* ========================================
   NAVIGATION DROPDOWN FIX
   Ultra-spezifische Styles um globale CSS zu überschreiben
   ======================================== */

/* Dropdown Menu Container */
header.main-header nav.main-nav ul.dropdown-menu,
header.main-header .main-nav ul.dropdown-menu,
.main-header .main-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25) !important;
    border: 2px solid #333333 !important;
    min-width: 220px !important;
    padding: 8px 0 !important;
    margin-top: 5px !important;
    display: none !important;
    z-index: 99999 !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

/* Dropdown sichtbar machen */
header.main-header .main-nav .has-dropdown.open > ul.dropdown-menu,
header.main-header .main-nav .has-dropdown.open .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Dropdown Liste */
header.main-header .main-nav .dropdown-menu li,
header.main-header .main-nav ul.dropdown-menu > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* KRITISCH: Dropdown Links - MAXIMALE SPEZIFITÄT */
header.main-header nav.main-nav ul.dropdown-menu li a,
header.main-header .main-nav .dropdown-menu li > a,
header.main-header .main-nav ul.dropdown-menu > li > a,
.main-header .main-nav .dropdown-menu a {
    /* Layout */
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    
    /* Farben - SCHWARZ AUF WEISS */
    color: #000000 !important;
    background-color: transparent !important;
    background: transparent !important;
    
    /* Text */
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    
    /* Animation */
    transition: all 0.2s ease !important;
}

/* Hover-Zustand */
header.main-header nav.main-nav ul.dropdown-menu li a:hover,
header.main-header .main-nav .dropdown-menu li > a:hover,
header.main-header .main-nav ul.dropdown-menu > li > a:hover,
.main-header .main-nav .dropdown-menu a:hover,
header.main-header nav.main-nav ul.dropdown-menu li a:focus,
header.main-header .main-nav .dropdown-menu li > a:focus {
    background-color: #f0f0f0 !important;
    background: #f0f0f0 !important;
    color: #000000 !important;
}

/* Icons in Dropdowns */
header.main-header .main-nav .dropdown-menu li a i,
header.main-header .main-nav .dropdown-menu li > a > i,
header.main-header .main-nav ul.dropdown-menu li a i {
    width: 20px !important;
    min-width: 20px !important;
    text-align: center !important;
    color: #333333 !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Divider */
header.main-header .main-nav .dropdown-menu .divider,
header.main-header .main-nav .dropdown-menu li.divider {
    height: 1px !important;
    background: #dee2e6 !important;
    margin: 8px 0 !important;
    padding: 0 !important;
}

/* Debug: Sichtbar machen zur Fehlersuche (optional) */
header.main-header .main-nav .dropdown-menu {
    border: 3px solid red !important; /* Zum Testen - entfernen wenn es funktioniert */
}

/* ==========================================
   MOBILE NAVIGATION FIX - KRITISCH
   Diese Styles MÜSSEN die globalen überschreiben
   ========================================== */

/* Touch-optimierte Dropdowns */
@media (max-width: 768px) {
    /* Hauptnavigation kompakter */
    header.main-header nav.main-nav,
    .main-header .main-nav {
        width: 100% !important;
        overflow-x: visible !important;
    }
    
    header.main-header nav.main-nav ul,
    .main-header .main-nav > ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 5px !important;
        padding: 5px !important;
        scrollbar-width: none !important; /* Firefox */
    }
    
    /* Scrollbar verstecken */
    header.main-header nav.main-nav ul::-webkit-scrollbar,
    .main-header .main-nav > ul::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Dropdown Container auf Mobil */
    header.main-header .main-nav .dropdown-menu,
    header.main-header .main-nav ul.dropdown-menu {
        /* Position RELATIV zum Parent */
        position: fixed !important; /* Wichtig für Mobil */
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        
        /* Layout */
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
        padding: 10px !important;
        margin: 0 !important;
        
        /* Z-Index über allem */
        z-index: 999999 !important;
        
        /* Animation */
        display: none !important;
        opacity: 0 !important;
        transform: scale(0.95) !important;
        transition: opacity 0.2s ease, transform 0.2s ease !important;
    }
    
    /* Dropdown OFFEN auf Mobil */
    header.main-header .main-nav .has-dropdown.open > .dropdown-menu,
    header.main-header .main-nav .has-dropdown.open .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    
    /* Dropdown Items auf Mobil */
    header.main-header .main-nav .dropdown-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    header.main-header .main-nav .dropdown-menu li a {
        /* Layout */
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 16px !important;
        
        /* Farben */
        color: #000000 !important;
        background: transparent !important;
        
        /* Text */
        font-size: 15px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        
        /* Touch-Target */
        min-height: 48px !important;
        touch-action: manipulation !important;
        
        /* Borders */
        border-radius: 8px !important;
        
        /* Animation */
        transition: background 0.2s ease !important;
    }
    
    /* Hover/Active auf Mobil (Touch) */
    header.main-header .main-nav .dropdown-menu li a:active,
    header.main-header .main-nav .dropdown-menu li a.active {
        background: #f0f0f0 !important;
    }
    
    /* Icons größer auf Mobil */
    header.main-header .main-nav .dropdown-menu li a i {
        font-size: 16px !important;
        width: 24px !important;
        min-width: 24px !important;
        color: #007bff !important;
    }
    
    /* Divider auf Mobil */
    header.main-header .main-nav .dropdown-menu .divider {
        height: 1px !important;
        background: #e9ecef !important;
        margin: 8px 0 !important;
    }
    
    /* Dropdown Toggle auf Mobil */
    header.main-header .main-nav .dropdown-toggle {
        position: relative !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
    
    /* Chevron Icon */
    header.main-header .main-nav .dropdown-toggle .fa-chevron-down {
        margin-left: 4px !important;
        font-size: 10px !important;
        transition: transform 0.3s ease !important;
    }
    
    /* Chevron rotiert wenn offen */
    header.main-header .main-nav .has-dropdown.open .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg) !important;
    }
    
    /* Overlay für Dropdown (schließt bei Klick außerhalb) */
    .dropdown-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999998;
    }
    
    .dropdown-overlay.active {
        display: block;
    }
    
    /* User Dropdown auf Mobil */
    .user-dropdown-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        border-radius: 12px !important;
        box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4) !important;
    }
}

/* Sehr kleine Smartphones */
@media (max-width: 480px) {
    header.main-header .main-nav .dropdown-menu li a {
        font-size: 14px !important;
        padding: 12px 14px !important;
    }
    
    header.main-header .main-nav .dropdown-toggle {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
}

/* Landscape auf Smartphones */
@media (max-height: 500px) and (orientation: landscape) {
    header.main-header .main-nav .dropdown-menu {
        max-height: 60vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Touch-Feedback */
@media (hover: none) and (pointer: coarse) {
    /* Verhindere Doppel-Tap-Zoom auf Buttons */
    header.main-header .main-nav .dropdown-toggle,
    header.main-header .main-nav .dropdown-menu li a {
        touch-action: manipulation !important;
    }
    
    /* Touch-Highlight */
    * {
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2) !important;
    }
}
/* KRITISCHES MOBILE DROPDOWN CSS */
/* Füge dies ANS ENDE von style.css ein */

/* WICHTIG: Maximale Spezifität für Mobile Dropdowns */
@media (max-width: 768px) {
    /* Navigation Dropdown Container */
    header.main-header nav.main-nav ul.dropdown-menu,
    .main-header .main-nav .has-dropdown .dropdown-menu {
        /* Position */
        position: fixed !important;
        top: 70px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
        
        /* Layout */
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
        padding: 10px !important;
        margin: 0 !important;
        
        /* Z-Index ÜBER Overlay */
        z-index: 10000 !important;
        
        /* Standardmäßig versteckt */
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        
        /* Animation */
        transition: opacity 0.2s ease, visibility 0.2s ease !important;
    }
    
    /* Dropdown OFFEN Zustand */
    .main-header .main-nav .has-dropdown.open > .dropdown-menu,
    .main-header .main-nav .has-dropdown.open .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* Dropdown Items */
    .main-header .main-nav .dropdown-menu li {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Dropdown Links - SCHWARZ AUF WEISS */
    .main-header .main-nav .dropdown-menu li a,
    .main-header .main-nav .dropdown-menu li > a {
        /* Layout */
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 16px !important;
        
        /* Farben */
        color: #000000 !important;
        background: transparent !important;
        
        /* Text */
        font-size: 15px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        
        /* Touch-Target */
        min-height: 48px !important;
        
        /* Border */
        border-radius: 8px !important;
        
        /* Transition */
        transition: background 0.2s ease !important;
    }
    
    /* Hover/Active auf Touch */
    .main-header .main-nav .dropdown-menu li a:active {
        background: #f0f0f0 !important;
    }
    
    /* Icons */
    .main-header .main-nav .dropdown-menu li a i {
        font-size: 16px !important;
        width: 24px !important;
        min-width: 24px !important;
        color: #007bff !important;
    }
    
    /* User Dropdown auf Mobil */
    .user-dropdown-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
        
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4) !important;
        
        z-index: 10000 !important;
        
        display: none !important;
        opacity: 0 !important;
    }
    
    .user-dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
    }
    
    /* Divider */
    .main-header .main-nav .dropdown-menu .divider,
    .main-header .main-nav .dropdown-menu li.divider {
        height: 1px !important;
        background: #e9ecef !important;
        margin: 8px 0 !important;
    }
    
    /* DEBUG: Overlay sichtbar machen */
    #mobile-dropdown-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }
}

/* SEHR kleine Geräte */
@media (max-width: 480px) {
    .main-header .main-nav .dropdown-menu li a {
        font-size: 14px !important;
        padding: 12px 14px !important;
    }
}

/* DEBUG MODE: Aktiviere dies zum Testen */
/* Entferne die Kommentare um zu sehen ob CSS geladen wird */
/*
.main-header .main-nav .dropdown-menu {
    border: 5px solid red !important;
}
*/
/* ==========================================
   NEUE FEATURES: Breadcrumbs, Notification Center, Mobile Bottom Nav
   ========================================== */

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active span {
    color: var(--medium-gray);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--medium-gray);
    font-size: 10px;
}

/* Notification Center */
.notification-center {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    font-size: 20px;
    color: var(--secondary-color);
    transition: color 0.3s;
}

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

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -20px;
    background: var(--card-black, #1a1a1a);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 400px;
    max-width: 90vw;
    max-height: 500px;
    display: none;
    flex-direction: column;
    z-index: 10000;
    border: 1px solid var(--border-color);
}

.notification-dropdown.show {
    display: flex;
}

/* Pfeil oben für Dropdown */
.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background: var(--card-black, #1a1a1a);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

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

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--secondary-color);
}

.notification-count {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.notification-list {
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    cursor: pointer;
    gap: 12px;
}

.notification-item:hover {
    background-color: #fafafa;
}

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

.notification-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notification-bug .notification-icon {
    background-color: #ffebee;
    color: var(--danger-color);
}

.notification-maintenance .notification-icon {
    background-color: #fff3e0;
    color: var(--warning-color);
}

.notification-inspection .notification-icon {
    background-color: #e3f2fd;
    color: var(--info-color);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-category {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--medium-gray);
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: var(--medium-gray);
}

.notification-empty {
    padding: 50px 30px;
    text-align: center;
    color: var(--medium-gray);
}

.notification-empty i {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--success-color);
    opacity: 0.8;
}

.notification-empty p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notification-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.notification-footer a:hover {
    color: #c82a10;
}


/* ============================================
   MOBILE OPTIMIERUNGEN (ohne Bottom Navigation)
   ============================================ */

/* Mobile Anpassungen */
@media (max-width: 768px) {
    /* KEINE Bottom Navigation mehr - Body-Padding entfernt */
    body {
        padding-bottom: 0 !important;
    }
    
    /* Notification Dropdown für Mobile anpassen */
    .notification-dropdown {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
        transform: none;
        top: auto;
        bottom: 20px;
        max-height: 60vh;
    }
    
    .notification-dropdown::before {
        display: none;
    }
    
    .notification-dropdown.mobile-positioned {
        position: fixed;
    }
    
    /* Notification Header auf Mobile */
    .notification-header {
        position: sticky;
        top: 0;
        background: var(--card-black, #1a1a1a);
        z-index: 1;
    }
    
    /* Breadcrumbs auf Mobile optimieren */
    .breadcrumbs {
        padding: 10px 15px;
    }
    
    .breadcrumb-item {
        font-size: 13px;
    }
    
    .breadcrumb-item span,
    .breadcrumb-item a {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .notification-dropdown {
        max-height: 60vh;
    }
    
    .breadcrumb-item span,
    .breadcrumb-item a {
        max-width: 100px;
    }
}

/* Mobile Bottom Navigation - KOMPLETT DEAKTIVIERT */
.mobile-bottom-nav,
.mobile-nav-item,
.bottom-nav,
.mobile-nav-bottom,
.navbar-bottom,
.fixed-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}