/* ============================================================
   JID Booking – Karten & Overlay
   ============================================================ */

/* === Sektion === */
.jid-booking-section {
    padding: 80px 0;
    background: var(--bs-light, #f8f5f2);
}

.jid-booking-title {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--secondary-color, #2c2c2c);
    margin: 0 0 12px;
}

.jid-booking-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* === Karten-Grid === */
.jid-booking-cards {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.jid-booking-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.jid-booking-card:hover {
    box-shadow: 0 6px 32px rgba(155,26,47,.15);
    transform: translateY(-2px);
}

.jid-booking-card__icon {
    color: var(--primary-color, #9b1a2f);
    margin-bottom: 16px;
}

.jid-booking-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #2c2c2c;
    margin: 0 0 16px;
}

.jid-booking-card__price-wrap {
    margin-bottom: 24px;
}

.jid-booking-price {
    display: inline-block;
    border: 1.5px solid #ccc;
    border-radius: 40px;
    padding: 8px 28px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color, #9b1a2f);
}

.jid-booking-price--free {
    color: var(--primary-color, #9b1a2f);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* Feature-Liste */
.jid-booking-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    width: 100%;
    text-align: left;
}

.jid-booking-card__features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0eded;
    font-size: .95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jid-booking-card__features li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b1a2f' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Button */
.jid-booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color, #9b1a2f);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
    margin-top: auto;
}

.jid-booking-btn:hover {
    background: var(--primary-color-dark, #7a1424);
    color: #fff;
    transform: translateY(-1px);
}

.jid-booking-btn:active {
    transform: translateY(0);
}

/* ============================================================
   Overlay
   ============================================================ */
.jid-booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.jid-booking-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.jid-booking-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.jid-booking-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 4px;
}

.jid-booking-close:hover { color: #333; }

.jid-step h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    color: #2c2c2c;
    margin: 0 0 6px;
}

.jid-service-label {
    color: var(--primary-color, #9b1a2f);
    font-size: .9rem;
    font-weight: 600;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* === Kalender === */
.jid-calendar {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.jid-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color, #9b1a2f);
    color: #fff;
    padding: 8px 16px;
}

.jid-cal-nav button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background .15s;
}

.jid-cal-nav button:hover { background: rgba(255,255,255,.2); }
.jid-cal-nav button:disabled { opacity: .35; cursor: default; }

.jid-cal-month-label {
    font-weight: 600;
    font-size: 1rem;
}

.jid-cal-grid {
    padding: 8px;
}

.jid-cal-dow {
    display: inline-block;
    width: calc(100% / 7);
    text-align: center;
    font-size: .78rem;
    font-weight: 600;
    color: #999;
    padding: 2px 0 4px;
}

.jid-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.jid-cal-day {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .85rem;
    margin: 0 auto;
    cursor: default;
    color: #ccc;
    transition: background .15s, color .15s;
}

.jid-cal-day--available {
    color: #2c2c2c;
    cursor: pointer;
    font-weight: 500;
}

.jid-cal-day--available:hover {
    background: var(--primary-color-hover, #f5e6e8);
    color: var(--primary-color, #9b1a2f);
}

.jid-cal-day--selected {
    background: var(--primary-color, #9b1a2f);
    color: #fff;
}

.jid-cal-day--today {
    border: 1.5px solid var(--primary-color, #9b1a2f);
    color: var(--primary-color, #9b1a2f);
}

.jid-cal-day--today.jid-cal-day--selected {
    border-color: transparent;
    color: #fff;
}

/* === Slots === */
.jid-slots-hint {
    color: #999;
    font-size: .9rem;
    margin: 8px 0;
}

.jid-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.jid-slot-btn {
    background: var(--primary-color-light, #f9f0f1);
    border: 1.5px solid var(--primary-color-border, #e8cdd0);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: .9rem;
    color: var(--primary-color, #9b1a2f);
    cursor: pointer;
    font-weight: 500;
    transition: background .15s, border-color .15s;
}

.jid-slot-btn:hover,
.jid-slot-btn.is-selected {
    background: var(--primary-color, #9b1a2f);
    border-color: var(--primary-color, #9b1a2f);
    color: #fff;
}

/* === Schritt 2: Formular === */
.jid-back-btn {
    background: none;
    border: none;
    color: var(--primary-color, #9b1a2f);
    cursor: pointer;
    font-size: .9rem;
    padding: 0;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jid-back-btn:hover { text-decoration: underline; }

.jid-selected-slot-label {
    background: var(--primary-color-light, #f9f0f1);
    border-left: 3px solid var(--primary-color, #9b1a2f);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: .95rem;
    color: #555;
    margin: 0 0 24px;
}

.jid-form-group {
    margin-bottom: 18px;
}

.jid-form-group label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.jid-form-group label span { color: var(--primary-color, #9b1a2f); }

.jid-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color .15s;
    box-sizing: border-box;
}

.jid-form-group input:focus {
    outline: none;
    border-color: var(--primary-color, #9b1a2f);
}

.jid-privacy-note {
    font-size: .82rem;
    color: #888;
    margin: 0 0 20px;
    line-height: 1.5;
}

.jid-privacy-note a { color: var(--primary-color, #9b1a2f); }

.jid-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--primary-color, #9b1a2f);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .9rem;
    margin-bottom: 16px;
}

.jid-submit-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
}

/* === Schritt 3: Erfolg === */
.jid-success {
    text-align: center;
    padding: 20px 0;
}

.jid-success svg { margin-bottom: 16px; }

.jid-success h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #2c2c2c;
    margin: 0 0 12px;
}

.jid-success p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 28px;
}

.jid-close-success {
    margin: 0 auto;
}

/* === Lade-Spinner === */
.jid-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.jid-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #f0e0e2;
    border-top-color: var(--primary-color, #9b1a2f);
    border-radius: 50%;
    animation: jid-spin .7s linear infinite;
}

@keyframes jid-spin { to { transform: rotate(360deg); } }

/* === Responsive === */
@media (max-width: 640px) {
    .jid-booking-modal {
        padding: 24px 20px;
    }
    .jid-booking-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .jid-slot-btn {
        padding: 8px 12px;
        font-size: .85rem;
    }
}
