/* OrdnungsGeist Cookie-Einwilligung. Alles unter #og-consent, damit Theme und Elementor nichts überschreiben. */
#og-consent {
	--ogc-ink: #242627;
	--ogc-muted: #5b6168;
	--ogc-line: #e3e6ea;
	--ogc-soft: #f4f6f8;
	--ogc-brand: #2c5679;
	--ogc-brand-hover: #234663;
	--ogc-accent: #4f8aba;
	--ogc-bg: #ffffff;
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 2147483000;
	width: min(480px, calc(100vw - 48px));
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ogc-ink);
	text-align: left;
}
#og-consent[hidden],
#og-consent [hidden],
.ogc-fab[hidden] {
	display: none !important;
}
#og-consent *,
#og-consent *::before,
#og-consent *::after {
	box-sizing: border-box;
}
#og-consent .ogc-box {
	position: relative;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--ogc-bg);
	border: 1px solid var(--ogc-line);
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(10, 13, 49, 0.18), 0 2px 8px rgba(10, 13, 49, 0.08);
	padding: 24px;
}
#og-consent.ogc-in .ogc-box {
	animation: ogc-in 0.22s ease-out;
}
@keyframes ogc-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	#og-consent.ogc-in .ogc-box { animation: none; }
}

#og-consent .ogc-title {
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ogc-ink);
	outline: none;
}
#og-consent .ogc-text,
#og-consent .ogc-cat-text {
	margin: 0 0 16px;
	padding: 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ogc-ink);
}

/* Knöpfe: „Alle akzeptieren“ und „Nur notwendige“ bewusst gleichwertig */
#og-consent button {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	font-family: inherit;
}
#og-consent .ogc-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0 0 12px;
}
#og-consent .ogc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 14px;
	border-radius: 6px;
	background: var(--ogc-brand);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.15s ease;
}
#og-consent .ogc-btn:hover {
	background: var(--ogc-brand-hover);
}
#og-consent .ogc-link {
	display: inline-block;
	padding: 6px 0;
	color: var(--ogc-brand);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
#og-consent .ogc-link:hover {
	color: var(--ogc-brand-hover);
}
#og-consent .ogc-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--ogc-muted);
	font-size: 24px;
	line-height: 1;
}
#og-consent .ogc-close:hover {
	background: var(--ogc-soft);
	color: var(--ogc-ink);
}
#og-consent button:focus-visible,
#og-consent a:focus-visible,
#og-consent summary:focus-visible,
#og-consent .ogc-switch-input:focus-visible + .ogc-switch-track,
.ogc-fab:focus-visible {
	outline: 3px solid var(--ogc-accent, #4f8aba);
	outline-offset: 2px;
}

#og-consent .ogc-legal {
	margin: 8px 0 0;
	padding: 0;
	font-size: 13px;
	color: var(--ogc-muted);
}
#og-consent a {
	color: var(--ogc-brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Kategorien */
#og-consent .ogc-cats {
	margin: 0 0 16px;
	border: 1px solid var(--ogc-line);
	border-radius: 10px;
	overflow: hidden;
}
#og-consent .ogc-cat {
	padding: 14px 16px 10px;
	border-top: 1px solid var(--ogc-line);
}
#og-consent .ogc-cat:first-child {
	border-top: 0;
}
#og-consent .ogc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 6px;
	cursor: default;
}
#og-consent label.ogc-cat-head {
	cursor: pointer;
}
#og-consent .ogc-cat-name {
	font-size: 15.5px;
	font-weight: 700;
}
#og-consent .ogc-always {
	font-size: 13px;
	font-weight: 600;
	color: var(--ogc-muted);
	white-space: nowrap;
}
#og-consent .ogc-cat-text {
	margin-bottom: 8px;
	font-size: 14px;
}

/* Schalter */
#og-consent .ogc-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
	flex: 0 0 auto;
}
#og-consent .ogc-switch-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
#og-consent .ogc-switch-track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #c5ccd3;
	transition: background-color 0.15s ease;
}
#og-consent .ogc-switch-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, 0.25);
	transition: transform 0.15s ease;
}
#og-consent .ogc-switch-input:checked + .ogc-switch-track {
	background: var(--ogc-brand);
}
#og-consent .ogc-switch-input:checked + .ogc-switch-track::after {
	transform: translateX(20px);
}

/* Details */
#og-consent .ogc-more {
	margin: 0 0 4px;
	font-size: 13.5px;
}
#og-consent .ogc-more summary {
	display: inline-block;
	padding: 4px 0;
	cursor: pointer;
	color: var(--ogc-brand);
	font-weight: 600;
	list-style: none;
}
#og-consent .ogc-more summary::-webkit-details-marker {
	display: none;
}
#og-consent .ogc-more summary::after {
	content: " +";
}
#og-consent .ogc-more[open] summary::after {
	content: " −";
}
#og-consent .ogc-dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 12px;
	margin: 6px 0 8px;
	padding: 10px 12px;
	background: var(--ogc-soft);
	border-radius: 8px;
	color: var(--ogc-ink);
}
#og-consent .ogc-dl dt {
	margin: 0;
	font-weight: 600;
}
#og-consent .ogc-dl dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* Wiederaufruf-Knopf, links unten auf jeder Seite. Hohe Spezifität + !important gegen Theme-Button-Stile. */
button.ogc-fab.ogc-fab {
	all: unset;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	position: fixed !important;
	left: 16px !important;
	bottom: 16px !important;
	top: auto !important;
	right: auto !important;
	z-index: 2147482999 !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	color: #2c5679 !important;
	border: 1px solid #dfe3e8 !important;
	box-shadow: 0 4px 14px rgba(10, 13, 49, 0.18) !important;
	cursor: pointer !important;
	line-height: 0 !important;
	font-size: 0 !important;
	text-indent: 0 !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
}
button.ogc-fab.ogc-fab:hover {
	background: #f4f6f8 !important;
	color: #234663 !important;
}
button.ogc-fab.ogc-fab[hidden] {
	display: none !important;
}
button.ogc-fab.ogc-fab svg {
	width: 24px !important;
	height: 24px !important;
	display: block !important;
	fill: currentColor !important;
}
button.ogc-fab.ogc-fab svg path {
	fill: currentColor !important;
}
@media (max-width: 600px) {
	button.ogc-fab.ogc-fab {
		bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

/* Smartphone: Blatt am unteren Rand */
@media (max-width: 600px) {
	#og-consent {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
	}
	#og-consent .ogc-box {
		max-height: 88vh;
		max-height: 88dvh;
		border-radius: 14px 14px 0 0;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	}
	#og-consent .ogc-title {
		font-size: 18px;
		padding-right: 32px;
	}
	#og-consent .ogc-text {
		font-size: 14px;
	}
	#og-consent .ogc-actions {
		grid-template-columns: 1fr;
	}
	#og-consent .ogc-dl {
		grid-template-columns: 1fr;
	}
	#og-consent .ogc-dl dd {
		margin-bottom: 6px;
	}
}
