/* SWS Cookie-Hinweis 1.0.0 – Design Sozialwerk Stephanskirchen */
:root {
	--sws-cc-blue: #0D3780;
	--sws-cc-red: #CC3921;
	--sws-cc-yellow: #FFDD00;
	--sws-cc-text: #4a4a4a;
	--sws-cc-font: "Source Sans Regular", "Source Sans Pro", source-sans-pro, Helvetica, Arial, sans-serif;
	--sws-cc-font-bold: "Source Sans Semibold", "Source Sans Pro", source-sans-pro, Helvetica, Arial, sans-serif;
	--sws-cc-font-head: source-sans-pro, "Source Sans Regular", "Source Sans Pro", Helvetica, Arial, sans-serif;
	--sws-cc-stripe: linear-gradient(90deg, var(--sws-cc-blue) 0 33.33%, var(--sws-cc-red) 33.33% 66.66%, var(--sws-cc-yellow) 66.66% 100%);
}

.sws-cc[hidden], .sws-cc [hidden] { display: none !important; }

.sws-cc {
	position: fixed;
	left: 24px;
	right: 24px;
	bottom: 24px;
	z-index: 2147483000;
	max-width: 980px;
	margin: 0 auto;
	background: #fff;
	color: var(--sws-cc-text);
	font-family: var(--sws-cc-font);
	font-size: 17px;
	line-height: 1.55;
	box-shadow: 0 18px 50px rgba(13, 55, 128, .28), 0 2px 8px rgba(0, 0, 0, .08);
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .3s ease, transform .3s ease;
	-webkit-font-smoothing: antialiased;
}
.sws-cc.is-visible { opacity: 1; transform: none; }

/* Dreifarb-Streifen wie im Fußbereich der Website */
.sws-cc::before {
	content: "";
	display: block;
	height: 8px;
	background: var(--sws-cc-stripe);
}

.sws-cc__inner {
	padding: 28px 36px 22px;
	max-height: calc(100vh - 80px);
	max-height: calc(100dvh - 80px);
	overflow-y: auto;
	box-sizing: border-box;
}

.sws-cc__title {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--sws-cc-font-head);
	font-weight: 300;
	font-size: 34px;
	line-height: 1.15;
	color: var(--sws-cc-red);
	letter-spacing: 0;
}
.sws-cc__title:focus { outline: none; }

.sws-cc__text { margin: 0 0 20px; padding: 0; }

/* Buttons im Stil der Website: eckig, Source Sans Semibold */
.sws-cc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.sws-cc__btn {
	appearance: none;
	margin: 0;
	padding: 12px 26px;
	border: 2px solid var(--sws-cc-blue);
	border-radius: 0;
	background: var(--sws-cc-blue);
	color: #fff;
	font-family: var(--sws-cc-font-bold);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.sws-cc__btn:hover { background: #0a2a63; border-color: #0a2a63; }
.sws-cc__btn--ghost { background: #fff; color: var(--sws-cc-blue); }
.sws-cc__btn--ghost:hover { background: #eef2f9; border-color: var(--sws-cc-blue); color: var(--sws-cc-blue); }
.sws-cc__btn:focus-visible,
.sws-cc a:focus-visible,
.sws-cc__switch input:focus-visible + .sws-cc__track {
	outline: 3px solid var(--sws-cc-yellow);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--sws-cc-blue);
}

.sws-cc__links {
	margin: 16px 0 0;
	padding: 0;
	font-size: 15px;
}
.sws-cc__links a {
	color: var(--sws-cc-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-right: 18px;
}
.sws-cc__links a:hover { color: var(--sws-cc-red); }

/* Kategorien */
.sws-cc__prefs {
	margin: 0 0 20px;
	border-top: 1px solid #e3e7ef;
}
.sws-cc__cat {
	padding: 14px 0;
	border-bottom: 1px solid #e3e7ef;
}
.sws-cc__switch {
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	margin: 0;
}
.sws-cc__switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.sws-cc__track {
	position: relative;
	flex: 0 0 48px;
	width: 48px;
	height: 26px;
	border-radius: 13px;
	background: #b9bfca;
	transition: background-color .2s ease;
}
.sws-cc__track::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 ease;
}
.sws-cc__switch input:checked + .sws-cc__track { background: var(--sws-cc-blue); }
.sws-cc__switch input:checked + .sws-cc__track::after { transform: translateX(22px); }
.sws-cc__switch input:disabled + .sws-cc__track { opacity: .55; }
.sws-cc__switch input:disabled ~ .sws-cc__cat-label { cursor: default; }
.sws-cc__cat-label {
	font-family: var(--sws-cc-font-bold);
	font-size: 18px;
	color: var(--sws-cc-blue);
}
.sws-cc__cat-label small { font-family: var(--sws-cc-font); font-size: 14px; color: #777; }
.sws-cc__cat-text {
	margin: 6px 0 0 62px;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
}

/* Platzhalter für blockierte Videos/Karten */
.sws-cc-ph {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	min-height: 220px;
	padding: 28px 32px;
	box-sizing: border-box;
	background: #f3f5fa;
	border-top: 8px solid transparent;
	border-image: var(--sws-cc-stripe) 1;
	font-family: var(--sws-cc-font);
	color: var(--sws-cc-text);
	font-size: 16px;
	line-height: 1.5;
}
.sws-cc-ph__title {
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--sws-cc-font-head);
	font-weight: 300;
	font-size: 28px;
	color: var(--sws-cc-red);
}
.sws-cc-ph__text { margin: 0 0 18px; padding: 0; max-width: 640px; }
.sws-cc-ph__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sws-cc-ph .sws-cc__btn { font-size: 16px; padding: 10px 20px; }
.sws-cc-ph .sws-cc__btn:focus-visible { outline: 3px solid var(--sws-cc-yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sws-cc-blue); }

/* Handy */
@media (max-width: 640px) {
	.sws-cc { left: 0; right: 0; bottom: 0; font-size: 16px; }
	.sws-cc__inner { padding: 20px 16px 16px; max-height: 85vh; max-height: 85dvh; }
	.sws-cc__title { font-size: 26px; }
	.sws-cc__text { margin-bottom: 16px; }
	.sws-cc__actions { flex-direction: column; align-items: stretch; gap: 10px; }
	.sws-cc__btn { width: 100%; padding: 13px 16px; }
	.sws-cc__cat-text { margin-left: 0; }
	.sws-cc__links { text-align: center; }
	.sws-cc__links a { margin: 0 9px; }
	.sws-cc-ph { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.sws-cc, .sws-cc__btn, .sws-cc__track, .sws-cc__track::after { transition: none; }
}

@media print { .sws-cc { display: none !important; } }
