/*
 * Schritt-Assistent im Checkout (Modul verwaltung_warenkorb).
 *
 * Bewusst eine eigene Datei statt der kompletten kursimple.css aus
 * bewegt-lernen: von deren 129 Klassen sind 118 in kube bereits belegt,
 * ein Einbinden wuerde das Design flaechig ueberschreiben. Hier steht
 * ausschliesslich das, was in kube fehlt.
 *
 * Wird nach style.css geladen. Herkunft: bewegt-lernen/cms/css/kursimple.css
 * (Fortschrittsanzeige und Lade-Overlay), Stand 2026-08-19.
 */

/* --- Fortschrittsanzeige ueber den fuenf Schritten --- */

.progress-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	width: 100%;
	margin: 20px 0;
}

.progress-line {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background-color: gray;
	z-index: 0;
}

.circle {
	width: 40px;
	height: 40px;
	border: 1px solid gray;
	border-radius: 50%;
	background-color: white;
	text-align: center;
	line-height: 40px;
	font-size: 18px;
	color: black;
	z-index: 1;
	transition: border-color 0.3s ease;
}

/* Zusammengesetzt (.circle.active), damit kubes generisches .active
   unberuehrt bleibt. */
.circle.active {
	width: 44px;
	height: 44px;
}

.circle.active:nth-child(2) { border: 3px solid #1E90FF; } /* DodgerBlue */
.circle.active:nth-child(3) { border: 3px solid #00BFFF; } /* DeepSkyBlue */
.circle.active:nth-child(4) { border: 3px solid #40E0D0; } /* Turquoise */
.circle.active:nth-child(5) { border: 3px solid #3CB371; } /* MediumSeaGreen */
.circle.active:nth-child(6) { border: 3px solid #32CD32; } /* LimeGreen */

/* --- Lade-Overlay waehrend des Absendens --- */

#loading-overlay {
	display: none; /* wird von showLoading() auf flex gesetzt */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 999;
	justify-content: center;
	align-items: center;
}

/* Bootstrap bringt nur .spinner-border und .spinner-grow mit, nicht .spinner. */
.spinner {
	border: 8px solid rgba(255, 255, 255, 0.3);
	border-top: 8px solid white;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0%   { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
