/* --- Basis-Styling --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* --- Navigationsleiste --- */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    padding: 15px 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-bar a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.95em;
    transition: color 0.3s;
}

.nav-bar a:hover {
    color: #3498db;
}

.btn-nav {
    background-color: #34495e;
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #5d6d7e;
}

/* --- Kalender Tabelle --- */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.calendar-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px;
    border: 1px solid #34495e;
}

.calendar-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

/* Wagen-Spalte links */
.wagen-name-cell {
    background-color: #ecf0f1;
    font-weight: bold;
    color: #2c3e50;
    width: 150px;
}

/* --- Schicht-Boxen --- */
.tag-box {
    background-color: #fffde7; /* Helles Gelb */
}

.nacht-box {
    background-color: #e3f2fd; /* Helles Blau */
}

.occupied {
    font-weight: bold;
    position: relative;
}

.schicht-label {
    font-size: 0.7em;
    color: #95a5a6;
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
}

/* --- Status-Farben --- */
.status-beantragt { color: #f39c12; font-weight: bold; }
.status-genehmigt { color: #27ae60; font-weight: bold; }
.status-abgelehnt { color: #e74c3c; font-weight: bold; }

/* --- Buttons --- */
button, .btn-save {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #219150;
}

/* --- Druckansicht (WICHTIG) --- */
@media print {
    @page {
        size: A4 landscape; /* Querformat für den Plan */
        margin: 1cm;
    }

    body {
        background: white;
    }

    .nav-bar, .btn-nav, .add-link, .delete-btn, button, form {
        display: none !important; /* Versteckt alles außer der Tabelle */
    }

    .calendar-table {
        width: 100%;
        box-shadow: none;
        border: 1px solid black;
    }

    .calendar-table th, .calendar-table td {
        border: 1px solid black !important;
        color: black !important;
    }

    .tag-box, .nacht-box {
        background-color: transparent !important; /* Tinte sparen */
    }

    .wagen-name-cell {
        background-color: #eee !important;
    }
}