:root {  
    --wolfi_orange: #e3593c; 
    --wolfi_blue: #1b2a33;  
    --wolfi_gray: #828282; 
    --wolfi_red: #872825; 
    --wolfi_card_bg: #273945; /* Abgestimmtes dunkles Blau/Grau für die Karte */
    --wolfi_input_bg: #142028; /* Dunklerer Hintergrund für Inputfelder */
}

body {
    background-color: var(--wolfi_blue) !important;
}

body.mobile-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--wolfi_blue);
    color: #ffffff;
    margin: 0;
    padding: 12px;
    display: flex;
    justify-content: center;
}

/* Brand-Header / Banner Styling */
.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(130, 130, 130, 0.2);
    position: relative;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
}

.brand-text {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: normal;
}

.brand-prefix {
    color: var(--wolfi_gray); /* Das Grau des Logos */
}

.brand-suffix {
    color: var(--wolfi_orange);
    font-weight: 300;
}


.booking-card {
    background: var(--wolfi_card_bg);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    color: #ffffff;
}

.car-header {
    text-align: center;
    margin-bottom: 16px;
}

/* Für moderne Browser */
.form-control::placeholder {
    color: #94a3b8 !important; /* Ein gut lesbares Hellgrau / Slate */
    opacity: 1; /* Verhindert, dass Firefox die Transparenz reduziert */
}

.car-desc {
    color: var(--wolfi_orange);
    font-weight: 600;
}

.license-plate {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    font-weight: bold;
    font-size: 1.3rem;
    padding: 4px 14px;
    border: 2px solid #000000;
    border-radius: 6px;
    letter-spacing: 2px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--wolfi_orange); /* Labels in Accent-Farbe */
    font-weight: 600;
}

.input-with-action {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Sowohl Select als auch Input dehnen sich über die gesamte verfügbare Breite aus */
.input-with-action select,
.input-with-action input[type="text"] {
    flex: 1;
    width: 100%;
    margin-top: 0 !important; /* Verhindert ungewollten Abstand nach oben */
}

.icon-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0; /* Button darf nicht gestaucht werden */
    background: var(--wolfi_blue);
    border: 1px solid var(--wolfi_gray);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:active {
    background: var(--wolfi_orange);
}

input[type="text"],
input[type="number"],
input[type="password"],
select {
    width: 100%;
    height: 48px; /* Optimiert für Daumen-Bedienung */
    font-size: 1.05rem;
    border-radius: 8px;
    border: 1px solid var(--wolfi_gray);
    background-color: var(--wolfi_input_bg);
    color: #ffffff;
    padding: 0 10px;
    box-sizing: border-box;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--wolfi_orange);
    box-shadow: 0 0 0 2px rgba(227, 89, 60, 0.3);
}



.form-row {
    display: flex;
    gap: 10px;
}

.form-row .half {
    flex: 1;
}

.alert-label {
    color: var(--wolfi_orange) !important;
    font-weight: bold;
}

/* Haupt-Speichern Button in Orange */
.btn-submit {
    width: 100%;
    height: 52px;
    background-color: var(--wolfi_orange);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(227, 89, 60, 0.3);
}

.btn-submit:active {
    background-color: #c7482d;
}


/* ==============================================================
    Foto License
   ============================================================== */

/* Hauptkarte */
.license-card {
    background: var(--wolfi_blue);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px;
    margin-top: 0px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Status-Badge oben */
.license-card-header {
    margin-bottom: 12px;
}

.status-badge.warning {
    display: block;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--wolfi_orange);
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Upload-Container (Overlay) */
.license-upload-zone {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* Der sichtbare Button */
.upload-btn-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--wolfi_card_bg);
    border: 2px solid var(--wolfi_gray);
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
    pointer-events: none; /* Klicks gehen durch auf das Input */
}

.license-upload-zone:hover .upload-btn-visual {
    background: #1e293b;
    border-color: var(--wolfi_orange);
}

.cam-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-title {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 700;
}

/* Unsichtbares Input über der gesamten Zone */
.license-upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    font-size: 100px;
}

/* Vorschau-Styling */
.preview-container {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #334155;
    flex-direction: column; /* Anordnung untereinander */
    align-items: center;    /* Horizontal zentrieren */
}

.preview-thumb-box {
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #475569;
    margin-bottom: 10px;
}

.preview-thumb-box img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
}

.preview-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.filename {
    color: #94a3b8;
    font-size: 12px;
    word-break: break-all;
}

.btn-delete {
    background: transparent;
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}




/* ==========================================================================
   Dashboard / Fahrzeugauswahl Styling (Startseite)
   ========================================================================== */

.dashboard-menu {
    text-align: center;
    margin-bottom: 20px;
}



/* Grid-Karten der Fahrzeuge */
.car-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.car-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.car-select-card {
    background: var(--wolfi_input_bg);
    border: 1px solid var(--wolfi_gray);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden; /* Verhindert das Überstehen des Bildes */
    z-index: 1;
}

/* Hover & Active Feedback */
.car-card-link:hover .car-select-card,
.car-card-link:active .car-select-card {
    transform: translateY(-2px);
    border-color: var(--wolfi_orange);
    box-shadow: 0 6px 16px rgba(227, 89, 60, 0.25);
    background: #192833;
}

/* Fahrzeug rechts positionieren */
.car-bg-image {
  position: absolute;
  right: 15px;            /* Etwas weiter vom rechten Rand einrücken */
  bottom: 45px;           /* Nach oben schieben, damit 'Fahrzeug auswählen' frei bleibt */
  width: 160px;           /* Leicht verkleinern, damit es perfekt reinpasst */
  height: auto;
  pointer-events: none;  /* Klicks durchlassen */
  z-index: 1;             /* Liegt hinter dem Text/Link */
  
  opacity: 0.6;           /* Sichtbarkeit anpassen */
  filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.6)); /* Weicher dunkler Schatten */
  
  /* blend-mode entfernt, damit die echten Autofarben/Grautöne erhalten bleiben */
  transition: all 0.3s ease;
}

/* Hover-Effekt: Bild wird etwas heller, wenn man über die Karte fährt */
.car-select-card:hover .car-bg-image {
  opacity: 0.85;
  transform: translateX(-8px) scale(1.08);;
}

.car-card-header,
.car-card-body {
  position: relative;
  z-index: 2;
}

.car-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Status Badge */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.status-unavailable {
    background-color: rgba(230, 126, 34, 0.15); /* Sanfter Orange-Ton */
    color: var(--wolfi_orange);               /* Hauptfarbton für die Schrift */
    border: 1px solid rgba(230, 126, 34, 0.4); /* Passender oranger Rahmen */
}

.car-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.car-model {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
}

.parking-icon {
    width: 20px;
    height: 20px;
    color: var(--wolfi_gray);
    flex-shrink: 0;
}

.car-icon {
    width: 20px;
    height: 20px;
    color: var(--wolfi_gray);
    flex-shrink: 0;
}

.destination-icon {
    width: 20px;
    height: 20px;
    color: var(--wolfi_gray);
    flex-shrink: 0;
}

.driver-icon {
    width: 20px;
    height: 20px;
    color: var(--wolfi_gray);
    flex-shrink: 0;
}

.car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px; /* 8px Abstand nach unten, 20px nach rechts */
    margin: 12px 0;
}

.car-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* Zwingt das Modell in eine eigene Zeile */
.car-meta-item.full-width {
    flex: 0 0 100%;
}

.car-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #94a3b8;
}

.car-card-link:hover .car-icon {
    color: var(--wolfi_orange);
}

.car-action {
    font-size: 0.85rem;
    color: var(--wolfi_orange);
    font-weight: 600;
    text-align: right;
    transition: color 0.2s ease;
}

.car-card-link:hover .car-action {
    color: #ff7557;
}

/* Hinweis falls keine Autos vorhanden */
.no-cars-message {
    text-align: center;
    color: var(--wolfi_orange);
    background: rgba(227, 89, 60, 0.15);
    border: 1px solid var(--wolfi_orange);
    padding: 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Container für die Ergebnisse (falls vorhanden) */
#autocomplete-results, .autocomplete-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 12px;
}

/* Die einzelnen Button-Karten im Brand-Look */
.autocomplete-item {
    display: block;
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.05); /* Transparenter dunkler Ton */
    border: 1px solid rgba(255, 255, 255, 0.12); /* Dezenter hellgrauer Rand */
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 5px 0;
}

/* Titel (Firmenname) */
.autocomplete-item strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9; /* Helles Weiß/Grau für gute Lesbarkeit */
    margin-bottom: 2px;
}

/* Untertitel (Adresse/PLZ/Ort) */
.autocomplete-item small, 
.autocomplete-item span.subtitle {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8; /* Mutes Grau */
}

/* Hover- & Focus-Effekt mit Akzentfarbe (Brand Orange) */
.autocomplete-item:hover,
.autocomplete-item:focus {
    background-color: rgba(224, 86, 36, 0.15); /* Brand-Orange leicht transparent */
    border-color: #e05624; /* Brand-Orange Rand */
    transform: translateX(4px); /* Schiebt sich leicht nach rechts beim Hover */
    box-shadow: 0 4px 12px rgba(224, 86, 36, 0.2);
}

.autocomplete-item:hover strong {
    color: #ff7a45; /* Leuchtenderes Orange für den Titel beim Drüberfahren */
}

.autocomplete-item:hover small,
.autocomplete-item:hover span.subtitle {
    color: #cbd5e1; /* Etwas helleres Grau beim Hover */
}

/* --- Header-Layout Anordnung --- */
/* Logo-Container verhindert ungewollten Umbruch */
.header-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    white-space: nowrap; /* Kein Zeilenumbruch */
}

/* Vollständig transparenter Button ganz rechts */
.btn-login-icon {
    position: absolute;
    right: 0;
    top: 45%;
    transform: translateY(-50%);
    
    /* Alle Browser-Standards zurücksetzen */
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    
    padding: 4px;
    margin: 0;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-login-icon:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1); /* Dezent vergrößern beim Drüberfahren */
}

/* Login-Button standardmäßig auf kleineren Bildschirmen / mobilen Geräten ausblenden */
.btn-login-icon {
    display: none;
}

/* Erst ab einer Viewport-Breite von 1200px anzeigen */
@media (min-width: 1200px) {
    .btn-login-icon {
        display: inline-flex; /* bzw. block oder flex, je nach bisherigem Layout */
    }
}

.door-icon {
    display: block;
    background: transparent !important;
}

/* --- Eingeblendete Navigationszeile --- */
.admin-nav {
    display: flex;
    gap: 16px;
    padding: 10px 0 6px 0;
    margin-top: 4px;
    overflow-x: auto;
}

.admin-nav .nav-item {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.admin-nav .nav-item:hover,
.admin-nav .nav-item.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.header-divider {
    border: 0;
    height: 1px;
    background: #334155;
    margin: 8px 0 16px 0;
}

/* --- Modal Overlay (Zentriert) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px); /* Blurt den Hintergrund ab */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-card {
    background: var(--wolfi_card_bg);
    border: 1px solid #334155;
    width: 90%;
    max-width: 360px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--wolfi_blue);
    border-bottom: 1px solid #334155;
}

.modal-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 15px;
}

.btn-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.form-group label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.form-group input {
    background: var(--wolfi_form_bg);
    border: 1px solid var(--wolfi_gray);
    color: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--wolfi_orange);
}

.login-error-msg {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
}

.btn-submit-login {
    background: var(--wolfi_orange);
    color: #0f172a;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

.btn-submit-login:hover {
    background: #7dd3fc;
}

.alert-fade-out {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}