﻿/* wwwroot/css/calendar.css */

/* Kalender-Container */
.calendar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

.calendar-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

    .calendar-header h1 {
        color: #343a40;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .calendar-header .lead {
        color: #6c757d;
        font-size: 1.1rem;
    }

/* Toolbar-Bereich */
.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.week-display {
    padding: 8px 12px;
    background-color: white;
    border-radius: 4px;
    color: #495057;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-container {
    display: flex;
    align-items: center;
}

    .filter-container label {
        font-weight: 500;
        margin-bottom: 0;
    }

/* Kalender-Karte */
.calendar-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: visible; /* Ändere von 'hidden' zu 'visible' um Beschneidungen zu vermeiden */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    min-height: fit-content;
}

/* Kalendertabelle */
.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-height: calc(24 * 50px + 100px); /* 24 Stunden + Header */
    height: auto !important;
}

/* Header-Zellen */
.time-header {
    width: 70px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    padding: 10px 5px;
    position: sticky;
    left: 0;
    z-index: 2;
}

.day-header {
    width: calc((100% - 70px) / 7);
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    text-align: center;
    padding: 10px;
}

    .day-header.today {
        background-color: #e3f2fd;
        border-bottom: 2px solid #007bff;
    }

.day-name {
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.day-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 5px 0;
    color: #343a40;
}

.day-month {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Stundenzellen */
.hour-row {
    height: 70px;
}

.even-hour {
    background-color: #fbfbfb;
}

.hour-cell {
    text-align: center;
    vertical-align: middle;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    border-right: 1px solid #dee2e6;
    position: sticky;
    left: 0;
    background-color: inherit;
    z-index: 1;
}

.day-cell {
    vertical-align: top;
    border: 1px solid #dee2e6;
    position: relative;
    padding: 0;
}

.today-cell {
    background-color: rgba(227, 242, 253, 0.4);
}

/* Buchungselemente - angepasst für Überlappungen */
.booking-item {
    position: absolute;
    min-height: 25px;
    padding: 4px 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.15s, box-shadow 0.15s;
    opacity: 0.9;
    /* Entfernung der festen Breite für Überlappungsbehandlung */
    /* Positionierung wird nun dynamisch berechnet */
    box-sizing: border-box;
}

    .booking-item:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        opacity: 1;
        z-index: 10; /* Höherer z-index beim Hover für bessere Sichtbarkeit */
    }

.booking-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
}

.booking-vehicle {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.95;
}

.booking-time {
    font-size: 0.7rem;
    opacity: 0.95;
}

.booking-starting {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-top: 2px solid rgba(255,255,255,0.5);
}

.booking-ending {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.5);
}

/* Fahrzeug-spezifische Farben */
.booking-item.vehicle-type-mtw {
    background-color: #28a745;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
}

.booking-item.vehicle-type-elw {
    background-color: #007bff;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
}

.booking-item.vehicle-type-tlf {
    background-color: #fd7e14;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
}

.booking-item.vehicle-type-hlf {
    background-color: #dc8412;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
}

.booking-item.vehicle-type-lf20 {
    background-color: #6610f2;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
}

/* Modal für Buchungsdetails */
.booking-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1051;
}

.modal-dialog {
    position: relative;
    z-index: 1052;
    width: 500px;
    max-width: calc(100% - 30px);
}

.modal-content {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    border: none;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: none;
}

    .modal-header.vehicle-type-mtw {
        background-color: #d4edda;
        border-left: 6px solid #28a745;
    }

    .modal-header.vehicle-type-elw {
        background-color: #cce5ff;
        border-left: 6px solid #007bff;
    }

    .modal-header.vehicle-type-tlf {
        background-color: #fff3cd;
        border-left: 6px solid #fd7e14;
    }

    .modal-header.vehicle-type-hlf {
        background-color: #f8d7da;
        border-left: 6px solid #dc3545;
    }

    .modal-header.vehicle-type-lf20 {
        background-color: #e7d6ff;
        border-left: 6px solid #6610f2;
    }

.booking-detail-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .booking-detail-header h3 {
        margin: 0;
        font-weight: 600;
        font-size: 1.4rem;
    }

.vehicle-badge {
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
}

    .vehicle-badge.vehicle-type-mtw {
        background-color: #28a745;
    }

    .vehicle-badge.vehicle-type-elw {
        background-color: #007bff;
    }

    .vehicle-badge.vehicle-type-tlf {
        background-color: #fd7e14;
    }

    .vehicle-badge.vehicle-type-hlf {
        background-color: #dc3545;
    }

    .vehicle-badge.vehicle-type-lf20 {
        background-color: #6610f2;
    }

.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.detail-label {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

    .detail-label i {
        margin-right: 5px;
    }

.detail-value {
    font-weight: 500;
    color: #343a40;
}

.description-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

    .description-box h6 {
        color: #495057;
        margin-bottom: 10px;
        font-weight: 600;
    }

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .calendar-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .hour-row {
        height: 60px;
    }

    .booking-item {
        font-size: 0.65rem;
    }

    .booking-title {
        font-size: 0.7rem;
    }

    .booking-vehicle, .booking-time {
        font-size: 0.65rem;
    }

    .day-name, .day-month {
        font-size: 0.7rem;
    }

    .day-number {
        font-size: 1.2rem;
    }

    .toolbar-left, .toolbar-right {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .day-number {
        font-size: 1rem;
    }

    .booking-details-grid {
        grid-template-columns: 1fr;
    }

    .calendar-table {
        min-width: 700px;
    }
}
/* Ergänzungen für calendar.css für nebeneinander liegende Buchungen */

/* Kalender-Tabelle */
.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* Header-Zellen */
.day-header {
    width: calc((100% - 70px) / 7);
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    text-align: center;
    padding: 10px;
}

    .day-header.today {
        background-color: #e3f2fd;
        border-bottom: 2px solid #007bff;
    }

/* Stundenzellen */
.hour-row {
    height: 70px;
    position: relative;
}

.day-cell {
    position: relative;
    height: 70px;
    border: 1px solid #dee2e6;
    padding: 0;
    vertical-align: top;
    overflow: visible; /* Wichtig für übergreifende Buchungen */
}

.today-cell {
    background-color: rgba(227, 242, 253, 0.4);
}

/* Container für Buchungen in einer Zelle */
.booking-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Buchungselement-Styling für nebeneinander liegende Buchungen */
.side-by-side-booking {
    min-height: 25px;
    padding: 4px 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.15s, box-shadow 0.15s;
    opacity: 0.9;
    /* JS wird die absolute Positionierung übernehmen */
    position: absolute;
    box-sizing: border-box;
}

    .side-by-side-booking:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        opacity: 1;
        z-index: 10 !important; /* Höherer z-index beim Hover für bessere Sichtbarkeit */
    }

    /* Abgerundete Ecken und Stile für Start/Ende einer Buchung */
    .side-by-side-booking.booking-starting {
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        padding-top: 6px;
        border-top: 2px solid rgba(255,255,255,0.4);
    }

    .side-by-side-booking.booking-ending {
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        padding-bottom: 6px;
        border-bottom: 2px solid rgba(255,255,255,0.4);
    }

    /* Verbesserte Erscheinung mit Farbverläufen für Fahrzeugtypen */
    .side-by-side-booking.vehicle-type-mtw {
        background: linear-gradient(135deg, #28a745 0%, #20913b 100%);
        border-left: 3px solid rgba(30, 126, 52, 0.8);
    }

    .side-by-side-booking.vehicle-type-elw {
        background: linear-gradient(135deg, #007bff 0%, #0062cc 100%);
        border-left: 3px solid rgba(0, 86, 179, 0.8);
    }

    .side-by-side-booking.vehicle-type-tlf {
        background: linear-gradient(135deg, #fd7e14 0%, #e8660a 100%);
        border-left: 3px solid rgba(217, 89, 8, 0.8);
    }

    .side-by-side-booking.vehicle-type-hlf {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        border-left: 3px solid rgba(189, 33, 48, 0.8);
    }

    .side-by-side-booking.vehicle-type-lf20 {
        background: linear-gradient(135deg, #6610f2 0%, #520dc2 100%);
        border-left: 3px solid rgba(82, 13, 194, 0.8);
    }

/* Textformatierungen innerhalb der Buchung */
.booking-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.booking-vehicle {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    margin-bottom: 2px;
}

.booking-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .hour-row {
        height: 60px;
    }

    .day-cell {
        height: 60px;
    }

    .booking-title {
        font-size: 0.75rem;
    }

    .booking-vehicle, .booking-time {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .booking-time {
        display: none; /* Zeitanzeige auf kleinen Bildschirmen ausblenden */
    }

    .side-by-side-booking {
        padding: 3px 4px;
    }
}

/* Kleine Trennung zwischen nebeneinander liegenden Buchungen */
.side-by-side-booking {
    margin: 0 1px; /* Horizontaler Abstand */
}

    /* Anpassung für booking-title - Schwarze Schrift statt weiß */

    /* Überschreiben des Standard-Stils für den Buchungstitel */
    .side-by-side-booking .booking-title {
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
        color: #000; /* Schwarze Farbe für den Titel */
        text-shadow: 0 0 1px rgba(255, 255, 255, 0.5); /* Leichter weißer Schatten für bessere Lesbarkeit */
    }

    /* Auch den Fahrzeugnamen und die Zeit anpassen, damit alles einheitlich ist */
    .side-by-side-booking .booking-vehicle,
    .side-by-side-booking .booking-time {
        color: #000; /* Schwarze Farbe */
        text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
    }

/* Alternativ, falls dir der schwarze Text auf manchen Hintergründen zu dunkel ist,
   kannst du diese Regel verwenden (einfach die oberen auskommentieren und diese aktivieren) */
/*
.side-by-side-booking .booking-title,
.side-by-side-booking .booking-vehicle,
.side-by-side-booking .booking-time {
    color: #333; /* Dunkelgrau statt reines Schwarz */
text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}

*/
/* Optionale Anpassung: Dunklere Hintergründe für die Buchungen, 
   damit der schwarze Text besser lesbar ist */
.side-by-side-booking.vehicle-type-mtw {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.85) 0%, rgba(32, 145, 59, 0.85) 100%);
}

.side-by-side-booking.vehicle-type-elw {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.85) 0%, rgba(0, 98, 204, 0.85) 100%);
}

.side-by-side-booking.vehicle-type-tlf {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.85) 0%, rgba(232, 102, 10, 0.85) 100%);
}

.side-by-side-booking.vehicle-type-hlf {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.85) 0%, rgba(200, 35, 51, 0.85) 100%);
}

.side-by-side-booking.vehicle-type-lf20 {
    background: linear-gradient(135deg, rgba(102, 16, 242, 0.85) 0%, rgba(82, 13, 194, 0.85) 100%);
}

/* Ergänzungen für calendar.css - CSS für die Statuskennzeichnung */

/* Legende im Toolbar-Bereich */
.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

    .status-indicator.pending {
        background-color: #ffc107;
        box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.5);
    }

    .status-indicator.approved {
        background-color: #28a745;
        box-shadow: 0 0 0 1px rgba(40, 167, 69, 0.5);
    }

    .status-indicator.rejected {
        background-color: #dc3545;
        box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.5);
    }

/* Stilisierung der Buchungen nach Status */
.side-by-side-booking.booking-pending {
    opacity: 0.85;
    background: repeating-linear-gradient( 45deg, rgba(255, 193, 7, 0.8), rgba(255, 193, 7, 0.8) 10px, rgba(255, 193, 7, 0.7) 10px, rgba(255, 193, 7, 0.7) 20px );
    border-left: 3px solid #ffc107;
}

.side-by-side-booking.booking-approved {
    opacity: 1;
}

.side-by-side-booking.booking-rejected {
    opacity: 0.5;
    text-decoration: line-through;
    background: repeating-linear-gradient( 45deg, rgba(220, 53, 69, 0.4), rgba(220, 53, 69, 0.4) 10px, rgba(220, 53, 69, 0.3) 10px, rgba(220, 53, 69, 0.3) 20px );
    border-left: 3px solid #dc3545;
}

/* Status-Badge neben dem Titel */
.status-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 5px;
    font-size: 0.7rem;
}

.pending-badge {
    background-color: #ffc107;
    color: #212529;
}

/* Statusanzeige in der Detailansicht */
.booking-status-badge {
    margin-bottom: 15px;
}

/* Hover-Effekte anpassen */
.side-by-side-booking.booking-pending:hover {
    opacity: 1;
    transform: scale(1.02);
}

.side-by-side-booking.booking-rejected:hover {
    opacity: 0.7;
    transform: scale(1.02);
}

/* Verbesserte Lesbarkeit für abgelehnte Buchungen */
.side-by-side-booking.booking-rejected .booking-title,
.side-by-side-booking.booking-rejected .booking-vehicle,
.side-by-side-booking.booking-rejected .booking-time {
    color: #495057;
}

/* Kompaktere Stundenzellen */
.hour-row {
    height: 50px; /* von 70px reduziert */
}

.day-cell {
    height: 50px; /* Passend zur hour-row anpassen */
}

/* Kompaktere Header */
.day-header {
    padding: 8px 5px; /* Weniger Padding */
}

.day-number {
    font-size: 1.2rem; /* Von 1.5rem reduziert */
    margin: 2px 0;
}

.day-name, .day-month {
    font-size: 0.75rem; /* Kleinere Schrift */
}

/* Anpassungen für die Buchungen */
.booking-title {
    font-size: 0.7rem; /* Kleinere Schrift */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-vehicle, .booking-time {
    font-size: 0.65rem; /* Kleinere Schrift */
}

/* JavaScript-Anpassung für die Höhenberechnung */
/* Diese Änderung muss in deiner site.js erfolgen */

/* Monatsansicht im Kalender */

/* Umschalter für Ansichten */
.view-selector .btn {
    min-width: 100px;
}

/* Monatskalender-Container */
.month-calendar {
    background-color: white;
    overflow: hidden;
}

/* Wochentage-Header */
.month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
    font-weight: 600;
    color: #495057;
}

.weekday {
    padding: 10px;
    border-right: 1px solid #f0f0f0;
}

/* Monatsgitter */
.month-grid {
    display: flex;
    flex-direction: column;
}

.month-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 120px;
    border-bottom: 1px solid #f0f0f0;
}

/* Tageszellen */
.month-day {
    border-right: 1px solid #f0f0f0;
    min-height: 120px;
    padding: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .month-day:last-child {
        border-right: none;
    }

    .month-day.today {
        background-color: rgba(227, 242, 253, 0.3);
    }

    .month-day.other-month {
        background-color: #f8f9fa;
        color: #adb5bd;
    }

.day-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.day-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
    padding: 2px 5px;
    border-radius: 50%;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.today .day-number {
    background-color: #007bff;
    color: white;
}

.day-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

/* Buchungen in der Monatsansicht */
.month-booking {
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-bottom: 2px;
    display: flex;
    flex-direction: column;
}

    .month-booking:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        z-index: 5;
    }

    .month-booking .booking-time {
        display: flex;
        align-items: center;
        font-size: 0.65rem;
        opacity: 0.9;
        margin-bottom: 1px;
    }

        .month-booking .booking-time span {
            margin: 0 2px;
        }

    .month-booking .booking-title {
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Status-Stile für Buchungen */
    .month-booking.booking-approved {
        background-color: #28a745;
        border-left: 3px solid rgba(255, 255, 255, 0.4);
    }

    .month-booking.booking-pending {
        background-color: #ffc107;
        color: #212529;
        border-left: 3px solid rgba(0, 0, 0, 0.2);
    }

    .month-booking.booking-rejected {
        background-color: #f8f9fa;
        color: #dc3545;
        text-decoration: line-through;
        border-left: 3px solid #dc3545;
        opacity: 0.7;
    }

    .month-booking.vehicle-type-mtw {
        background-color: rgba(40, 167, 69, 0.9);
    }

    .month-booking.vehicle-type-elw {
        background-color: rgba(0, 123, 255, 0.9);
    }

    .month-booking.vehicle-type-tlf {
        background-color: rgba(253, 126, 20, 0.9);
    }

    .month-booking.vehicle-type-hlf {
        background-color: rgba(220, 53, 69, 0.9);
    }

    .month-booking.vehicle-type-lf20 {
        background-color: rgba(102, 16, 242, 0.9);
    }

/* "Mehr"-Anzeige für zusätzliche Buchungen */
.more-bookings {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 2px 5px;
    font-size: 0.7rem;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

    .more-bookings:hover {
        background-color: #e9ecef;
        color: #495057;
    }

/* Ganztägige Anzeige in der Buchung */
.all-day {
    font-style: italic;
    opacity: 0.9;
}

/* Modal für Tagesbuchungen */
.day-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.day-booking-item {
    display: flex;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    border-left: 4px solid #dee2e6;
    transition: transform 0.2s ease;
}

    .day-booking-item:hover {
        transform: translateX(5px);
        background-color: #f1f3f5;
    }

    .day-booking-item.vehicle-type-mtw {
        border-left-color: #28a745;
    }

    .day-booking-item.vehicle-type-elw {
        border-left-color: #007bff;
    }

    .day-booking-item.vehicle-type-tlf {
        border-left-color: #fd7e14;
    }

    .day-booking-item.vehicle-type-hlf {
        border-left-color: #dc3545;
    }

    .day-booking-item.vehicle-type-lf20 {
        border-left-color: #6610f2;
    }

    .day-booking-item.status-pending {
        border-style: dashed;
    }

    .day-booking-item.status-rejected {
        opacity: 0.7;
        text-decoration: line-through;
    }

.booking-time-range {
    min-width: 140px;
    font-weight: 600;
    padding-right: 15px;
    margin-right: 15px;
    border-right: 1px solid #dee2e6;
}

.booking-info {
    flex: 1;
}

    .booking-info .booking-title {
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .booking-info .booking-vehicle {
        display: flex;
        align-items: center;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

        .booking-info .booking-vehicle i {
            margin-right: 5px;
        }

    .booking-info .booking-user {
        font-size: 0.85rem;
        color: #6c757d;
    }

        .booking-info .booking-user i {
            margin-right: 5px;
        }

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .month-week {
        min-height: 100px;
    }

    .month-day {
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .month-booking {
        font-size: 0.7rem;
    }

        .month-booking .booking-time {
            font-size: 0.6rem;
        }

    .day-number {
        font-size: 0.9rem;
        height: 24px;
        width: 24px;
    }
}

@media (max-width: 576px) {
    .month-week {
        min-height: 80px;
    }

    .month-day {
        min-height: 80px;
        padding: 2px;
    }

    .month-booking {
        padding: 1px 3px;
    }

    .day-booking-item {
        flex-direction: column;
    }

    .booking-time-range {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding-right: 0;
        margin-right: 0;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
}

/* Korrektur für die Wochenansicht */

/* Sehr spezifische Korrekturen für die Wochenansicht */

/* Die Tabellenzelle korrigieren - das ist die entscheidende Änderung */
.calendar-table thead tr {
    display: table-row !important; /* Erzwinge normale Tabellenzeilen-Darstellung */
}

.calendar-table thead th {
    display: table-cell !important; /* Erzwinge normale Tabellenzellen-Darstellung */
    vertical-align: middle;
}

/* Grundlegende Tabelleneigenschaften zurücksetzen */
.calendar-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    display: table !important; /* Erzwinge normale Tabellendarstellung */
}

    .calendar-table thead {
        display: table-header-group !important; /* Erzwinge normale Tabellenkopfgruppen-Darstellung */
    }

    .calendar-table tbody {
        display: table-row-group !important; /* Erzwinge normale Tabellenreihengruppen-Darstellung */
    }

    .calendar-table tr {
        display: table-row !important; /* Erzwinge normale Tabellenzeilen-Darstellung */
    }

    .calendar-table td {
        display: table-cell !important; /* Erzwinge normale Tabellenzellen-Darstellung */
    }

/* Breite für die erste Spalte (Zeit) */
.time-header {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
}

/* Breite für die Tagesspalten (jeweils ein Siebtel des verbleibenden Raums) */
.day-header {
    width: calc((100% - 70px) / 7) !important;
}

/* Zusätzliche Absicherung für die responsive Darstellung */
@media (max-width: 768px) {
    .time-header {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
    }

    .day-header {
        width: calc((100% - 50px) / 7) !important;
    }
}

/* Sicherstellen, dass die Tabellenstruktur intakt bleibt */
.table-responsive {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 80vh; /* Begrenzt die Höhe, aber erlaubt Scrollen */
    -webkit-overflow-scrolling: touch;
}

/* Sicherstellen, dass die Monatsansicht die Tabellenansicht nicht stört */
.month-calendar {
    display: block;
}

/* Verbesserte Darstellung für die Tage in der Wochenansicht */
.day-header .day-name,
.day-header .day-number,
.day-header .day-month {
    display: block;
    text-align: center;
}

/* Ergänzungen für calendar.css - 24-Stunden-Ansicht */

/* Anpassen der Zellengrößen für Lesbarkeit */
.hour-row {
    height: 50px; /* Reduzierte Höhe für bessere Übersicht */
    min-height: 50px;
}

.day-cell {
    height: 50px;
    min-height: 50px;
    position: relative;
    padding: 0;
    vertical-align: top;
    overflow: visible;
}

/* Sicherstellen, dass alle 24 Stunden angezeigt werden */
.calendar-table tbody {
    display: table-row-group !important;
    min-height: calc(24 * 50px); /* 24 Stunden × 50px Höhe */
}

/* Kompaktere Buchungsanzeige für bessere Lesbarkeit */
.side-by-side-booking {
    min-height: 25px;
    padding: 2px 4px;
    font-size: 0.75rem;
}

.booking-title {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-vehicle, .booking-time {
    font-size: 0.7rem;
}

/* Zeitnavigation für bessere Benutzererfahrung */
.time-navigation {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.time-navigation-button {
    padding: 5px 10px;
    border: none;
    background-color: #e9ecef;
    border-radius: 4px;
    cursor: pointer;
}

/* Hervorhebung für verschiedene Tageszeiten */
.hour-row.morning {
    background-color: rgba(240, 248, 255, 0.3);
}

.hour-row.afternoon {
    background-color: rgba(255, 248, 225, 0.3);
}

.hour-row.evening {
    background-color: rgba(232, 234, 246, 0.3);
}

.hour-row.night {
    background-color: rgba(236, 239, 241, 0.3);
}

/* Hover-Effekt für bessere Sichtbarkeit von Zeitfenstern */
.day-cell:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Debugging: Sichere Anzeige aller 24 Stunden */
.calendar-table .hour-row {
    display: table-row !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.calendar-table tbody tr:nth-child(n) {
    display: table-row !important;
}

/* Explizite Höhe für alle Stundenzeilen */
.calendar-table tbody tr:nth-child(1) { min-height: 50px; }
.calendar-table tbody tr:nth-child(2) { min-height: 50px; }
.calendar-table tbody tr:nth-child(3) { min-height: 50px; }
.calendar-table tbody tr:nth-child(4) { min-height: 50px; }
.calendar-table tbody tr:nth-child(5) { min-height: 50px; }
.calendar-table tbody tr:nth-child(6) { min-height: 50px; }
.calendar-table tbody tr:nth-child(7) { min-height: 50px; }
.calendar-table tbody tr:nth-child(8) { min-height: 50px; }
.calendar-table tbody tr:nth-child(9) { min-height: 50px; }
.calendar-table tbody tr:nth-child(10) { min-height: 50px; }
.calendar-table tbody tr:nth-child(11) { min-height: 50px; }
.calendar-table tbody tr:nth-child(12) { min-height: 50px; }
.calendar-table tbody tr:nth-child(13) { min-height: 50px; }
.calendar-table tbody tr:nth-child(14) { min-height: 50px; }
.calendar-table tbody tr:nth-child(15) { min-height: 50px; }
.calendar-table tbody tr:nth-child(16) { min-height: 50px; }
.calendar-table tbody tr:nth-child(17) { min-height: 50px; }
.calendar-table tbody tr:nth-child(18) { min-height: 50px; }
.calendar-table tbody tr:nth-child(19) { min-height: 50px; }
.calendar-table tbody tr:nth-child(20) { min-height: 50px; }
.calendar-table tbody tr:nth-child(21) { min-height: 50px; }
.calendar-table tbody tr:nth-child(22) { min-height: 50px; }
.calendar-table tbody tr:nth-child(23) { min-height: 50px; }
.calendar-table tbody tr:nth-child(24) { min-height: 50px; }

/* Add these styles to calendar.css */

/* Styling for the vehicle release button */
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

    .btn-warning:hover {
        background-color: #e0a800;
        border-color: #d39e00;
        color: #212529;
    }

/* Style for the release confirmation modal */
.modal-backdrop {
    opacity: 0.5;

}

.modal-header.bg-warning {
    background-color: #ffc107;
    color: #212529;
}

/* Active booking indicator in the modal */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Style for the vehicle release button icon */
.btn-warning .bi-unlock {
    margin-right: 5px;
}

/* Zentriertes Modal */
.modal.fade.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

    /* Für das spezifische Release-Confirmation Modal */
    .modal.fade.show .modal-dialog {
        max-width: 500px;
        margin: 0 auto;
        transform: none;
    }

/* Sicherstellen, dass der Backdrop das gesamte Fenster abdeckt */
.modal-backdrop.fade show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}