/* =========================================================================
   YU Anamnese – Frontend
   Markenfarbe: #861020. Alles unter .yuan-wrap gekapselt, mobil zuerst.
   ========================================================================= */

.yuan-wrap,
.yuan-flow {
	--yu-primary: #861020;
	--yu-primary-dark: #5e0b17;
	--yu-primary-soft: #f6e7e9;
	--yu-ink: #1f1d1e;
	--yu-muted: #6f6b6c;
	--yu-line: #e6e1e2;
	--yu-bg: #ffffff;
	--yu-ok: #2f7d32;
	--yu-err: #a8271b;
	--yu-radius: 14px;
	--yu-radius-sm: 10px;
	--yu-shadow: 0 12px 34px -16px rgba(94, 11, 23, .4);
	--yu-font: "Overpass", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

	max-width: 860px;
	margin: 0 auto;
	color: var(--yu-ink);
	font-family: var(--yu-font);
	line-height: 1.55;
	box-sizing: border-box;
}
.yuan-wrap *,
.yuan-wrap *::before,
.yuan-wrap *::after,
.yuan-flow *,
.yuan-flow *::before,
.yuan-flow *::after { box-sizing: border-box; }
.yuan-wrap [hidden],
.yuan-flow [hidden] { display: none !important; }

.yuan-inner {
	position: relative;
	background: var(--yu-bg);
	border: 1px solid var(--yu-line);
	border-radius: var(--yu-radius);
	padding: 18px;
	box-shadow: var(--yu-shadow);
}

.yuan-intro {
	margin: 0 0 18px;
	color: var(--yu-muted);
	font-size: .95rem;
}

.yuan-notice {
	padding: 18px 20px;
	border-radius: var(--yu-radius-sm);
	background: var(--yu-primary-soft);
	color: var(--yu-primary-dark);
	font-weight: 600;
	text-align: center;
}

/* ---------------------------------------------------------- Fortschritt */
.yuan-progress { margin-bottom: 20px; }
.yuan-progress-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 7px;
}
.yuan-progress-label {
	font-size: .82rem;
	font-weight: 700;
	color: var(--yu-primary-dark);
	letter-spacing: .2px;
}
.yuan-progress-pct {
	font-size: .78rem;
	font-weight: 700;
	color: var(--yu-muted);
}
.yuan-progress-line {
	position: relative;
	height: 4px;
	background: var(--yu-line);
	border-radius: 4px;
}
.yuan-progress-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: linear-gradient(90deg, var(--yu-primary), var(--yu-primary-dark));
	border-radius: 4px;
	transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

.yuan-dots {
	list-style: none;
	display: flex;
	gap: 4px;
	margin: 10px 0 0;
	padding: 0;
}
.yuan-dot {
	flex: 1;
	height: 4px;
	border-radius: 3px;
	background: var(--yu-line);
	transition: background .25s;
	cursor: default;
}
.yuan-dot.is-done { background: var(--yu-primary-soft); }
.yuan-dot.is-active { background: var(--yu-primary); }
.yuan-dot.is-visited { cursor: pointer; }

/* ---------------------------------------------------------- Entwurfsleiste */
.yuan-draft-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: var(--yu-radius-sm);
	background: var(--yu-primary-soft);
	color: var(--yu-primary-dark);
	font-size: .85rem;
	font-weight: 600;
}
.yuan-draft-reset {
	background: none;
	border: none;
	color: var(--yu-primary-dark);
	font-family: inherit;
	font-size: .85rem;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	padding: 4px 2px;
}

/* --------------------------------------------------------------- Panels */
.yuan-panel { animation: yuanFade .3s ease; }
.yuan-panel:not(.is-active) { display: none; }
@keyframes yuanFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.yuan-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.14rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--yu-primary-dark);
	letter-spacing: .1px;
	line-height: 1.3;
}
.yuan-heading-num {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--yu-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .84rem;
	font-weight: 800;
}
.yuan-section-intro {
	margin: 0 0 16px;
	color: var(--yu-muted);
	font-size: .88rem;
}

/* --------------------------------------------------------------- Felder */
.yuan-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
.yuan-field { display: flex; flex-direction: column; gap: 6px; }
.yuan-field-wide { grid-column: 1 / -1; }
.yuan-conditional[hidden] { display: none !important; }

.yuan-flabel {
	font-size: .9rem;
	font-weight: 600;
	color: var(--yu-ink);
	line-height: 1.4;
}
.yuan-flabel-sm { font-size: .82rem; font-weight: 600; color: var(--yu-muted); }
.yuan-req { color: var(--yu-primary); font-weight: 700; }
.yuan-fhint {
	margin: -2px 0 2px;
	font-size: .81rem;
	color: var(--yu-muted);
}
.yuan-ferror {
	margin: 2px 0 0;
	font-size: .8rem;
	font-weight: 600;
	color: var(--yu-err);
}

.yuan-wrap input[type="text"],
.yuan-wrap input[type="email"],
.yuan-wrap input[type="tel"],
.yuan-wrap input[type="date"],
.yuan-wrap input[type="number"],
.yuan-wrap textarea,
.yuan-wrap select,
.yuan-flow input[type="text"],
.yuan-flow input[type="email"],
.yuan-flow input[type="tel"],
.yuan-flow input[type="date"],
.yuan-flow input[type="number"],
.yuan-flow textarea,
.yuan-flow select {
	width: 100%;
	border: 1px solid var(--yu-line);
	border-radius: 9px;
	padding: 12px 13px;
	font-family: inherit;
	/* 16px verhindert das Zoomen auf iOS. */
	font-size: 16px;
	color: var(--yu-ink);
	background: #fff;
	transition: border-color .16s, box-shadow .16s;
	min-height: 46px;
}
.yuan-wrap textarea,
.yuan-flow textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.yuan-wrap input:focus,
.yuan-wrap textarea:focus,
.yuan-wrap select:focus,
.yuan-flow input:focus,
.yuan-flow textarea:focus,
.yuan-flow select:focus {
	outline: none;
	border-color: var(--yu-primary);
	box-shadow: 0 0 0 3px rgba(134, 16, 32, .12);
}
.yuan-field.has-error input,
.yuan-field.has-error textarea,
.yuan-field.has-error select { border-color: var(--yu-err); }

.yuan-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 0;
	overflow: hidden;
}

/* ------------------------------------------------------- Mehrfachauswahl */
.yuan-choices {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}
.yuan-choice {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	border: 2px solid var(--yu-line);
	border-radius: var(--yu-radius-sm);
	padding: 8px 11px;
	cursor: pointer;
	transition: border-color .16s, background .16s;
	/* Feste Höhe: Sonst wachsen einzelne Kacheln mit langem Text und die
	   Liste wirkt unruhig. Zweizeilige Beschriftungen passen hinein. */
	min-height: 42px;
}
.yuan-choice:hover { border-color: var(--yu-primary); }
.yuan-choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.yuan-check {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border: 2px solid var(--yu-line);
	border-radius: 6px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: .16s;
}
.yuan-check svg { opacity: 0; transform: scale(.6); transition: .16s; }
.yuan-choice input:checked + .yuan-check,
.yuan-consent input:checked + .yuan-check {
	background: var(--yu-primary);
	border-color: var(--yu-primary);
}
.yuan-choice input:checked + .yuan-check svg,
.yuan-consent input:checked + .yuan-check svg { opacity: 1; transform: none; }
.yuan-choice input:focus-visible + .yuan-check,
.yuan-consent input:focus-visible + .yuan-check { box-shadow: 0 0 0 3px rgba(134, 16, 32, .25); }
.yuan-choice:has(input:checked) {
	border-color: var(--yu-primary);
	background: var(--yu-primary-soft);
}
.yuan-choice-label { flex: 1; font-size: .88rem; font-weight: 600; line-height: 1.3; }

/* ------------------------------------------------------------ Zustimmung */
.yuan-consent {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 11px;
	border: 2px solid var(--yu-line);
	border-radius: var(--yu-radius-sm);
	padding: 14px;
	cursor: pointer;
	transition: .16s;
}
.yuan-consent:hover { border-color: var(--yu-primary); }
.yuan-consent input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.yuan-consent:has(input:checked) {
	border-color: var(--yu-primary);
	background: var(--yu-primary-soft);
}
.yuan-consent .yuan-check { margin-top: 1px; }
.yuan-consent-label { flex: 1; font-size: .92rem; font-weight: 600; line-height: 1.5; }
.yuan-consent-link {
	display: block;
	margin-top: 3px;
	font-size: .82rem;
	font-weight: 600;
	color: var(--yu-primary);
}

/* ----------------------------------------------------------------- Skala */
.yuan-scale-btns {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
}
.yuan-scale-btn {
	aspect-ratio: 1 / 1;
	min-height: 46px;
	border: 2px solid var(--yu-line);
	border-radius: 9px;
	background: #fff;
	font-family: inherit;
	font-size: .98rem;
	font-weight: 700;
	color: var(--yu-ink);
	cursor: pointer;
	transition: .15s;
}
.yuan-scale-btn:hover { border-color: var(--yu-primary); }
.yuan-scale-btn.is-active {
	background: var(--yu-primary);
	border-color: var(--yu-primary);
	color: #fff;
}
.yuan-scale-btn.is-filled {
	border-color: var(--yu-primary);
	background: var(--yu-primary-soft);
	color: var(--yu-primary-dark);
}
.yuan-scale-legend {
	display: flex;
	justify-content: space-between;
	margin-top: 7px;
	font-size: .76rem;
	font-weight: 600;
	color: var(--yu-muted);
	text-transform: uppercase;
	letter-spacing: .4px;
}

/* -------------------------------------------------------------- Ja/Nein */
.yuan-yesno-btns {
	display: flex;
	gap: 8px;
}
.yuan-yesno-btn {
	flex: 1;
	border: 2px solid var(--yu-line);
	border-radius: var(--yu-radius-sm);
	background: #fff;
	padding: 12px 10px;
	font-family: inherit;
	font-size: .93rem;
	font-weight: 700;
	color: var(--yu-ink);
	cursor: pointer;
	transition: .15s;
	min-height: 48px;
}
.yuan-yesno-btn:hover { border-color: var(--yu-primary); }
.yuan-yesno-btn.is-active {
	background: var(--yu-primary);
	border-color: var(--yu-primary);
	color: #fff;
}
.yuan-yesno-detail {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	animation: yuanFade .25s ease;
}

/* --------------------------------------------------- Zusammenfassung */
.yuan-summary {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 18px;
}
.yuan-sum-block {
	border: 1px solid var(--yu-line);
	border-radius: var(--yu-radius-sm);
	overflow: hidden;
}
.yuan-sum-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	background: #fbf8f8;
	border-bottom: 1px solid var(--yu-line);
	font-size: .86rem;
	font-weight: 800;
	color: var(--yu-primary-dark);
	text-transform: uppercase;
	letter-spacing: .4px;
}
.yuan-sum-edit {
	background: none;
	border: none;
	color: var(--yu-primary);
	font-family: inherit;
	font-size: .8rem;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	padding: 4px 2px;
	text-transform: none;
	letter-spacing: 0;
}
.yuan-sum-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	padding: 9px 14px;
	border-bottom: 1px solid var(--yu-line);
	font-size: .88rem;
}
.yuan-sum-row:last-child { border-bottom: none; }
.yuan-sum-key { flex: 0 0 100%; color: var(--yu-muted); font-weight: 600; font-size: .82rem; }
.yuan-sum-val { flex: 1 1 100%; font-weight: 600; word-break: break-word; }
.yuan-sum-val.is-empty { color: #b8b3b4; font-weight: 500; }
.yuan-sum-note {
	color: #a09b9c;
	font-size: .8rem;
	font-style: italic;
	font-weight: 500;
}

/* --------------------------------------------------------- Meldungen */
.yuan-message { display: none; }
.yuan-message.is-visible {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: var(--yu-radius-sm);
	font-size: .89rem;
	font-weight: 600;
}
.yuan-message-error {
	background: #fdecea;
	color: var(--yu-err);
	border: 1px solid #f5c6c1;
}
.yuan-message-ok {
	background: #e9f5ea;
	color: var(--yu-ok);
	border: 1px solid #c3e2c5;
}

/* ------------------------------------------------------------ Buttons */
/* Das Formular ist mindestens bildschirmhoch, damit die Navigation auch bei
   einem kurzen Abschnitt unten steht statt in der Seitenmitte zu schweben. */
.yuan-form {
	display: flex;
	flex-direction: column;
	min-height: calc(100svh - 190px);
}
.yuan-form .yuan-panel { flex: 1 1 auto; }
.yuan-form .yuan-message { flex: 0 0 auto; }

.yuan-nav {
	display: flex;
	gap: 10px;
	margin-top: 18px;
	/* Bleibt beim Blättern sichtbar: Die Abschnitte sind unterschiedlich
	   lang, sonst wandert „Weiter" bei jedem Schritt an eine andere Stelle. */
	position: sticky;
	bottom: 0;
	z-index: 5;
	padding: 12px 0 4px;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--yu-bg) 22%, var(--yu-bg) 100%);
}
.yuan-btn {
	flex: 1;
	border: none;
	border-radius: var(--yu-radius-sm);
	padding: 14px 18px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	min-height: 50px;
	transition: .18s;
}
.yuan-btn-back {
	flex: 0 0 auto;
	background: #fff;
	border: 2px solid var(--yu-line);
	color: var(--yu-muted);
	padding: 14px 20px;
}
.yuan-btn-back:hover { border-color: var(--yu-primary); color: var(--yu-primary-dark); }
.yuan-btn-next,
.yuan-btn-submit {
	background: var(--yu-primary);
	color: #fff;
}
.yuan-btn-next:hover,
.yuan-btn-submit:hover { background: var(--yu-primary-dark); }
.yuan-btn:disabled { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------- Erfolg */
.yuan-success { text-align: center; padding: 22px 4px; }
.yuan-success-icon {
	width: 74px;
	height: 74px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--yu-primary-soft);
	color: var(--yu-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}
.yuan-success-title {
	margin: 0 0 8px;
	font-size: 1.3rem;
	color: var(--yu-primary-dark);
}
.yuan-success-text { margin: 0; color: var(--yu-muted); max-width: 480px; margin-inline: auto; }

/* ------------------------------------------------------------ Desktop */
@media (min-width: 600px) {
	.yuan-inner { padding: 28px 30px; }
	.yuan-fields { grid-template-columns: 1fr 1fr; }
	.yuan-choices { grid-template-columns: 1fr 1fr; }
	.yuan-scale-btns { grid-template-columns: repeat(10, 1fr); }
	.yuan-nav { justify-content: flex-end; }
	.yuan-btn { flex: 0 0 auto; min-width: 150px; }
	.yuan-btn-next, .yuan-btn-submit { min-width: 220px; }
	.yuan-sum-key { flex: 0 0 210px; font-size: .88rem; }
	.yuan-sum-val { flex: 1; }
	.yuan-yesno-btns { max-width: 420px; }
}

@media (min-width: 860px) {
	.yuan-choices { grid-template-columns: 1fr 1fr 1fr; }
}

/* --------------------------------------------- Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
	.yuan-panel,
	.yuan-yesno-detail { animation: none; }
	.yuan-progress-fill { transition: none; }
}

/* ======================================================================
 *  Geführter Ablauf: Eltern-Video, Kinder-Video, Fragebogen, Termin
 * ==================================================================== */

.yuan-flow {
	max-width: 860px;
	margin: 0 auto;
	font-family: var(--yu-font);
	color: var(--yu-ink);
	line-height: 1.55;
}
/* Der eingebettete Fragebogen bringt seinen eigenen Rahmen mit. */
.yuan-flow .yuan-wrap { max-width: none; }

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

.yuan-flow-steps {
	display: flex;
	gap: 6px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}
.yuan-flow-step {
	flex: 1 1 0;
	display: flex;
	padding-top: 8px;
	border-top: 3px solid var(--yu-line);
	transition: border-color .25s ease;
}
.yuan-flow-step.is-current,
.yuan-flow-step.is-done { border-top-color: var(--yu-primary); }

.yuan-flow-step-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	text-align: center;
	cursor: pointer;
	border-radius: var(--yu-radius-sm);
}
.yuan-flow-step-btn:disabled { cursor: default; }
.yuan-flow-step-btn:focus-visible {
	outline: 2px solid var(--yu-primary);
	outline-offset: 3px;
}

.yuan-flow-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--yu-line);
	color: var(--yu-muted);
	font-size: .75rem;
	font-weight: 700;
	transition: background-color .2s ease, color .2s ease;
}
.yuan-flow-step-label {
	font-size: .74rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--yu-muted);
	transition: color .2s ease;
}

/* Erledigte Stationen: gedeckt, aber anklickbar. */
.yuan-flow-step.is-done .yuan-flow-step-num {
	background: var(--yu-primary-soft);
	color: var(--yu-primary);
}

/* Die laufende Station gewinnt gegen den Erledigt-Zustand. */
.yuan-flow-step.is-current .yuan-flow-step-num {
	background: var(--yu-primary);
	color: #fff;
}
.yuan-flow-step.is-current .yuan-flow-step-label { color: var(--yu-primary); }

.yuan-flow-step-btn:not(:disabled):hover .yuan-flow-step-num {
	background: var(--yu-primary);
	color: #fff;
}
.yuan-flow-step-btn:not(:disabled):hover .yuan-flow-step-label { color: var(--yu-primary-dark); }

@media (max-width: 480px) {
	.yuan-flow-steps { gap: 4px; }
	.yuan-flow-step-label { font-size: .66rem; }
	.yuan-flow-step-num { width: 20px; height: 20px; font-size: .7rem; }
}

/* ---------- Stationen ---------- */

.yuan-flow-stage { animation: yuan-flow-in .3s ease both; }
@keyframes yuan-flow-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.yuan-flow-stage { animation: none; }
}

.yuan-flow-text {
	background: var(--yu-bg);
	border: 1px solid var(--yu-line);
	border-radius: var(--yu-radius);
	padding: 22px 22px 18px;
	margin-bottom: 16px;
}
.yuan-flow-text > :first-child { margin-top: 0; }
.yuan-flow-text > :last-child { margin-bottom: 0; }
.yuan-flow-text h1,
.yuan-flow-text h2 {
	margin: 0 0 10px;
	color: var(--yu-primary);
	font-size: 1.4rem;
	line-height: 1.2;
}
.yuan-flow-text p { margin: 0 0 10px; line-height: 1.6; }

/* ---------- Videofläche ---------- */

.yuan-flow-video { margin-bottom: 16px; }
.yuan-flow-video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--yu-radius);
	overflow: hidden;
}
.yuan-flow-player,
.yuan-flow-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.yuan-flow-video-note {
	margin: 8px 0 0;
	font-size: .85rem;
	color: var(--yu-primary);
}

/* ---------- Knöpfe ---------- */

.yuan-flow-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.yuan-flow-actions .yuan-btn { flex: 1 1 auto; }
/* Weiter steht rechts, Zurück und Wiederholen links davon. */
.yuan-flow-actions [data-flow-next] { margin-left: auto; }

@media (min-width: 620px) {
	.yuan-flow-actions .yuan-btn { flex: 0 0 auto; min-width: 170px; }
}

/* ---------- Zurück-Leiste über dem Fragebogen ---------- */

.yuan-flow-backbar { margin-bottom: 10px; }
.yuan-flow-backlink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 2px;
	border: 0;
	background: none;
	color: var(--yu-muted);
	font: inherit;
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
}
.yuan-flow-backlink:hover { color: var(--yu-primary); }
.yuan-flow-backlink:focus-visible {
	outline: 2px solid var(--yu-primary);
	outline-offset: 3px;
	border-radius: var(--yu-radius-sm);
}

/* ---------- Nach dem Absenden gibt es kein Zurück ---------- */

.yuan-flow-locked {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-left: 3px solid var(--yu-line);
	color: var(--yu-muted);
	font-size: .88rem;
	line-height: 1.5;
}

/* ---------- Platzhalter Terminbuchung ---------- */

.yuan-flow-placeholder {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 20px;
	border: 1px dashed var(--yu-line);
	border-radius: var(--yu-radius);
	background: var(--yu-primary-soft);
	color: var(--yu-ink);
}
.yuan-flow-placeholder-mark { color: var(--yu-primary); flex: none; }
.yuan-flow-placeholder strong { display: block; margin-bottom: 4px; }
.yuan-flow-placeholder p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--yu-muted); }

/* ======================================================================
 *  Buchungsassistent
 * ==================================================================== */

.yuan-booking { display: block; }
.yuan-booking-step + .yuan-booking-step { margin-top: 18px; }

.yuan-booking-head {
	margin: 0 0 9px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--yu-primary);
}

/* ---------- Standortauswahl ---------- */

/* Ein Auswahlfeld statt Kacheln: Bei zwei Dutzend Standorten bliebe von
   einer Kachelwand nichts Übersichtliches übrig, und auf dem Handy öffnet
   das Feld die native Liste mit Tippsuche. */
.yuan-flow select.yuan-booking-select {
	font-weight: 600;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23861020' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 40px;
	appearance: none;
	-webkit-appearance: none;
}

label.yuan-booking-head { display: block; cursor: pointer; }

/* ---------- Visitenkarte ---------- */

.yuan-booking-card {
	margin-top: 12px;
	padding: 14px;
	border: 1px solid var(--yu-line);
	border-radius: var(--yu-radius);
	background: var(--yu-bg);
}
.yuan-booking-card-body {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	flex-wrap: wrap;
}
.yuan-booking-card-photo {
	flex: none;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--yu-primary-soft);
}
.yuan-booking-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yuan-booking-card-text { flex: 1 1 220px; min-width: 0; }
.yuan-booking-card-text h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--yu-primary); }
.yuan-booking-card-principal { margin: 0 0 4px; font-weight: 600; }
.yuan-booking-card-address,
.yuan-booking-card-contact { margin: 0 0 4px; font-size: .88rem; color: var(--yu-muted); }
.yuan-booking-card-contact a { color: var(--yu-primary); }
.yuan-booking-card-intro { margin-top: 8px; font-size: .9rem; line-height: 1.55; }
.yuan-booking-card-intro p { margin: 0 0 6px; }

/* ---------- Zeitfenster ---------- */

.yuan-booking-day + .yuan-booking-day { margin-top: 16px; }
.yuan-booking-day-label {
	margin: 0 0 8px;
	font-size: .9rem;
	font-weight: 700;
	color: var(--yu-ink);
}
.yuan-booking-times {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.yuan-booking-time {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 8px 6px;
	border: 1px solid var(--yu-line);
	border-radius: var(--yu-radius-sm);
	background: var(--yu-bg);
	font: inherit;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.yuan-booking-time:hover { border-color: var(--yu-primary); }
.yuan-booking-time.is-selected {
	background: var(--yu-primary);
	border-color: var(--yu-primary);
	color: #fff;
}
.yuan-booking-time:focus-visible { outline: 2px solid var(--yu-primary); outline-offset: 2px; }
.yuan-booking-time-value { font-weight: 700; font-size: 1rem; }
.yuan-booking-time-free { font-size: .7rem; color: var(--yu-muted); }
.yuan-booking-time.is-selected .yuan-booking-time-free { color: rgba(255,255,255,.85); }
.yuan-booking-more { margin-top: 14px; }

/* ---------- Bestätigen ---------- */

.yuan-booking-summary {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 10px 14px;
	margin-bottom: 12px;
	border-left: 3px solid var(--yu-primary);
	background: var(--yu-primary-soft);
	border-radius: 0 var(--yu-radius-sm) var(--yu-radius-sm) 0;
}
.yuan-booking-summary-caption {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--yu-primary);
}
.yuan-booking-summary strong { font-size: 1.05rem; }
.yuan-booking-summary-where { color: var(--yu-muted); font-size: .9rem; }

.yuan-booking-summary-mail { font-size: .84rem; color: var(--yu-muted); }
.yuan-booking-hint { margin: 0 0 8px; font-size: .84rem; color: var(--yu-muted); }

/* Kontakt- und Anmerkungsfelder nebeneinander statt untereinander. */
.yuan-booking-fields { display: grid; gap: 10px; }
.yuan-booking-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) {
	.yuan-booking-grid { grid-template-columns: 1fr 1fr; }
	.yuan-booking-grid .yuan-booking-field:last-child { grid-column: 1 / -1; }
}
.yuan-booking-field .yuan-flabel {
	display: block;
	margin-bottom: 4px;
	font-size: .82rem;
	font-weight: 700;
	color: var(--yu-ink);
}
.yuan-flow .yuan-booking-field textarea { min-height: 56px; }

.yuan-booking-error {
	margin: 10px 0 0;
	padding: 8px 13px;
	border-left: 3px solid var(--yu-primary);
	background: var(--yu-primary-soft);
	color: var(--yu-primary-dark);
	font-size: .9rem;
	font-weight: 600;
}

.yuan-booking-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.yuan-booking-actions .yuan-btn { flex: 1 1 auto; }
.yuan-booking-actions [data-booking-submit] { margin-left: auto; }
@media (min-width: 620px) {
	.yuan-booking-actions .yuan-btn { flex: 0 0 auto; min-width: 170px; }
}

/* ---------- Fertig ---------- */

.yuan-booking-done {
	padding: 22px;
	border: 1px solid var(--yu-line);
	border-radius: var(--yu-radius);
	background: var(--yu-bg);
}
.yuan-booking-done h3 { margin: 0 0 6px; color: var(--yu-primary); font-size: 1.25rem; }
.yuan-booking-done-when { margin: 0 0 10px; font-weight: 700; font-size: 1.05rem; }
.yuan-booking-done p { margin: 0 0 8px; line-height: 1.6; }

/* -----------------------------------------------------------------------
 *  Sicherheitsfrage
 *
 *  Stand vorher als gewöhnliches Feld am Ende einer langen Zusammenfassung
 *  und wurde beim Testen regelmäßig überlesen. Jetzt ein eigener Kasten mit
 *  Rahmen, Fragezeichen und großem Eingabefeld — schwer zu übersehen, ohne
 *  wie eine Fehlermeldung auszusehen.
 * -------------------------------------------------------------------- */
.yuan-captcha {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 22px 0 4px;
	padding: 18px 20px;
	border: 2px solid var(--yu-primary);
	border-radius: 10px;
	background: #faf7f7;
}
.yuan-captcha-mark {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--yu-primary);
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
}
.yuan-captcha-body { flex: 1 1 auto; min-width: 0; }
.yuan-captcha-q {
	display: block;
	margin: 4px 0 2px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--yu-primary-dark);
}
.yuan-captcha-hint {
	margin: 0 0 10px;
	font-size: .82rem;
	color: var(--yu-muted);
}
.yuan-wrap input.yuan-captcha-input {
	width: 110px;
	max-width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--yu-primary);
	border-radius: 8px;
	background: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	text-align: center;
	letter-spacing: .04em;
}
.yuan-wrap input.yuan-captcha-input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba( 134, 16, 32, .18 );
}
.yuan-captcha.has-error {
	border-color: var(--yu-err);
	background: #fbeeec;
}
.yuan-captcha.has-error .yuan-captcha-mark { background: var(--yu-err); }
.yuan-wrap .yuan-captcha.has-error input.yuan-captcha-input { border-color: var(--yu-err); }
.yuan-captcha .yuan-ferror { margin-top: 8px; }

@media (max-width: 480px) {
	.yuan-captcha { padding: 16px; gap: 12px; }
	.yuan-captcha-q { font-size: 1rem; }
}

/* -----------------------------------------------------------------------
 *  Zielgruppen-Auswahl
 *
 *  Drei Karten nebeneinander, auf schmalen Bildschirmen untereinander. Die
 *  ganze Karte ist der Link, nicht nur der Pfeil — auf dem Handy ist das der
 *  Unterschied zwischen treffen und danebentippen.
 * -------------------------------------------------------------------- */
.yuan-choose .yuan-inner { padding: 26px 24px 28px; }

.yuan-choose-title {
	margin: 0 0 6px;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--yu-ink);
}
.yuan-choose-hint {
	margin: 0 0 20px;
	color: var(--yu-muted);
	font-size: .95rem;
}

.yuan-choose-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 14px;
}

.yuan-choose-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 18px 16px;
	border: 1px solid var(--yu-line);
	border-radius: 12px;
	background: #fff;
	color: var(--yu-ink);
	text-decoration: none;
	box-shadow: 0 1px 2px rgba( 31, 29, 30, .04 );
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.yuan-choose-card:hover,
.yuan-choose-card:focus-visible {
	border-color: var(--yu-primary);
	box-shadow: 0 6px 18px rgba( 31, 29, 30, .10 );
	transform: translateY( -2px );
	outline: none;
	color: var(--yu-ink);
}

.yuan-choose-label {
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.3;
}
.yuan-choose-teaser {
	flex: 1 1 auto;
	color: var(--yu-muted);
	font-size: .88rem;
	line-height: 1.5;
}
.yuan-choose-go {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-top: 6px;
	border-radius: 50%;
	background: var(--yu-primary-soft);
	color: var(--yu-primary);
	font-size: 1rem;
	line-height: 1;
	transition: background .15s ease, color .15s ease;
}
.yuan-choose-card:hover .yuan-choose-go,
.yuan-choose-card:focus-visible .yuan-choose-go {
	background: var(--yu-primary);
	color: #fff;
}

@media (max-width: 780px) {
	.yuan-choose-grid { grid-template-columns: 1fr; }

	/* Untereinander liegt der Pfeil rechts neben dem Text statt darunter —
	   sonst steht er verloren in der linken unteren Ecke. */
	.yuan-choose-card {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 3px 14px;
		padding: 16px;
	}
	.yuan-choose-label { grid-column: 1; }
	.yuan-choose-teaser { grid-column: 1; }
	.yuan-choose-go {
		grid-column: 2;
		grid-row: 1 / span 2;
		margin-top: 0;
	}
	.yuan-choose-title { font-size: 1.25rem; }
}
