/* Einwilligungs-Banner (T-20). Markup: include/consent.php, Logik: js/consent.js */

.pk-consent {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 18px 20px;
    background: #fff;
    color: #212529;
    border: 1px solid #b9c2cb;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.pk-consent[hidden] {
    display: none;
}

.pk-consent__title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 600;
}

.pk-consent__text {
    margin: 0 0 14px;
}

.pk-consent__text a {
    color: #015674;
    text-decoration: underline;
}

.pk-consent__settings {
    margin: 0 0 14px;
    padding: 12px 0;
    border-top: 1px solid #dde3e8;
    border-bottom: 1px solid #dde3e8;
}

.pk-consent__settings[hidden] {
    display: none;
}

.pk-consent__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.pk-consent__row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #d42d91;
}

.pk-consent__row label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.pk-consent__row label span {
    color: #4b5563;
    font-size: 0.875rem;
}

.pk-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* "Nur notwendige" und "Alle akzeptieren" bewusst mit identischer Gestaltung
   (gleichwertige Entscheidung), ebenso "Auswahl speichern". */
.pk-consent__btn {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 8px 16px;
    background: #fff;
    color: #212529;
    border: 2px solid #d42d91;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.pk-consent__btn:hover,
.pk-consent__btn:focus-visible {
    background: #d42d91;
    color: #fff;
}

.pk-consent__link {
    flex: 0 0 100%;
    padding: 4px 0;
    background: none;
    border: 0;
    color: #015674;
    font: inherit;
    text-decoration: underline;
    text-align: center;
    cursor: pointer;
}

.pk-consent__settings .pk-consent__btn {
    width: 100%;
}

.pk-consent button:focus-visible,
.pk-consent a:focus-visible,
.pk-consent input:focus-visible {
    outline: 3px solid #015674;
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .pk-consent {
        right: 8px;
        bottom: 8px;
        width: calc(100vw - 16px);
        padding: 14px;
    }
}

/* Externe iframes mit Klick-zum-Laden (T-21). Markup: include/embed_consent.php, Logik: js/embed_consent.js */

.embed-consent {
    width: 100%;
    margin: 0 0 20px;
    background: #eef3f6;
    border: 1px solid #b9c2cb;
    border-radius: 8px;
    overflow: hidden;
}

.embed-consent--map {
    max-width: none;
    aspect-ratio: 16 / 9;
}

.embed-consent--form {
    min-height: 260px;
}

.embed-consent.is-loaded {
    background: none;
    border: 0;
    border-radius: 0;
}

.embed-consent__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: inherit;
    padding: 24px 20px;
    text-align: center;
}

.embed-consent__text {
    max-width: 560px;
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #212529;
}

.embed-consent__text a,
.embed-consent__alt a {
    color: #015674;
    text-decoration: underline;
}



.embed-consent__btn:focus-visible,
.embed-consent__alt a:focus-visible {
    outline: 3px solid #015674;
    outline-offset: 2px;
}

.embed-consent__alt {
    margin: 14px 0 0;
    font-size: 0.875rem;
}

.embed-consent__frame {
    display: block;
    width: 100%;
    border: 0;
}

.embed-consent--map .embed-consent__frame {
    height: 100%;
}

.embed-consent--form .embed-consent__frame {
    height: 750px;
}

/* Optionales Vorschaubild im Platzhalter (lokale Datei, z. B. /img/rundgang-vorschau.jpg) */

.embed-consent--poster .embed-consent__placeholder {
    position: relative;
    padding: 16px;
}

.embed-consent__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.embed-consent__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.embed-consent--poster .embed-consent__panel {
    max-width: 520px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.93);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.embed-consent--poster .embed-consent__text {
    margin-bottom: 12px;
}
