/* ============================================================
   custom.css – eigene Anpassungen AWO Göppingen
   Wird nach sky-forms.css geladen.
   ============================================================ */

/* ---------- Formular Interessenanmeldung (integrationskurse-formular.php) ---------- */

/* Hauptüberschrift (h1) im gleichen Stil wie die bisherigen h3.heading-Überschriften */
h1.heading {
	position: relative;
	overflow: hidden;
	margin: 0 0 20px;
	padding-bottom: 10px;
	font-family: 'Raleway', sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 24px;
	text-transform: uppercase;
	color: #000;
}

/* Doppellinie rechts neben der Hauptüberschrift */
h1.heading:after {
	content: "";
	position: relative;
	left: 18px;
	display: inline-block;
	width: 200%;
	height: .50em;
	margin: 0 -200% 0 0;
	vertical-align: middle;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

/* Abstand zwischen den nummerierten Abschnitten */
.sky-form .form-gruppe {
	margin-bottom: 30px;
}

/* Überschrift eines Abschnitts (1. Persönliche Angaben usw.) */
.sky-form .form-titel {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 22px;
	font-weight: 700;
	color: #424242;
}

/* Zusatz hinter der Überschrift, z. B. "(Mehrfachauswahl)" */
.sky-form .form-zusatz {
	font-size: 13px;
	font-weight: 400;
	color: #666;
}

/* Auswahl-Optionen: mobil untereinander */
.sky-form .form-optionen {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: 30px;
	row-gap: 4px;
}

/* Auswahl-Optionen: ab Tablet zweispaltig */
@media (min-width: 600px) {
	.sky-form .form-optionen-2 {
		grid-template-columns: 1fr 1fr;
	}
}

/* Kein Zusatzabstand unter Optionen im Raster (Abstand kommt vom row-gap) */
.sky-form .form-optionen .checkbox,
.sky-form .form-optionen .radio {
	margin-bottom: 0;
}

/* Zeile "Sonstige" mit Freitextfeld daneben, über die volle Breite */
.sky-form .form-sonstige {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	grid-column: 1 / -1;
}

/* Freitextfeld neben "Sonstige" füllt den Platz, bleibt aber kompakt */
.sky-form .form-sonstige .input {
	flex: 1 1 200px;
	max-width: 320px;
}

/* Hinweistext unter einer Auswahl (gut lesbar statt hellgrauer .note) */
.sky-form .form-hinweis {
	margin-top: 10px;
	font-size: 13px;
	line-height: 20px;
	color: #555;
}

/* Links im Formular: unterstrichen und kontrastreich statt hellblau */
.sky-form .form-hinweis a {
	color: #424242;
	text-decoration: underline;
}
.sky-form .form-hinweis a:hover,
.sky-form .form-hinweis a:focus {
	color: #e2001a;
}

/* Checkboxen/Radios: Rahmen kontrastreich genug, um als Feld erkennbar zu sein (WCAG 1.4.11) */
.sky-form-kurs .radio i,
.sky-form-kurs .checkbox i {
	border-color: #767676;
}

/* Checkboxen/Radios: gewählter Zustand in dunklerem Blau (Kontrast 4,5:1) */
.sky-form-kurs .radio input:checked + i,
.sky-form-kurs .checkbox input:checked + i {
	border-color: #1b7fad;
}
.sky-form-kurs .radio input + i:after {
	background-color: #1b7fad;
}
.sky-form-kurs .checkbox input + i:after {
	color: #1b7fad;
}

/* Checkboxen/Radios: deutlich sichtbarer Fokusrahmen bei Tastaturbedienung */
.sky-form-kurs .radio input:focus + i,
.sky-form-kurs .checkbox input:focus + i {
	outline: 2px solid #333;
	outline-offset: 2px;
}
.sky-form-kurs .radio input:focus:not(:focus-visible) + i,
.sky-form-kurs .checkbox input:focus:not(:focus-visible) + i {
	outline: none;
}

/* Fehlermeldung unter einem Feld oder einer Auswahl */
.sky-form em.form-fehler {
	display: block;
	margin-top: 6px;
	font-style: normal;
	font-size: 13px;
	line-height: 18px;
	color: #c50017;
}

/* Fehlerhinweis über dem Senden-Button, wenn der Versand scheitert */
.sky-form .form-meldung {
	margin-bottom: 20px;
	padding: 12px 15px;
	border-left: 4px solid #c50017;
	background: #fff0f0;
	font-size: 14px;
	line-height: 22px;
	color: #424242;
}
.sky-form .form-meldung:empty {
	display: none;
}

/* Erfolgsmeldung: dunkleres Grün für ausreichenden Textkontrast, kein Fokusrahmen */
.sky-form-kurs .message {
	color: #2e7d3a;
	outline: none;
}
.sky-form-kurs .message i {
	border-color: #2e7d3a;
}
