/* ============================================================
   Schiffahoi - Buchungsformular (Buchungs-Paket v1, 11.11.2026)
   Template: templates/page/buchen.htpl - Ladereihenfolge:
             1. bausteine-2026.css (Farb-Variablen :root, EINE Quelle)
             2. kontakt-2026.css   (Karte, Felder, Schritte, Buttons,
                                    Danke-Seite: kx-..., EINE Quelle)
             3. buchen-2026.css    (nur was die Buchung zusaetzlich
                                    braucht: bx-...)
   Formular: form2mail "Buchung-Schiffahoi" (CMS, Datenbank)
   Skript:   js/buchen-2026.js
   Kaskade:  Theme setzt input, button, select { width: 100% } und
             *, ::before, ::after { box-shadow: none !important } -
             deshalb hier feste Breiten bzw. !important wie in
             kontakt-2026.css.
   ============================================================ */

/* ---------- Hinweis unter einem Feld ---------- */
.bx-feldhinweis { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ang-grau); }
.bx-fehler { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: #b3261e; }
.bx-fehler[hidden], .bx-voll[hidden] { display: none; }
.bx-versteckt { display: none !important; }

/* ---------- Reisende: eine Karte je Person ---------- */
.bx-personen { display: grid; gap: 12px; margin: 0 0 12px; }
.bx-person {
	padding: 14px 14px 4px;
	border: 1px solid var(--ang-linie);
	border-radius: 12px;
	background: var(--ang-hell);
}
.bx-person-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.bx-person-titel { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ang-dunkel); }
.kx .bx-person-raus {
	width: auto;
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--ang-blau);
	font-family: "Source Sans Pro", Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.kx .bx-person-raus[hidden] { display: none; }
.bx-person-raster { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.bx-person-feld { margin: 0 0 10px; min-width: 0; }
.bx-person-feld label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ang-text); }
.bx-geb { grid-column: 1 / span 1; }
.bx-staat { grid-column: 2 / span 1; }
/* Hinweis Namen laut Pass (Schritt 2) */
.bx-pass-hinweis { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--ang-blau); border-radius: 8px; background: var(--ang-hell); font-size: 15px; line-height: 1.45; color: var(--ang-text); }
.kx .bx-plus {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 2px dashed var(--ang-blau);
	border-radius: 12px;
	background: #ffffff;
	color: var(--ang-blau);
	font-family: "Source Sans Pro", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}
.kx .bx-plus:hover { background: var(--ang-hell); }
.kx .bx-plus[hidden] { display: none; }
.kx .bx-plus:focus-visible,
.kx .bx-person-raus:focus-visible,
.kx .bx-zurueck:focus-visible,
.kx .bx-zus-aendern:focus-visible { outline: 3px solid rgba(0, 90, 165, .35); outline-offset: 2px; }
.bx-voll { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ang-grau); }

/* ---------- Button-Zeile Zurueck / Weiter ---------- */
.bx-knopfzeile { display: flex; gap: 10px; }
.bx-knopfzeile .kx-weiter { flex: 1 1 auto; }
.kx .bx-zurueck {
	flex: 0 0 auto;
	width: auto;
	min-height: 50px;
	padding: 12px 20px;
	border: 2px solid var(--ang-blau);
	border-radius: 12px;
	background: #ffffff;
	color: var(--ang-blau);
	font-family: "Source Sans Pro", Arial, sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}
.kx .bx-zurueck:hover { background: var(--ang-hell); }
.kx .kx-ueberschrift:focus { outline: none; }

/* ---------- Zusammenfassung im letzten Schritt ---------- */
.bx-zus { margin: 22px 0 0; }
.bx-zus:empty { display: none; }
.bx-zus-block {
	margin: 0 0 12px;
	padding: 14px 16px;
	border: 1px solid var(--ang-linie);
	border-radius: 12px;
	background: var(--ang-hell);
}
.bx-zus-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.bx-zus-kopf strong { font-size: 16px; color: var(--ang-dunkel); }
.kx .bx-zus-aendern {
	width: auto;
	padding: 5px 12px;
	border: 2px solid var(--ang-blau);
	border-radius: 10px;
	background: #ffffff;
	color: var(--ang-blau);
	font-family: "Source Sans Pro", Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}
.kx .bx-zus-aendern:hover { background: var(--ang-blau); color: #ffffff; }
.bx-zus-liste { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 15px; line-height: 1.45; }
.bx-zus-liste dt { margin: 0; font-weight: 600; color: var(--ang-grau); }
.bx-zus-liste dd { margin: 0; color: var(--ang-text); overflow-wrap: anywhere; }

/* ---------- Rechtliches + Haken ---------- */
.bx-zwischen {
	margin: 24px 0 12px;
	padding-top: 18px;
	border-top: 1px solid var(--ang-linie);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ang-dunkel);
}
.bx-recht { margin: 18px 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ang-text); }
.bx-recht p { margin: 0 0 8px; }
.kx .page-content .bx-recht a,
.kx .page-content .bx-haken a { color: var(--ang-blau); text-decoration: underline; }
.kx .bx-haken .custom-control {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 0;
	margin: 0 0 10px;
	padding: 12px 14px;
	border: 1px solid var(--ang-linie);
	border-radius: 12px;
	background: #ffffff;
}
.kx .bx-haken input[type="checkbox"] {
	position: static;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	opacity: 1;
	z-index: auto;
	accent-color: var(--ang-blau);
	cursor: pointer;
}
.kx .bx-haken .custom-control-label {
	position: static;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--ang-text);
	cursor: pointer;
}
.kx .bx-haken .custom-control-label::before,
.kx .bx-haken .custom-control-label::after { display: none !important; }
.bx-haken-zusatz { margin: -4px 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--ang-grau); }
.kx .contact-form button[name="submit"].bx-sendet { opacity: .6; pointer-events: none; }

/* ---------- Reise-Auswahl (Termin, Kabine, Preis, Abflughafen) ---------- */
.bx-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bx-wahl-termin { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kx .bx-kachel { min-height: 62px; gap: 3px; padding: 10px 8px; }
.bx-kachel-titel { font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.bx-kachel-unter { font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--ang-grau); }
.kx-kachel.ist-gewaehlt .bx-kachel-unter { color: #ffffff; }
.kx .bx-kachel.ist-aus { border-style: dashed; background: var(--ang-hell); color: #8a97a5; cursor: not-allowed; }
.kx .bx-kachel.ist-aus:hover { border-color: var(--ang-linie); }
.bx-preis {
	padding: 6px 14px;
	border: 1px solid var(--ang-linie);
	border-radius: 12px;
	background: var(--ang-hell);
}
.bx-preis-zeile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 7px 0; }
.bx-preis-zeile[hidden] { display: none; }
.bx-preis-gesamt { border-top: 1px solid var(--ang-linie); }
.bx-preis-plus .bx-preis-wert { font-size: 16px; }
.bx-preis-text { font-size: 15px; font-weight: 600; color: var(--ang-text); }
.bx-preis-wert { font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--ang-dunkel); }
.bx-preis-gesamt .bx-preis-wert { font-size: 24px; }
.bx-preis-gesamt.ist-text .bx-preis-wert,
.bx-preis.ist-offen .bx-preis-wert { font-size: 15px; font-weight: 600; color: var(--ang-grau); }
/* Zahlungsart */
.bx-wahl-zahlung { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kx .bx-wahl-zahlung .bx-kachel { min-height: 50px; }
.bx-iban { margin: 12px 0 0; padding: 14px 14px 4px; border: 1px solid var(--ang-linie); border-radius: 12px; background: var(--ang-hell); }
.bx-iban[hidden], [data-bx-karte][hidden] { display: none; }
.bx-iban .bx-feldhinweis { margin: -4px 0 10px; }
/* Anzahl Reisende */
.bx-label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ang-text); }
.bx-anzahl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.kx .bx-zahl { min-height: 46px; padding: 6px; font-size: 17px; font-weight: 700; }
[data-bx-anzahl][hidden] { display: none; }
.bx-reise {
	padding: 11px 14px;
	border: 1px solid var(--ang-linie);
	border-radius: 10px;
	background: var(--ang-hell);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ang-dunkel);
	overflow-wrap: anywhere;
}
/* Feld-Beschriftung "Preis ..." entfaellt, die Anzeige traegt sie selbst */
.bx-mit-wahl [data-bx-feld="preis"] label { display: none; }
/* waehrend die Termine geladen werden */
.bx-laedt [data-bx-feld] { visibility: hidden; }

/* ---------- Breiten ---------- */
@media (max-width: 575.98px) {
	.bx-wahl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bx-wahl-termin { grid-template-columns: minmax(0, 1fr); }
	.bx-wahl-zahlung { grid-template-columns: minmax(0, 1fr); }
	.bx-person-raster { grid-template-columns: minmax(0, 1fr); }
	.bx-geb, .bx-staat { grid-column: auto; }
	.bx-zus-liste { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.bx-zus-liste dd { margin: 0 0 8px; }
	.bx-knopfzeile { flex-direction: column-reverse; }
	.kx .bx-zurueck { width: 100%; }
	.kx-fortschritt { gap: 6px; }
	.kx-fortschritt-punkt { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
	.bx-person-raster { grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr); }
}
