.softtec-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.softtec-lightbox.active {
    display: flex;
}

.softtec-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.softtec-lightbox-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.softtec-lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    background: #2b4c85;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.softtec-lightbox-close:hover {
    background: #1e3560;
}

.softtec-ibe-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Kompakter Container wenn Pre-Form aktiv */
.softtec-lightbox-container.softtec-container--form {
    height: auto;
    max-width: 520px;
}

/* Pre-Booking-Formular */
.softtec-prebook-form {
    padding: 36px 32px 28px;
    font-family: inherit;
}

.softtec-prebook-title {
    margin: 0 0 20px;
    font-size: 18px;
    color: #2b4c85;
}

.softtec-prebook-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.softtec-prebook-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.softtec-prebook-field label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.softtec-prebook-field input,
.softtec-prebook-field select {
    padding: 11px 14px;
    border: 1.5px solid #d0d8e4;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    background: #f5f7fb;
    color: #333;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.softtec-prebook-field input:focus,
.softtec-prebook-field select:focus {
    outline: none;
    border-color: #2b4c85;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(43, 76, 133, 0.1);
}

.softtec-prebook-field input[readonly] {
    cursor: pointer;
    background: #f5f7fb;
}

.softtec-prebook-field input[readonly]:focus {
    background: #fff;
}

/* Trigger-Button */
.softtec-ibe-trigger {
    display: inline-block;
    padding: 13px 32px !important;
    border-radius: 8px !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Litepicker über der Lightbox anzeigen */
.litepicker {
    z-index: 10000 !important;
}

.softtec-prebook-childages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.softtec-prebook-submit {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #2b4c85;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.softtec-prebook-submit:hover {
    background: #1e3560;
    box-shadow: 0 4px 12px rgba(43, 76, 133, 0.25);
}

@media (max-width: 768px) {
    .softtec-lightbox-container {
        width: calc(100% - 20px);
        height: calc(100vh - 20px);
        border-radius: 4px;
    }

    .softtec-lightbox-container.softtec-container--form {
        height: auto;
        max-width: 100%;
    }

    .softtec-prebook-row {
        flex-direction: column;
        gap: 12px;
    }

    .softtec-prebook-form {
        padding: 28px 20px 24px;
    }
}
