/*
 * Zehner Consent — Banner
 * Farben und Schrift folgen der Haus-CI (siehe Theme svelte/index.css).
 */

:root {
	--zc-primary: #AA2118;
	--zc-primary-dark: #8B1A13;
	--zc-bg: #F7F3E7;
	--zc-text: #000000;
	--zc-muted: #4a4a4a;
	--zc-line: #ddd6c2;
}

/* Altes Theme-Banner stilllegen — die Steuerung übernimmt dieses Plugin.
   Das Svelte-Bundle bleibt aktiv, weil es auch die Buchungs-Widgets rendert. */
section.consent-banner,
.consent-banner__overlay {
	display: none !important;
}

.zc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .7);
	z-index: 9999998;
}

.zc-dialog {
	position: fixed;
	z-index: 9999999;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 2rem);
	max-width: 680px;
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem); /* mobile Browserleisten */
	overflow-y: auto;
	background: var(--zc-bg);
	color: var(--zc-text);
	font-family: "Outfit", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	border-radius: .8rem;
	padding: 2rem 1.5rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.zc-dialog h2 {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 .6rem;
}

.zc-intro {
	margin: 0 0 1rem;
}

.zc-links {
	margin: 0 0 1.25rem;
	font-size: .95rem;
}

.zc-links a {
	color: var(--zc-primary);
	text-decoration: underline;
}

.zc-links span {
	color: var(--zc-muted);
	margin: 0 .4rem;
}

/* --- Kategorien --- */

.zc-cats {
	border-top: 1px solid var(--zc-line);
	margin: 0 0 1.25rem;
}

.zc-cat {
	border-bottom: 1px solid var(--zc-line);
	padding: .75rem 0;
}

.zc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.zc-cat__label {
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: .5rem;
	cursor: pointer;
}

.zc-cat__label input {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--zc-primary);
	cursor: pointer;
}

.zc-cat__label input:disabled {
	cursor: default;
	opacity: .6;
}

.zc-cat__fixed {
	font-size: .85rem;
	color: var(--zc-muted);
	font-weight: 400;
}

.zc-cat__toggle {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: .9rem;
	color: var(--zc-primary);
	text-decoration: underline;
	cursor: pointer;
	white-space: nowrap;
}

.zc-cat__details {
	display: none;
	font-size: .9rem;
	color: var(--zc-muted);
	padding: .6rem 0 .2rem 1.6rem;
}

.zc-cat__details.is-open {
	display: block;
}

.zc-cat__details dt {
	font-weight: 600;
	margin-top: .5rem;
}

.zc-cat__details dd {
	margin: 0;
}

/* --- Buttons --- */

.zc-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
}

.zc-btn {
	font: inherit;
	font-size: 1rem;
	padding: .7rem 1.2rem;
	border-radius: .4rem;
	cursor: pointer;
	border: 2px solid var(--zc-primary);
}

/* Annehmen und Ablehnen sind bewusst optisch gleichwertig (DSK-Vorgabe). */
.zc-btn--primary {
	background: var(--zc-primary);
	color: #fff;
}

.zc-btn--primary:hover {
	background: var(--zc-primary-dark);
	border-color: var(--zc-primary-dark);
}

.zc-btn--secondary {
	background: transparent;
	color: var(--zc-primary);
}

.zc-btn--secondary:hover {
	background: rgba(170, 33, 24, .08);
}

.zc-btn:focus-visible {
	outline: 3px solid var(--zc-primary-dark);
	outline-offset: 2px;
}

@media (max-width: 520px) {
	.zc-dialog {
		padding: 1.25rem 1.1rem;
		font-size: 15px;
	}

	.zc-dialog h2 {
		font-size: 1.1rem;
	}

	.zc-intro {
		margin-bottom: .75rem;
	}

	.zc-links {
		margin-bottom: .9rem;
	}

	.zc-cat {
		padding: .6rem 0;
	}

	.zc-cat__fixed {
		white-space: nowrap;
	}

	.zc-buttons .zc-btn {
		flex: 1 1 100%;
		padding: .65rem 1rem;
	}
}
