body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: #f4f4f4;
    margin: 20px;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.8em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}

.day-name {
    font-weight: bold;
    color: #555;
    padding: 8px 0;
    background-color: #e9ecef;
    border-radius: 4px;
}

.calendar-day {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 5px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.day-number {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.calendar-day.inactive {
    background-color: #e9ecef;
    color: #bbb;
    pointer-events: none; /* Macht nicht klickbar */
}

.calendar-day.past-day {
    background-color: #e9ecef;
    color: #999;
    pointer-events: none;
}

.time-slot {
    background-color: #28a745;
    color: white;
    padding: 5px 8px;
    border-radius: 3px;
    margin-bottom: 5px;
    cursor: pointer;
    width: calc(100% - 10px); /* 10px für padding */
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.time-slot:hover {
    background-color: #218838;
}

.time-slot.booked {
    background-color: #dc3545;
    cursor: not-allowed;
    text-decoration: line-through;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #007bff;
}

.modal-content form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.modal-content form input[type="text"],
.modal-content form input[type="email"],
.modal-content form input[type="tel"],
.modal-content form select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.modal-content form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    transition: background-color 0.2s ease;
}

.modal-content form button[type="submit"]:hover {
    background-color: #0056b3;
}

#bookingMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

#bookingMessage.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#bookingMessage.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(1, 1fr); /* Einzelspalte auf kleinen Bildschirmen */
    }
    .container {
        padding: 15px;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}
/* --- NEU: Styling für Admin-Blockierungen (Blau) --- */
.time-slot.admin-booked {
    background-color: #0099cc; /* Ein schönes, dunkleres Blau */
    color: white;
    cursor: not-allowed;
    position: relative;
    /* Optional: Ein kleines Symbol oder Text, um den Grund anzuzeigen */
}

/* Optional: Damit es keinen Effekt beim Hovern gibt */
.time-slot.admin-booked:hover {
    background-color: #0077aa; 
    /* Wenn Sie möchten, dass das Hovern NICHT auffällt: */
    /* background-color: #0099cc; */
}