/*
 * ZumEcho Buchungen – Buchungsstrecke, Kalender und Gästeportal.
 * Farben und Abstände über Variablen, damit sie sich anpassen lassen.
 */

.zeb-wizard,
.zeb-karte {
	--zeb-text: #1e2427;
	/* Nebentexte: 7,5:1 auf Weiß. Der vorherige Grauton lag bei 4,9:1 und
	   war in kleiner Schrift schwer zu lesen. */
	--zeb-leise: #4d565b;
	--zeb-linie: #d3d9dc;
	--zeb-flaeche: #f2f5f5;
	--zeb-akzent: #245c4d;
	--zeb-akzent-hell: #e4efeb;
	/* Die Kalenderfarben tragen weiße Zahlen und sind so gewählt, dass der
	   Kontrast überall über 4,5:1 liegt. */
	--zeb-frei: #2f8552;
	--zeb-gelb: #e8c95a;
	--zeb-gelb-text: #3a2f00;
	--zeb-orange: #a15516;
	--zeb-rot: #b23b2c;
	--zeb-voll: #d5d9db;
	--zeb-voll-text: #4a5155;
	--zeb-vergangen: #eaecee;
	--zeb-vergangen-text: #5f6a71;
	--zeb-warnung: #a3352a;
	--zeb-radius: 10px;

	/* Schriftstärken als Variablen – wem es zu kräftig oder zu zart ist,
	   der ändert nur diese beiden Werte. */
	--zeb-staerke: 400;
	--zeb-staerke-hoch: 600;

	color: var(--zeb-text);
	font-size: 16px;
	line-height: 1.55;
	font-weight: var(--zeb-staerke);
	box-sizing: border-box;

	/* Divi und viele andere Themes stellen die Kantenglättung auf
	   „antialiased“. Das lässt Schrift dünner wirken, als sie ist –
	   innerhalb des Buchungstools nehmen wir das zurück. */
	-webkit-font-smoothing: auto;
	-moz-osx-font-smoothing: auto;
}

/*
 * Themes setzen Fließtext gern auf Schriftstärke 300. Ohne eigene Angabe
 * erbt das Buchungstool diese dünne Schrift. Deshalb bekommt jedes
 * Textelement hier ausdrücklich seine Stärke.
 */
:where(.zeb-wizard, .zeb-karte)
:where(p, li, td, th, label, input, select, textarea, strong, em, span) {
	font-weight: var(--zeb-staerke);
}

/*
 * :where() steuert bewusst keine Spezifität bei. Dadurch überschreibt die
 * Regel nur die Vorgabe des Themes – jede eigene Angabe weiter unten in
 * dieser Datei (etwa halbfette Feldnamen) bleibt unangetastet.
 */

.zeb-wizard *,
.zeb-karte * {
	box-sizing: inherit;
}

/* ---------- Schrittleiste ---------- */

.zeb-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.zeb-steps li {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 140px;
	padding: 10px 14px;
	border: 1px solid var(--zeb-linie);
	border-radius: var(--zeb-radius);
	background: #fff;
	color: var(--zeb-leise);
	font-size: 15px;
	font-weight: 500;
}

.zeb-steps li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--zeb-flaeche);
	font-size: 13px;
	font-weight: 700;
	flex: 0 0 auto;
}

.zeb-steps li.is-active {
	border-color: var(--zeb-akzent);
	background: var(--zeb-akzent-hell);
	color: var(--zeb-text);
	font-weight: 600;
}

.zeb-steps li.is-active span,
.zeb-steps li.is-fertig span {
	background: var(--zeb-akzent);
	color: #fff;
}

/* Schritte werden über Klassen ein- und ausgeblendet – nicht über das
   hidden-Attribut, weil Divi eigene display-Regeln auf <section> setzt. */
.zeb-wizard .zeb-panel {
	display: none !important;
}

.zeb-wizard .zeb-panel.is-active {
	display: block !important;
}

.zeb-wizard [hidden] {
	display: none !important;
}

.zeb-h {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 700;
}

.zeb-intro {
	margin: 0 0 18px;
	/* Die Einleitung ist der erste Satz, den jemand liest – dunkel und
	   etwas kräftiger als der übrige Fließtext. */
	color: var(--zeb-text);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.5;
}

/* ---------- Felder ---------- */

.zeb-felder {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 20px;
}

.zeb-felder-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.zeb-feld {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1 1 180px;
	font-size: 15px;
}

/* Feldnamen dunkel und halbfett – als Beschriftung müssen sie im Blick
   bleiben, nicht zurücktreten. */
.zeb-feld > span {
	color: var(--zeb-text);
	font-weight: 600;
}

.zeb-feld em {
	color: var(--zeb-leise);
	font-size: 14px;
	font-weight: 500;
	font-style: normal;
}

.zeb-feld input,
.zeb-feld select,
.zeb-feld textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--zeb-linie);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font-size: 15px;
	font-family: inherit;
}

.zeb-feld input:focus,
.zeb-feld select:focus,
.zeb-feld textarea:focus {
	outline: 2px solid var(--zeb-akzent);
	outline-offset: 1px;
}

.zeb-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 14px 0;
	font-size: 15px;
}

.zeb-check input {
	margin-top: 4px;
	flex: 0 0 auto;
}

/* Falle für automatische Eintragungen */
.zeb-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Auswahlanzeige ---------- */

.zeb-auswahl-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
	padding: 12px 16px;
	margin: 0 0 14px;
	border-radius: var(--zeb-radius);
	background: var(--zeb-flaeche);
	font-size: 15px;
}

.zeb-auswahl-info strong {
	display: block;
	color: var(--zeb-leise);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.zeb-auswahl-info span {
	font-size: 16px;
	font-weight: 600;
}

.zeb-reset {
	margin-left: auto;
	border: 0;
	background: none;
	color: var(--zeb-akzent);
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	text-decoration: underline;
}

/* ---------- Kalender ---------- */

.zeb-kalender-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
}

.zeb-monatsname {
	font-weight: 600;
}

.zeb-prev,
.zeb-next {
	width: 40px;
	height: 40px;
	border: 1px solid var(--zeb-linie);
	border-radius: 50%;
	background: #fff;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.zeb-prev:hover,
.zeb-next:hover {
	border-color: var(--zeb-akzent);
	color: var(--zeb-akzent);
}

.zeb-kalender {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 26px;
	margin: 0 0 16px;
}

.zeb-monat h4 {
	margin: 0 0 8px;
	font-size: 16px;
}

.zeb-wochentage,
.zeb-tage {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.zeb-wochentage span {
	padding: 4px 0;
	color: var(--zeb-leise);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.zeb-tag {
	position: relative;
	aspect-ratio: 1/1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--zeb-frei);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.zeb-tag.is-leer {
	background: none;
	cursor: default;
	pointer-events: none;
}

.zeb-tag.is-gelb { background: var(--zeb-gelb); color: var(--zeb-gelb-text); }
.zeb-tag.is-orange { background: var(--zeb-orange); }
.zeb-tag.is-rot { background: var(--zeb-rot); }

.zeb-tag.is-voll {
	/* Ausgebuchte Tage treten zurück, bleiben aber lesbar – die frühere
	   Deckkraft von 0,55 drückte den Kontrast auf 3:1. */
	background: var(--zeb-voll);
	color: var(--zeb-voll-text);
	cursor: not-allowed;
}

.zeb-tag.is-vergangen {
	background: var(--zeb-vergangen);
	color: var(--zeb-vergangen-text);
	cursor: not-allowed;
}

.zeb-tag:not(.is-leer):not(:disabled):hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.zeb-tag.is-anreise,
.zeb-tag.is-abreise {
	border-color: #16211d;
	box-shadow: 0 0 0 2px #16211d inset;
}

.zeb-tag.is-dazwischen {
	border-color: #16211d;
	opacity: 0.9;
}

.zeb-tag:focus-visible {
	outline: 3px solid #16211d;
	outline-offset: 2px;
}

/*
 * Anfragemodus: keine Belegung, alle Tage gleich. Bewusst nicht grün –
 * das würde „frei“ versprechen. Nur die eigene Auswahl wird hervorgehoben.
 */
.zeb-tag.is-neutral {
	border-color: var(--zeb-linie);
	background: #fff;
	color: var(--zeb-text);
}

.zeb-tag.is-neutral.is-gesperrt {
	border-color: transparent;
	background: var(--zeb-vergangen);
	color: var(--zeb-vergangen-text);
	cursor: not-allowed;
}

.zeb-tag.is-neutral.is-dazwischen {
	background: var(--zeb-akzent-hell);
	opacity: 1;
}

.zeb-tag.is-neutral.is-anreise,
.zeb-tag.is-neutral.is-abreise {
	background: var(--zeb-akzent);
	color: #fff;
}

/* ---------- Hinweis am Tag ---------- */

.zeb-tipp {
	font-weight: var(--zeb-staerke);
	position: absolute;
	z-index: 99999;
	width: 250px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #171c1f;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
	opacity: 0;
	transition: opacity 0.12s ease;
	pointer-events: none;
}

.zeb-tipp.is-sichtbar {
	opacity: 1;
}

.zeb-tipp-block {
	margin-top: 8px;
}

.zeb-tipp em {
	display: block;
	color: #b9cec6;
	font-size: 12px;
	font-weight: 700;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.zeb-tipp ul {
	margin: 3px 0 0;
	padding: 0 0 0 14px;
}

.zeb-tipp li span {
	color: #c2cace;
}

.zeb-tipp-fuss {
	margin: 10px 0 0;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: #dbe9e3;
	font-weight: 600;
}

/* ---------- Legende ---------- */

.zeb-legende {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	color: var(--zeb-leise);
	font-size: 14px;
	font-weight: 500;
}

.zeb-legende li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.zeb-dot {
	width: 14px;
	height: 14px;
	border-radius: 4px;
	background: var(--zeb-frei);
}

.zeb-dot.is-gelb { background: var(--zeb-gelb); }
.zeb-dot.is-orange { background: var(--zeb-orange); }
.zeb-dot.is-rot { background: var(--zeb-rot); }
.zeb-dot.is-voll { background: var(--zeb-voll); }

.zeb-zeiten {
	color: var(--zeb-leise);
	font-size: 15px;
	font-weight: 500;
}

/* ---------- Wohnungen ---------- */

/* Ganzes Haus (Schritt 2) und Veranstaltungsraum (Schritt 3) sind gleich
   aufgebaute Wahlkästen. */
.zeb-exklusiv,
.zeb-raum-option {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	margin: 0 0 18px;
	border: 1px solid var(--zeb-linie);
	border-radius: var(--zeb-radius);
	background: var(--zeb-akzent-hell);
	cursor: pointer;
}

.zeb-exklusiv.is-aus {
	background: var(--zeb-flaeche);
	border-style: dashed;
	cursor: not-allowed;
}

.zeb-exklusiv.is-aus strong,
.zeb-exklusiv.is-aus em {
	color: var(--zeb-leise);
}

.zeb-raum-option {
	flex-direction: column;
	gap: 12px;
	cursor: default;
}

.zeb-raum-wahl {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	cursor: pointer;
}

/* Tagesfeld unter dem Häkchen, eingerückt auf Höhe des Textes. */
.zeb-raum-tage {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-left: 25px;
	font-weight: 600;
}

.zeb-raum-tage input {
	width: 80px;
	padding: 8px 10px;
	border: 1px solid var(--zeb-linie);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font-size: 15px;
	font-family: inherit;
}

.zeb-raum-tage em {
	color: var(--zeb-leise);
	font-size: 14px;
	font-weight: 500;
	font-style: normal;
}

.zeb-exklusiv em,
.zeb-raum-option em {
	display: block;
	color: var(--zeb-leise);
	font-size: 14px;
	font-weight: 500;
	font-style: normal;
}

.zeb-bettenstand {
	margin: 0 0 14px;
	font-size: 16px;
}

.zeb-bettenstand .is-ok { color: var(--zeb-akzent); font-weight: 600; }
.zeb-bettenstand .is-warnung { color: var(--zeb-warnung); font-weight: 600; }

.zeb-wohnungen {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}

.zeb-wohnungen.is-aus {
	opacity: 0.55;
	pointer-events: none;
	filter: grayscale(0.4);
}

.zeb-karte-wohnung {
	display: flex;
	flex-direction: column;
	border: 2px solid var(--zeb-linie);
	border-radius: var(--zeb-radius);
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zeb-karte-wohnung.is-gewaehlt {
	border-color: var(--zeb-akzent);
	box-shadow: 0 6px 18px rgba(47, 111, 94, 0.18);
}

/* Belegte Wohnungen treten zurück, ohne dass der Text unlesbar wird:
   gedämpft wird nur das Bild, der Text bekommt die dunkle Nebenfarbe. */
.zeb-karte-wohnung.is-belegt {
	background: var(--zeb-flaeche);
}

.zeb-karte-wohnung.is-belegt .zeb-karte-bild img {
	filter: grayscale(0.7);
	opacity: 0.65;
}

.zeb-karte-wohnung.is-belegt .zeb-karte-text h4,
.zeb-karte-wohnung.is-belegt .zeb-karte-gesamt {
	color: var(--zeb-leise);
}

.zeb-karte-bild {
	position: relative;
	aspect-ratio: 4/3;
	background: var(--zeb-flaeche);
}

.zeb-karte-bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zeb-belegt-band {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 5px 11px;
	border-radius: 20px;
	background: rgba(23, 28, 31, 0.92);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.zeb-karte-text {
	padding: 12px 14px 14px;
}

.zeb-karte-text h4 {
	margin: 0 0 4px;
	font-size: 17px;
}

.zeb-karte-daten {
	margin: 0;
	color: var(--zeb-leise);
	font-size: 14px;
	font-weight: 500;
}

.zeb-karte-gesamt {
	margin: 2px 0 8px;
	font-weight: 600;
}

.zeb-bilder {
	padding: 0;
	border: 0;
	background: none;
	color: var(--zeb-akzent);
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
}

.zeb-waehlen {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

/* ---------- Preis ---------- */

.zeb-preistabelle {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 14px;
}

.zeb-preistabelle td {
	padding: 11px 0;
	border-bottom: 1px solid var(--zeb-linie);
	vertical-align: top;
	font-weight: 500;
}

.zeb-preistabelle td:last-child {
	text-align: right;
	white-space: nowrap;
}

.zeb-preistabelle td span {
	display: block;
	color: var(--zeb-leise);
	font-size: 14px;
}

.zeb-preistabelle .zeb-summe td {
	border-bottom: 0;
	border-top: 2px solid var(--zeb-text);
	font-size: 18px;
	font-weight: 700;
}

.zeb-summe-kopf {
	padding: 10px 14px;
	margin: 0 0 12px;
	border-radius: 8px;
	background: var(--zeb-flaeche);
	font-size: 15px;
	font-weight: 500;
}

.zeb-hinweis-text {
	color: var(--zeb-leise);
	font-size: 15px;
	font-weight: 500;
}

/* ---------- Navigation ---------- */

.zeb-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.zeb-nav button,
.zeb-btn {
	padding: 12px 22px;
	border: 1px solid var(--zeb-akzent);
	border-radius: 8px;
	background: var(--zeb-akzent);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.zeb-nav .zeb-zurueck {
	background: #fff;
	color: var(--zeb-akzent);
}

.zeb-nav button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.zeb-btn.is-nein {
	border-color: var(--zeb-warnung);
	background: var(--zeb-warnung);
}

.zeb-btn.is-ja {
	border-color: var(--zeb-akzent);
}

/* ---------- Meldungen ---------- */

.zeb-fehler,
.zeb-alarm {
	padding: 12px 16px;
	margin: 0 0 16px;
	border-radius: 8px;
	background: #fdecea;
	color: #7f2a1e;
	font-size: 16px;
	font-weight: 500;
}

.zeb-laden {
	color: var(--zeb-leise);
	font-style: italic;
}

.zeb-hinweis {
	padding: 12px 16px;
	border: 1px dashed var(--zeb-linie);
	border-radius: 8px;
	color: var(--zeb-leise);
	font-size: 15px;
}

/* ---------- Bildergalerie ---------- */

.zeb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
	padding: 56px 68px;
}

.zeb-lightbox.is-offen {
	display: flex;
}

.zeb-lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.zeb-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.zeb-lb-zu { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 26px; }
.zeb-lb-prev { left: 14px; top: 50%; margin-top: -26px; width: 52px; height: 52px; font-size: 26px; }
.zeb-lb-next { right: 14px; top: 50%; margin-top: -26px; width: 52px; height: 52px; font-size: 26px; }

/* ---------- Gästeportal und Entscheidungsseite ---------- */

.zeb-karte {
	max-width: 640px;
	margin: 40px auto;
	padding: 28px 30px;
	border: 1px solid var(--zeb-linie);
	border-radius: var(--zeb-radius);
	background: #fff;
}

.zeb-standalone {
	margin: 0;
	padding: 20px;
	background: #f2f4f4;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.zeb-portal-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	max-width: 420px;
}

.zeb-status {
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--zeb-flaeche);
}

.zeb-status-bestaetigt { background: var(--zeb-akzent-hell); }
.zeb-status-storniert,
.zeb-status-abgelehnt { background: #fdecea; }

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 600px) {
	.zeb-steps li {
		flex: 1 1 100%;
	}

	.zeb-kalender {
		grid-template-columns: 1fr;
	}

	.zeb-nav {
		flex-direction: column-reverse;
	}

	.zeb-nav button {
		width: 100%;
	}

	.zeb-lightbox {
		padding: 60px 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zeb-tag,
	.zeb-karte-wohnung,
	.zeb-tipp {
		transition: none;
	}
}
