/* Generisches Salon-Template – Layout + Buchungs-Modal */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #333;
    --hero-bg-height: auto;
    --hero-fade-height: 0;
    background-color: #ffffff;
    background-image: none;
}
.body-s { font-size: 14px; }
.body-m { font-size: 16px; }
.body-xs { font-size: 12px; color: #666; }
.h2 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.h3 { font-size: 1.25rem; margin: 0 0 1rem; }
/* Basis-Typo (Template + Booking nutzen .body-s, .body-m, .h2) */
.form-label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-input { margin-bottom: 18px; }
.input, .w-input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }

.template-nav {
    background: transparent;
    padding: 2px 16px;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    z-index: 30;
}
.template-nav-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.template-logo { display: inline-block; line-height: 0; cursor: pointer; }
.template-logo img { display: block; height: 66px; width: auto; margin: 7px auto 0; }
.template-content-bg {
    --nav-overlay-offset: 82px;
    position: relative;
    background: transparent;
    isolation: isolate;
    margin-top: calc(-1 * var(--nav-overlay-offset));
    padding-top: var(--nav-overlay-offset);
    --hero-bg-height: clamp(620px, 84vh, 980px);
    --hero-fade-height: clamp(150px, 24vh, 320px);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
        url("/template/assets/images/hero-bg.jpg");
    background-repeat: no-repeat, no-repeat;
    background-position: top center, top center;
    background-size: 100% var(--hero-bg-height), 100% var(--hero-bg-height);
}
.template-content-bg::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--hero-bg-height) - var(--hero-fade-height));
    height: var(--hero-fade-height);
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.18) 36%,
        rgba(255, 255, 255, 0.5) 62%,
        rgba(255, 255, 255, 0.8) 82%,
        rgba(255, 255, 255, 1) 100%
    );
}
.template-content-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.94) 22%,
            rgba(255, 255, 255, 0.26) 48%,
            rgba(255, 255, 255, 0.04) 74%,
            rgba(255, 255, 255, 0) 100%
        ),
        url("/template/assets/images/section1-bg.jpg");
    background-repeat: no-repeat, no-repeat;
    background-position: top center, bottom center;
    background-size: 100% 100%, 100% 100%;
}
.template-content-bg > * {
    position: relative;
    z-index: 1;
}
.template-hero { padding: 48px 24px 24px; text-align: center; background: transparent; }
.template-hero-title { font-size: 2rem; margin: 0 0 8px; }
.template-hero-city { margin: 0; color: #666; font-size: 1rem; }
.template-section { max-width: 1000px; margin: 0 auto; padding: 32px 24px; }
.template-section-title { font-size: 1.35rem; margin: 0 0 20px; }
.template-booking { padding: 24px; }

/* Einheitliche Typografie außerhalb der Booking-Card (wie "Termin buchen") */
.template-hero-title,
.template-section-title {
    font-family: "Instrument Serif", serif;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.08;
    color: #000;
}
#opening-hours .template-section-title,
#reviews .template-section-title {
    color: #8c2155;
}
.template-hero-city,
#opening-hours-text,
#reviews-text,
.template-footer,
.template-footer a {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    line-height: 1.36;
    color: #f7f1ed;
    font-weight: 500;
}
#opening-hours-text,
#reviews-text {
    color: #000;
}
.template-footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* Embedded Booking Card: Design-System wie Salon-1 Popup (Instrument Serif, Plus Jakarta Sans, #8c2155) */
.booking-section { padding: 50px 24px 52px; overflow-x: hidden; }
.booking-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(140, 33, 85, 0.08);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.1), 0 4px 14px rgba(0, 0, 0, 0.05);
    padding: 40px;
    font-family: "Plus Jakarta Sans", sans-serif;
    overflow: visible;
    font-size: 16px;
    line-height: 1.36;
    color: #240115;
    font-weight: 500;
    position: relative;
}
.booking-card::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: -34px;
    height: 54px;
    pointer-events: none;
    border-radius: 0 0 32px 32px;
    background: radial-gradient(65% 95% at 50% 0%, rgba(36, 1, 21, 0.18) 0%, rgba(36, 1, 21, 0.08) 34%, rgba(36, 1, 21, 0.02) 62%, rgba(36, 1, 21, 0) 100%);
    filter: blur(9px);
    z-index: -1;
}
.booking-card .booking-title,
.booking-card .h2 {
    font-family: "Instrument Serif", serif;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.08;
    color: #8c2155;
    margin: 0 0 0.5rem 0;
}
.booking-card .booking-title { margin-bottom: 24px; }
.booking-card .body-m {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    line-height: 1.36;
    color: #240115;
}
.booking-card .body-s,
.booking-card .form-label {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    line-height: 1.36;
    color: #8c2155a6;
    font-weight: 500;
}
.booking-card .body-xs { font-size: 12px; color: #8c2155a6; }
.booking-card .booking-service-name,
.booking-card .booking-duration,
.booking-card .booking-price { color: #240115; }
.booking-card .input,
.booking-card .w-input,
.booking-card .w-select {
    font-family: "Plus Jakarta Sans", sans-serif;
    width: 100%;
    height: 48px;
    padding: 12px 16px 14px;
    border: 1px solid #8c215526;
    border-radius: 10px;
    background-color: #8c215505;
    color: #8c2155;
    font-size: 16px;
    line-height: 1.36;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.booking-card .input:hover,
.booking-card .w-input:hover { background-color: #8c21550d; }
.booking-card .input:focus,
.booking-card .w-input:focus,
.booking-card .w-select:focus {
    border-color: #8c2155;
    background-color: #8c21550d;
    outline: none;
}
.booking-card .input::placeholder,
.booking-card .w-input::placeholder { color: #8c215573; }
.booking-card .w-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c2155' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}
.booking-card .booking-deposit-info { color: #8c2155a6; font-style: italic; }
.booking-card .template-cta,
.booking-card button[type="submit"] {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #8c2155;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}
.booking-card .template-cta:hover,
.booking-card button[type="submit"]:hover { background-color: #72073b; }
.booking-card button[type="submit"].w-form-loading {
    padding-left: 42px;
    opacity: 0.95;
    cursor: wait;
}
.booking-card button[type="submit"].w-form-loading::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: bookingSubmitSpin 0.8s linear infinite;
}
@keyframes bookingSubmitSpin {
    to { transform: rotate(360deg); }
}
#booking-root { width: 100%; overflow-x: hidden; }
#booking-root .booking-form,
#booking-root .form-input,
#booking-root .input,
#booking-root .w-input,
#booking-root .w-select { width: 100%; }
#booking-root .time-slot-container { width: 100%; }
/* Service/Dauer/Preis-Header nur sichtbar, wenn ein Service ausgewählt ist (per JS .booking-modal-header--visible) */
#booking-root .booking-modal-header { display: none; }
#booking-root .booking-modal-header.booking-modal-header--visible {
    display: block;
    opacity: 1;
    color: #240115;
}
#booking-root .booking-modal-header.booking-modal-header--visible .booking-service-name,
#booking-root .booking-modal-header.booking-modal-header--visible .booking-service-info {
    opacity: 1;
    color: #240115;
}
#booking-root .booking-modal-header.booking-modal-header--visible .booking-duration,
#booking-root .booking-modal-header.booking-modal-header--visible .booking-price {
    color: #333;
}

/* Salon-Kunden-Login/Registrierung (wenn require_customer_login aktiv) */
.salon-auth {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #240115;
}
.salon-auth .salon-auth-title {
    font-family: "Instrument Serif", serif;
    font-size: 1.75rem;
    color: #8c2155;
    margin: 0 0 8px 0;
}
.salon-auth .salon-auth-subtitle {
    font-size: 14px;
    color: #8c2155a6;
    margin: 0 0 24px 0;
}
.salon-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #8c215526;
}
.salon-auth-tabs button {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #8c2155a6;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.salon-auth-tabs button:hover { color: #8c2155; }
.salon-auth-tabs button.active {
    color: #8c2155;
    border-bottom-color: #8c2155;
}
.salon-auth .form-input { margin-bottom: 18px; }
.salon-auth .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #8c2155a6;
    font-weight: 500;
}
.salon-auth .input, .salon-auth input[type="email"], .salon-auth input[type="password"], .salon-auth input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #8c215526;
    border-radius: 10px;
    background-color: #8c215505;
    color: #240115;
    font-size: 16px;
    box-sizing: border-box;
}
.salon-auth .salon-auth-error {
    font-size: 14px;
    color: #c62828;
    margin-bottom: 16px;
    display: none;
}
.salon-auth .salon-auth-error.visible { display: block; }
.salon-auth .salon-auth-success {
    font-size: 14px;
    color: #2e7d32;
    margin-bottom: 16px;
    display: none;
}
.salon-auth .salon-auth-success.visible { display: block; }
.salon-auth .salon-auth-submit {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #8c2155;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
}
.salon-auth .salon-auth-submit:hover { background-color: #72073b; }
.salon-auth .salon-auth-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Logout-Leiste (wenn Kunden-Login aktiv und eingeloggt) */
.salon-logout-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}
.salon-logout-bar .salon-logout-btn {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    color: #8c2155a6;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    text-decoration: underline;
}
.salon-logout-bar .salon-logout-btn:hover { color: #8c2155; }

/* Zeitslots im Buchungsbereich: wie Popup (hellgrün, dunkelgrüne Schrift) */
.booking-card .time-slot {
    font-family: "Plus Jakarta Sans", sans-serif;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    background-color: #e8f5e9;
    color: #155724;
}
.booking-card .time-slot__time {
    font-size: 15px;
    font-weight: 600;
    color: #388e3c;
}
.booking-card .time-slot__capacity {
    font-size: 11px;
    font-weight: 500;
    color: #66bb6a;
}
.booking-card .time-slot:hover { background-color: #c8e6c9; border-color: #81c784; }
.booking-card .time-slot--green {
    border-color: #a5d6a7;
    background-color: #e8f5e9;
    color: #155724;
}
.booking-card .time-slot--green .time-slot__time { color: #388e3c; }
.booking-card .time-slot--green .time-slot__capacity { color: #66bb6a; }
.booking-card .time-slot--bookable { border-color: #a5d6a7; background-color: #e8f5e9; color: #155724; }
.booking-card .time-slot--bookable:hover { background-color: #c8e6c9; }
/* Ausgewählter Slot: gesamtes Feld dunkelgrün (überschreibt --green/--bookable) */
.booking-card .time-slot.time-slot--selected,
.booking-card .time-slot--selected,
.booking-card .time-slot--selected.time-slot--green,
.booking-card .time-slot--selected.time-slot--bookable {
    background-color: #0d4d14 !important;
    border-color: #0d4d14 !important;
    border-width: 2px;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 77, 20, 0.5);
}
.booking-card .time-slot--selected .time-slot__time,
.booking-card .time-slot--selected .time-slot__capacity { color: #fff; }
.booking-card .time-slot--selected:hover,
.booking-card .time-slot.time-slot--selected:hover {
    background-color: #083d10;
    border-color: #083d10;
}
.booking-card .time-slot-selected-info { color: #0d4d14; background-color: #e8f5e9; }
.booking-card .time-slot-loading,
.booking-card .time-slot-error { font-family: "Plus Jakarta Sans", sans-serif; }

.service-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.service-block { display: block; padding: 16px; background: #2d5a2d; color: #fff; text-align: center; border-radius: 8px; text-decoration: none; font-weight: 500; transition: background 0.2s; }
.service-block:hover { background: #1a3a1a; color: #fff; }
.template-gallery-slider { display: flex; align-items: center; gap: 12px; }
.template-gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding-top: 12px;
    padding-bottom: 18px;
}
.template-gallery-track::-webkit-scrollbar { display: none; }
.template-gallery-slide {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}
#gallery.template-section { padding-top: 0; padding-bottom: 0; }
.template-gallery-placeholder { aspect-ratio: 1; background: #eee; border-radius: 8px; }
.template-gallery-image {
    width: 100%;
    aspect-ratio: 3 / 4.6;
    object-fit: cover;
    border-radius: 22px;
    display: block;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    box-shadow: 0 10px 28px rgba(36, 1, 21, 0.08);
}
.template-gallery-image.is-empty {
    background: rgba(255, 255, 255, 0.35);
    border: 1px dashed rgba(140, 33, 85, 0.28);
    box-shadow: none;
    object-fit: contain;
}
.template-gallery-slide:nth-child(odd) .template-gallery-image {
    /* Rahmen 1 (wie initial aus Screenshot) */
    border-radius: 180px 180px 22px 22px;
}
.template-gallery-slide:nth-child(even) .template-gallery-image {
    /* Rahmen 2 (wie initial aus Screenshot) */
    border-radius: 999px;
}
.template-gallery-slide:hover .template-gallery-image {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 18px 34px rgba(36, 1, 21, 0.14);
    filter: saturate(1.04) brightness(1.02);
}
.template-gallery-nav {
    border: 1px solid #8c215526;
    background: #fff;
    color: #8c2155;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.template-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.template-section.template-two-col { padding-top: 56px; }
@media (max-width: 600px) { .template-two-col { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .template-gallery-slider { gap: 8px; }
    .template-gallery-track {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 14px;
    }
    .template-gallery-slide {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }
    .template-gallery-image {
        aspect-ratio: 3 / 4.2;
    }
}
.template-card { padding: 20px; background: transparent; border-radius: 8px; }
.template-map-embed {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #8c215526;
    background: #fff;
    margin-bottom: 40px;
}
.template-map-embed iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}
.template-location {
    padding-top: 40px;
    padding-bottom: 72px;
}
.template-location .template-card {
    padding-bottom: 28px;
}
.template-footer { text-align: center; padding: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.template-footer a { color: #f7f1ed; }
.template-cta { background: #2d5a2d; color: #fff; border: none; padding: 12px 24px; border-radius: 6px; cursor: pointer; font-weight: 500; }

/* ========== Booking Modal – Stile für eingebetteten Kalender (Template) ========== */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
.booking-modal.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
}
.booking-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    margin: auto;
    font-size: 16px;
    color: #333;
}
/* Embedded: gleiche Klassen, .booking-card liefert Rahmen – kein Doppel-Padding */
.booking-card .booking-modal-content {
    padding: 0;
    max-width: none;
    box-shadow: none;
    max-height: none;
    border-radius: 0;
}
.booking-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.booking-modal-close:hover {
    color: #000;
}
.booking-modal-header {
    margin-bottom: 30px;
}
.booking-service-name {
    margin-top: 10px;
    margin-bottom: 15px;
}
.booking-service-info {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.booking-duration,
.booking-price {
    color: #666;
}
.booking-form {
    margin-top: 20px;
}
.booking-form-error {
    background-color: #fee;
    color: #c33;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #dc3545;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.booking-form-error.error-visible {
    opacity: 1;
    transform: translateY(0);
}
.booking-deposit-info {
    margin-top: 8px;
    color: #666;
    font-style: italic;
}
.booking-form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.booking-cancel-button {
    background-color: transparent;
    border: 1px solid #ddd;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
}
.booking-cancel-button:hover {
    background-color: #f5f5f5;
}
.booking-success {
    margin-top: 20px;
    padding: 30px;
    background-color: #f0f9f0;
    border-radius: 4px;
}
.booking-success-title {
    color: #2d5a2d;
    margin-bottom: 15px;
    text-align: center;
}
.booking-success-text {
    color: #2d5a2d;
    text-align: center;
    margin-bottom: 25px;
}
.booking-success-details {
    margin: 25px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
}
.booking-success-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.booking-success-detail-item:last-child {
    border-bottom: none;
}
.booking-detail-label {
    color: #666;
    font-weight: 500;
}
.booking-detail-value {
    color: #333;
    text-align: right;
}
.booking-deposit-info-section,
.booking-no-deposit-section {
    margin-top: 25px;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    border-left: 4px solid #2d5a2d;
}
/* Eingebetteter Kalender: Erfolg/Deposit in Salon-1-Akzent (#8c2155) */
.booking-card .booking-success-title,
.booking-card .booking-success-text { color: #8c2155; }
.booking-card .booking-deposit-info-section,
.booking-card .booking-no-deposit-section { border-left-color: #8c2155; }
.booking-card .booking-payment-reference code { color: #8c2155; }
.booking-card .booking-cancel-button {
    font-family: "Plus Jakarta Sans", sans-serif;
    border: 1px solid #8c215526;
    color: #8c2155;
    background-color: transparent;
}
.booking-card .booking-cancel-button:hover { background-color: #8c215505; }
.booking-deposit-text,
.booking-no-deposit-text {
    color: #333;
    margin-bottom: 15px;
}
.booking-payment-reference {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
}
.booking-payment-reference code {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #2d5a2d;
    font-weight: bold;
    letter-spacing: 1px;
}
.booking-iban-text {
    color: #666;
    margin-top: 10px;
    text-align: center;
}
body.booking-modal-open {
    overflow: hidden;
}

/* Optional embed mode: only show booking window */
body.booking-embed-only {
    background: #ffffff;
    overflow-x: hidden;
}
.booking-embed-only-root,
body.booking-embed-only {
    overflow: hidden;
}
body.booking-embed-only .template-nav,
body.booking-embed-only .template-hero,
body.booking-embed-only #gallery,
body.booking-embed-only .template-two-col,
body.booking-embed-only .template-location,
body.booking-embed-only .template-footer {
    display: none !important;
}
body.booking-embed-only .template-content-bg {
    margin-top: 0;
    padding-top: 0;
    background: none !important;
}
body.booking-embed-only .template-content-bg::before,
body.booking-embed-only .template-content-bg::after {
    display: none;
}
body.booking-embed-only .booking-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 0 8px;
}

/* Time Slots – sichtbar, kein horizontales Scrollen */
.time-slot-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
    min-width: 0;
}
#time-slot-section {
    visibility: visible;
}
.time-slot {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.time-slot__time {
    font-size: 15px;
    font-weight: 600;
}
.time-slot__capacity {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
}
.time-slot:hover {
    border-color: #2d5a2d;
    background-color: #f9f9f9;
}
.time-slot--green {
    border-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}
.time-slot--yellow {
    border-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}
.time-slot--red {
    border-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}
.time-slot--free {
    border-color: #ccc;
    color: #666;
    opacity: 0.6;
    cursor: not-allowed;
}
.time-slot--free:hover {
    border-color: #ccc;
    background-color: #fff;
}
.time-slot--booked {
    border-color: #ddd;
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}
.time-slot--bookable {
    border-color: #2d5a2d;
    background-color: #fff;
    color: #2d5a2d;
    cursor: pointer;
}
.time-slot--bookable:hover {
    background-color: #f0f9f0;
    border-color: #1a3a1a;
}
.time-slot--bookable.time-slot--green {
    border-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}
.time-slot--bookable.time-slot--green:hover {
    background-color: #c3e6cb;
    border-color: #1e7e34;
}
.time-slot--bookable.time-slot--yellow {
    border-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}
.time-slot--bookable.time-slot--yellow:hover {
    background-color: #ffe69c;
    border-color: #e0a800;
}
.time-slot--red {
    cursor: not-allowed !important;
}
.time-slot--selected {
    background-color: #2d5a2d;
    color: #fff;
    border-color: #2d5a2d;
    font-weight: 600;
}
.time-slot--selected:hover {
    background-color: #1a3a1a;
    border-color: #1a3a1a;
}
.time-slot-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}
.time-slot-error {
    padding: 12px;
    background-color: #fee;
    color: #c33;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}
.time-slot-selected-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f9f0;
    border-radius: 4px;
    color: #2d5a2d;
}
.w-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
/* Form: gleiche Abstände/Schrift wie Modal (Salon-1) */
.form-input {
    display: flex;
    flex-flow: column;
    grid-column-gap: 8px;
    grid-row-gap: 8px;
    margin-bottom: 18px;
}
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}
.input,
.w-input {
    width: 100%;
    padding: 12px 16px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fafafa;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.2s, background-color 0.2s;
}
.input:hover,
.w-input:hover {
    background-color: #f5f5f5;
}
.input:focus,
.w-input:focus {
    border-color: #2d5a2d;
    background-color: #fff;
    outline: none;
}
.input::placeholder,
.w-input::placeholder {
    color: #999;
}
/* Mobile: wie Salon-1 */
@media (max-width: 767px) {
    .time-slot-container {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }
    .time-slot {
        padding: 10px 12px;
        font-size: 13px;
    }
    .booking-modal {
        padding: 10px;
    }
    .booking-modal-content {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 20px);
    }
    .booking-card .booking-modal-content {
        padding: 0;
    }
    .booking-form-buttons {
        flex-direction: column;
    }
    .booking-form-buttons .button {
        width: 100%;
    }
    .booking-form-buttons button[type="submit"],
    .booking-form-buttons .booking-cancel-button {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
    }
    .booking-service-info {
        flex-direction: column;
        gap: 10px;
    }
    .booking-success-details {
        padding: 15px;
    }
}
