/**
 * Widerrufsformular – Wizard-Design (Waben Weninger)
 */

.ww-widerruf {
	--ww-gold: #e0a21b;
	--ww-gold-dark: #c8891a;
	--ww-ink: #2a2117;
	--ww-muted: #6b6355;
	--ww-cream: #fbf6ea;
	--ww-line: #e7ddc9;
	--ww-req: #c0392b;
	--ww-radius: 14px;

	max-width: 760px;
	/* Letzter Wert = Abstand nach unten zum Footer. */
	margin: 0 auto 100px;
	color: var(--ww-ink);
	font-size: 16px;
	line-height: 1.5;
}

/* ---------- Fortschrittsanzeige ---------- */
.ww-steps {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
}

.ww-steps__item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ww-muted);
	font-weight: 700;
	white-space: nowrap;
}

.ww-steps__item:not(:last-child)::after {
	content: "";
	display: block;
	flex: 1 1 auto;
	height: 2px;
	min-width: 24px;
	margin-left: 8px;
	background: var(--ww-line);
}

.ww-steps__item:not(:last-child) {
	flex: 1 1 auto;
}

.ww-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ww-line);
	color: #fff;
	font-size: 15px;
	flex: 0 0 auto;
}

.ww-steps__item.is-active .ww-steps__num,
.ww-steps__item.is-done .ww-steps__num {
	background: var(--ww-gold);
}

.ww-steps__item.is-active,
.ww-steps__item.is-done {
	color: var(--ww-ink);
}

/* ---------- Karte ---------- */
.ww-card {
	background: #fff;
	border: 1px solid var(--ww-line);
	border-radius: var(--ww-radius);
	padding: 32px;
	box-shadow: 0 10px 30px rgba(42, 33, 23, 0.05);
}

/* ---------- Felder ---------- */
/* Höhere Spezifität, damit Theme-Regeln (z. B. .woocommerce p) den Abstand
   zwischen den Feldern nicht überschreiben. */
.ww-widerruf .ww-field {
	margin: 0 0 22px;
}

.ww-widerruf .ww-field:last-child {
	margin-bottom: 0;
}

.ww-label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.ww-req {
	color: var(--ww-req);
}

.ww-hint {
	display: block;
	color: var(--ww-muted);
	font-size: 14px;
	margin-bottom: 10px;
}

.ww-widerruf .ww-input,
.ww-widerruf input.ww-input,
.ww-widerruf textarea.ww-input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid var(--ww-line);
	border-radius: 10px;
	background: var(--ww-cream);
	color: var(--ww-ink);
	font-size: 16px;
	font-family: inherit;
	transition: border-color .15s, box-shadow .15s, background .15s;
}

.ww-widerruf textarea.ww-input {
	min-height: 96px;
	resize: vertical;
}

.ww-widerruf .ww-input::placeholder {
	color: #a89e8c;
}

.ww-widerruf .ww-input:focus {
	outline: none;
	background: #fff;
	border-color: var(--ww-gold);
	box-shadow: 0 0 0 3px rgba(224, 162, 27, 0.18);
}

.ww-widerruf .wpcf7-not-valid {
	border-color: var(--ww-req);
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.ww-widerruf .wpcf7-not-valid-tip {
	color: var(--ww-req);
	font-size: 14px;
	margin-top: 6px;
}

/* ---------- Buttons ---------- */
.ww-actions {
	margin-top: 8px;
}

.ww-actions--split {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.ww-widerruf .ww-btn {
	appearance: none;
	cursor: pointer;
	display: inline-block;
	max-width: 100%;
	box-sizing: border-box;
	border: none;
	border-radius: 10px;
	padding: 15px 26px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1.2;
}

.ww-widerruf .ww-btn--primary {
	background: var(--ww-gold);
	color: #fff;
}

.ww-widerruf .ww-btn--primary:hover {
	background: var(--ww-gold-dark);
}

.ww-widerruf .ww-btn--ghost {
	background: transparent;
	color: var(--ww-muted);
	border: 1px solid var(--ww-line);
}

.ww-widerruf .ww-btn--ghost:hover {
	background: var(--ww-cream);
	color: var(--ww-ink);
}

/* ---------- Schritt 2: Zusammenfassung ---------- */
.ww-widerruf .ww-lead {
	margin: 0 0 24px;
	color: var(--ww-muted);
}

.ww-summary {
	margin: 0 0 22px;
	border: 1px solid var(--ww-line);
	border-radius: 10px;
	overflow: hidden;
}

.ww-summary__row {
	display: flex;
	gap: 16px;
	padding: 12px 16px;
}

.ww-summary__row:nth-child(odd) {
	background: var(--ww-cream);
}

.ww-summary__row dt {
	flex: 0 0 40%;
	font-weight: 700;
	margin: 0;
}

.ww-summary__row dd {
	flex: 1 1 auto;
	margin: 0;
	word-break: break-word;
}

.ww-confirm {
	margin: 0 0 24px;
}

.ww-confirm .wpcf7-list-item {
	margin: 0;
}

/* ---------- Schritt 3: Abgeschlossen ---------- */
.ww-done {
	text-align: center;
	padding: 16px 0;
}

.ww-done__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--ww-gold);
	color: #fff;
	font-size: 34px;
	line-height: 64px;
}

.ww-done__title {
	margin: 0 0 8px;
	font-size: 24px;
}

/* CF7-Statusmeldungen dezent halten */
.ww-widerruf .wpcf7-response-output {
	border-radius: 10px;
	margin: 16px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.ww-card {
		padding: 22px;
	}

	.ww-steps__label {
		display: none;
	}

	.ww-steps__item:not(:last-child)::after {
		min-width: 16px;
	}

	.ww-actions--split {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	/* Button-Beschriftung nicht abschneiden: auf Mobile schmaleres Padding
	   und etwas kleinere Schrift, damit der Text in einer Zeile passt. */
	.ww-widerruf .ww-btn {
		padding-left: 16px;
		padding-right: 16px;
		font-size: 15px;
	}

	/* Zusammenfassung: Label und Wert untereinander statt nebeneinander */
	.ww-summary__row {
		flex-direction: column;
		gap: 4px;
	}

	.ww-summary__row dt {
		flex-basis: auto;
	}
}
