/* 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 im Incubator-Village-Design: Ecken wie die Karten der Seite (16 px),
   Buttons wie „Jetzt bewerben“ (4 px, Nunito Sans 600), Titel in Hubot Sans, Farben aus dem Onepage-Farbkit
   (key1 #FF66B3, key2 #22577A, light #C7F9CC, dark #001523). Weiße Schrift auf Pink hätte nur 2,7 : 1, darum steht
   auf den pinken Buttons dunkle Schrift (6,9 : 1). Links, Schalter und „immer aktiv“ in key2 (7,7 : 1).
   Der Schatten sitzt als drop-shadow auf der Hülle .cc und folgt so der Form, wenn .cc-card aufgegessen wird. */
.cc {
	--cc-pink: #FF66B3;
	--cc-pink-hover: #FF85C2;
	--cc-blue: #22577A;
	--cc-mint: #C7F9CC;
	--cc-mint-hover: #B5F3BB;
	--cc-mint-light: #EAF8EC;
	--cc-text: #001523;
	--cc-muted: #4A5863; /* 7,3 : 1 auf Weiß */
	--cc-radius: 16px;
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 10002; /* über Kopfzeile und Popups der Seite */
	box-sizing: border-box;
	width: 372px;
	max-width: calc(100vw - 48px);
	color: var(--cc-text);
	font: 400 13px/1.5 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	filter: drop-shadow(0 10px 22px rgba(0, 21, 35, .18)) drop-shadow(0 2px 5px rgba(0, 21, 35, .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-blue); 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-family: 'Hubot Sans', 'Nunito Sans', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: -.2px; 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: 4px;
	-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: 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:focus { background: var(--cc-pink); color: var(--cc-text); }
.cc .cc-btn--primary:hover { background: var(--cc-pink-hover); color: var(--cc-text); }
.cc .cc-btn--ghost, .cc .cc-btn--ghost:focus { background: var(--cc-mint); color: var(--cc-text); }
.cc .cc-btn--ghost:hover { background: var(--cc-mint-hover); color: var(--cc-text); }
.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: var(--cc-mint-light); color: var(--cc-blue); 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-blue); outline-offset: 2px; }

/* Einstellungen */
.cc-cat { border-top: 1px solid rgba(0, 21, 35, .12); 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: 700; color: var(--cc-blue); 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: #8A96A0; transition: background-color .2s ease; pointer-events: none; } /* aus: 3 : 1 auf Weiß */
.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-blue); }
.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 { 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; }

/* Platzhalter für HubSpot-Formular und Instagram-Feed (inc/consent.php), bis „Externe Medien“ erlaubt sind */
.ivb-embed {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 24px;
	border-radius: 16px;
	background: #EAF8EC;
	color: #001523;
	font: 400 15px/1.5 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	text-align: left;
}
.ivb-embed p { margin: 0; }
.ivb-embed-title { font-family: 'Hubot Sans', 'Nunito Sans', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -.2px; }
.ivb-embed-text { margin-top: 6px !important; color: #4A5863; }
.ivb-embed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px !important; }
.ivb-embed .ivb-embed-btn, .ivb-embed .ivb-embed-btn:focus {
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: 4px;
	background: #FF66B3;
	color: #001523;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.ivb-embed .ivb-embed-btn:hover { background: #FF85C2; color: #001523; }
.ivb-embed a { color: #22577A; text-decoration: underline; }
.ivb-embed-btn:focus-visible, .ivb-embed a:focus-visible { outline: 2px solid #22577A; outline-offset: 2px; }
.ivb-embed-note { margin-top: 12px !important; font-size: 13px; color: #4A5863; }

/* Link „Cookie-Einstellungen“ im Fließtext (Datenschutz, Impressum): Onepage-Texte haben sonst Browser-Blau ohne Unterstreichung */
.con-kit-quark-paragraph a[href="#cookie-einstellungen"] { color: #22577A; text-decoration: underline; text-underline-offset: 2px; }
.con-kit-quark-paragraph a[href="#cookie-einstellungen"]:hover { color: #001523; }
