.modern-booking {
    --booking-ink: #17332b;
    --booking-muted: #687a74;
    --booking-green: #356f5a;
    --booking-green-dark: #285746;
    --booking-green-soft: #e8f2ed;
    --booking-accent: #d9a441;
    --booking-line: #dce5e1;
    --booking-surface: #ffffff;
    background: #f3f6f4;
    color: var(--booking-ink);
    min-height: calc(100vh - 100px);
    padding: 42px 20px 64px;
}

.modern-booking #contDiv {
    max-width: 1180px;
    margin: 0 auto;
}

.modern-booking #wochenblatt,
.modern-booking #kundenDaten {
    overflow: hidden;
    margin: 0;
    border: 0;
    border-radius: 18px;
    background: var(--booking-surface);
    box-shadow: 0 18px 50px rgba(23, 51, 43, 0.11);
}

.modern-booking .row.align-items-center.kopfzeile {
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--booking-ink);
}

.modern-booking #wochenblatt > .col-sm-12 > .kopfzeile:first-of-type {
    position: relative;
    display: block;
    padding: 30px 34px 26px;
    background: linear-gradient(135deg, var(--booking-green-dark), var(--booking-green));
}

.modern-booking #startAnzeige {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.modern-booking #headline {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.modern-booking #adminmode {
    position: absolute;
    top: 20px;
    right: 22px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 12px;
}

.modern-booking #kopfzeile {
    display: flex;
    align-items: stretch !important;
    gap: 18px;
    padding: 24px 34px;
    border-bottom: 1px solid var(--booking-line);
}

.modern-booking #kopfzeile > div:first-child {
    display: none;
}

.modern-booking #kopfzeile > div {
    flex: 1 1 0;
    max-width: none;
    margin: 0;
    padding: 0;
}

.modern-booking #kopfzeile > .booking-info-card {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    border-radius: 12px;
    background: var(--booking-green-soft);
    color: var(--booking-muted);
}

.modern-booking #kopfzeile > .booking-info-card p,
.modern-booking #gruppePersonen {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.45 !important;
}

.modern-booking .feldname {
    margin: 0 0 10px;
    color: var(--booking-ink);
    font-size: 14px;
    font-weight: 700;
}

.modern-booking fieldset {
    display: flex;
    gap: 7px;
    width: auto;
    margin: 0;
    border: 0;
}

.modern-booking .schalter {
    width: 40px;
    height: 40px;
    border: 1px solid var(--booking-line);
    border-radius: 9px;
    background: #fff;
    color: var(--booking-ink);
    font-weight: 700;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.modern-booking .schalter[id="00"]::placeholder {
    color: var(--booking-ink);
    opacity: 1;
}

.modern-booking .schalter:hover {
    border-color: var(--booking-green);
    background: var(--booking-green-soft);
    transform: translateY(-1px);
}

.modern-booking .schalter.active {
    border-color: var(--booking-green);
    background: var(--booking-green);
    color: #fff;
    box-shadow: 0 5px 14px rgba(53, 111, 90, 0.22);
}

.modern-booking .duration-control {
    min-width: 230px;
}

.modern-booking .duration-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.modern-booking .duration-heading .feldname {
    margin-bottom: 8px;
}

.modern-booking #dauerAnzeige {
    color: var(--booking-green-dark);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.modern-booking #dauerRadio {
    display: block;
    width: 100%;
}

.modern-booking #dauerRange {
    width: 100%;
    height: 24px;
    margin: 0;
    accent-color: var(--booking-green);
    cursor: pointer;
}

.modern-booking #dauerRange:focus-visible {
    outline: 3px solid rgba(53, 111, 90, 0.24);
    outline-offset: 3px;
}

.modern-booking .duration-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 1px;
    color: var(--booking-muted);
    font-size: 11px;
    font-weight: 700;
}

.modern-booking #buchungsHeader + .kopfzeile {
    display: grid;
    grid-template-columns: 52px minmax(220px, 1fr) 52px minmax(260px, 1fr);
    gap: 14px;
    align-items: center !important;
    padding: 20px 34px;
    border-bottom: 1px solid var(--booking-line);
}

.modern-booking #buchungsHeader + .kopfzeile > div {
    max-width: none;
    padding: 0;
}

.modern-booking #prev,
.modern-booking #next {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--booking-line);
    border-radius: 12px;
    background: #fff;
    transition: background 160ms ease, transform 160ms ease;
}

.modern-booking #prev:hover,
.modern-booking #next:hover {
    background: var(--booking-green-soft);
    opacity: 1;
    transform: translateY(-1px);
}

.modern-booking .calendar-arrow {
    color: var(--booking-green-dark);
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.modern-booking input#resultat {
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--booking-line);
    border-radius: 12px;
    background: #f8faf9;
    color: var(--booking-ink);
    font-size: 16px;
    font-weight: 700;
}

.modern-booking input#resultat::placeholder {
    color: var(--booking-muted);
}

.modern-booking #weiterBtn {
    width: 100%;
    min-height: 46px;
    padding: 8px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--booking-green);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(53, 111, 90, 0.2);
}

.modern-booking #weiterBtn:disabled {
    background: #e4e9e6;
    color: #8c9994;
    box-shadow: none;
    cursor: not-allowed;
}

.modern-booking #Kalender {
    overflow-x: auto;
    padding: 24px 34px 36px;
}

.modern-booking .row.kalenderRow {
    width: max-content;
    min-width: 100%;
    margin-left: 0;
}

.modern-booking .tagBreit,
.modern-booking .tagSchmal {
    height: 58px;
    padding: 17px 8px 0;
    border: 0;
    border-right: 6px solid #fff;
    border-radius: 12px 12px 6px 6px;
    background: #edf2ef;
    color: var(--booking-ink);
    font-family: Lato, sans-serif;
    font-size: 14px;
}

.modern-booking a.eineStundeBreit,
.modern-booking a.eineStundeSchmal {
    height: 39px;
    padding-right: 6px;
}

.modern-booking .leerBox,
.modern-booking .vollBox {
    overflow: hidden;
    height: 35px;
    border: 1px solid #e1e8e4;
    border-radius: 7px;
    background: #f6f8f7;
}

.modern-booking .vollBox {
    border-color: #b9d3c7;
    background: var(--booking-green-soft);
    color: var(--booking-green-dark);
}

.modern-booking p.vollZeit {
    font-size: 14px;
    font-weight: 700;
    line-height: 33px;
}

.modern-booking .JS_selektiert {
    background: #f6d991;
    color: #3d3015;
}

.modern-booking .belegteBox,
.modern-booking .geblockteBox {
    background: #e27068;
    color: #fff;
}

.modern-booking #kundenDaten {
    padding: 34px;
}

@media (max-width: 900px) {
    .modern-booking {
        padding: 20px 10px 42px;
    }

    .modern-booking #kopfzeile {
        flex-wrap: wrap;
        padding: 20px;
    }

    .modern-booking #kopfzeile > div {
        flex: 1 1 220px;
    }

    .modern-booking #buchungsHeader + .kopfzeile {
        grid-template-columns: 48px 1fr 48px;
        padding: 16px 20px;
    }

    .modern-booking #buchungsHeader + .kopfzeile > .col-sm:last-child {
        grid-column: 1 / -1;
    }

    .modern-booking #Kalender {
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .modern-booking #wochenblatt > .col-sm-12 > .kopfzeile:first-of-type {
        padding: 26px 20px 22px;
    }

    .modern-booking #startAnzeige {
        padding-right: 54px;
        text-align: left;
    }

    .modern-booking #headline {
        text-align: left;
    }

    .modern-booking #kopfzeile > div {
        flex-basis: 100%;
    }

    .modern-booking #buchungsHeader + .kopfzeile {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        gap: 10px;
    }

    .modern-booking #buchungsHeader + .kopfzeile > .col-sm:last-child {
        grid-column: 1 / -1;
    }

    .modern-booking #prev {
        grid-column: 1;
    }

    .modern-booking #next {
        grid-column: 3;
    }

    .modern-booking #buchungsHeader + .kopfzeile > .col-sm-4 {
        grid-column: 2;
        min-width: 0;
    }

    .modern-booking #Kalender {
        overflow-x: hidden;
        padding: 16px 10px 24px;
    }

    .modern-booking .row.kalenderRow {
        display: flex;
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .modern-booking .tagBreit,
    .modern-booking .tagSchmal,
    .modern-booking a.eineStundeBreit,
    .modern-booking a.eineStundeSchmal {
        width: 33.3333%;
        min-width: 0;
        flex: 0 0 33.3333%;
    }

    .modern-booking .tagBreit,
    .modern-booking .tagSchmal {
        height: 64px;
        padding: 12px 4px 0;
        border-right-width: 3px;
        font-size: 12px;
        line-height: 1.3;
    }
}
