/* ===================================================== */
/* BASIS */
/* ===================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Inter, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f6f7f9;
    color: #222;
    overflow-x: hidden;
}

/* ===================================================== */
/* CAROUSEL */
/* ===================================================== */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 150px auto 0;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Navigation */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
    z-index: 10;
}

.nav.left {
    left: 16px;
}

.nav.right {
    right: 16px;
}

.nav:hover {
    background: rgba(139,0,0,0,0.85);
    transform: translateY(-50%) scale(1.1);
}

/* ===================================================== */
/* CONTAINER */
/* ===================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===================================================== */
/* HEADLINES */
/* ===================================================== */
h1 {
    color: #8b0000;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    margin-bottom: 24px;
}

/* ===================================================== */
/* DETAILS BOX */
/* ===================================================== */
.details-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    margin: 24px auto;
    max-width: 1200px;
}

/* DETAILS TABLE */
.details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 16px;
}

.details-table th,
.details-table td {
    padding: 14px 16px;
    background: #fff;
}

.details-table th {
    color: #8b0000;
    font-weight: 600;
    background: #fff5f5;
    border-radius: 10px 0 0 10px;
}

.details-table td {
    border-radius: 0 10px 10px 0;
}

/* ===================================================== */
/* PRICE */
/* ===================================================== */
.price {
    margin-top: 24px;
    font-size: 30px;
    font-weight: 700;
    color: #8b0000;
    text-align: right;
}

/* ===================================================== */
/* BOOKING FORM */
/* ===================================================== */
.booking-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    margin: 40px auto;
    max-width: 1200px;
}

.booking-box h2 {
    margin-bottom: 16px;
}

.booking-box label {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    font-weight: 600;
}


.form-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.form-left,
.form-right {
    flex: 1;
    min-width: 260px;
}

input,
textarea {
    width: 100%;
    padding: 14px 14px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    font-size: 15px;
    transition: all 0.25s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139,0,0,0.15);
}

.required {
    color: #d93025;
}

/* ===================================================== */
/* BUTTONS (GLOBAL – OHNE CAROUSEL NAV) */
/* ===================================================== */
button:not(.nav) {
    background: linear-gradient(135deg, #8b0000, #b30000);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

button:not(.nav):hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(139,0,0,0.35);
}

#booking-form button[type="submit"] {
    width: 260px;
    margin: 28px auto 0;
    display: block;
}

/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */
@media (max-width: 768px) {
    .carousel {
        margin-top: 110px;
        border-radius: 16px;
    }

    .nav {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .carousel {
        aspect-ratio: 4 / 3;
    }

    .nav {
        font-size: 2rem;
    }
}


#booking-form button[type="submit"] {
    width: 260px;
    margin: 28px auto 0;
    display: block;
}

/* ===================================================== */
/* WEEKS LEGEND */
/* ===================================================== */
.legend-container {
    text-align: right;
    margin-bottom: 14px;
}

.week-legend {
    font-size: 13px;
    color: #555;
}

.week-legend .legend {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    margin-right: 6px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.15);
}

.week-legend .free { background: #dff3e3; }
.week-legend .booked { background: #fde2e2; }
.week-legend .blocked { background: #ececec; }

/* ===================================================== */
/* WEEKS TABLE – ULTRA MODERN */
/* ===================================================== */
.weeks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 16px;
    font-size: 14px;
}

.weeks-table tr {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.weeks-table th,
.weeks-table td {
    padding: 18px;
    border: none;
}

.weeks-table td:first-child {
    width: 130px;
    font-weight: 700;
    color: #8b0000;
    background: linear-gradient(180deg, #fff3f3, #ffffff);
    border-radius: 16px 0 0 16px;
}

.weeks-table td:nth-child(2) {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    gap: 12px;
    align-items: center;
}

/* ===================================================== */
/* WEEK BUTTONS (PILLS) */
/* ===================================================== */
.week-btn {
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.week-btn.free {
    background: linear-gradient(180deg, #e9f8ef, #dff3e3);
    color: #1b5e20;
}

.week-btn.booked {
    background: linear-gradient(180deg, #fdecec, #fde2e2);
    color: #8b1d18;
    cursor: not-allowed;
}

.week-btn.blocked {
    background: #eeeeee;
    color: #666;
    cursor: not-allowed;
}

.week-btn.selected {
    background: linear-gradient(135deg, #8b0000, #b30000);
    color: white;
    box-shadow: 0 10px 22px rgba(139,0,0,0.35);
}


.week-btn.free:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* ===================================================== */
/* INFOS */
/* ===================================================== */
.email-hint {
    font-size: 13px;
    color: #d93025;
    text-align: center;
    margin-top: 12px;
}

.booking-note {
    background: #fff8e6;
    border-left: 4px solid #ffdf91;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    color: #7a5a00;
    margin-bottom: 16px;
}
/* ===== BUCHUNGSART ===== */
select {
    width: 100%;
    padding: 16px 16px;
    border-radius: 12px;
    border: 2px solid #d0d5dd;
    font-size: 17px;
    font-weight: 500;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;

    /*  Pfeil-Handling */
    appearance: none;
    background-image:
            linear-gradient(45deg, transparent 50%, #8b0000 50%),
            linear-gradient(135deg, #8b0000 50%, transparent 50%);
    background-position:
            calc(100% - 22px) 55%,
            calc(100% - 16px) 55%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

select:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 0 4px rgba(139,0,0,0,0.15);
}

/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */
@media (max-width: 1024px) {
    .price {
        text-align: center;
        font-size: 26px;
    }

    .form-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .carousel {
        margin-top: 110px;
        border-radius: 16px;
    }

    .nav {
        font-size: 2.4rem;
    }

    .weeks-table td:nth-child(2) {
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .carousel {
        aspect-ratio: 4 / 3;
    }

    .nav {
        font-size: 2rem;
    }

    .booking-box label {
        grid-template-columns: 1fr;
    }

    input,
    textarea,
    button {
        font-size: 14px;
    }
}
/* ===================================================== */
/* DETAILS TABLE – MOBILE FIX */
/* ===================================================== */
@media (max-width: 620px) {

    .details-table,
    .details-table tbody,
    .details-table tr {
        display: block;
        width: 100%;
    }

    .details-table tr {
        margin-bottom: 16px;
    }

    .details-table th,
    .details-table td {
        display: block;
        width: 100%;
        border-radius: 10px;
    }

    .details-table th {
        margin-top: 10px;
        border-radius: 10px 10px 0 0;
    }

    .details-table td {
        border-radius: 0 0 10px 10px;
    }
}