/**
 * Custom CSS
 * Diese Datei wird nach style.min.css geladen
 * Hier kannst du CSS-Anpassungen vornehmen ohne den Build-Prozess
 */

/* ==========================================================================
   Termin Buchen Button (Fixed)
   ========================================================================== */

.termin-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 28px;

    background-color: #C5B472;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;

    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

    cursor: pointer;

    transition: background-color 0.3s ease,
                opacity 0.4s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
}

.termin-button:hover {
    background-color: #9A819A;
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: translateX(-50%) translateY(-2px);
}

.termin-button.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.termin-button.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Icon im Button */
.termin-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .termin-button {
        padding: 12px 20px;
        font-size: 14px;
        bottom: 20px;
    }
}

/* ==========================================================================
   Termin Modal (OneDoc Widget)
   ========================================================================== */

.termin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background-color: rgba(0, 0, 0, 0);
    visibility: hidden;

    transition: background-color 0.3s ease, visibility 0.3s ease;
}

.termin-modal.is-open {
    background-color: rgba(0, 0, 0, 0.7);
    visibility: visible;
}

.termin-modal__content {
    position: relative;
    width: 100%;
    max-width: 1024px;
    max-height: 90vh;

    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    overflow: hidden;

    transform: scale(0.9) translateY(20px);
    opacity: 0;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

.termin-modal.is-open .termin-modal__content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.termin-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);

    cursor: pointer;

    transition: background-color 0.2s ease, transform 0.2s ease;
}

.termin-modal__close:hover {
    background-color: #f5f5f5;
    transform: scale(1.1);
}

.termin-modal__close svg {
    width: 20px;
    height: 20px;
    fill: #333333;
}

.termin-modal__iframe {
    display: block;
    width: 100%;
    height: 80vh;
    max-height: 700px;
    border: none;
}

/* Modal Mobile Anpassungen */
@media (max-width: 768px) {
    .termin-modal {
        padding: 10px;
    }

    .termin-modal__content {
        max-height: 95vh;
        border-radius: 8px;
    }

    .termin-modal__iframe {
        height: 85vh;
    }

    .termin-modal__close {
        top: 5px;
        right: 5px;
        width: 36px;
        height: 36px;
    }
}

/* Body scroll lock wenn Modal offen */
body.modal-open {
    overflow: hidden;
}
