/* ==========================================================================
   DEFENSA — Buchungsstrecke
   Nutzt die Tokens aus main.css. Keine gerundeten Karten, keine Verlaeufe.
   ========================================================================== */

.booking-intro__title { margin: 0.4em 0 0.3em; max-width: 20ch; }
.booking-intro__lead { max-width: 62ch; }

/* --- Fortschritt --------------------------------------------------------- */

.booking__progress { margin-bottom: 2.5rem; }

.booking__progress-bar {
	position: relative;
	height: 2px;
	background: var(--ink-12);
	overflow: hidden;
}

.booking__progress-bar span {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: var(--accent);
	transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.booking__progress-label {
	margin: 0.6rem 0 0;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-50);
}

/* --- Grundgeruest -------------------------------------------------------- */

.booking__form { max-width: 62rem; }

.booking__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.booking__step { border: 0; margin: 0; padding: 0; }

.booking__legend {
	display: block;
	width: 100%;
	margin: 0 0 1.8rem;
	padding: 0;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--ink);
}

.booking__legend:focus { outline: none; }
.booking__legend .eyebrow { display: block; margin-bottom: 0.9rem; }

.booking__intro-text {
	max-width: 58ch;
	margin: -0.8rem 0 1.8rem;
	color: var(--ink-70);
}

/* --- Auswahlkacheln ------------------------------------------------------ */

.booking__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--ink-12);
	border: 1px solid var(--ink-12);
	margin-bottom: 1.6rem;
}

.booking__choices--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.booking__choice {
	position: relative;
	display: block;
	background: #fff;
	padding: 1.4rem 1.5rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.booking__choice:hover { background: var(--off); }

.booking__choice input,
.booking__card input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.booking__choice-body strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.booking__choice-body span { display: block; font-size: 0.92rem; color: var(--ink-70); }

.booking__choice.is-selected { background: var(--ink); color: #fff; }
.booking__choice.is-selected .booking__choice-body span { color: rgba(255, 255, 255, 0.72); }
.booking__choice:focus-within { outline: 3px solid var(--accent); outline-offset: -3px; }

/* --- Karten -------------------------------------------------------------- */

.booking__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 1px;
	background: var(--ink-12);
	border: 1px solid var(--ink-12);
}

.booking__card {
	position: relative;
	display: block;
	background: #fff;
	padding: 1.5rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.booking__card:hover { background: var(--off); }
.booking__card:focus-within { outline: 3px solid var(--accent); outline-offset: -3px; }

.booking__card-body strong { display: block; font-weight: 600; line-height: 1.25; margin-bottom: 0.35rem; }
.booking__card-body > span:not(.booking__card-text) { display: block; font-size: 0.9rem; color: var(--ink-70); }

.booking__card.is-selected { background: var(--ink); color: #fff; }
.booking__card.is-selected span { color: rgba(255, 255, 255, 0.78); }
.booking__card.is-selected strong { color: #fff; }

.booking__card.is-selected::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 3px;
	background: var(--accent);
}

.booking__card--person .booking__card-body {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.booking__portrait {
	flex: 0 0 auto;
	width: 72px;
	height: 90px;
	object-fit: cover;
	filter: grayscale(1);
}

.booking__card.is-selected .booking__portrait { filter: none; }
.booking__card-text { display: block; min-width: 0; }

.booking__role { display: block; font-size: 0.86rem; color: var(--ink-70); margin-bottom: 0.5rem; }

.booking__price {
	display: block;
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ink);
}

.booking__card.is-selected .booking__price { color: var(--accent); }

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

.booking__field { margin: 0 0 1.4rem; }

.booking__field label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin-bottom: 0.45rem;
}

.booking__req {
	font-weight: 400;
	color: var(--ink-50);
	text-transform: uppercase;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	margin-left: 0.4rem;
}

.booking__field input,
.booking__field select,
.booking__field textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	font: inherit;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--ink-30);
	border-radius: 0;
	transition: border-color 0.2s ease;
}

.booking__field textarea { resize: vertical; min-height: 8rem; }

.booking__field input:focus,
.booking__field select:focus,
.booking__field textarea:focus {
	border-color: var(--ink);
	outline: 3px solid var(--accent);
	outline-offset: 1px;
}

.booking__hint { display: block; margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--ink-50); }

.booking__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.4rem; }
.booking__grid--zip { grid-template-columns: 8rem 1fr 1fr; }

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

.booking__slot-summary { margin: 0 0 1.4rem; font-weight: 600; color: var(--ink); min-height: 1.4em; }

.booking__calendar { border-top: 1px solid var(--ink-12); }

.booking__day {
	display: grid;
	grid-template-columns: 15rem 1fr;
	gap: 1.5rem;
	padding: 1.2rem 0;
	border-bottom: 1px solid var(--ink-12);
}

.booking__day-label { margin: 0; font-weight: 600; color: var(--ink); }
.booking__slots { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.booking__slot {
	appearance: none;
	font: inherit;
	font-variant-numeric: tabular-nums;
	padding: 0.6rem 1rem;
	border: 1px solid var(--ink-30);
	background: #fff;
	color: var(--ink);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.booking__slot:hover { border-color: var(--ink); background: var(--off); }

.booking__slot.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
	box-shadow: inset 0 -3px 0 var(--accent);
}

.booking__calendar-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.booking__note { margin: 1.2rem 0; color: var(--ink-70); }

/* --- Zusammenfassung ----------------------------------------------------- */

.booking__summary { margin-bottom: 2rem; }
.booking__dl { margin: 0; border-top: 1px solid var(--ink-12); }

.booking__dl > div {
	display: grid;
	grid-template-columns: 15rem 1fr;
	gap: 1.5rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--ink-12);
}

.booking__dl dt { margin: 0; font-size: 0.88rem; letter-spacing: 0.02em; color: var(--ink-50); }
.booking__dl dd { margin: 0; font-weight: 500; }

/* --- Rechtstexte --------------------------------------------------------- */

.booking__legal { margin: 0 0 2rem; border-top: 1px solid var(--ink-12); }
.booking__details { border-bottom: 1px solid var(--ink-12); }

.booking__details summary {
	padding: 1rem 0;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.booking__details summary::-webkit-details-marker { display: none; }

.booking__details summary::before {
	content: "+";
	display: inline-block;
	width: 1.4em;
	font-weight: 400;
	color: var(--ink-50);
}

.booking__details[open] summary::before { content: "\2013"; }

.booking__legal-body {
	max-width: 70ch;
	padding: 0 0 1.4rem 1.4em;
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--ink-70);
}

.booking__legal-body p { margin: 0 0 0.9em; }

/* --- Einwilligungen ------------------------------------------------------ */

.booking__consents { display: grid; gap: 1rem; margin-bottom: 1.8rem; }

.booking__consent {
	display: grid;
	grid-template-columns: 1.5rem 1fr;
	gap: 0.8rem;
	align-items: start;
	font-size: 0.93rem;
	line-height: 1.55;
	cursor: pointer;
}

.booking__consent input {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.2rem;
	accent-color: var(--ink);
}

.booking__consent a { display: inline-block; margin-left: 0.35rem; }

/* --- Navigation und Meldungen -------------------------------------------- */

.booking__error {
	margin: 0 0 1.5rem;
	padding: 1rem 1.2rem;
	border-left: 3px solid #b3261e;
	background: #fdf3f2;
	color: #7a1c16;
}

.booking__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ink-12);
}

/* --- Abschluss ----------------------------------------------------------- */

.booking__done { max-width: 48rem; }
.booking__done h2 { margin: 0.4em 0 0.6em; }

/* --- Sperrhinweis -------------------------------------------------------- */

.booking-block { max-width: 48rem; padding: 2rem 0; border-top: 1px solid var(--ink-12); }
.booking-block__contact { font-weight: 600; }

/* --- Responsiv ----------------------------------------------------------- */

@media (max-width: 900px) {
	.booking__day,
	.booking__dl > div {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
}

@media (max-width: 720px) {
	.booking__choices,
	.booking__choices--three,
	.booking__grid,
	.booking__grid--zip,
	.booking__cards {
		grid-template-columns: 1fr;
	}

	.booking__nav .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.booking__progress-bar span { transition: none; }
}

/* --- hidden schlaegt Layout-Displays des Designsystems ------------------- */

.booking [hidden],
.booking__form [hidden],
[data-done][hidden] {
	display: none !important;
}
