/*
 * Einwilligung in externe Dienste.
 *
 * Die Leiste sitzt am unteren Rand und blockiert die Seite bewusst nicht:
 * Solange nichts entschieden ist, wird ohnehin kein externer Dienst geladen.
 * Die Seite bleibt also lesbar, und niemand wird zu einem Klick gedraengt.
 *
 * Zustimmen und Ablehnen sehen gleich aus und stehen nebeneinander — eine
 * hervorgehobene Zustimmung waere keine freie Entscheidung.
 */

.fewo-einwilligung {
	background: var( --wp--preset--color--base, #fff );
	border-top: 3px solid var( --wp--preset--color--accent-1, #8fd3fe );
	bottom: 0;
	box-shadow: 0 -6px 28px rgba( 0, 0, 0, 0.16 );
	left: 0;
	position: fixed;
	right: 0;
	z-index: 900;
}

.fewo-einwilligung[hidden] {
	display: none;
}

.fewo-einwilligung__kasten {
	margin: 0 auto;
	max-height: 80vh;
	max-width: 1280px;
	overflow-y: auto;
	padding: 1.4rem 1.5rem 1.5rem;
}

.fewo-einwilligung__titel {
	color: var( --wp--preset--color--contrast, #202020 );
	font-size: 1.25rem;
	margin: 0 0 0.5em;
}

.fewo-einwilligung__titel:focus-visible {
	outline: 3px solid var( --wp--preset--color--accent-3, #1c6b9e );
	outline-offset: 4px;
}

.fewo-einwilligung__text {
	color: var( --wp--preset--color--contrast, #202020 );
	margin: 0 0 0.9em;
	max-width: 78ch;
}

/* --- Aufklappbare Einzelheiten je Dienst --- */

.fewo-einwilligung__details {
	margin-bottom: 1em;
}

.fewo-einwilligung__details > summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.3em 0;
}

.fewo-einwilligung__details > summary:focus-visible {
	outline: 3px solid var( --wp--preset--color--accent-3, #1c6b9e );
	outline-offset: 2px;
}

.fewo-einwilligung__dienst {
	border-left: 3px solid var( --wp--preset--color--accent-6, rgba( 0, 0, 0, 0.12 ) );
	margin-top: 0.8em;
	padding-left: 1em;
}

.fewo-einwilligung__schalter {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-weight: 600;
	gap: 0.6em;
}

.fewo-einwilligung__schalter input {
	height: 1.15em;
	width: 1.15em;
}

.fewo-einwilligung__dienst dl {
	display: grid;
	gap: 0.15em 1.2em;
	grid-template-columns: minmax( 9rem, max-content ) 1fr;
	margin: 0.6em 0 0;
}

.fewo-einwilligung__dienst dt {
	font-weight: 600;
}

.fewo-einwilligung__dienst dd {
	margin: 0;
}

/* --- Schaltflaechen --- */

.fewo-einwilligung__knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7em;
	margin-bottom: 0.9em;
}

.fewo-einwilligung__knopf,
.fewo-smoobu__knopf {
	background: var( --wp--preset--color--contrast, #202020 );
	border: 2px solid var( --wp--preset--color--contrast, #202020 );
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	min-height: 44px;
	padding: 0.55em 1.5em;
}

/* Die dritte Schaltflaeche gehoert zur aufgeklappten Auswahl und tritt
   deshalb zurueck — sie ist keine Alternative zu den beiden ersten. */
.fewo-einwilligung__knopf--schmal,
.fewo-smoobu__knopf:not( .fewo-smoobu__knopf--haupt ) {
	background: transparent;
	color: var( --wp--preset--color--contrast, #202020 );
}

.fewo-einwilligung__knopf:hover,
.fewo-smoobu__knopf:hover {
	background: var( --wp--preset--color--accent-3, #1c6b9e );
	border-color: var( --wp--preset--color--accent-3, #1c6b9e );
	color: #fff;
}

.fewo-einwilligung__knopf:focus-visible,
.fewo-smoobu__knopf:focus-visible,
.fewo-einwilligung__oeffnen:focus-visible {
	outline: 3px solid var( --wp--preset--color--accent-3, #1c6b9e );
	outline-offset: 3px;
}

.fewo-einwilligung__fuss {
	color: var( --wp--preset--color--contrast, #202020 );
	display: flex;
	flex-wrap: wrap;
	font-size: 0.9rem;
	gap: 0.4em 1.4em;
	margin: 0;
}

/* Link in der Fusszeile, der die Leiste erneut oeffnet */
.fewo-einwilligung__oeffnen {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
}

/* --- Platzhalter des Buchungstools --- */

.fewo-smoobu__platzhalter {
	align-content: center;
	background: var( --wp--preset--color--accent-5, #f6f3ee );
	border: 1px solid var( --wp--preset--color--accent-6, rgba( 0, 0, 0, 0.12 ) );
	border-radius: 4px;
	display: grid;
	min-height: var( --fewo-smoobu-hoehe, 285px );
	padding: 1.3rem;
}

.fewo-smoobu__platzhalter[hidden] {
	display: none;
}

.fewo-smoobu__titel {
	font-size: 1.05rem;
	margin: 0 0 0.4em;
}

.fewo-smoobu__platzhalter p {
	margin: 0 0 0.8em;
}

.fewo-smoobu__knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
}

.fewo-smoobu__fuss {
	font-size: 0.9rem;
	margin: 0.2em 0 0;
}

@media ( max-width: 781px ) {
	.fewo-smoobu__platzhalter {
		min-height: 0;
	}

	.fewo-einwilligung__dienst dl {
		grid-template-columns: 1fr;
	}

	.fewo-einwilligung__dienst dt {
		margin-top: 0.4em;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.fewo-einwilligung {
		transition: none;
	}
}
