/* Samy & Markus – Cookie-Einwilligung */

.smcc,
.smcc *,
.smcc-platzhalter,
.smcc-platzhalter * {
	box-sizing: border-box;
}

.smcc[hidden],
.smcc [hidden] {
	display: none !important;
}

html.smcc-offen {
	overflow: hidden;
}

.smcc {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	z-index: 2147483000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: #0f0f0f;
	-webkit-font-smoothing: antialiased;
}

.smcc-hintergrund {
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 15, 0.6);
}

.smcc-fenster {
	position: relative;
	width: calc(100% - 32px);
	max-width: 680px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 28px 30px 22px;
	background: #fff;
	border-top: 6px solid #cc0000;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	outline: none;
	text-align: left;
}

/* Impressum/Datenschutz: Seite bleibt lesbar und bedienbar. */
.smcc.smcc-rechtsseite {
	pointer-events: none;
}

.smcc.smcc-rechtsseite .smcc-hintergrund {
	display: none;
}

.smcc.smcc-rechtsseite .smcc-fenster {
	pointer-events: auto;
	max-height: 60vh;
	box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.3);
}

.smcc .smcc-titel {
	margin: 0 0 10px;
	font-family: Oswald, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #0f0f0f;
}

.smcc .smcc-text {
	margin: 0 0 6px;
	color: #262626;
}

.smcc a {
	color: #0f0f0f;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.smcc a:hover {
	color: #cc0000;
}

.smcc-knoepfe {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 18px 0 6px;
}

.smcc-knoepfe-3 {
	grid-template-columns: 1fr 1fr 1fr;
}

/* Knöpfe bleiben sichtbar, auch wenn der Text gescrollt werden muss. */
.smcc-ebene > .smcc-knoepfe {
	position: sticky;
	bottom: 0;
	z-index: 1;
	margin-left: -30px;
	margin-right: -30px;
	padding: 10px 30px;
	background: #fff;
	box-shadow: 0 -10px 12px -10px rgba(0, 0, 0, 0.18);
}

/* „Alle akzeptieren“ und „Nur notwendige“ sind absichtlich gleich gestaltet. */
.smcc .smcc-knopf {
	display: block;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 13px 16px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: #0f0f0f;
	border: 2px solid #0f0f0f;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.smcc .smcc-knopf:hover {
	background: #cc0000;
	border-color: #cc0000;
}

.smcc .smcc-knopf:focus-visible,
.smcc .smcc-textknopf:focus-visible,
.smcc a:focus-visible,
.smcc summary:focus-visible,
.smcc input:focus-visible,
.smcc-platzhalter button:focus-visible,
.smcc-platzhalter a:focus-visible,
.smcc-platzhalter input:focus-visible {
	outline: 3px solid #cc0000;
	outline-offset: 2px;
}

.smcc .smcc-textknopf {
	display: inline-block;
	margin: 4px 0 0;
	padding: 6px 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #0f0f0f;
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.smcc .smcc-textknopf:hover {
	color: #cc0000;
}

.smcc .smcc-rechtliches {
	margin: 10px 0 0;
	font-size: 13px;
	color: #606060;
}

.smcc .smcc-rechtliches a {
	color: #606060;
}

/* Ebene 2 */
.smcc-kategorien {
	margin: 16px 0 0;
}

.smcc-kat {
	margin: 0 0 10px;
	padding: 14px 16px 10px;
	background: #f6f6f6;
	border-left: 4px solid #0f0f0f;
}

.smcc-kat-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.smcc-schalter {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.smcc-kat-titel {
	font-weight: 800;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.smcc-kat-info {
	font-size: 12px;
	color: #606060;
	white-space: nowrap;
}

.smcc .smcc-kat-text {
	margin: 6px 0 4px;
	font-size: 14px;
	color: #404040;
}

/* Schalter: echtes Kontrollkästchen, als Schiebeschalter gestaltet. */
.smcc input[type="checkbox"][data-smcc-kat-wahl] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 auto;
	width: 42px;
	height: 24px;
	margin: 0;
	background: #9a9a9a;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s;
}

.smcc input[type="checkbox"][data-smcc-kat-wahl]::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s;
}

.smcc input[type="checkbox"][data-smcc-kat-wahl]:checked {
	background: #cc0000;
}

.smcc input[type="checkbox"][data-smcc-kat-wahl]:checked::after {
	transform: translateX(18px);
}

.smcc input[type="checkbox"][data-smcc-kat-wahl]:indeterminate {
	background: #e08a8a;
}

.smcc input[type="checkbox"][data-smcc-kat-wahl]:indeterminate::after {
	transform: translateX(9px);
}

.smcc input[type="checkbox"][data-smcc-kat-wahl]:disabled {
	background: #4b4b4b;
	cursor: not-allowed;
}

.smcc-details summary {
	padding: 4px 0;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.smcc-dienst {
	margin: 6px 0 0;
	padding: 10px 0 2px;
	border-top: 1px solid #ddd;
}

.smcc .smcc-dienst-name {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}

.smcc .smcc-dienst-name input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #cc0000;
}

.smcc-dienst dl {
	margin: 0;
	font-size: 13px;
}

.smcc-dienst dt {
	margin: 6px 0 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #606060;
}

.smcc-dienst dd {
	margin: 0;
	color: #262626;
}

.smcc .smcc-id {
	margin: 12px 0 0;
	font-size: 12px;
	color: #606060;
}

.smcc .smcc-id code {
	padding: 1px 4px;
	font-size: 12px;
	background: #f3f4f6;
	word-break: break-all;
}

@media (max-width: 600px) {
	.smcc-fenster {
		width: 100%;
		max-width: 100vw;
		max-height: 88vh;
		max-height: 88dvh;
		margin: 0;
		padding: 20px 18px 16px;
	}

	.smcc .smcc-titel {
		font-size: 22px;
	}

	.smcc {
		font-size: 14px;
	}

	.smcc-knoepfe,
	.smcc-knoepfe-3 {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.smcc-knoepfe-3 [data-smcc-aktion="auswahl"] {
		grid-column: 1 / -1;
	}

	.smcc-ebene > .smcc-knoepfe {
		margin-left: -18px;
		margin-right: -18px;
		padding: 10px 18px;
	}

	.smcc .smcc-knopf {
		min-height: 46px;
		padding: 11px 8px;
		font-size: 13px;
		letter-spacing: 0.02em;
	}
}

/* ------------------------------------------------------------ Platzhalter. */

.smcc-platzhalter {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 200px;
	margin: 0;
	padding: 20px;
	overflow: auto;
	font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	color: #fff;
	background-color: #0f0f0f;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.smcc-ph-mit-bild::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 15, 0.8);
}

.wp-block-embed__wrapper:has(> .smcc-platzhalter) {
	position: relative;
}

.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper > .smcc-platzhalter {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	aspect-ratio: auto !important;
}

.smcc-ph-innen {
	position: relative;
	max-width: 560px;
}

.smcc-platzhalter .smcc-ph-titel {
	margin: 0 0 8px;
	font-family: Oswald, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
}

.smcc-platzhalter .smcc-ph-text {
	margin: 0 0 14px;
	color: inherit;
}

.smcc-platzhalter .smcc-ph-innen a,
.smcc-platzhalter .smcc-ph-innen a:hover,
.smcc-platzhalter .smcc-ph-innen a:visited {
	color: inherit;
	text-decoration: underline;
}

.smcc-ph-aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 16px;
}

.smcc-platzhalter .smcc-ph-knopf {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	margin: 0;
	padding: 12px 22px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: #cc0000;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.smcc-ph-video .smcc-ph-knopf::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent #fff;
}

.smcc-platzhalter .smcc-ph-knopf:hover {
	background: #a30000;
}

.smcc-ph-immer {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
}

.smcc-ph-immer input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #cc0000;
}

.smcc-platzhalter .smcc-ph-extern {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	opacity: 0.85;
}

.smcc-ph-widget {
	min-height: 160px;
	color: #0f0f0f;
	background: #f3f4f6;
	border: 1px dashed #9a9a9a;
}

@media (max-width: 600px) {
	.smcc-platzhalter {
		padding: 12px;
		font-size: 12.5px;
	}

	.smcc-platzhalter .smcc-ph-titel {
		display: none;
	}

	.smcc-platzhalter .smcc-ph-text {
		margin-bottom: 10px;
	}

	.smcc-platzhalter .smcc-ph-knopf {
		min-height: 40px;
		padding: 9px 16px;
		font-size: 13px;
	}

	.smcc-ph-video .smcc-ph-extern {
		display: none;
	}

	.smcc-ph-video .smcc-ph-aktionen {
		gap: 6px 12px;
	}
}

/* Ersatz-Knopf, wenn eine Seite keinen Link zu Impressum/Datenschutz hat. */
.smcc-schwebeknopf {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 2147482000;
	padding: 6px 10px;
	font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: rgba(15, 15, 15, 0.85);
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.smcc-schwebeknopf:hover,
.smcc-schwebeknopf:focus-visible {
	background: #cc0000;
	outline: none;
}
