/* Datenschutz-Banner (consent.php / consent.js). Farben aus base.css (--brand-*). */
.fm-cc {
	position: fixed; z-index: 90; left: 1.5rem; bottom: 1.5rem;
	width: min(30rem, calc(100vw - 3rem));
	opacity: 0; transform: translateY(16px);
	transition: opacity .3s ease, transform .3s ease;
	font-family: inherit;
}
.fm-cc[hidden] { display: none; }
.fm-cc.is-open { opacity: 1; transform: none; }
.fm-cc__box {
	position: relative;
	max-height: calc(100vh - 3rem); overflow-y: auto; overscroll-behavior: contain;
	padding: 1.5rem 1.5rem 1.25rem;
	border-radius: 1.25rem;
	background: rgba(3, 38, 86, 0.96);
	background: color-mix(in srgb, var(--brand-blue-light, #032656) 96%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border: 1px solid var(--glass-border-strong, rgba(255,255,255,.18));
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255,255,255,.08);
	color: #fff;
}
.fm-cc__box:focus { outline: none; }
.fm-cc__box:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.fm-cc__title {
	display: flex; align-items: center; gap: .55rem;
	margin: 0 2rem .6rem 0; font-size: 1.1rem; font-weight: 600; line-height: 1.3; letter-spacing: .01em;
}
.fm-cc__icon { flex: 0 0 auto; color: var(--brand-red-bright, #D8294F); }
.fm-cc__text { margin: 0; font-size: .875rem; line-height: 1.55; color: rgba(255,255,255,.8); }

.fm-cc__details { margin-top: 1rem; display: grid; gap: .6rem; }
.fm-cc__details[hidden] { display: none; }
.fm-cc__cat { padding: .8rem .95rem; border-radius: .85rem; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border, rgba(255,255,255,.08)); }
.fm-cc__cat p { margin: .35rem 0 0; font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,.68); }
.fm-cc__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fm-cc__cat-title { font-size: .9rem; font-weight: 600; cursor: default; }
label.fm-cc__cat-title { cursor: pointer; }
.fm-cc__badge { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.fm-cc__id { margin: .1rem 0 0; font-size: .72rem; color: rgba(255,255,255,.5); word-break: break-all; }
.fm-cc__id[hidden] { display: none; }
.fm-cc__id code { font: inherit; color: rgba(255,255,255,.75); }

/* Schalter */
.fm-cc__switch { position: relative; flex: 0 0 auto; width: 2.75rem; height: 1.5rem; }
.fm-cc__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.fm-cc__switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.2); transition: background .2s; }
.fm-cc__switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.fm-cc__switch input:checked + span { background: var(--brand-red, #BF214C); }
.fm-cc__switch input:checked + span::after { transform: translateX(1.25rem); }
.fm-cc__switch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

/* Buttons: Ablehnen und Akzeptieren gleichwertig (gleiche Größe, Farbe, Position in einer Reihe). */
.fm-cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.15rem; }
.fm-cc__btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 2.75rem; padding: .7rem 1rem; border-radius: 999px;
	font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.15; cursor: pointer;
	border: 1px solid transparent;
	transition: background-color .2s, border-color .2s, transform .2s;
}
.fm-cc__btn[hidden] { display: none; }
.fm-cc__btn:active { transform: translateY(1px); }
.fm-cc__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fm-cc__btn--light { background: #fff; color: var(--brand-blue, #001E43); }
.fm-cc__btn--light:hover { background: #e9edf3; }
.fm-cc__btn--ghost { grid-column: 1 / -1; background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.fm-cc__btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.5); }

.fm-cc__links { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: .95rem 0 0; font-size: .78rem; }
.fm-cc__link {
	padding: 0; border: 0; background: none; font: inherit; cursor: pointer;
	color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35);
}
.fm-cc__link[hidden] { display: none; }
.fm-cc__link:hover { color: #fff; text-decoration-color: currentColor; }
.fm-cc__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }

.fm-cc__close {
	position: absolute; top: .9rem; right: .9rem;
	display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
	border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.75); cursor: pointer;
}
.fm-cc__close[hidden] { display: none; }
.fm-cc__close:hover, .fm-cc__close:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.fm-cc__close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* Nach-oben-Button nicht unter dem Banner verstecken */
html.fm-cc-on .to-top { opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
	.fm-cc { left: .75rem; right: .75rem; bottom: .75rem; width: auto; }
	.fm-cc__box { padding: 1.25rem 1.15rem 1rem; max-height: calc(100vh - 1.5rem); }
	.fm-cc__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.fm-cc { transition: opacity .2s; transform: none; }
}
@media print { .fm-cc { display: none !important; } }
