@font-face {
    font-family: "Outfit";
    src:
        url("../fonts/Outfit-VariableFont_wght.ttf") format("truetype-variations");
    /* deine TTF */
    font-weight: 100 900;
    /* Bereich angeben */
    font-stretch: 75% 125%;
    /* falls die Schrift wdth-Achse hat; sonst weglassen */
    font-style: normal;
    /* ital=0 */
    font-display: swap;
    font-variation-settings: "ital" 0;
    /* falls ital-Achse vorhanden */
}

div #header {
    background: white !important;
}

#book-appointment-wizard {
    border: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    background: transparent !important;
}

#company-name span {
    font-family: Outfit;
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
    line-height: 32px;
    color: rgba(33, 33, 33, 1);
}

.display-booking-selection {
    font-family: Outfit !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    color: rgba(33, 33, 33, 1) !important;
}


.flatpickr-weekday {
    color: #555555 !important;
    font-weight: 700;
    font-size: 12px;
}

div .frame-container .frame-title,
#book-appointment-wizard h2 {
    font-family: Outfit;
    font-size: 24px;
    font-style: normal;
    font-weight: 800 !important;
    line-height: 32px;
    color: rgba(33, 33, 33, 1) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.flatpickr-next-month,
.flatpickr-prev-month {
    fill: rgba(33, 33, 33, 1) !important;
}

.flatpickr-calendar,
.flatpickr-calendar.inline,
#book-appointment-wizard .flatpickr-calendar.inline,
.flatpickr-days,
.flatpickr-innerContainer,
.flatpickr-rContainer {
    box-shadow: none !important;
    border: none !important;
    font-family: Outfit;
    background: transparent !important;
}

/* Kalender-Kopfbereich Farbe extrem spezifisch weiß überschreiben */
#book-appointment-wizard .flatpickr-calendar .flatpickr-months,
#book-appointment-wizard .flatpickr-calendar .flatpickr-months .flatpickr-month,
#book-appointment-wizard .flatpickr-calendar .flatpickr-weekdays,
#book-appointment-wizard .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
#book-appointment-wizard .flatpickr-calendar span.flatpickr-weekday,
.flatpickr-calendar .flatpickr-months,
.flatpickr-calendar .flatpickr-months .flatpickr-month,
.flatpickr-calendar .flatpickr-weekdays,
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar span.flatpickr-weekday {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: rgba(33, 33, 33, 1) !important;
}

/* Dropdown Text & Layout Anpassung */
#book-appointment-wizard .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 800 !important;
    font-size: 18px !important;
    font-family: Outfit, sans-serif !important;
    border: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding: 0 !important;
    margin: 0 4px 0 0 !important;
    outline: none !important;
    cursor: pointer !important;
    text-align: right;
}

#book-appointment-wizard .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    color: #000 !important;
}

.flatpickr-monthDropdown-months option {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: rgba(33, 33, 33, 1) !important;
}

.flatpickr-current-month input.cur-year[disabled] {
    color: rgba(33, 33, 33, 1) !important;
    font-weight: 600;
    font-family: Outfit;
    background: transparent !important;
}

/* Kalender Tage Styling */
.flatpickr-day {
    color: #333 !important;
    font-weight: 500;
    border: none !important;
}

/* Freie Termintage (Barrierefrei gemäß BSFG) */
.flatpickr-day:not(.flatpickr-disabled):not(.disabled):not(.selected):not(.today) {
    background-color: #fff9e6 !important;
    color: rgba(33, 33, 33, 1) !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    box-shadow: inset 0 0 0 2px #ffc423;
}

/* Heute (falls nicht ausgewählt und verfügbar) */
.flatpickr-day.today:not(.selected):not(.flatpickr-disabled):not(.disabled) {
    background-color: #fff9e6 !important;
    color: rgba(33, 33, 33, 1) !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    box-shadow: inset 0 0 0 2px #ffc423;
}

/* Deaktivierte Tage (Mindestkontrast 4.5:1 auch für inaktive Elemente empfohlen) */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.disabled {
    background: transparent !important;
    background-color: transparent !important;
    color: #767676 !important;
    font-weight: 400 !important;
}

/* Ausgewählter Tag */
.flatpickr-calendar .flatpickr-day.selected {
    background-color: #ffc423 !important;
    color: rgba(33, 33, 33, 1) !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
}

/* Zeitzone ausblenden */
label[for="select-timezone"],
#select-timezone {
    display: none !important;
}

/* Verfügbare Uhrzeiten */
#book-appointment-wizard #available-hours {
    max-height: 330px !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
}

/* Scrollbar für Webkit Browser etwas anhübschen */
#book-appointment-wizard #available-hours::-webkit-scrollbar {
    width: 6px;
}

#book-appointment-wizard #available-hours::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#book-appointment-wizard button.available-hour {
    display: block !important;
    width: 100% !important;
    border: 1px solid rgba(33, 33, 33, 1) !important;
    background: #fff !important;
    color: rgba(33, 33, 33, 1) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: Outfit;
    padding: 12px !important;
    margin-bottom: 12px !important;
    transition: all 0.2s;
}

/* Ausgewählte Uhrzeit */
#book-appointment-wizard button.available-hour.selected-hour,
#book-appointment-wizard #available-hours .selected-hour {
    background-color: rgba(33, 33, 33, 1) !important;
    color: #fff !important;
    border-color: rgba(33, 33, 33, 1) !important;
}

/* Alle gelben Buttons (Weiter, Bestätigen, etc.) vereinheitlichen */
#book-appointment-wizard .btn-primary,
#book-appointment-wizard #book-appointment-submit,
#book-appointment-wizard #button-next-1,
#book-appointment-wizard #button-next-2,
#book-appointment-wizard #button-next-3,
#book-appointment-wizard .btn {
    background-color: #ffc82a !important;
    background: #ffc82a !important;
    color: rgba(33, 33, 33, 1) !important;
    border-radius: 8px !important;
    border: none !important;
    font-weight: 600 !important;
    font-family: Outfit, sans-serif !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    line-height: normal !important;
    height: auto !important;
    min-height: 48px !important;
    text-transform: none !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 275px !important
}

.btn-primary {
    color: black;
    background-color: #ffc82a !important;
}

.btn-primary:hover,
#book-appointment-wizard #book-appointment-form #book-appointment-submit:hover,
.btn-primary:active,
#book-appointment-wizard #book-appointment-form #book-appointment-submit:active {
    color: black;
    background: #e6b21e !important;
}


/* Hover-Zustand für alle gelben Buttons */
#book-appointment-wizard .btn-primary:hover,
#book-appointment-wizard #book-appointment-submit:hover,
#book-appointment-wizard #button-next-1:hover,
#book-appointment-wizard #button-next-2:hover,
#book-appointment-wizard #button-next-3:hover,
#book-appointment-wizard .btn:hover:not(.button-back) {
    background-color: #e6b21e !important;
    background: #e6b21e !important;
    color: rgba(33, 33, 33, 1) !important;
    opacity: 1 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Zurück Button Outline Styling extrem stark (für alle Back-Buttons inkl. Step 4 und Bootstrap-Klassen) */
#book-appointment-wizard button#button-back-1,
#book-appointment-wizard button#button-back-2,
#book-appointment-wizard button#button-back-3,
#book-appointment-wizard button#button-back-4,
#book-appointment-wizard button.btn.button-back,
#book-appointment-wizard button.btn.btn-outline-secondary.button-back {
    background-color: transparent !important;
    background: transparent !important;
    border: 2px solid rgba(33, 33, 33, 1) !important;
    color: rgba(33, 33, 33, 1) !important;
    box-shadow: none !important;
    width: 275px !important;
}

#book-appointment-wizard button#button-back-1:hover,
#book-appointment-wizard button#button-back-2:hover,
#book-appointment-wizard button#button-back-3:hover,
#book-appointment-wizard button#button-back-4:hover,
#book-appointment-wizard button.btn.button-back:hover,
#book-appointment-wizard button.btn.btn-outline-secondary.button-back:hover {
    background-color: rgba(33, 33, 33, 1) !important;
    background: rgba(33, 33, 33, 1) !important;
    color: #fff !important;
    border-color: rgba(33, 33, 33, 1) !important;
}

#book-appointment-wizard button#button-back-1:hover svg,
#book-appointment-wizard button#button-back-1:hover i,
#book-appointment-wizard button#button-back-2:hover svg,
#book-appointment-wizard button#button-back-2:hover i,
#book-appointment-wizard button#button-back-3:hover svg,
#book-appointment-wizard button#button-back-3:hover i,
#book-appointment-wizard button#button-back-4:hover svg,
#book-appointment-wizard button#button-back-4:hover i,
#book-appointment-wizard button.btn.button-back:hover svg,
#book-appointment-wizard button.btn.button-back:hover i {
    fill: #fff !important;
    color: #fff !important;
}

#book-appointment-wizard .wizard-frame .command-buttons {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
}

/* Alle Buttons (Weiter, Submit, Zurück), auch wenn sie in einem Formular verschachtelt sind (Step 4) */
#book-appointment-wizard .wizard-frame .command-buttons button,
#book-appointment-wizard .wizard-frame .command-buttons form {
    width: 48% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
}

#book-appointment-wizard .wizard-frame .command-buttons form button {
    width: 100% !important;
}

#book-appointment-wizard .wizard-frame .command-buttons button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Weiter-Button an Desktop unter den Uhrzeit-Spalten ausrichten */
@media (min-width: 768px) {
    #button-next-1 {
        width: 280px !important;
        max-width: 280px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        float: right !important;
    }
}

/* Falls ein Icon/Pfeil im Button ist, passen wir es farblich an */
#book-appointment-wizard .btn svg,
#book-appointment-wizard .btn i {
    fill: rgba(33, 33, 33, 1) !important;
    color: rgba(33, 33, 33, 1) !important;
}

#message-frame small {
    display: none !important;
}

/* Step-Indikatoren oben rechts (1, 2, 3) */
#book-appointment-wizard .book-step {
    background: rgba(238, 238, 238, 1) !important;
    border-radius: 8px !important;
    font-family: Outfit;
    font-weight: 800;
    color: rgba(33, 33, 33, 1) !important;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#book-appointment-wizard .book-step strong {
    font-weight: 800;
    color: rgba(33, 33, 33, 1) !important;
}

div #frame-footer {
    display: none !important;
}

#book-appointment-wizard {
    margin: 0 auto auto auto !important;
}

#message-frame .btn-primary {
    margin-bottom: 12px !important;
}

.form-check-input {
    border-color: black !important;
    margin-left: -2.5em !important;
    margin-top: 0em !important;
    width: 2em !important;
    height: 2em !important;

}

.form-check-label a,
.modal-body a {
    color: black !important;
}

.form-check-label {
    font-size: 1rem !important;
}