/* Local overlay and equal buttons; page geometry/scrollbar stay unchanged. */
footer.pb-5 { position: relative; }
.cookie-settings-link {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    font: inherit;
    font-size: 0.875rem;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    text-decoration: underline;
    white-space: nowrap;
}
/* Existing site palette and button hover face; pale site buttons fail AA. */
#cc-main {
    --consent-strong-color: var(--heading-color, #517839);
    --cc-font-family: Roboto, sans-serif;
    --cc-primary-color: var(--text-color, #6b6b6b);
    --cc-secondary-color: var(--text-color, #6b6b6b);
    --cc-bg: var(--main-bg-color, #fbfbfa);
    --cc-modal-border-radius: 10px;
    --cc-btn-border-radius: 10px;
    --cc-btn-primary-bg: var(--consent-strong-color);
    --cc-btn-primary-color: var(--main-bg-color, #fbfbfa);
    --cc-btn-primary-border-color: var(--consent-strong-color);
    --cc-btn-primary-hover-bg: var(--text-color, #6b6b6b);
    --cc-btn-primary-hover-color: var(--main-bg-color, #fbfbfa);
    --cc-btn-primary-hover-border-color: var(--text-color, #6b6b6b);
    --cc-btn-secondary-bg: var(--cc-btn-primary-bg);
    --cc-btn-secondary-color: var(--cc-btn-primary-color);
    --cc-btn-secondary-border-color: var(--cc-btn-primary-border-color);
    --cc-btn-secondary-hover-bg: var(--cc-btn-primary-hover-bg);
    --cc-btn-secondary-hover-color: var(--cc-btn-primary-hover-color);
    --cc-btn-secondary-hover-border-color: var(--cc-btn-primary-hover-border-color);
    --cc-link-color: var(--text-color, #6b6b6b);
    --cc-footer-bg: var(--cc-bg);
    --cc-footer-color: var(--cc-primary-color);
    --cc-footer-border-color: var(--sec-color, #cedaaf);
    --cc-separator-border-color: var(--sec-color, #cedaaf);
    --cc-cookie-category-block-bg: var(--cc-bg);
    --cc-cookie-category-block-border: var(--sec-color, #cedaaf);
    --cc-cookie-category-block-hover-bg: var(--cc-bg);
    --cc-cookie-category-block-hover-border: var(--consent-strong-color);
    --cc-cookie-category-expanded-block-bg: var(--cc-bg);
    --cc-cookie-category-expanded-block-hover-bg: var(--cc-bg);
    --cc-section-category-border: var(--sec-color, #cedaaf);
    --cc-toggle-on-bg: var(--consent-strong-color);
    --cc-toggle-on-knob-bg: var(--cc-bg);
    --cc-toggle-off-bg: var(--text-color, #6b6b6b);
    --cc-toggle-off-knob-bg: var(--cc-bg);
    --cc-toggle-readonly-bg: var(--text-color, #6b6b6b);
    --cc-toggle-readonly-knob-bg: var(--cc-bg);
    --cc-toggle-readonly-knob-icon-color: var(--text-color, #6b6b6b);
    --cc-toggle-enabled-icon-color: var(--cc-bg);
    --cc-toggle-disabled-icon-color: var(--cc-bg);
    --cc-webkit-scrollbar-bg: var(--text-color, #6b6b6b);
    --cc-webkit-scrollbar-hover-bg: var(--consent-strong-color);
}
/* Rosis green on cream is 2.68:1: use its existing dark text tone. */
#rosis #cc-main {
    --consent-strong-color: var(--text-color);
    --cc-btn-primary-border-color: var(--sec-color);
    --cc-btn-primary-hover-border-color: var(--sec-color);
}
#cc-main .cm,
#cc-main .pm {
    border: 1px solid var(--sec-color, #cedaaf);
}
#cc-main .cm__title,
#cc-main .pm__title,
#cc-main .pm__section-title {
    font-family: Caveat, cursive;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 1.2;
    color: var(--consent-strong-color);
}
/* base.css h2 (665, 1388, 1400) and line-height (1389, 1401) use
   !important, as do TSOV/Rosis h2 rules. Limit the override to dialog titles. */
#cc-main .cm__title,
#cc-main .pm__title {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
}
#cc-main .cm__desc,
#cc-main .pm__section-desc {
    font-size: 14px;
    line-height: 26px;
}
#cc-main .cm__btn,
#cc-main .pm__btn {
    font-size: 14px;
    font-weight: 400;
    line-height: 34px;
    padding: 5px 1em;
}
/* Equal bases also equalize different label lengths in the preferences footer. */
#cc-main .pm__btn-group:first-child { flex: 1; }
#cc-main .pm__btn[data-role="all"],
#cc-main .pm__btn[data-role="necessary"] { flex: 1 1 0; }
#cc-main a {
    font-weight: 400;
    border-bottom-color: var(--sec-color, #cedaaf);
}
#cc-main .cm__btn[data-role="show"],
#cc-main .cm__btn[data-role="show"]:hover {
    color: var(--text-color, #6b6b6b);
    background: transparent;
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The root is inside footer: base.css footer svg adds 20px bottom padding. */
#cc-main svg { padding: 0; display: block; }
#cc-main .pm__close-btn span {
    align-items: center;
    justify-content: center;
}
#cc-main .pm__section--expandable .pm__section-title { padding-left: 3rem; }
#cc-main .pm__section--expandable .pm__section-arrow { background: transparent; }
#cc-main .pm__section--expandable .pm__section-arrow svg {
    stroke: var(--consent-strong-color);
    transform: scale(.7);
}
#cc-main .pm__section--toggle.is-expanded .pm__section-arrow svg {
    transform: scale(.7) rotate(180deg);
}
/* Retain the library's state/focus handling, hide its banner while Preferences is open. */
.show--preferences #cc-main .cm-wrapper { display: none; }
#cc-main .pm--box {
    height: auto;
    max-height: calc(100vh - 2 * var(--cc-modal-margin));
    max-height: calc(100dvh - 2 * var(--cc-modal-margin));
}
#cc-main .pm__body { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
#cc-main .pm__header,
#cc-main .pm__footer { flex-shrink: 0; }
@media (max-width: 640px) {
    #cc-main .pm--box { top: var(--cc-modal-margin); bottom: auto; }
}

.ads-reload-notice {
    position: fixed;
    z-index: 2147483647;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 38rem;
    padding: 1rem;
    background: #fff;
    color: #202124;
    border: 2px solid #263238;
    font: 1rem/1.5 Roboto, sans-serif;
}
.ads-reload-notice button {
    font: inherit;
    background: #263238;
    color: #fff;
    padding: 0.5rem 1rem;
    border: 1px solid #263238;
}

/* Release 2.1: shared CI face for consent decisions. */
html:not(#rosis) #cc-main {
    --cc-btn-primary-bg: var(--ci-button-bg);
    --cc-btn-primary-color: var(--ci-button-text);
    --cc-btn-primary-border-color: var(--ci-button-border);
    --cc-btn-primary-hover-bg: var(--ci-button-hover-bg);
    --cc-btn-primary-hover-color: var(--ci-button-hover-text);
    --cc-btn-primary-hover-border-color: var(--ci-button-hover-border);
    --cc-footer-border-color: var(--text-color);
    --cc-separator-border-color: var(--text-color);
    --cc-cookie-category-block-border: var(--text-color);
    --cc-cookie-category-block-hover-border: var(--text-color);
    --cc-section-category-border: var(--text-color);
}
html:not(#rosis) #cc-main :is(.cm,.pm) { border-color: var(--text-color); }
html:not(#rosis) #cc-main :is(.cm__title,.pm__title,.pm__section-title) { color: var(--heading-color); }
html:not(#rosis) #cc-main :is(.cm__btn,.pm__btn) {
    background: var(--ci-button-bg);
    color: var(--ci-button-text);
    border-color: var(--ci-button-border);
    text-decoration: none;
}
html:not(#rosis) #cc-main :is(.cm__btn,.pm__btn):hover {
    background: var(--ci-button-hover-bg);
    color: var(--ci-button-hover-text);
    border-color: var(--ci-button-hover-border);
}
html:not(#rosis) #cc-main :is(button,a):focus:not(:focus-visible) { outline: none; }
html:not(#rosis) #cc-main :is(button,a):focus-visible {
    outline: 2px solid var(--ci-button-focus);
    outline-offset: 2px;
}
html:not(#rosis) #cc-main :is(.cm,.pm) > [tabindex="-1"] { outline: none; }

html:not(#rosis) #cc-main a { border-bottom-color: var(--text-color); }
html:not(#rosis) .ads-reload-notice {
    background: var(--main-bg-color);
    color: var(--text-color);
    border-color: var(--text-color);
}

/* Static dialog title focus; decision buttons retain their visible keyboard focus. */
html:not(#rosis) #cc-main :is(.cm__title, .pm__title):focus { outline: none; }

/* Operator19.10.2026: same shadow as base.css #blog_card/#newsletter_element/#cta_element
   and mjf.css/twosoulsonevision.css #card; Rosis keeps its existing theme. */
html:not(#rosis) #cc-main {
    --cc-modal-border-radius: .25rem;
    /* Site .button radius: mjf/hochzeitsfoto/hundefotos/twosoulsonevision.css. */
    --cc-btn-border-radius: 10px;
}
html:not(#rosis) #cc-main :is(.cm, .pm) {
    border: none;
    box-shadow: 0 20px 72px -29px rgba(0, 0, 0, 0.8);
    border-radius: var(--cc-modal-border-radius);
}
html:not(#rosis) #cc-main :is(.pm__header, .pm__footer, .pm__section,
    .pm__section-title, .pm__section-desc-wrapper),
html:not(#rosis) #cc-main .pm__section-desc-wrapper > :not(:last-child) {
    border: none;
}
/* The vendor's narrow-screen separator has !important; keep the override scoped. */
html:not(#rosis) #cc-main .cm__btns { border: none !important; }
/* Category groups use spacing only, retaining the existing variable background. */
html:not(#rosis) #cc-main .pm__section--toggle { margin-bottom: 1rem; }

/* Operator19.10.2026, refinement: settings is the R2-style secondary text action. */
html:not(#rosis) #cc-main .cm__btn[data-role="show"] {
    background: transparent;
    color: var(--text-color);
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}
html:not(#rosis) #cc-main .cm__btn[data-role="show"]:hover {
    background: transparent;
    color: var(--ci-button-hover-bg);
    border-color: transparent;
}
html:not(#rosis) #cc-main .cm__btn[data-role="show"]:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
}
/* Restore the native R2 category outline and padding; keep dialog separators off. */
html:not(#rosis) #cc-main .pm__section--toggle {
    border: 1px solid var(--sec-color);
    border-radius: .25rem;
}
