/* - - - - - - - - - - - - - */
/*      content container    */
/* - - - - - - - - - - - - - */
main.container {
    max-width: clamp(42rem, 80vw, 70rem);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 3rem);
    padding-top: 1rem;
    padding-bottom: 12rem;
}


/* - - - - - - - - - */
/*   Frontend admin  */
/* - - - - - - - - - */

/*   Delete-Button   */
.delete-day-slots {
    margin-bottom: 3rem;
}

/* Gibt dem Kalender genug Raum, sich vollständig zu öffnen.*/
main {
    padding-bottom: 12rem;
}


/* - - - - - - - - */
/* Frontend slots  */
/* - - - - - - - - */
body {
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
}
/*
.day {
    margin: 0 auto;
}
*/
.day h3 {
    margin-bottom: 0.5rem;

}

/* ============================= */
/* Hinweistext über der Buchung   */
/* ============================= */
.info {
    border: 2px solid #007BFF;       /* Rahmenfarbe */
    border-radius: 0.5rem;           /* abgerundete Ecken */
    padding: 1rem;                   /* Innenabstand */
    background-color: #f0f8ff;       /* leichtes Highlight */
    font-size: clamp(1rem, 2.5vw, 1.25rem); /* dynamische Schriftgröße */
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ============================= */
/* Sprach-Buttons                 */
/* ============================= */
#language-selector {
    display: flex;
    justify-content: flex-end;       /* an den rechten Rand */
    gap: 0.5rem;                     /* Abstand zwischen den Buttons */
    margin-bottom: 1rem;
}

#language-selector button {
    font-size: 1rem;                 /* Grundgröße */
    padding: 0.5rem 1rem;            /* innenliegender Abstand */
    border: 1px solid #007BFF;
    border-radius: 0.3rem;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

#language-selector button:hover {
    background-color: #007BFF;
    color: #fff;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    width: 100%;      /* volle Breite innerhalb des Containers */
    max-width: 100%;  /* nicht breiter als Container */
    margin: 0;        /* kein extra zentrieren */
}

/* Grundzustand: Slot-Button */
.slot-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #999;
    border-radius: 4px;
    background-color: #eee;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

/* Buchbare Slots */
.slot-button.book-slot {
    background-color: #0caa01; /* grün */
    color: white;
}

.slot-button.book-slot:hover {
    background-color: #28cd2e; /* dunkleres grün beim Hover */
}

/* Deaktivierte Slots */
.slot-button:disabled {
    background-color: #ccc; /* grau */
    color: #666;
    cursor: not-allowed;
}

.info {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #444;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.4rem;
    }

    .slot-button {
        font-size: 0.9rem;
        padding: 0.4rem;
    }

    .booking-form input,
    .booking-form button {
        font-size: 0.9rem;
        padding: 0.3rem;
    }
}

@media (max-width: 400px) {
    .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 0.3rem;
    }

    .slot-button {
        font-size: 0.8rem;
        padding: 0.3rem;
    }

    .booking-form input,
    .booking-form button {
        font-size: 0.8rem;
        padding: 0.25rem;
    }
}

/* Buchungsformular – größere Felder und Schrift */
.booking-form input,
.booking-form button {
    font-size: 1rem;      /* vorher ~0.9rem */
    padding: 0.45rem;     /* etwas mehr Höhe */
    color: #131313;
}

/* Buchungs-Button */
.submit-booking {
    background-color: #a3d0f7;   /* hellblau */
    color: white;                /* weiße Schrift */
    font-weight: bold;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-booking:hover {
    background-color: #007BFF;   /* dunkler beim Hover */
}

/* Storno Button */
.cancel-slot-button {
    background-color: #e53935; /* kräftiges Signalrot */
    color: white;
    font-weight: bold;
    padding: 0.6rem 1rem; /* größer als normale Buttons */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.cancel-slot-button:hover {
    background-color: #f44336; /* heller beim Hover */
}

.booking-success {
    opacity: 1;
    transition: opacity 1s ease-out;
}
.booking-success.fade-out {
    opacity: 0;
}


/* - - - - - - - - - - - - - */
/*  Frontend admin/settings  */
/* - - - - - - - - - - - - - */

.admin-settings-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.admin-settings-form input[type="text"],
.admin-settings-form input[type="email"],
.admin-settings-form input[type="password"],
.admin-settings-form input[type="number"] {
    max-width: 28rem;   /* ca. 450px */
    width: 100%;
    font-size: 1rem;
    padding: 0.4rem 0.5rem;
}

.admin-settings-form label {
    font-weight: 600;
}

.admin-settings-form input {
    font-size: 1rem;
    padding: 0.4rem 0.5rem;
}

.admin-settings-form button[type="submit"] {
    max-width: 16rem;      /* deutlich schmaler als Inputs */
    width: 100%;
    font-size: 1.05rem;
    padding: 0.5rem 0.6rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

/* Styling für den Excel-Lösch-Button */
.danger-btn {
    background-color: #e74c3c; /* kräftiges Rot */
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.danger-btn:hover {
    background-color: #c0392b; /* dunkler beim Hover */
}

