/* Webfluss Cookies-Zustimmung */
.wfc { --wfc-bg: #211E44; --wfc-accent: #7C1515; --wfc-ink: #1d2433; --wfc-muted: #5b6475; --wfc-soft: #f4f4f8; --wfc-z: 2147483000; font-size: 15px; line-height: 1.5; }
.wfc [hidden] { display: none !important; }
.wfc *, .wfc *::before, .wfc *::after { box-sizing: border-box; }
.wfc p { margin: 0; }

/* ---------- Banner ---------- */
.wfc-banner { position: fixed; z-index: var(--wfc-z); left: 20px; bottom: 20px; width: 410px; max-width: calc(100vw - 40px); background: var(--wfc-bg); color: #fff; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 60px rgba(10, 8, 30, .45); padding: 22px 22px 18px; opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; }
.wfc-banner.is-in { opacity: 1; transform: none; }
.wfc-title { display: flex; align-items: center; gap: 10px; font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-weight: 700; line-height: 1.25; margin: 0 0 8px !important; color: inherit; }
.wfc-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--wfc-accent); color: #fff; }
.wfc-ico svg { width: 19px; height: 19px; }
.wfc-banner .wfc-text { color: rgba(255, 255, 255, .86); font-size: 14px; }
.wfc-links { margin-top: 8px !important; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; }
.wfc-links span { opacity: .5; }
.wfc-banner .wfc-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.wfc-banner .wfc-links a:hover { opacity: 1; }
.wfc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* Knöpfe – feste Werte, damit das Theme nichts überschreibt */
.wfc .wfc-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; height: auto; width: 100%; margin: 0; padding: 10px 14px; border-radius: 999px; border: 1.5px solid transparent; background: none; box-shadow: none; font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.wfc .wfc-btn:focus-visible, .wfc-reopen:focus-visible, .wfc-x:focus-visible { outline: 3px solid #f0c75e; outline-offset: 2px; }
.wfc .wfc-btn-main { background: var(--wfc-accent); border-color: var(--wfc-accent); color: #fff; box-shadow: 0 6px 16px rgba(124, 21, 21, .35); }
.wfc .wfc-btn-main:hover { filter: brightness(1.15); }
.wfc-banner .wfc-btn-line { border-color: rgba(255, 255, 255, .85); color: #fff; }
.wfc-banner .wfc-btn-line:hover { background: #fff; color: var(--wfc-bg); }
.wfc-banner .wfc-btn-text { grid-column: 1 / -1; min-height: 34px; padding: 4px; color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: 4px; letter-spacing: .04em; }
.wfc-banner .wfc-btn-text:hover { color: #fff; }

/* Leiste unten über die ganze Breite */
.wfc[data-layout="bar"] .wfc-banner { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 18px 18px 0 0; border-width: 1px 0 0; padding: 18px 24px; }
.wfc[data-layout="bar"] .wfc-banner-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.wfc[data-layout="bar"] .wfc-copy { flex: 1; }
.wfc[data-layout="bar"] .wfc-actions { margin: 0; display: flex; flex: 0 0 auto; gap: 10px; }
.wfc[data-layout="bar"] .wfc-btn { width: auto; padding: 10px 20px; }
.wfc[data-layout="bar"] .wfc-btn-text { min-height: 44px; }

/* Fenster in der Mitte */
.wfc-dim { position: fixed; inset: 0; z-index: calc(var(--wfc-z) - 1); background: rgba(15, 13, 35, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.wfc-dim.is-in { opacity: 1; }
.wfc[data-layout="center"] .wfc-banner { left: 50%; top: 50%; bottom: auto; width: 480px; transform: translate(-50%, -46%); }
.wfc[data-layout="center"] .wfc-banner.is-in { transform: translate(-50%, -50%); }

/* ---------- Einstellungsfenster ---------- */
.wfc-modal { position: fixed; inset: 0; z-index: calc(var(--wfc-z) + 1); background: rgba(15, 13, 35, .6); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .25s; }
.wfc-modal.is-in { opacity: 1; }
.wfc-modal-box { position: relative; width: 560px; max-width: 100%; max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain; background: #fff; color: var(--wfc-ink); border-radius: 20px; box-shadow: 0 30px 80px rgba(10, 8, 30, .45); padding: 26px 26px 20px; outline: none; transform: translateY(12px); transition: transform .25s; }
.wfc-modal.is-in .wfc-modal-box { transform: none; }
.wfc-modal .wfc-title { color: var(--wfc-bg); font-size: 22px; padding-right: 36px; }
.wfc-modal .wfc-text { color: var(--wfc-muted); font-size: 14px; }
.wfc .wfc-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; background: var(--wfc-soft); color: var(--wfc-bg); font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: none; }
.wfc .wfc-x:hover { background: #e7e7ef; }
.wfc-cats { margin: 16px 0 4px; display: grid; gap: 10px; }
.wfc-cat { background: var(--wfc-soft); border-radius: 14px; padding: 12px 14px; }
.wfc-cat-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; margin: 0; }
.wfc-cat-t { font-weight: 700; color: var(--wfc-bg); font-size: 15px; }
.wfc-cat-d { color: var(--wfc-muted); font-size: 13px; margin-top: 4px !important; }
.wfc-always { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #1e6b35; background: #e3f3e8; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.wfc-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.wfc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.wfc-switch i { position: absolute; inset: 0; border-radius: 999px; background: #c9ccd6; transition: background .2s; }
.wfc-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.wfc-switch input:checked + i { background: var(--wfc-accent); }
.wfc-switch input:checked + i::after { transform: translateX(20px); }
.wfc-switch input:focus-visible + i { outline: 3px solid #f0c75e; outline-offset: 2px; }
.wfc-actions-m { grid-template-columns: 1fr 1fr; }
.wfc-modal .wfc-btn-line { border-color: var(--wfc-bg); color: var(--wfc-bg); }
.wfc-modal .wfc-btn-line:hover { background: var(--wfc-bg); color: #fff; }
.wfc-modal .wfc-btn-text { grid-column: 1 / -1; min-height: 34px; padding: 4px; color: var(--wfc-muted); text-decoration: underline; text-underline-offset: 4px; letter-spacing: .04em; }
.wfc-modal .wfc-btn-text:hover { color: var(--wfc-bg); }
.wfc-modal .wfc-links { justify-content: center; margin-top: 10px !important; }
.wfc-modal .wfc-links a { color: var(--wfc-bg); }
html.wfc-lock, html.wfc-lock body { overflow: hidden; }

/* ---------- Knopf zum erneuten Öffnen ---------- */
.wfc .wfc-reopen { position: fixed; z-index: calc(var(--wfc-z) - 2); left: 16px; bottom: 16px; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; background: var(--wfc-bg); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(10, 8, 30, .3); opacity: .9; transition: transform .2s, background .2s, opacity .2s; }
.wfc .wfc-reopen:hover { background: var(--wfc-accent); opacity: 1; transform: translateY(-2px); }

/* ---------- Handy ---------- */
@media (max-width: 600px) {
	.wfc-banner, .wfc[data-layout="center"] .wfc-banner { left: 10px; right: 10px; bottom: 10px; top: auto; width: auto; max-width: none; padding: 18px 16px 14px; transform: translateY(16px); }
	.wfc[data-layout="center"] .wfc-banner.is-in { transform: none; }
	.wfc[data-layout="bar"] .wfc-banner { left: 0; right: 0; bottom: 0; }
	.wfc[data-layout="bar"] .wfc-banner-in { display: block; }
	.wfc[data-layout="bar"] .wfc-actions { display: grid; margin-top: 14px; }
	.wfc[data-layout="bar"] .wfc-btn { width: 100%; }
	.wfc-title { font-size: 17px; }
	.wfc-banner .wfc-text { font-size: 13.5px; }
	.wfc-modal { padding: 0; align-items: flex-end; }
	.wfc-modal-box { border-radius: 20px 20px 0 0; max-height: 92vh; padding: 22px 18px 18px; }
	.wfc .wfc-reopen { left: 10px; bottom: 10px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.wfc-banner, .wfc-modal, .wfc-modal-box, .wfc-dim { transition: none; }
}
@media print { .wfc { display: none !important; } }
