/* Booking-spezifische Styles */

/* Hero-Wasserzeichen (Fallback fuer lokale Entwicklung ohne Hugo) */
body.page-booking::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF7F2 45%, #F3EBE1 100%);
    pointer-events: none;
}

/* Page title */
.course-intro { margin-bottom: 32px; }
.course-intro p { color: #4A3728; max-width: 900px; font-size: 20px; line-height: 1.6; }
.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: #7B5B3A;
    margin-bottom: 30px;
}

/* Kurs-Sektionen */
.course-section {
    margin-bottom: 40px;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: #7B5B3A;
    margin-bottom: 6px;
}
.section-description {
    color: #6B5848;
    margin-bottom: 20px;
    font-size: 19px;
}
.empty-notice {
    color: #6B5848;
    font-style: italic;
    padding: 20px;
    background: #F5F0EB;
    border-radius: 8px;
}

/* Einzelunterricht-Karte */
.einzelunterricht-card {
    border-style: dashed;
}

/* Course cards */
.course-list { display: grid; gap: 20px; margin-bottom: 20px; }

/* Kurskarte mit Bild */
.course-card.has-image {
    display: flex;
    flex-direction: row;
}
.course-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    margin-right: 20px;
    border-radius: 6px;
    overflow: hidden;
}
.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-body {
    flex: 1;
    min-width: 0;
}
@media (max-width: 576px) {
    .course-image {
        width: 80px;
        height: 80px;
        margin-right: 14px;
    }
}
.course-card {
    background: #ffffff;
    border: 2px solid #E8DDD0;
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.course-card:hover {
    border-color: #9B7B5A;
    box-shadow: 0 2px 12px rgba(123, 91, 58, 0.1);
}
.course-card.selected {
    border-color: #7B5B3A;
    background: #F5F0EB;
}
.course-subtitle {
    color: #4A3728;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-style: italic;
    margin: -4px 0 10px;
}
.course-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #7B5B3A;
    margin-bottom: 8px;
}
.course-info { color: #4A3728; margin-bottom: 12px; font-size: 19px; line-height: 1.6; }
.course-info small { font-size: 16px; color: #6B5848; }
.course-price { display: inline-block; margin-top: 4px; font-size: 16px; color: #6B5848; }
.course-details { border-top: 1px solid #E8DDD0; border-bottom: 1px solid #E8DDD0; margin: 16px 0; padding: 10px 0; }
.course-details summary { color: #7B5B3A; cursor: pointer; font-weight: 700; font-size: 18px; }
.course-details h3 { color: #7B5B3A; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin: 18px 0 6px; }
.course-details p, .course-details ul { color: #4A3728; margin-bottom: 8px; font-size: 19px; line-height: 1.6; }
.course-details ul { padding-left: 20px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.course-actions .btn { margin: 0; }
.course-spots {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
}
.spots-available { background: #EAF2E5; color: #6B8E5A; }
.spots-limited { background: #FFF3DD; color: #7A5A1E; }
.spots-full { background: #F8EDED; color: #9B4A4A; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #7B5B3A;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    font-weight: 400;
    transition: background 0.2s;
}
.btn:hover { background: #5A3D20; color: #ffffff; }
.btn:disabled, .btn.disabled { background: #C4B8AB; cursor: not-allowed; }
.btn-danger { background: #9B4A4A; }
.btn-danger:hover { background: #7A3535; }
.btn-secondary { background: #8C7B6B; }
.btn-secondary:hover { background: #6B5E50; }
.btn-large { width: 100%; padding: 15px; font-size: 19px; font-weight: 700; }

/* Forms */
.booking-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #E8DDD0;
    margin-top: 24px;
}
.booking-form h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #7B5B3A;
    margin-bottom: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #4A3728;
    font-size: 18px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D4C9BC;
    border-radius: 4px;
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    color: #4A3728;
    background: #ffffff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #7B5B3A;
    box-shadow: 0 0 0 2px rgba(123, 91, 58, 0.15);
}
.required::after { content: " *"; color: #9B4A4A; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-text { font-size: 16px; color: #6B5848; margin-top: 6px; }

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.alert h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.alert-info { background: #F5F0EB; border: 1px solid #E8DDD0; color: #4A3728; }
.alert-success { background: #EAF2E5; border: 1px solid #C5DDB8; color: #3D5A2E; }
.alert-error { background: #F8EDED; border: 1px solid #E0C4C4; color: #9B4A4A; }
.alert-warning { background: #FFF8ED; border: 1px solid #E8D5B0; color: #6B5020; }

@media (max-width: 576px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* Pflicht-Haekchen AGB/Datenschutz */
.form-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #4A3728;
}
.form-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: #7B5B3A;
}

/* Handy: Karten und Formular mit etwas weniger Innenabstand */
@media (max-width: 576px) {
    .course-card { padding: 18px; }
    .booking-form { padding: 20px; }
    .course-actions .btn { width: 100%; text-align: center; }
}

/* Raumbild oben auf der Yoga-Seite */
.course-intro-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 440;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 28px;
    box-shadow: 0 6px 22px rgba(74, 55, 40, 0.12);
}

/* Sprungziel Anmeldeformular nicht unter der Kopfzeile */
#registration-form { scroll-margin-top: 110px; }

/* Buchen-Button und „Mehr erfahren“ in einer Zeile; aufgeklappt steht der Text darunter */
.course-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #E8DDD0; }
.course-footer .course-actions { margin-top: 0; }
.course-footer .course-details { border: 0; margin: 0; padding: 0; }
.course-footer .course-details[open] { flex-basis: 100%; }

/* Wochenplan: alle regelmaessigen Stunden auf einen Blick */
.wochenplan { background: #fff; border: 1px solid #E8DDD0; border-radius: 8px; margin: 10px 0 30px; overflow: hidden; }
.wochenplan-zeile { display: grid; grid-template-columns: 130px 150px 1fr 1fr; gap: 4px 16px; padding: 12px 20px; border-bottom: 1px solid #F0E8DE; color: #4A3728; text-decoration: none; font-size: 18px; }
.wochenplan-zeile:last-child { border-bottom: 0; }
.wochenplan-zeile:hover { background: #FBF7F2; text-decoration: none; }
.wochenplan-tag { font-weight: 700; color: #7B5B3A; }
.wochenplan-kurs small { color: #6B5848; font-size: 15px; }
.wochenplan-ort { color: #6B5848; }
@media (max-width: 767px) {
    .wochenplan-zeile { grid-template-columns: 1fr 1fr; padding: 12px 16px; }
    .wochenplan-kurs, .wochenplan-ort { grid-column: 1 / -1; }
}
.wochenplan-zeile:nth-child(odd) { background: #F8F1E8; }
.wochenplan-zeile:hover { background: #F1E6D8; }
.wochenplan .wochenplan-kopf, .wochenplan .wochenplan-kopf:hover { background: #F3EADF; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #7B5B3A; padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 767px) { .wochenplan-kopf { display: none; } }
