/*
 * Wizard-Widget (mod_reservierung Variante "wizard").
 * Baut auf reservierung.css auf (Feld-/Button-/Kalender-/Slot-Styles),
 * ergaenzt nur Schritt-Layout, Fortschritt und Erfolg.
 */

.resv-wizard.mod-resv-wizard {
	max-width: 480px;
	padding: 0;
}

.resv-wizard .resv-wiz-head {
	margin-bottom: 14px;
}

.resv-wiz-title {
	font-family: var(--resv-serif);
	font-weight: 400;
	letter-spacing: 0.03em;
	color: var(--resv-wine);
	text-align: center;
	margin: 0 0 14px;
}

/* Fortschrittsanzeige */
.resv-wiz-progress {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

.resv-wiz-progress li {
	flex: 1 1 0;
	text-align: center;
	font-size: 11px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #b3a890;
	position: relative;
	padding-top: 30px;
}

.resv-wiz-progress li span {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 24px;
	height: 24px;
	line-height: 24px;
	border-radius: 50%;
	background: #ece5d6;
	color: #8a8070;
	font-weight: 700;
	font-size: 12px;
}

/* Verbindungslinie zwischen den Punkten */
.resv-wiz-progress li::before {
	content: '';
	position: absolute;
	top: 11px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: #ece5d6;
	z-index: 0;
}

.resv-wiz-progress li:first-child::before {
	display: none;
}

.resv-wiz-progress li.is-active {
	color: var(--resv-wine);
	font-weight: 700;
}

.resv-wiz-progress li.is-active span {
	background: var(--resv-wine);
	color: #fff;
}

.resv-wiz-progress li.is-done span {
	background: var(--resv-gold);
	color: #fff;
}

.resv-wiz-notice {
	font-size: 14px;
}

/* Schritte */
.resv-wiz-form {
	margin-top: 14px;
	padding: 20px 18px 18px;
}

.resv-wiz-step {
	display: none;
	animation: resvFadeUp 0.3s ease-out;
}

.resv-wiz-step.is-active {
	display: block;
}

/* Felder im Wizard untereinander (kein 2-Spalten-Grid noetig) */
.resv-wiz-form .resv-field {
	margin-bottom: 14px;
}

.resv-wiz-subtitle {
	font-family: var(--resv-serif);
	font-weight: 400;
	color: var(--resv-wine);
	margin: 0 0 12px;
	font-size: 1.15em;
}

/* Navigationsleiste je Schritt */
.resv-wiz-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
}

.resv-wiz-next,
.resv-wiz-submit {
	margin-left: auto;
}

.resv-wiz-back {
	appearance: none;
	background: none;
	border: none;
	color: #8a8070;
	font-size: 15px;
	cursor: pointer;
	padding: 8px 4px;
}

.resv-wiz-back:hover {
	color: var(--resv-wine);
}

.resv-wiz-submit.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Uebersicht + Erfolg */
.resv-wiz-summary {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 0 0 14px;
	background: var(--resv-paper);
	border: 1px solid var(--resv-line);
	border-radius: 8px;
	padding: 14px 16px;
}

.resv-wiz-summary dt {
	color: #8a8070;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.resv-wiz-summary dd {
	margin: 0;
	font-weight: 600;
}

.resv-wiz-error {
	background: #fdf0f0;
	border-left: 4px solid var(--resv-wine);
	color: #7a1515;
	padding: 10px 14px;
	margin-bottom: 12px;
	border-radius: 0 4px 4px 0;
	font-size: 14px;
}

/* Erfolgspanel */
.resv-wiz-success {
	text-align: center;
	padding: 26px 18px;
	background: var(--resv-paper);
	border: 1px solid var(--resv-line);
	border-radius: 10px;
	animation: resvFadeUp 0.4s ease-out;
}

.resv-wiz-success-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	background: #3d8b40;
	color: #fff;
	font-size: 28px;
	margin: 0 auto 12px;
}

.resv-wiz-success h3 {
	font-family: var(--resv-serif);
	font-weight: 400;
	color: var(--resv-wine);
	margin: 0 0 8px;
}

.resv-wiz-success .resv-wiz-summary {
	text-align: left;
	margin-top: 14px;
}

/* Kalender im schmalen Widget mittig */
.resv-wizard .resv-calendar {
	left: 0;
	right: 0;
	min-width: 0;
	/* Mobile-Regel in reservierung.css setzt transform: translateX(-50%);
	   das wuerde den Kalender hier ueber den linken Rand schieben. */
	transform: none;
}

/* "Wichtige Informationen" - nur in der Uebersicht, ganz unten */
.resv-wiz-info {
	margin-top: 18px;
	font-size: 13px;
	line-height: 1.6;
}

.resv-wiz-more {
	text-align: center;
	margin: 12px 0 0;
	font-size: 13px;
}

.resv-wiz-more a {
	color: var(--resv-gold);
	text-decoration: none;
}

.resv-wiz-more a:hover {
	color: var(--resv-wine);
}

@media (max-width: 520px) {
	.resv-wizard.mod-resv-wizard {
		max-width: 100%;
	}
}
