/* ===================================================================
 * NOVOGRAV - Cookie-Banner (CookieConsent v3) und 2-Klick-Lösung
 * für externe Medien (YouTube, Vimeo, Google Maps, Newsletter)
 * =================================================================== */

/* ---------- Cookie-Banner im NOVOGRAV-Design ---------- */
#cc-main {
    --cc-font-family: "Saira Semi Condensed", sans-serif;
    --cc-modal-border-radius: 4px;
    --cc-btn-border-radius: 3px;
    --cc-primary-color: #003D4E;
    --cc-secondary-color: #333333;
    --cc-link-color: #003D4E;
    /* gleichwertige Buttons: "Akzeptieren" und "Ablehnen" gleich gestaltet */
    --cc-btn-primary-bg: #003D4E;
    --cc-btn-primary-border-color: #003D4E;
    --cc-btn-primary-color: #ffffff;
    --cc-btn-primary-hover-bg: #002a37;
    --cc-btn-primary-hover-border-color: #002a37;
    --cc-btn-secondary-bg: #003D4E;
    --cc-btn-secondary-border-color: #003D4E;
    --cc-btn-secondary-color: #ffffff;
    --cc-btn-secondary-hover-bg: #002a37;
    --cc-btn-secondary-hover-border-color: #002a37;
    --cc-toggle-on-bg: #003D4E;
    --cc-cookie-category-block-bg: #eef1f3;
    --cc-cookie-category-block-hover-bg: #e6eef1;
    --cc-footer-bg: #eef1f3;
}
#cc-main .cm__title,
#cc-main .pm__title { font-size: 20px; font-weight: 700; }
#cc-main .pm__badge { background: #e6eef1; color: #003D4E; }
#cc-main .cm__desc,
#cc-main .pm__section-desc { font-size: 15px; line-height: 1.55; }

/* ---------- Platzhalter für externe Inhalte ---------- */
.ext-consent:not(.is-loaded) {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #003D4E 0%, #00222c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    max-width: 100%;
}
.ext-consent[data-provider="maps"]:not(.is-loaded) {
    aspect-ratio: auto;
    min-height: 320px;
}
.ext-consent[data-provider="newsletter"]:not(.is-loaded) {
    aspect-ratio: auto;
    min-height: 300px;
    max-width: 780px;
}
.ext-consent.is-loaded iframe {
    display: block;
    max-width: 100%;
    border: 0;
}
.ext-consent[data-provider="newsletter"].is-loaded iframe { width: 780px; height: 530px; }

.ext-consent__inner {
    max-width: 560px;
    padding: 24px;
    text-align: center;
}
.ext-consent__icon {
    display: inline-block;
    width: 64px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    margin-bottom: 12px;
}
/* Play-Symbol (Videos) */
.ext-consent__icon--youtube::after,
.ext-consent__icon--vimeo::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 12px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #ffffff;
}
/* Ortsmarke (Karte) */
.ext-consent__icon--maps::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 7px;
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}
/* Briefumschlag (Newsletter) */
.ext-consent__icon--newsletter::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 11px;
    width: 30px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 2px;
    box-sizing: border-box;
}
.ext-consent__icon--newsletter::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 7px;
    width: 14px;
    height: 14px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

.legacy .ext-consent__title,
.ext-consent__title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    text-align: center;
}
.legacy .ext-consent__text,
.ext-consent__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;
    text-align: center;
}
.legacy .ext-consent__text a,
.ext-consent__text a { color: #ffffff; text-decoration: underline; }
.ext-consent__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.ext-consent__btn {
    font-family: "Saira Semi Condensed", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 18px;
    border: 1px solid #ffffff;
    border-radius: 3px;
    background: #ffffff;
    color: #003D4E;
    cursor: pointer;
}
.ext-consent__btn:hover { background: #e6eef1; }
.ext-consent__btn--ghost {
    background: transparent;
    color: #ffffff;
}
.ext-consent__btn--ghost:hover { background: rgba(255, 255, 255, 0.15); }

@media (max-width: 600px) {
    .ext-consent:not(.is-loaded) { aspect-ratio: auto; }
    .legacy .ext-consent__text,
    .ext-consent__text { font-size: 13px; }
}
