/* er-consent.css – Datenschutzeinstellungen (Banner + Dialog) – Expert Reparatur */
.er-cc-banner,
.er-cc-overlay {
	--er-cc-main: var(--er-main, #0664cd);
	--er-cc-main-dark: var(--er-main-dark, #0553ab);
	--er-cc-navy: var(--er-navy, #25245e);
	--er-cc-ink: var(--er-ink, #212121);
	--er-cc-muted: var(--er-muted, #4a5568);
	--er-cc-line: var(--er-line, #d6e4f5);
	--er-cc-light: var(--er-light, #f3f8fe);
	font-family: var(--er-font, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	color: var(--er-cc-ink);
	box-sizing: border-box;
}
.er-cc-banner *, .er-cc-overlay * { box-sizing: border-box; }
.er-cc-banner[hidden], .er-cc-overlay[hidden] { display: none !important; }

/* Banner */
.er-cc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 100010;
	max-width: 1040px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--er-cc-line);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(16, 36, 80, .22);
	padding: 18px 22px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}
.er-cc-banner-inner {
	display: flex;
	align-items: center;
	gap: 18px 28px;
}
.er-cc-banner-copy { flex: 1 1 auto; min-width: 0; }
.er-cc-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--er-cc-navy);
}
.er-cc-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--er-cc-ink);
}
.er-cc-links {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--er-cc-muted);
}
.er-cc-links a {
	color: var(--er-cc-main);
	text-decoration: underline;
}
.er-cc-links a:hover { color: var(--er-cc-main-dark); }
.er-cc-actions {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 380px;
}
.er-cc-actions .er-cc-btn-settings { grid-column: 1 / -1; }

/* Buttons – "Alle akzeptieren" und "Nur notwendige" bewusst identisch gestaltet */
.er-cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 14px;
	margin: 0;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.er-cc-btn-choice {
	background: var(--er-cc-main);
	border: 2px solid var(--er-cc-main);
	color: #fff;
}
.er-cc-btn-choice:hover { background: var(--er-cc-main-dark); border-color: var(--er-cc-main-dark); color: #fff; }
.er-cc-btn-settings {
	background: #fff;
	border: 2px solid var(--er-cc-main);
	color: var(--er-cc-main);
}
.er-cc-btn-settings:hover { background: var(--er-cc-light); color: var(--er-cc-main-dark); }
.er-cc-btn:focus-visible,
.er-cc-close:focus-visible,
.er-cc-links a:focus-visible,
.er-cc-switch input:focus-visible + .er-cc-slider {
	outline: 3px solid #ffbf47;
	outline-offset: 2px;
}

/* Dialog */
.er-cc-overlay {
	position: fixed;
	inset: 0;
	z-index: 100020;
	background: rgba(11, 20, 48, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.er-cc-dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(11, 20, 48, .35);
	outline: none;
}
.er-cc-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px 10px;
}
.er-cc-dialog-head .er-cc-title { margin: 0; font-size: 19px; }
.er-cc-close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--er-cc-navy);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.er-cc-close:hover { background: var(--er-cc-light); }
.er-cc-dialog-body {
	padding: 0 22px 8px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.er-cc-cat {
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px solid var(--er-cc-line);
	border-radius: 10px;
	background: var(--er-cc-light);
}
.er-cc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.er-cc-cat-name {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--er-cc-navy);
	cursor: default;
}
label.er-cc-cat-name { cursor: pointer; }
.er-cc-badge {
	font-size: 13px;
	font-weight: 700;
	color: #1d7a3e;
	white-space: nowrap;
}
.er-cc-cat-desc {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--er-cc-muted);
}
.er-cc-dialog-body > .er-cc-links { margin-top: 12px; }
.er-cc-dialog-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 14px 22px 18px;
	border-top: 1px solid var(--er-cc-line);
}
.er-cc-dialog-actions .er-cc-btn-settings { grid-column: 1 / -1; }

/* Schalter */
.er-cc-switch {
	position: relative;
	flex: 0 0 auto;
	display: inline-block;
	width: 52px;
	height: 30px;
}
.er-cc-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
.er-cc-slider {
	position: absolute;
	inset: 0;
	border-radius: 30px;
	background: #9aa6b8;
	transition: background-color .15s ease;
}
.er-cc-slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .15s ease;
}
.er-cc-switch input:checked + .er-cc-slider { background: var(--er-cc-main); }
.er-cc-switch input:checked + .er-cc-slider::before { transform: translateX(22px); }

html.er-cc-dialog-open, html.er-cc-dialog-open body { overflow: hidden; }

/* Footer-Link */
.er-legal-links a[data-er-consent-open] { cursor: pointer; }

/* Tablet */
@media (max-width: 991px) {
	.er-cc-banner-inner { flex-direction: column; align-items: stretch; }
	.er-cc-actions { width: 100%; }
}

/* Smartphone */
@media (max-width: 575px) {
	.er-cc-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
		padding: 14px 14px 12px;
		max-height: calc(100vh - 16px);
	}
	.er-cc-banner-inner { gap: 12px; }
	.er-cc-title { font-size: 16px; margin-bottom: 4px; }
	.er-cc-text { font-size: 13.5px; line-height: 1.5; }
	.er-cc-links { font-size: 12.5px; }
	.er-cc-btn { font-size: 14.5px; padding: 10px 8px; }
	.er-cc-overlay { padding: 0; align-items: flex-end; }
	.er-cc-dialog { max-width: none; max-height: 92vh; border-radius: 14px 14px 0 0; }
	.er-cc-dialog-head { padding: 16px 16px 8px; }
	.er-cc-dialog-body { padding: 0 16px 8px; }
	.er-cc-dialog-actions { padding: 12px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.er-cc-btn, .er-cc-slider, .er-cc-slider::before { transition: none; }
}
