/* APS Cookie-Banner. Farben und Schrift folgen dem Design der Website. */
.aps-cc {
	--cc-ink: var(--aps-ink, #14110f);
	--cc-paper: var(--aps-paper, #f2eee7);
	--cc-red: var(--aps-red, #7a1018);
	--cc-red-dark: var(--aps-red-dark, #5a0b11);
	--cc-line: var(--aps-line, #d8d2c6);
	--cc-muted: var(--aps-muted, #6e695f);
	font-family: var(--aps-font, "IBM Plex Sans", "Segoe UI", Arial, sans-serif);
	color: var(--cc-ink);
	font-size: 15px;
	line-height: 1.5;
}

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

.aps-cc *, .aps-cc *::before, .aps-cc *::after { box-sizing: border-box; }

/* Banner: unten links, auf dem Handy ganze Breite */
.aps-cc__banner {
	position: fixed;
	z-index: 99990;
	left: 16px;
	bottom: 16px;
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 20px;
	background: var(--cc-paper);
	border: 1px solid var(--cc-ink);
	border-radius: 2px;
	box-shadow: 0 12px 40px rgba(20, 17, 15, 0.22);
}

.aps-cc__banner:focus { outline: none; }

.aps-cc__titel {
	margin: 0 0 8px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--cc-ink);
}

.aps-cc__text { margin: 0 0 8px; color: var(--cc-ink); }

.aps-cc__links { margin: 0 0 16px; font-size: 0.8125rem; }

.aps-cc__links a {
	margin-right: 14px;
	color: var(--cc-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.aps-cc__links a:hover { color: var(--cc-red); }

.aps-cc__knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* Alle Knoepfe gleichwertig gross: Zustimmen und Ablehnen sind gleich sichtbar */
.aps-cc__btn {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 10px 16px;
	font: inherit;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	border: 1px solid var(--cc-red);
	border-radius: 2px;
	transition: background-color 160ms, color 160ms, border-color 160ms;
}

.aps-cc__btn--ja { background: var(--cc-red); color: #fff; }
.aps-cc__btn--ja:hover { background: var(--cc-red-dark); border-color: var(--cc-red-dark); }

.aps-cc__btn--nein { background: transparent; color: var(--cc-red); }
.aps-cc__btn--nein:hover { background: var(--cc-red); color: #fff; }

.aps-cc__btn--link {
	flex: 1 0 100%;
	min-height: 36px;
	background: transparent;
	border-color: transparent;
	color: var(--cc-ink);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.aps-cc__btn--link:hover { color: var(--cc-red); }

.aps-cc button:focus-visible,
.aps-cc a:focus-visible,
.aps-cc input:focus-visible {
	outline: 3px solid var(--cc-ink);
	outline-offset: 2px;
}

/* Einstellungsfenster */
.aps-cc__dialog {
	width: min(560px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	overflow-y: auto;
	padding: 22px;
	color: var(--cc-ink);
	background: var(--cc-paper);
	border: 1px solid var(--cc-ink);
	border-radius: 2px;
	box-shadow: 0 20px 60px rgba(20, 17, 15, 0.35);
}

.aps-cc__dialog::backdrop { background: rgba(20, 17, 15, 0.55); }

.aps-cc__dialog-kopf {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.aps-cc__zu {
	flex: none;
	width: 40px;
	height: 40px;
	margin: -6px -8px 0 0;
	font-size: 28px;
	line-height: 1;
	color: var(--cc-ink);
	background: transparent;
	border: 0;
	cursor: pointer;
}

.aps-cc__gruppe {
	margin: 0 0 12px;
	padding: 14px 0 0;
	border-top: 1px solid var(--cc-line);
}

.aps-cc__gruppe p { margin: 6px 0 0; font-size: 0.875rem; color: var(--cc-muted); }

.aps-cc__zeile {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.aps-cc__zeile label { font-weight: 700; }

/* Schalter */
.aps-cc__zeile input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	flex: none;
	width: 46px;
	height: 26px;
	margin: 0;
	cursor: pointer;
	background: var(--cc-muted);
	border-radius: 13px;
	transition: background-color 160ms;
}

.aps-cc__zeile input[type="checkbox"]::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	transition: transform 160ms;
}

.aps-cc__zeile input[type="checkbox"]:checked { background: var(--cc-red); }
.aps-cc__zeile input[type="checkbox"]:checked::after { transform: translateX(20px); }
.aps-cc__zeile input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.6; }

.aps-cc__dialog .aps-cc__knoepfe { margin-top: 16px; }

/* Kleiner Knopf zum erneuten Oeffnen */
.aps-cc__fab {
	position: fixed;
	z-index: 99980;
	left: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--cc-ink);
	background: var(--cc-paper);
	border: 1px solid var(--cc-ink);
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(20, 17, 15, 0.2);
	cursor: pointer;
}

.aps-cc__fab:hover { color: #fff; background: var(--cc-red); border-color: var(--cc-red); }

/* Shortcode-Link, z. B. im Footer */
.aps-cc__oeffnen {
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	background: none;
	border: 0;
	cursor: pointer;
}

@media (max-width: 520px) {
	.aps-cc__banner {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		border-width: 1px 0 0;
		padding: 16px;
	}
	.aps-cc__fab { left: 12px; bottom: 12px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.aps-cc * { transition: none !important; }
}

/* Haerten gegen Theme-Stile (Hello/Elementor setzen Ueberschriften und Button-Farben global) */
.aps-cc .aps-cc__titel{margin:0 0 8px!important;font-family:inherit!important;font-size:1.125rem!important;font-weight:700!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important;color:var(--cc-ink)!important}
.aps-cc p{margin:0 0 8px!important;font-size:.9375rem!important;line-height:1.5!important;color:var(--cc-ink)}
.aps-cc .aps-cc__links{margin:0 0 16px!important;font-size:.8125rem!important}
.aps-cc .aps-cc__gruppe p{margin:6px 0 0!important;font-size:.875rem!important;color:var(--cc-muted)}
.aps-cc .aps-cc__btn{font-family:inherit!important;font-size:.9375rem!important;font-weight:600!important;line-height:1.2!important;letter-spacing:0!important;text-transform:none!important;border-radius:2px!important;box-shadow:none!important}
.aps-cc .aps-cc__btn--ja{background:var(--cc-red)!important;color:#fff!important;border:1px solid var(--cc-red)!important}
.aps-cc .aps-cc__btn--ja:hover,.aps-cc .aps-cc__btn--ja:focus{background:var(--cc-red-dark)!important;border-color:var(--cc-red-dark)!important;color:#fff!important}
.aps-cc .aps-cc__btn--nein{background:transparent!important;color:var(--cc-red)!important;border:1px solid var(--cc-red)!important}
.aps-cc .aps-cc__btn--nein:hover,.aps-cc .aps-cc__btn--nein:focus{background:var(--cc-red)!important;color:#fff!important}
.aps-cc .aps-cc__btn--link{background:transparent!important;color:var(--cc-ink)!important;border:1px solid transparent!important;font-weight:500!important;text-decoration:underline!important}
.aps-cc .aps-cc__btn--link:hover,.aps-cc .aps-cc__btn--link:focus{background:transparent!important;color:var(--cc-red)!important}
.aps-cc .aps-cc__zu{background:transparent!important;color:var(--cc-ink)!important;border:0!important;padding:0!important}
.aps-cc .aps-cc__fab{background:var(--cc-paper)!important;color:var(--cc-ink)!important;border:1px solid var(--cc-ink)!important;padding:0!important}
.aps-cc .aps-cc__fab:hover,.aps-cc .aps-cc__fab:focus{background:var(--cc-red)!important;color:#fff!important;border-color:var(--cc-red)!important}
.aps-cc__oeffnen{background:none!important;border:0!important;color:inherit!important;padding:0!important;text-decoration:underline!important;font:inherit!important}

/* Platz fuer die feste Anruf-Leiste (Handy) */
@media (max-width:767px){body.aps-design:not(.single-aps_maschine) .aps-cc .aps-cc__banner{bottom:calc(70px + env(safe-area-inset-bottom,0px))!important}body.aps-design:not(.single-aps_maschine) .aps-cc .aps-cc__fab{bottom:calc(66px + env(safe-area-inset-bottom,0px))!important}}
@media (max-width:520px){body.aps-design:not(.single-aps_maschine) .aps-cc .aps-cc__banner{bottom:calc(53px + env(safe-area-inset-bottom,0px))!important}}
