/* Bewerbungsformular (inc/apply.php) auf /bewerben und /apply, in der weißen Karte wie das Newsletter-Formular
   (ivb-newsletter.css): Beschriftung und Felder Hubot Sans, Felder #f5f8fa mit Rahmen #959494 und 3 px Rundung,
   Knopf pink wie „Jetzt bewerben“ mit dunkler Schrift (weiß auf Pink hätte nur 2,7 : 1), Fehlermeldungen weiß auf
   Dunkelrot (7 : 1). Seit 19.11.2026. */
.ivb-apply {
	container-type: inline-size;
	box-sizing: border-box;
	padding: 40px;
	color: #001523;
	font: 400 16px/1.4 'Hubot Sans', 'IVB Hubot Ersatz', 'Nunito Sans', sans-serif;
	text-align: left;
}
.ivb-apply *, .ivb-apply *::before, .ivb-apply *::after { box-sizing: border-box; }
.ivb-apply p { margin: 0; }
.ivb-apply [hidden] { display: none !important; }

.ivb-apply fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ivb-apply__group + .ivb-apply__group { margin-top: 36px; }
.ivb-apply__group > legend {
	padding: 0;
	margin-bottom: 20px;
	color: #001523;
	font: 600 20px/1.3 'Hubot Sans', 'IVB Hubot Ersatz', 'Nunito Sans', sans-serif;
	letter-spacing: -.2px;
}
.ivb-apply__row { display: flex; gap: 24px; }
.ivb-apply__row + .ivb-apply__row, .ivb-apply__row + .ivb-apply__field, .ivb-apply__field + .ivb-apply__field { margin-top: 22px; }
.ivb-apply__row > .ivb-apply__field { flex: 1 1 0; min-width: 0; margin-top: 0; display: flex; flex-direction: column; }
.ivb-apply .ivb-apply__row > .ivb-apply__field > input[type] { margin-top: auto; } /* Felder einer Reihe auf einer Linie, auch mit Hinweis */

.ivb-apply label, .ivb-apply__choice > legend { display: block; padding: 0; margin-bottom: 8px; color: #001523; font: 400 16px/1.4 'Hubot Sans', 'IVB Hubot Ersatz', 'Nunito Sans', sans-serif; }
.ivb-apply__req { color: #a3141c; margin-left: 2px; }
.ivb-apply__opt { color: #4A5863; font-size: 14px; }
.ivb-apply__hint { margin: -4px 0 8px !important; color: #4A5863; font: 400 13px/1.35 'Nunito Sans', sans-serif; }

.ivb-apply input[type="text"], .ivb-apply input[type="email"], .ivb-apply input[type="tel"], .ivb-apply textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 10px;
	border: 1px solid #959494;
	border-radius: 3px;
	background: #f5f8fa;
	color: #001523;
	font: 400 16px/21px 'Hubot Sans', 'IVB Hubot Ersatz', 'Nunito Sans', sans-serif;
	-webkit-appearance: none;
	appearance: none;
}
.ivb-apply textarea { min-height: 130px; resize: vertical; }
.ivb-apply input:focus-visible, .ivb-apply textarea:focus-visible { outline: 2px solid #22577A; outline-offset: 2px; }
.ivb-apply [aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]) { border-color: #a3141c; }

.ivb-apply__choice label, .ivb-apply__check label { display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; }
.ivb-apply__choice label { display: inline-flex; margin-right: 28px; }
.ivb-apply input[type="radio"], .ivb-apply input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #22577A; }
.ivb-apply__checks { margin-top: 32px; }
.ivb-apply__check + .ivb-apply__check { margin-top: 14px; }
.ivb-apply__check label { font: 400 15px/1.4 'Nunito Sans', sans-serif; }
.ivb-apply__check a { color: #22577A; text-decoration: underline; }

.ivb-apply__field-error, .ivb-apply__error {
	margin-top: 8px !important;
	padding: 6px 10px;
	border-radius: 3px;
	background: #a3141c;
	color: #fff;
	font: 400 14px/1.4 'Nunito Sans', sans-serif;
}
.ivb-apply__note { margin-top: 24px !important; color: #4A5863; font: 400 14px/1.3 'Nunito Sans', sans-serif; }
.ivb-apply__error { margin-top: 16px !important; }

/* Falle für Bots: aus dem Blick, aber nicht display:none */
.ivb-apply__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ivb-apply__actions { display: flex; justify-content: flex-end; margin-top: 32px; }
.ivb-apply .ivb-apply__btn, .ivb-apply .ivb-apply__btn:hover, .ivb-apply .ivb-apply__btn:focus {
	margin: 0;
	padding: 14px 26px;
	border: 0;
	border-radius: 4px;
	background: #FF66B3;
	color: #001523;
	font: 700 16px/1.375 'Hubot Sans', 'IVB Hubot Ersatz', 'Nunito Sans', sans-serif;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.ivb-apply .ivb-apply__btn:hover { background: #FF85C2; }
.ivb-apply .ivb-apply__btn:focus-visible { outline: 2px solid #001523; outline-offset: 2px; }
.ivb-apply .ivb-apply__btn:disabled { cursor: progress; opacity: .7; }

.ivb-apply__done { font: 400 18px/1.4 'Nunito Sans', sans-serif; color: #001523; }
.ivb-apply__done p + p { margin-top: 16px !important; }
.ivb-apply__done-title { font: 600 24px/1.25 'Hubot Sans', 'IVB Hubot Ersatz', 'Nunito Sans', sans-serif; }
.ivb-apply__done a { color: #22577A; text-decoration: underline; }
.ivb-apply__done:focus { outline: none; }

/* Desktop: Text links schmaler und oben (bleibt beim Scrollen stehen), Formular rechts breiter als in der Newsletter-Vorlage */
@media (min-width: 992px) {
	.con-kit-layout:has(.ivb-apply) > .con-kit-col--first { flex: 0 0 37.5% !important; max-width: 37.5% !important; align-self: flex-start; position: sticky; top: 190px; }
	.con-kit-layout:has(.ivb-apply) > .con-kit-col--last { flex: 0 0 54.1667% !important; max-width: 54.1667% !important; }
}

/* Schmal (Handy oder schmale Spalte): Felder untereinander, Knopf über die volle Breite */
@container (max-width: 520px) {
	.ivb-apply__row { flex-direction: column; gap: 22px; }
	.ivb-apply .ivb-apply__row > .ivb-apply__field > input[type] { margin-top: 0; }
	.ivb-apply__actions { display: block; }
	.ivb-apply .ivb-apply__btn { width: 100%; }
}
/* Handy: Platz für die feste Kopfzeile (144 px); Onepage begrenzt den Abstand oben am Handy sonst auf 100 px */
@media (max-width: 768px) {
	section:has(.ivb-apply) > .con-kit-layer > .con-kit-organism-background1 > .con-kit-frame { padding-top: 176px !important; }
}
@media (max-width: 480px) {
	.ivb-apply { padding: 24px 20px; }
}
