/**
 * LDR Popup — Frontend-Styles
 *
 * Bewusst zurückhaltend: Farben und Schriften kommen aus dem YOOtheme-Pro-Stil
 * der jeweiligen Website. Hier stehen nur Struktur, mobile Darstellung und die
 * Besonderheiten des Plugins.
 *
 * @package LDR\Popup
 * @author  AGENTUR LEDERER
 */

:root {
    --ldr-popup-radius: 16px;
    --ldr-popup-gap: 12px;
}

/* ---------------------------------------------------------------------------
   Dialog
   --------------------------------------------------------------------------- */

.ldr-popup .ldr-popup-dialog {
    border-radius: var(--ldr-popup-radius);
    overflow: hidden;
}

.ldr-popup.uk-modal-full .ldr-popup-dialog {
    border-radius: 0;
}

.ldr-popup--schmal .ldr-popup-dialog {
    width: 420px;
}

.ldr-popup .ldr-popup-header {
    padding-bottom: 0;
    border-bottom: none;
}

.ldr-popup .ldr-popup-titel {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0;
}

/* Stil-Varianten */

.ldr-popup--primary .ldr-popup-dialog {
    background: var(--ldr-popup-bg, #1e87f0);
    color: #fff;
}

.ldr-popup--secondary .ldr-popup-dialog {
    background: #222;
    color: #fff;
}

.ldr-popup--dunkel .ldr-popup-dialog {
    background: #1a1a1a;
    color: #fff;
}

.ldr-popup--primary .ldr-popup-titel,
.ldr-popup--secondary .ldr-popup-titel,
.ldr-popup--dunkel .ldr-popup-titel,
.ldr-popup--primary .ldr-popup-body,
.ldr-popup--secondary .ldr-popup-body,
.ldr-popup--dunkel .ldr-popup-body {
    color: inherit;
}

.ldr-popup--primary .uk-modal-close-default,
.ldr-popup--secondary .uk-modal-close-default,
.ldr-popup--dunkel .uk-modal-close-default {
    color: #fff;
}

/* ---------------------------------------------------------------------------
   Mobile Darstellung
   --------------------------------------------------------------------------- */

@media (max-width: 639px) {

    /* Von unten einfahren (Bottom-Sheet) */
    .ldr-popup--m-sheet.uk-modal {
        padding: 0;
    }

    .ldr-popup--m-sheet.uk-modal.uk-open,
    .ldr-popup--m-sheet.uk-modal.uk-flex {
        display: flex !important;
        align-items: flex-end !important;
    }

    .ldr-popup--m-sheet .ldr-popup-dialog {
        width: 100%;
        margin: 0 !important;
        max-height: 92vh;
        border-radius: var(--ldr-popup-radius) var(--ldr-popup-radius) 0 0;
        transform: translateY(100%);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .ldr-popup--m-sheet.uk-open .ldr-popup-dialog {
        transform: translateY(0);
    }

    .ldr-popup--m-sheet .ldr-popup-body {
        max-height: 76vh;
    }

    /* Vollbild */
    .ldr-popup--m-voll.uk-modal {
        padding: 0;
    }

    .ldr-popup--m-voll .ldr-popup-dialog {
        width: 100%;
        min-height: 100%;
        margin: 0 !important;
        border-radius: 0;
    }
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */

.ldr-popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ldr-popup-gap);
}

.ldr-popup-buttons--reihe {
    flex-direction: row;
}

.ldr-popup-buttons--spalte {
    flex-direction: column;
}

.ldr-popup-buttons--auto {
    flex-direction: row;
}

@media (max-width: 639px) {
    .ldr-popup-buttons--auto {
        flex-direction: column;
    }
}

.ldr-popup-buttons--gap-small {
    --ldr-popup-gap: 8px;
}

.ldr-popup-buttons--gap-default {
    --ldr-popup-gap: 14px;
}

.ldr-popup-buttons--gap-medium {
    --ldr-popup-gap: 22px;
}

.ldr-popup-buttons.uk-text-center {
    justify-content: center;
}

.ldr-popup-buttons.uk-text-right {
    justify-content: flex-end;
}

.ldr-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.2;
}

.ldr-popup-btn--pill {
    border-radius: 999px;
}

.ldr-popup-btn--rund {
    border-radius: 8px;
}

.ldr-popup-btn--eckig {
    border-radius: 0;
}

.ldr-popup-btn--hell {
    background: #fff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.ldr-popup-btn--hell:hover,
.ldr-popup-btn--hell:focus {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
}

.ldr-popup-btn--zweizeilig {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.ldr-popup-btn-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
}

.ldr-popup-btn-zusatz {
    font-size: .8em;
    font-weight: 400;
    opacity: .75;
    text-transform: none;
}

.ldr-popup-btn-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.ldr-popup-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   Standorte
   --------------------------------------------------------------------------- */

.ldr-popup-standorte,
.ldr-popup-eintraege {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ldr-popup-standorte--karten {
    flex-direction: row;
    flex-wrap: wrap;
}

.ldr-popup-standorte--karten > .ldr-popup-standort {
    flex: 1 1 240px;
}

.ldr-popup-eintraege:not(:empty) {
    margin-top: 18px;
}

.ldr-popup-standort {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.ldr-popup-standort-bild img {
    width: 96px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.ldr-popup-standort-name {
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ldr-popup-standort-adresse,
.ldr-popup-standort-zeiten,
.ldr-popup-standort-hinweis {
    font-size: .9em;
    opacity: .8;
}

.ldr-popup-standort-aktionen {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ldr-popup-trenner {
    margin: 4px 0;
    opacity: .4;
}

.ldr-popup-hinweis {
    opacity: .7;
    font-size: .9em;
}

/* ---------------------------------------------------------------------------
   iFrame
   --------------------------------------------------------------------------- */

.ldr-popup-frame {
    position: relative;
    width: 100%;
    height: var(--ldr-frame-h, 760px);
}

.ldr-popup-frame--gross {
    height: 80vh;
}

@media (max-width: 639px) {
    .ldr-popup-frame {
        height: var(--ldr-frame-h-m, 560px);
    }

    .ldr-popup-frame--gross {
        height: 78vh;
    }
}

.ldr-popup-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ldr-popup-frame-laden {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9em;
    opacity: .6;
    pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Quelle für „Builder-Bereich per ID"
   --------------------------------------------------------------------------- */

.ldr-popup-quelle {
    display: none;
}

/* ---------------------------------------------------------------------------
   Platzhalter — nur in der Builder-Vorschau sichtbar
   --------------------------------------------------------------------------- */

.ldr-popup-platzhalter {
    display: none;
}

.ldr-popup-builder .ldr-popup-platzhalter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border: 1px dashed rgba(0, 0, 0, .25);
    border-radius: 8px;
    background: rgba(0, 0, 0, .03);
    font-size: 13px;
    line-height: 1.4;
}

.ldr-popup-platzhalter-label {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .6;
}

.ldr-popup-platzhalter-info {
    opacity: .7;
}
