/* --- 1. GLOBALE BASIS-STYLES --- */
body { 
    padding-top: 80px; 
    background-color: #f8f9fa; 
    transition: background 0.3s ease;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --- 2. NAVIGATION & LINKS --- */
.navbar {
    z-index: 1050; 
}

.navbar-brand { 
    font-weight: 700; 
    color: #2c3e50 !important; 
}

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

.admin-link { 
    color: #dc3545 !important; 
    font-weight: bold; 
}

/* --- 3. UNIVERSAL DROPDOWN FIX (Navbar & Login) --- */
/* Das sorgt dafür, dass das Menü technisch immer über dem Content liegt */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 2050 !important; 
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    background-color: #ffffff;
}

/* Der wichtigste Teil: Wenn Bootstrap 'show' setzt, MUSS es angezeigt werden */
.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* --- 4. KARTEN & TABELLEN --- */
.card { 
    border: none; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    border-radius: 12px; 
    margin-bottom: 20px; 
}

/* --- 5. RTL SUPPORT --- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .me-2 { margin-left: .5rem !important; margin-right: 0 !important; }

/* --- 6. RESPONSIVE ANPASSUNGEN --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        overflow: visible !important; 
    }
    .nav-item { width: 100%; text-align: center; border-bottom: 1px solid #eee; }
    .nav-item:last-child { border-bottom: none; }
}
/*  */
/* Timeline Container */
.tracking-timeline {
    position: relative;
    padding: 20px 0;
    list-style: none;
}

/* Die vertikale Linie */
.tracking-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
    left: 31px;
    margin-right: -1.5px;
}

/* Einzelner Status-Punkt */
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 60px;
}

/* Der Kreis auf der Linie */
.timeline-item:after {
    content: '';
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #0d6efd; /* Blau für aktiv */
    border-radius: 50%;
    position: absolute;
    left: 24px;
    top: 5px;
    z-index: 1;
}

/* Grauer Punkt für vergangene/zukünftige Schritte */
.timeline-item.past:after {
    border-color: #adb5bd;
}

.timeline-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
    margin-bottom: 2px;
}

.timeline-content {
    font-weight: 600;
    color: #2c3e50;
}
