/* BW Care – Einwilligung: Banner, Einstellungen, Platzhalter (Schwarz/Gold, gleichrangige Schaltflächen) */
.bwc-consent, .bwc-consent-prefs { --c-bg: #171717; --c-gold: #d4af37; --c-text: #d9d6cf; --c-head: #fff; --c-line: rgba(212, 175, 55, .35); --c-soft: rgba(255, 255, 255, .1); font-family: inherit; }

/* ---- Banner (schwebend, keine Vollbild-Überlagerung) ---- */
.bwc-consent { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(720px, calc(100% - 48px)); max-height: calc(100vh - 48px); overflow: auto; color: var(--c-text); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3); }
.bwc-consent[hidden], .bwc-consent-prefs[hidden] { display: none; }
.bwc-consent.is-entering { animation: bwc-consent-in .35s ease-out both; }
@keyframes bwc-consent-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.bwc-consent__inner { padding: 1.6rem 1.75rem 1.5rem; }
.bwc-consent__inner::before { content: ""; display: block; width: 44px; height: 2px; margin-bottom: 1rem; background: var(--c-gold); }
.bwc-consent__title, .bwc-consent-prefs__title { margin: 0 0 .55rem; font-family: var(--bwc-serif, Georgia, serif); font-size: 1.32rem; line-height: 1.25; font-weight: 600; color: var(--c-head); }
.bwc-consent__text { margin: 0 0 1.25rem; font-size: .95rem; line-height: 1.6; }
.bwc-consent a, .bwc-consent-prefs a { color: var(--c-gold); text-underline-offset: 3px; }
.bwc-consent a:hover, .bwc-consent-prefs a:hover { color: #fff; }
.bwc-consent__preview { margin: 0 0 .9rem; padding: .45rem .7rem; border-radius: 8px; background: rgba(212, 175, 55, .14); color: #f2e4b2; font-size: .82rem; font-weight: 600; }

/* ---- Schaltflächen: „Alle ablehnen“ und „Alle akzeptieren“ gleich groß und gleich gut erreichbar ---- */
.bwc-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.bwc-consent__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.1rem; border-radius: 999px; border: 2px solid var(--c-gold); font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.bwc-consent__btn--accept { background: var(--c-gold); color: #141414; }
.bwc-consent__btn--accept:hover { background: #e2c25a; border-color: #e2c25a; }
.bwc-consent__btn--reject, .bwc-consent__btn--save { background: transparent; color: #fff; }
.bwc-consent__btn--reject:hover, .bwc-consent__btn--save:hover { background: rgba(212, 175, 55, .14); }
.bwc-consent__btn--settings { grid-column: 1 / -1; min-height: 44px; background: transparent; color: var(--c-text); border-color: transparent; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.bwc-consent__btn--settings:hover { color: #fff; }
.bwc-consent__btn:focus-visible, .bwc-consent-open:focus-visible, .bwc-consent-prefs__close:focus-visible, .bwc-consent-prefs__box:focus-visible, .bwc-consent-cat summary:focus-visible { outline: 3px solid #f2d675; outline-offset: 3px; }
.bwc-switch input:focus-visible + .bwc-switch__track { outline: 3px solid #f2d675; outline-offset: 3px; }
@media (min-width: 720px) {
	.bwc-consent__actions { grid-template-columns: 1fr 1fr auto; }
	.bwc-consent__btn--settings { grid-column: auto; padding-inline: .6rem; }
}
.bwc-consent:focus { outline: none; }
.bwc-consent:focus-visible { outline: 3px solid #f2d675; outline-offset: 3px; }

/* ---- Einstellungsdialog ---- */
.bwc-consent-prefs { position: fixed; inset: 0; z-index: 1001; display: grid; place-items: center; padding: 24px; }
.bwc-consent-prefs__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .55); }
.bwc-consent-prefs__box { position: relative; display: flex; flex-direction: column; width: min(680px, 100%); max-height: calc(100vh - 48px); color: var(--c-text); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); outline: none; }
.bwc-consent-prefs__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.6rem .4rem; }
.bwc-consent-prefs__close { flex: none; width: 44px; height: 44px; margin: -.5rem -.6rem 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-text); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.bwc-consent-prefs__close:hover { background: var(--c-soft); color: #fff; }
.bwc-consent-prefs__body { padding: 0 1.6rem 1rem; overflow: auto; overscroll-behavior: contain; font-size: .93rem; line-height: 1.6; }
.bwc-consent-prefs__body > p { margin: 0 0 1rem; }
.bwc-consent-cats { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.bwc-consent-cat { margin: 0; padding: 1rem 1.1rem; border: 1px solid var(--c-soft); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.bwc-consent-cat::before { display: none !important; }
.bwc-consent-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bwc-consent-cat__title { margin: 0; font-family: inherit; font-size: 1rem; font-weight: 700; color: #fff; }
.bwc-consent-cat__text { margin: .4rem 0 0; }
.bwc-consent-cat__svc { margin: .5rem 0 0; font-size: .85rem; color: #b9b5ab; }
.bwc-consent-cat__svc code, .bwc-consent-cat code { color: #f2e4b2; background: rgba(255, 255, 255, .06); padding: .05em .35em; border-radius: 4px; }
.bwc-consent-cat__badge { flex: none; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-gold); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.bwc-consent-cat__badge--off { color: #b9b5ab; border-color: var(--c-soft); }
.bwc-consent-cat__details { margin-top: .55rem; font-size: .86rem; }
.bwc-consent-cat__details summary { cursor: pointer; color: var(--c-gold); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.bwc-consent-cat__details ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.bwc-consent-cat__details li { margin: .35rem 0; }
.bwc-consent-prefs__links { font-size: .86rem; }
.bwc-consent-prefs__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: 1rem 1.6rem 1.4rem; border-top: 1px solid var(--c-soft); }
.bwc-consent-prefs__actions:has(> :only-child) { grid-template-columns: 1fr; justify-items: end; }
.bwc-consent-prefs__actions > :only-child { min-width: 180px; }

/* Schalter (Checkbox mit role="switch") */
.bwc-switch { position: relative; display: inline-flex; align-items: center; gap: .55rem; flex: none; cursor: pointer; min-height: 44px; }
.bwc-switch input { position: absolute; opacity: 0; width: 52px; height: 30px; margin: 0; cursor: pointer; }
.bwc-switch__track { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #3a3a3a; border: 1px solid rgba(255, 255, 255, .25); transition: background-color .2s; }
.bwc-switch__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #e9e6df; transition: transform .2s; }
.bwc-switch input:checked + .bwc-switch__track { background: var(--c-gold); border-color: var(--c-gold); }
.bwc-switch input:checked + .bwc-switch__track .bwc-switch__thumb { transform: translateX(22px); background: #141414; }
.bwc-switch__state { min-width: 2.2em; font-size: .82rem; font-weight: 700; color: #b9b5ab; }
.bwc-switch__state::before { content: attr(data-off); }
.bwc-switch input:checked ~ .bwc-switch__state { color: var(--c-gold); }
.bwc-switch input:checked ~ .bwc-switch__state::before { content: attr(data-on); }

/* Mobil: Banner und Dialog vollständig im Bildschirm, Inhalt scrollbar, Schaltflächen bequem tippbar */
@media (max-width: 719px) {
	.bwc-consent { bottom: 10px; width: calc(100% - 20px); border-radius: 16px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
	.bwc-consent__inner { padding: 1.25rem 1.2rem 1.1rem; }
	.bwc-consent__title { font-size: 1.18rem; }
	.bwc-consent__text { font-size: .9rem; margin-bottom: 1rem; }
	.bwc-consent-prefs { padding: 10px; align-items: end; }
	.bwc-consent-prefs__box { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
	.bwc-consent-prefs__head { padding: 1.2rem 1.1rem .3rem; }
	.bwc-consent-prefs__body { padding: 0 1.1rem .8rem; }
	.bwc-consent-prefs__actions { grid-template-columns: 1fr 1fr; padding: .8rem 1.1rem 1rem; }
	.bwc-consent-prefs__actions .bwc-consent__btn--save { grid-column: 1 / -1; order: 3; }
	.bwc-consent-prefs__actions:has(> :only-child) { grid-template-columns: 1fr; justify-items: stretch; }
}
@media (max-width: 380px) { .bwc-consent__actions, .bwc-consent-prefs__actions { grid-template-columns: 1fr; } .bwc-consent__btn { min-height: 46px; } }
/* Mobile Anrufleiste nicht hinter dem Banner verstecken – Banner liegt darüber; Leiste ausblenden, solange das Banner offen ist */
html.bwc-consent-open .bwc-mobile-bar { visibility: hidden; }
html.bwc-prefs-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.bwc-consent.is-entering { animation: none; }
	.bwc-consent__btn, .bwc-switch__track, .bwc-switch__thumb { transition: none; }
}

/* ---- Footer-Link und Platzhalter für externe Inhalte ---- */
.bwc-consent-open { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bwc-consent-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bwc-embed { position: relative; margin: 1.5rem 0; border-radius: 14px; overflow: hidden; background: #171717; color: #d9d6cf; border: 1px solid rgba(212, 175, 55, .35); }
.bwc-embed--youtube { aspect-ratio: 16 / 9; }
.bwc-embed--karte { aspect-ratio: 4 / 3; }
.bwc-embed__inner { display: flex; flex-direction: column; justify-content: center; gap: .3rem; height: 100%; padding: 1.4rem 1.5rem; }
.bwc-embed__inner p { margin: 0; }
.bwc-embed__title { color: #fff; font-weight: 700; }
.bwc-embed__text, .bwc-embed__note { font-size: .88rem; }
.bwc-embed__actions { margin: .5rem 0 !important; }
.bwc-embed a, .bwc-embed .bwc-consent-open { color: #d4af37; }
.bwc-embed.is-loaded iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 599px) { .bwc-embed--youtube, .bwc-embed--karte { aspect-ratio: auto; min-height: 240px; } }
