/* Cookie-Hinweis (parts/consent.php), nachgebaut nach cowos-berlin.com: kleine Karte unten links, auf dem Handy unten
   über die volle Breite. Anders als bei CoWoS mit runden Ecken und Pillen-Buttons wie im Virtual-Office-Design
   (Karten 24 px, Buttons 100 px), Farben aus dem Onepage-Farbkit (key1 #8a2783, key2 #699b7a, dark #07071a).
   Der Schatten sitzt als drop-shadow auf der Hülle .cc und folgt so der Form, wenn .cc-card aufgegessen wird. */
.cc {
	--cc-accent: #8a2783;
	--cc-green: #4f7a5e; /* key2 #699b7a, dunkler für lesbare kleine Schrift (Kontrast 4,9 : 1) */
	--cc-text: #07071a;
	--cc-muted: #555;
	--cc-radius: 24px;
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 10002; /* über Kopfzeile (500) und Anruf-/Mail-Widget (9999) */
	box-sizing: border-box;
	width: 372px;
	max-width: calc(100vw - 48px);
	color: var(--cc-text);
	font: 400 13px/1.5 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	filter: drop-shadow(0 10px 22px rgba(7, 7, 26, .16)) drop-shadow(0 2px 5px rgba(7, 7, 26, .08));
	transform: translateY(12px);
	opacity: 0;
	transition: transform .35s ease, opacity .35s ease;
}
.cc[hidden] { display: none; }
.cc.cc--in { transform: none; opacity: 1; }
.cc.cc--out { transform: translateY(12px); opacity: 0; pointer-events: none; }
.cc.cc--eating { pointer-events: none; }
.cc:focus { outline: none; }
.cc *, .cc *::before, .cc *::after { box-sizing: border-box; }
.cc p { margin: 0; }
.cc a { color: var(--cc-accent); text-decoration: underline; }

.cc-card {
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 20px 20px 18px;
	border-radius: var(--cc-radius);
	background: #fff;
	/* Bisse: Masken-Ebenen setzt consent.js beim Aufessen */
}
.cc-title { font-weight: 700; font-size: 15px; line-height: 1.3; margin-bottom: 4px !important; }
.cc-text { color: var(--cc-muted); }

.cc-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.cc-btn, .cc-link {
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	border: 0;
	border-radius: 100px;
	-webkit-appearance: none;
	appearance: none;
}
/* Mit .cc davor und :hover/:focus ausdrücklich gesetzt, damit fremde Button-Regeln nie durchschlagen (Falle aus CoWoS). */
.cc .cc-btn, .cc .cc-link { line-height: 1.2; transition: filter .15s ease, background-color .15s ease, color .15s ease; }
.cc .cc-btn { flex: 1 1 0; min-height: 40px; padding: 8px 14px; }
.cc .cc-btn--primary, .cc .cc-btn--primary:hover, .cc .cc-btn--primary:focus { background: var(--cc-accent); color: #fff; }
.cc .cc-btn--primary:hover { filter: brightness(1.12); }
.cc .cc-btn--ghost, .cc .cc-btn--ghost:focus { background: #F2F2F2; color: var(--cc-text); }
.cc .cc-btn--ghost:hover { background: #E8E8E8; }
.cc .cc-link, .cc .cc-link:focus { min-height: 40px; padding: 8px 12px; margin: 0 auto 0 -12px; background: none; color: var(--cc-text); text-decoration: underline; text-underline-offset: 2px; }
.cc .cc-link:hover { background: #F7F7F7; color: var(--cc-accent); text-decoration: underline; }
.cc-btn:focus-visible, .cc-link:focus-visible, .cc a:focus-visible, .cc-switch input:focus-visible + span { outline: 2px solid var(--cc-accent); outline-offset: 2px; }

/* Einstellungen */
.cc-cat { border-top: 1px solid #ECECEC; padding: 12px 0 2px; margin-top: 12px; }
.cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: default; }
label.cc-cat-head { cursor: pointer; }
.cc-cat-name { font-weight: 700; }
.cc-cat-text { color: var(--cc-muted); margin-top: 4px !important; font-size: 12px; }
.cc-always { font-size: 11px; font-weight: 600; color: var(--cc-green); text-transform: uppercase; letter-spacing: .04em; }
.cc-switch { position: relative; flex: 0 0 auto; width: 40px; height: 22px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cc-switch span { position: absolute; inset: 0; border-radius: 100px; background: #CFCFCF; transition: background-color .2s ease; pointer-events: none; }
.cc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cc-switch input:checked + span { background: var(--cc-accent); }
.cc-switch input:checked + span::after { transform: translateX(18px); }
.cc-legal { margin-top: 12px !important; font-size: 12px; color: var(--cc-muted); text-align: center; }

@media (max-width: 600px) {
	.cc { --cc-radius: 20px; left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
	.cc-card { max-height: calc(100vh - 24px); padding: 18px; }
	.cc-actions { flex-wrap: wrap; }
	.cc .cc-btn { min-height: 44px; }
	.cc .cc-main .cc-link { order: 3; flex: 1 0 100%; min-height: 36px; margin: 0; padding: 8px 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.cc, .cc-btn, .cc-switch span, .cc-switch span::after { transition: none; }
}
.cc.cc--eaten { opacity: 0; transition: opacity .18s ease; }
