/* Seniorenbiken Cookies – Banner im Design der Seite. GPL-2.0-or-later */
:root { --sbc-primary: #B4501A; --sbc-primary-h: #95410F; --sbc-second: #1F4D3A; --sbc-heading: #143528; --sbc-text: #1C2420; --sbc-bg: #fff; --sbc-soft: #F2F5F1; --sbc-line: #D5DDD7; --sbc-muted: #4A5650; }
.sbc[hidden], .sbc [hidden] { display: none !important; }
html.sbc-lock { overflow: hidden; }
.sbc { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: inherit; color: var(--sbc-text); font-size: 17px; line-height: 1.55; }
.sbc *, .sbc *::before, .sbc *::after { box-sizing: border-box; }
.sbc__overlay { position: absolute; inset: 0; background: rgba(20, 53, 40, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sbc__dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); background: var(--sbc-bg); border-radius: 20px; box-shadow: 0 18px 40px -10px rgba(20, 53, 40, .45); overflow: hidden; outline: none; animation: sbc-in .25s ease-out; }
@keyframes sbc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sbc__dialog { animation: none; } }
.sbc__head { display: flex; align-items: center; gap: 14px; padding: 22px 28px 14px; }
.sbc .sbc__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--sbc-primary); border-radius: 2px; }
.sbc__logo { width: 36px; height: 36px; object-fit: contain; flex: none; }
.sbc .sbc__title { margin: 0; font-family: inherit; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--sbc-heading); letter-spacing: 0; text-transform: none; position: relative; padding-bottom: 10px; }
.sbc__body { padding: 16px 28px 6px; overflow-y: auto; overscroll-behavior: contain; }
.sbc__intro { margin: 0 0 12px; }
.sbc__summary { margin: 0 0 8px; padding: 0 0 0 1.1em; color: var(--sbc-muted); font-size: 16px; }
.sbc__summary li { margin: 2px 0; }
.sbc__summary li::marker { color: var(--sbc-second); }
.sbc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 28px 18px; }
.sbc__actions .sbc-linkbtn--wide { grid-column: 1 / -1; justify-self: center; }
.sbc__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 12px 28px; background: var(--sbc-soft); border-top: 1px solid var(--sbc-line); font-size: 15px; color: var(--sbc-muted); }
.sbc__foot a { color: var(--sbc-second); text-decoration: underline; text-underline-offset: 3px; }
.sbc__foot a:hover { color: var(--sbc-primary); }
.sbc__id { flex-basis: 100%; text-align: center; font-size: 13px; }

/* Schaltflächen (gegen Theme-/Elementor-Buttonstile abgesichert) */
html body .sbc-btn, html body .sbc-linkbtn.sbc-linkbtn { box-shadow: none; text-transform: none; letter-spacing: 0; margin: 0; width: auto; }
.sbc .sbc__dialog:focus, .sbc .sbc__dialog:focus-visible { outline: none !important; }
html body .sbc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 18px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-size: 18px; font-weight: 700; line-height: 1.2; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s; text-decoration: none; }
html body .sbc-btn.sbc-btn--primary { background: var(--sbc-primary); color: #fff; }
html body .sbc-btn.sbc-btn--primary:hover { background: var(--sbc-primary-h); color: #fff; }
html body .sbc-btn.sbc-btn--outline { background: #fff; color: var(--sbc-second); border-color: var(--sbc-second); }
html body .sbc-btn.sbc-btn--outline:hover { background: #E8F0EA; color: var(--sbc-heading); border-color: var(--sbc-heading); }
html body .sbc-btn:focus-visible, html body .sbc-linkbtn:focus-visible, html body .sbc summary:focus-visible, html body .sbc-switch input:focus-visible + .sbc-switch__ui, html body .sbc-reopen:focus-visible { outline: 3px solid #E8732C; outline-offset: 2px; }
html body .sbc-linkbtn.sbc-linkbtn { background: none; border: 0; padding: 8px 6px; font: inherit; font-size: 17px; font-weight: 500; color: var(--sbc-second); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
html body .sbc-linkbtn.sbc-linkbtn:hover { color: var(--sbc-primary); }

/* Gruppen */
.sbc-group { border: 1px solid var(--sbc-line); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; background: #fff; }
.sbc-group__head { display: flex; align-items: center; justify-content: space-between; }
.sbc-group__label { font-weight: 700; color: var(--sbc-heading); font-size: 18px; margin: 0; }
.sbc-group__desc { margin: 6px 0 0; font-size: 16px; color: var(--sbc-muted); }
.sbc-badge { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #E8F0EA; color: var(--sbc-second); font-size: 14px; font-weight: 500; white-space: nowrap; }
.sbc-switch { display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; }
.sbc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sbc-switch__ui { position: relative; flex: none; width: 50px; height: 28px; border-radius: 999px; background: #C3D0C8; transition: background .15s; }
.sbc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.sbc-switch input:checked + .sbc-switch__ui { background: var(--sbc-second); }
.sbc-switch input:checked + .sbc-switch__ui::after { transform: translateX(22px); }
.sbc-switch input:indeterminate + .sbc-switch__ui { background: #7FA08D; }
.sbc-switch input:indeterminate + .sbc-switch__ui::after { transform: translateX(11px); }
.sbc-switch input:disabled + .sbc-switch__ui { opacity: .7; }
.sbc-group__details { margin-top: 8px; }
.sbc-group__details summary { cursor: pointer; color: var(--sbc-second); font-weight: 500; font-size: 16px; padding: 4px 0; }
.sbc-service { border-top: 1px solid #E3E9E5; padding: 10px 0 2px; margin-top: 8px; }
.sbc-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.sbc-check input { width: 20px; height: 20px; accent-color: var(--sbc-second); }
.sbc-service__name { margin: 0; }
.sbc-service__meta { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0 0; font-size: 15px; color: var(--sbc-muted); }
.sbc-service__meta dt { font-weight: 700; color: var(--sbc-text); }
.sbc-service__meta dd { margin: 0; }
.sbc-service__meta a { color: var(--sbc-second); }
.sbc-cookies { margin: 0; padding: 0; list-style: none; }
.sbc-cookies code { font-size: 14px; background: var(--sbc-soft); padding: 0 4px; border-radius: 4px; }

/* Ohne Abdunklung (auf Datenschutz/Impressum lesbar) */
.sbc--nomodal { inset: auto 0 0 0; padding: 12px; pointer-events: none; }
.sbc--nomodal .sbc__overlay { display: none; }
.sbc--nomodal .sbc__dialog { pointer-events: auto; max-height: 70vh; }

/* Position unten */
.sbc--bottom { align-items: flex-end; }

/* Mobil: Blatt von unten */
@media (max-width: 600px) {
	.sbc { padding: 0; align-items: flex-end; font-size: 16px; }
	.sbc__dialog { max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; max-height: 92dvh; }
	.sbc__head { padding: 18px 18px 12px; }
	.sbc .sbc__title { font-size: 22px; }
	.sbc__body { padding: 14px 18px 4px; }
	.sbc__actions { grid-template-columns: 1fr; padding: 12px 18px 14px; gap: 10px; }
	.sbc__foot { padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
	.sbc-btn { font-size: 17px; min-height: 52px; }
	.sbc-service__meta { grid-template-columns: 1fr; }
}

/* Wiederöffnen */
html body .sbc-reopen.sbc-reopen { position: fixed; left: 16px; bottom: 16px; z-index: 2147482000; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--sbc-second); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(20,53,40,.5); }
html body .sbc-reopen.sbc-reopen:hover { background: var(--sbc-heading); }

/* Platzhalter für blockierte Inhalte */
.sbc-ph { position: relative; min-height: 240px; border-radius: 16px; overflow: hidden; background: var(--sbc-soft); border: 1px solid var(--sbc-line); }
.sbc-ph > iframe { visibility: hidden; display: block; width: 100%; }
.sbc-ph__box { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; text-align: center; color: var(--sbc-text); }
.sbc-ph__title { margin: 0; font-weight: 700; font-size: 19px; color: var(--sbc-heading); }
.sbc-ph__text { margin: 0 0 8px; max-width: 46ch; font-size: 16px; color: var(--sbc-muted); }
.sbc-ph__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.sbc-ph--on { min-height: 0; border: 0; background: none; }
.sbc-ph--on > iframe { visibility: visible; }
.sbc-ph--on .sbc-ph__box { display: none; }

/* Shortcodes */
.sbc-status dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 1em; }
.sbc-status dt { font-weight: 700; }
.sbc-status dd { margin: 0; word-break: break-all; }
.sbc-status__ok { font-weight: 700; color: var(--sbc-second); }
.sbc-list .sbc-group { margin-bottom: 16px; }
.sbc-list .sbc-group__label { font-size: 1.15em; margin: 0; }
.sbc-list .sbc-service__meta { font-size: .9em; }
.sbc-list .sbc-group__details summary { display: none; }
@media (max-width: 600px) { .sbc-status dl { grid-template-columns: 1fr; } }
