@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
        body { font-family: 'Inter', sans-serif; }
        
        /* Custom Scrollbar */
        .custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
        .custom-scroll::-webkit-scrollbar-track { background: #f1f1f1; }
        .custom-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
        .custom-scroll::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
        
        /* UI Elements */
        .lbl { display: block; font-size: 0.7rem; font-weight: 700; color: #475569; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.025em; }
        .hint { display: block; font-size: 0.65rem; color: #94a3b8; margin-top: 2px; font-style: italic; }
        .inp { width: 100%; padding: 0.5rem; border: 1px solid #cbd5e1; border-radius: 0.375rem; font-size: 0.875rem; transition: all 0.2s; background: #fff; }
        .inp:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
        .inp-error { border-color: #ef4444 !important; background-color: #fef2f2 !important; }
        
        /* Fix Height for Alignment */
        .fix-h { height: 38px; }

        .chk-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: #475569; font-weight: 500; cursor: pointer; }
        .section-title { font-size: 0.95rem; font-weight: 700; color: #1e293b; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
        
        /* Chip Styles */
        .chip-grid { display: flex; flex-wrap: wrap; gap: 6px; }
        .chip { font-size: 11px; padding: 4px 10px; text-align: center; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; background: white; color: #64748b; transition: all 0.15s; user-select: none; font-weight: 500; }
        .chip:hover { border-color: #94a3b8; background: #f8fafc; color: #334155; }
        .chip.active { background: #eff6ff; color: #2563eb; border-color: #2563eb; font-weight: 700; box-shadow: 0 1px 2px rgba(37,99,235,0.1); }

        /* KB Dots & Progress */
        .kb-dot { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 8px; transition: all 0.3s; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
        .kb-box { transition: all 0.3s; }
        .progress-striped { background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); background-size: 1rem 1rem; }
        .sidebar-transition { transition: transform 0.3s ease-in-out; }
        
        /* Dropdown Menu */
        .dropdown-menu { display: none; position: absolute; right: 0; top: 100%; width: 220px; background: white; border: 1px solid #e2e8f0; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); z-index: 50; overflow: hidden; margin-top: 0.5rem; }
        .dropdown-menu.show { display: block; animation: fadeIn 0.2s; }
        .dropdown-item { display: block; width: 100%; padding: 0.75rem 1rem; text-align: left; font-size: 0.875rem; color: #334155; cursor: pointer; }
        .dropdown-item:hover { background-color: #f8fafc; color: #1e293b; }
        .dropdown-item.danger { color: #dc2626; }
        .dropdown-item.danger:hover { background-color: #fef2f2; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

        /* Template Cards */
        .template-card { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; cursor: pointer; transition: all 0.2s; background: white; position: relative; }
        .template-card:hover { border-color: #3b82f6; background: #eff6ff; }
        .template-card.selected { border-color: #2563eb; background: #dbeafe; box-shadow: 0 0 0 2px #2563eb; }
        .template-delete { position: absolute; top: 5px; right: 5px; color: #ef4444; padding: 4px; border-radius: 4px; font-size: 12px; z-index: 10; background: rgba(255,255,255,0.9); border: 1px solid #fee2e2; cursor: pointer; transition: all 0.2s; display: none; }
        .template-card:hover .template-delete { display: block; }
        .template-delete:hover { background: #fee2e2; transform: scale(1.1); }

        @media print {
            body { background: white; height: auto; overflow: visible; }
            header, aside, .no-print { display: none !important; }
            #appContainer, #planningContainer { display: none !important; }
            #reportContainer { display: block !important; position: static; height: auto; overflow: visible; padding: 0; }
            #reportContent { box-shadow: none; border: none; }
            table { width: 100%; border-collapse: collapse; font-size: 11px; }
            th, td { border: 1px solid #ddd; padding: 4px; color: black !important; }
            thead { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; }
            .badge-print { border: 1px solid #000; padding: 1px 4px; border-radius: 4px; }
            .page-break { page-break-before: always; }
        }

/* Verhindert Ruckeln auf Mobile */
@media (max-width: 768px) {
    #mainSidebar, #verladerSidebar, #vehiclesSidebar {
        width: 85vw; /* Etwas schmaler als der ganze Bildschirm */
        max-width: 320px;
        position: fixed;
        height: 100%;
        box-shadow: 20px 0 50px rgba(0,0,0,0.3);
    }
}
/* Versteckt die Scrollbar in der Header-Navi am Handy */
header .no-scrollbar::-webkit-scrollbar { display: none; }
header .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Stellt sicher, dass die Buttons am Handy nicht schrumpfen */
header .shrink-0 { flex-shrink: 0 !important; }

/* Sauberer Look für den Firmen-Filter */
#companyFilter {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-left: 2.25rem !important; /* Platz für das Gebäude-Icon */
    padding-right: 2rem !important;   /* Platz für den Pfeil */
    background-color: #ffffff;
    z-index: 10;
    position: relative;
}

/* Position der Icons im Filter korrigieren */
.relative i.fa-building.absolute {
    z-index: 20;
    pointer-events: none;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.relative i.fa-chevron-down {
    z-index: 20;
    pointer-events: none;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Verhindert, dass der Header die Sidebar überlagert */
@media (max-width: 768px) {
    #mainSidebar, #verladerSidebar, #vehiclesSidebar {
        z-index: 100 !important;
    }
    #sidebarOverlay {
        z-index: 90 !important;
    }
}

/* Glass-Effekt für das Hintergrund-Overlay */
.glass {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* Verhindert, dass die Buttons im Header umbrechen (wichtig für horizontales Scrollen) */
header .no-scrollbar {
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    /* Der Nav-Bereich im Header bekommt mehr Platz und echtes Touch-Scrolling */
    nav.flex.items-center {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 4px 0;
        mask-image: linear-gradient(to right, black 85%, transparent 100%); /* Zeigt an, dass es weitergeht */
    }

    /* Buttons griffiger machen für Finger */
    nav button {
        scroll-snap-align: start;
        white-space: nowrap;
        min-height: 44px; /* Apple/Google Mindestmaß für Touch */
        padding: 0 15px !important;
        flex-shrink: 0;
    }

    /* Das Zahnrad und Logout etwas absetzen */
    header .flex.items-center.gap-2.shrink-0 {
        margin-left: 10px;
    }
}