/**
 * Leasingbereich in der Kasse – Fahrradshop24.
 *
 * Bewusst zurückhaltend: Der Bereich soll wie ein Teil der Kasse aussehen,
 * nicht wie ein Fremdkörper. Farben kommen deshalb aus den Variablen des
 * Themes, mit Rückfallwerten für den Fall, dass diese Datei einmal ohne das
 * Blocksy-Child-Theme geladen wird.
 *
 * Mobil zuerst: Ein Bereich in einer Kasse wird überwiegend auf dem Telefon
 * ausgefüllt. Alles steht einspaltig, bis genug Platz da ist; keine festen
 * Breiten, keine Mindestbreiten, die schmaler als das Gerät nicht mehr
 * passen.
 */

.fs24-leasing {
	--fs24-lea-ink: var( --ink, #12263f );
	--fs24-lea-mute: var( --muted, #5a6b7e );
	--fs24-lea-line: var( --line, #dde3ea );
	--fs24-lea-akzent: var( --fs24-orange, #d24614 );
	--fs24-lea-flaeche: var( --surface, #f7f9fb );

	margin: 0;
	color: var( --fs24-lea-ink );
	font-size: 15px;
	line-height: 1.5;
}

.fs24-leasing__intro {
	margin: 0 0 14px;
	color: var( --fs24-lea-mute );
}

.fs24-leasing__intro p:last-child {
	margin-bottom: 0;
}

/*
 * Anfrage-Modus-Hinweis: bewusst deutlich sichtbar, nicht nur als Fußnote.
 * Muss auffallen, bevor überhaupt ein Feld ausgefüllt wird (verbindliches
 * UX-Prinzip: Leasing niemals als alternative Zahlungsart für einen
 * abgeschlossenen Kauf darstellen).
 */
.fs24-leasing__modushinweis {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: var( --fs24-btn-radius, 10px );
	background: var( --fs24-lea-flaeche );
	border: 1px solid var( --fs24-lea-line );
	color: var( --fs24-lea-ink );
	font-size: 13px;
	font-weight: 600;
}

/* --- Zeilen ------------------------------------------------------------ */

.fs24-leasing .fs24-leasing__row {
	margin: 0 0 14px;
	padding: 0;
	float: none;
	width: auto;
}

.fs24-leasing .fs24-leasing__row label {
	display: block;
	margin: 0 0 4px;
	font-weight: 600;
	color: var( --fs24-lea-ink );
}

.fs24-leasing .fs24-leasing__row .optional {
	margin-left: 4px;
	font-weight: 400;
	color: var( --fs24-lea-mute );
}

.fs24-leasing .fs24-leasing__row abbr.required {
	border: 0;
	color: var( --fs24-lea-akzent );
	text-decoration: none;
}

.fs24-leasing input[type="text"],
.fs24-leasing select,
.fs24-leasing textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid var( --fs24-lea-line );
	border-radius: var( --fs24-btn-radius, 10px );
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.4;
}

.fs24-leasing textarea {
	min-height: 84px;
	resize: vertical;
}

.fs24-leasing input[type="text"]:focus,
.fs24-leasing select:focus,
.fs24-leasing textarea:focus {
	outline: 2px solid var( --fs24-lea-akzent );
	outline-offset: 1px;
	border-color: var( --fs24-lea-akzent );
}

.fs24-leasing__hinweis {
	display: block;
	margin: 5px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var( --fs24-lea-mute );
}

.fs24-leasing__hinweis--fehler {
	color: #b32d2e;
	font-weight: 600;
}

.fs24-leasing input.fs24-leasing--fehler {
	border-color: #b32d2e;
	background: #fdf4f4;
}

/* --- Zweispaltig erst, wenn Platz ist ---------------------------------- */

@media ( min-width: 560px ) {
	.fs24-leasing .form-row-first,
	.fs24-leasing .form-row-last {
		float: none;
		display: inline-block;
		vertical-align: top;
		width: calc( 50% - 7px );
	}

	.fs24-leasing .form-row-first {
		margin-right: 10px;
	}
}

/* --- Abschnitt Arbeitgeber --------------------------------------------- */

.fs24-leasing__block {
	margin: 18px 0 14px;
	padding: 16px 14px 4px;
	border: 1px solid var( --fs24-lea-line );
	border-radius: 14px;
	background: var( --fs24-lea-flaeche );
}

.fs24-leasing__legend {
	padding: 0 8px;
	margin-left: -4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var( --fs24-lea-mute );
}

.fs24-leasing .fs24-leasing__check {
	margin: 0 0 14px;
	padding: 0;
	float: none;
	width: auto;
}

.fs24-leasing__checklabel {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400 !important;
	cursor: pointer;
}

.fs24-leasing__checklabel input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 3px;
	width: 18px;
	height: 18px;
}

/* --- USt-ID mit Ländervorsatz ------------------------------------------ */

.fs24-leasing__ustid-wrap {
	display: flex;
	align-items: stretch;
	max-width: 100%;
}

.fs24-leasing__ustid-praefix {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 12px;
	border: 1px solid var( --fs24-lea-line );
	border-right: 0;
	border-radius: var( --fs24-btn-radius, 10px ) 0 0 var( --fs24-btn-radius, 10px );
	background: #eef2f6;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var( --fs24-lea-mute );
	white-space: nowrap;
}

.fs24-leasing__ustid-praefix[hidden] {
	display: none;
}

.fs24-leasing__ustid-praefix:not( [hidden] ) + .fs24-leasing__ustid-input {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.fs24-leasing__ustid-input {
	min-width: 0; /* sonst sprengt das Feld im Flexkasten die Zeile */
	text-transform: uppercase;
}

.fs24-leasing__zusage {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-left: 3px solid var( --fs24-lea-akzent );
	background: #fff;
	font-size: 14px;
	color: var( --fs24-lea-mute );
}

/* ======================================================================
   Zusammenfassung in Schritt 3
   ====================================================================== */

.fs24-leasing-recap {
	margin: 0 0 22px;
	padding: 18px 16px;
	border: 1px solid var( --line, #dde3ea );
	border-radius: 16px;
	background: #fff;
}

.fs24-leasing-recap[hidden] {
	display: none;
}

.fs24-leasing-recap__title {
	margin: 0 0 14px;
	font-size: 17px;
	color: var( --ink, #12263f );
}

.fs24-leasing-recap__gruppe + .fs24-leasing-recap__gruppe {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var( --line, #dde3ea );
}

.fs24-leasing-recap__gruppe h4 {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --muted, #5a6b7e );
}

.fs24-leasing-recap__posten {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.fs24-leasing-recap__posten li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
	padding: 8px 0;
	border-bottom: 1px solid var( --line, #dde3ea );
}

.fs24-leasing-recap__posten-name {
	flex: 1 1 60%;
	min-width: 0;
	font-weight: 600;
	color: var( --ink, #12263f );
}

.fs24-leasing-recap__posten-name small {
	display: block;
	font-weight: 400;
	font-size: 13px;
	color: var( --muted, #5a6b7e );
}

.fs24-leasing-recap__posten-menge {
	flex: 0 0 auto;
	color: var( --muted, #5a6b7e );
	font-variant-numeric: tabular-nums;
}

.fs24-leasing-recap__posten-preis {
	flex: 0 0 auto;
	margin-left: auto;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Positionen OHNE Preise (Browser-Nachtest 2026-09-22)
   --------------------------------------------------------------------------
   Die Beträge stehen einmal auf der Seite: in der Bestellübersicht. Hier
   bleiben nur Name und Menge, gefolgt von einem Verweis darauf. Die Regeln
   für ".fs24-leasing-recap__posten-preis" und "…__gesamt" bleiben bewusst
   stehen – sie werden gebraucht, sobald jemand die Preisanzeige hier über
   den Filter wieder einschaltet.
   -------------------------------------------------------------------------- */

.fs24-leasing-recap__posten--ohnepreis li {
	justify-content: space-between;
}

.fs24-leasing-recap__posten--ohnepreis .fs24-leasing-recap__posten-menge {
	margin-left: auto;
}

/* Die Preisübersicht des Leasingmodus – ergänzt 2026-09-22, erweitert nach
   dem Chrome-Abnahmetest desselben Tages. Sie ist im Leasingmodus die
   einzige Stelle mit Beträgen; die doppelten Zeilen der Kassenübersicht
   tragen dann .fs24-leasing-summe-verborgen (siehe ganz unten). */
.fs24-leasing-recap__preistitel {
	margin: 14px 0 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --muted, #5a6b7e );
}

.fs24-leasing-recap__betraege {
	margin: 0 0 8px;
}

.fs24-leasing-recap__betrag {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
	padding: 6px 0;
}

.fs24-leasing-recap__betrag dt,
.fs24-leasing-recap__betrag dd {
	margin: 0;
}

.fs24-leasing-recap__betrag dd {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.fs24-leasing-recap__betrag--leasing {
	border-top: 2px solid var( --ink, #12263f );
	padding-top: 10px;
	font-weight: 700;
	color: var( --ink, #12263f );
}

.fs24-leasing-recap__betrag--versand,
.fs24-leasing-recap__betrag--rabatt,
.fs24-leasing-recap__betrag--warenkorb {
	font-size: 13px;
	color: var( --muted, #5a6b7e );
}

.fs24-leasing-recap__betrag--warenkorb {
	border-top: 1px solid var( --line, #dde3ea );
	padding-top: 10px;
}

.fs24-leasing-recap__betrag--warenkorb dt small {
	display: block;
	font-size: 12px;
}

/* --------------------------------------------------------------------------
   Doppelte Summenzeilen der Kasse im Leasingmodus
   --------------------------------------------------------------------------
   Gesetzt und wieder entfernt von summenzeilenUmschalten() in checkout.js,
   ausschließlich solange Leasing die gewählte Zahlart ist.

   "!important", weil die betroffenen Zeilen im Theme ein eigenes
   "display: flex" tragen. Es wird nur diese eine Eigenschaft überschrieben –
   entfällt die Klasse, gilt die Gestaltung des Themes unverändert weiter.
   -------------------------------------------------------------------------- */
.fs24-leasing-summe-verborgen {
	display: none !important;
}

.fs24-leasing-recap__verweis {
	margin: 4px 0 0;
	color: var( --muted, #5a6b7e );
	font-size: 13px;
	line-height: 1.5;
}

/* Freiwilligkeitshinweis über einem Feldblock. */
.fs24-leasing__hinweis--block {
	display: block;
	margin: 0 0 10px;
}

.fs24-leasing-recap__liste {
	margin: 0;
}

.fs24-leasing-recap__zeile {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	padding: 5px 0;
}

.fs24-leasing-recap__zeile dt {
	flex: 0 0 auto;
	min-width: 150px;
	color: var( --muted, #5a6b7e );
}

.fs24-leasing-recap__zeile dd {
	flex: 1 1 200px;
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 600;
	color: var( --ink, #12263f );
}

.fs24-leasing-recap__gesamt {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
	margin: 10px 0 0;
	padding-top: 10px;
	border-top: 2px solid var( --ink, #12263f );
	font-size: 17px;
}

.fs24-leasing-recap__gesamt strong {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

@media ( max-width: 480px ) {
	.fs24-leasing-recap__zeile dt {
		min-width: 100%;
	}
}

/* ======================================================================
   Bestätigung nach dem Absenden
   ====================================================================== */

.fs24-leasing-eingang {
	padding: 16px;
	background: #0f2740;
	color: #fff;
}

.fs24-leasing-eingang__inner {
	max-width: 860px;
	margin: 0 auto;
}

.fs24-leasing-eingang__titel {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
}

.fs24-leasing-eingang__nummer,
.fs24-leasing-eingang__hinweis {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.5;
	color: rgba( 255, 255, 255, 0.86 );
}

.fs24-leasing-eingang__nummer strong {
	color: #fff;
}
