/*
 * Wolf Lohnportal – Frontend (mobil zuerst).
 * Farben kommen aus den globalen Elementor-Farben; die Rückfallwerte sind Platzhalter
 * [OFFEN: Wolf-Farbcodes aus dem claude.ai-Import]. Anpassen ohne Code-Änderung:
 * Elementor → Website-Einstellungen → Benutzerdefiniertes CSS, z. B.
 *   .wolf-lohn { --wolf-lohn-primaer: #123456; }
 * Kontrast Knopftext/Knopffarbe muss mindestens 4,5 : 1 betragen.
 */

.wolf-lohn {
	--wolf-lohn-primaer: var(--e-global-color-primary, #1f2d3d);
	--wolf-lohn-text: var(--e-global-color-text, #222222);
	--wolf-lohn-hell: #f6f5f1;
	--wolf-lohn-rand: #8a8780;
	--wolf-lohn-fokus: #005fcc;
	--wolf-lohn-radius: 4px;

	box-sizing: border-box;
	width: 100%;
	max-width: 46rem;
	margin: 0 auto;
	color: var(--wolf-lohn-text);
	font-size: 1rem;
	line-height: 1.5;
}

.wolf-lohn *,
.wolf-lohn *::before,
.wolf-lohn *::after {
	box-sizing: inherit;
}

.wolf-lohn__titel {
	margin: 0 0 0.75rem;
	font-size: 1.375rem;
	line-height: 1.3;
}

.wolf-lohn__angemeldet,
.wolf-lohn__meldung,
.wolf-lohn__leer,
.wolf-lohn__hilfe,
.wolf-lohn__konto,
.wolf-lohn__abmelden {
	margin: 0 0 1rem;
}

.wolf-lohn__meldung,
.wolf-lohn__leer {
	padding: 1rem;
	background: var(--wolf-lohn-hell);
	border-left: 4px solid var(--wolf-lohn-primaer);
}

/* Liste: auf dem Handy Karten untereinander */
.wolf-lohn__liste {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.wolf-lohn__eintrag {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem;
	margin: 0 0 0.75rem;
	background: #ffffff;
	border: 1px solid var(--wolf-lohn-rand);
	border-radius: var(--wolf-lohn-radius);
}

.wolf-lohn__monat {
	font-weight: 700;
	font-size: 1.125rem;
}

.wolf-lohn__datum {
	font-size: 0.9375rem;
}

.wolf-lohn__aktionen {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

/* Knöpfe: mindestens 44 px Tippfläche */
.wolf-lohn__knopf,
.wolf-lohn #wolf-lohn-anmelden {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.625rem 1.25rem;
	border: 2px solid var(--wolf-lohn-primaer);
	border-radius: var(--wolf-lohn-radius);
	background: var(--wolf-lohn-primaer);
	color: #ffffff;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
}

.wolf-lohn__knopf--zweit {
	background: #ffffff;
	color: var(--wolf-lohn-primaer);
}

.wolf-lohn__knopf:hover,
.wolf-lohn #wolf-lohn-anmelden:hover {
	text-decoration: underline;
}

.wolf-lohn a:focus-visible,
.wolf-lohn input:focus-visible,
.wolf-lohn button:focus-visible {
	outline: 3px solid var(--wolf-lohn-fokus);
	outline-offset: 2px;
}

/* Anmeldeformular (von WordPress erzeugt) */
.wolf-lohn #wolf-lohn-login p {
	margin: 0 0 1rem;
}

.wolf-lohn #wolf-lohn-login label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.wolf-lohn #wolf-lohn-login input[type="text"],
.wolf-lohn #wolf-lohn-login input[type="password"] {
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--wolf-lohn-rand);
	border-radius: var(--wolf-lohn-radius);
	font-size: 1rem; /* verhindert Zoom auf iOS */
	background: #ffffff;
	color: var(--wolf-lohn-text);
}

.wolf-lohn #wolf-lohn-anmelden {
	width: 100%;
}

/* Ab Tablet: Einträge in einer Zeile */
@media (min-width: 640px) {
	.wolf-lohn__eintrag {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.5rem 1.5rem;
	}

	.wolf-lohn__monat {
		min-width: 10rem;
	}

	.wolf-lohn__aktionen {
		margin: 0 0 0 auto;
	}

	.wolf-lohn #wolf-lohn-anmelden {
		width: auto;
	}

	.wolf-lohn--anmeldung {
		max-width: 28rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wolf-lohn * {
		transition: none !important;
	}
}
