/* Intensiv Direkt – Anfrage-Stepform (Design: anfrage.html / stepform-mobil.html) */
.ia-form {
	--ia-ink: #17352c; --ia-text: #365951; --ia-sage: #4e6b60; --ia-link: #1f5f4a; --ia-deep: #123e32;
	--ia-green: #7ab648; --ia-mint: #eef6e8; --ia-line: #d5e2db; --ia-line-soft: #e3ecE7; --ia-track: #e8f1ec; --ia-error: #b3261e;
	display: flex; flex-direction: column; gap: 24px; color: var(--ia-text); font-size: 15px; line-height: 1.5;
}
@media (min-width: 768px) { .ia-form { gap: 28px; font-size: 16px; line-height: 1.55; } }
.ia-form *, .ia-form *::before, .ia-form *::after { box-sizing: border-box; }
.ia-sr, .ia-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ia-hp { left: -9999px; }

/* Fortschritt */
.ia-progress { display: none; flex-direction: column; gap: 8px; }
.ia-js .ia-progress:not([hidden]) { display: flex; }
.ia-progress__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; }
.ia-progress__step { color: var(--ia-ink); }
.ia-progress__time { color: var(--ia-sage); }
.ia-progress__track { height: 8px; background: var(--ia-track); border-radius: 999px; overflow: hidden; }
.ia-progress__bar { display: block; height: 8px; background: var(--ia-green); border-radius: 999px; transition: width .35s cubic-bezier(.2, .7, .2, 1); }
@media (min-width: 768px) { .ia-progress { gap: 10px; } .ia-progress__meta { font-size: 14px; } }

/* Schritte */
.ia-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ia-step + .ia-step { margin-top: 40px; }
.ia-js .ia-step + .ia-step { margin-top: 0; }
.ia-js .ia-step[hidden] { display: none; }
.ia-step__legend { padding: 0; margin: 0 0 6px; float: left; width: 100%; }
.ia-step__legend + * { clear: both; }
.ia-step__title { font-family: inherit; font-size: 24px; font-weight: 800; line-height: 1.25; color: var(--ia-ink); letter-spacing: -0.035em; margin: 0; }
.ia-step__title:focus { outline: none; }
.ia-step__title:focus-visible { outline: 3px solid #86b44e; outline-offset: 4px; border-radius: 4px; }
.ia-step__text { margin: -14px 0 4px; }
@media (min-width: 768px) {
	.ia-step { gap: 24px; }
	.ia-step__title { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
	.ia-step__text { margin-top: -16px; }
}

/* Auswahl-Karten */
.ia-choices { display: grid; gap: 10px; grid-template-columns: 1fr; }
.ia-choice { position: relative; display: block; cursor: pointer; }
.ia-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ia-choice__box {
	display: flex; align-items: center; gap: 14px; min-height: 60px; height: 100%;
	border: 2px solid var(--ia-line); background: #fff; border-radius: 14px; padding: 14px 16px;
	color: var(--ia-ink); font-weight: 600; text-align: left;
	transition: border-color .2s, background-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.ia-choice:hover .ia-choice__box { border-color: #86b44e; }
.ia-choice input:checked + .ia-choice__box { border-color: var(--ia-green); background: var(--ia-mint); }
.ia-choice input:focus-visible + .ia-choice__box { outline: 3px solid #86b44e; outline-offset: 3px; }
.ia-choice__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; background: var(--ia-mint); color: var(--ia-link); display: flex; align-items: center; justify-content: center; }
.ia-choice input:checked + .ia-choice__box .ia-choice__icon { background: #fff; }
.ia-choice__label { flex: 1 1 auto; min-width: 0; }
.ia-choice__label strong { display: block; font-weight: 700; }
.ia-choice__sub { display: block; font-size: 13px; color: var(--ia-sage); font-weight: 400; }
.ia-choice__check { flex: 0 0 auto; display: none; color: #2f6b1a; }
.ia-choice input:checked + .ia-choice__box .ia-choice__check { display: inline-flex; }

@media (min-width: 600px) {
	.ia-choices { gap: 14px; }
	.ia-choices--icon { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
	.ia-choices--icon .ia-choice__box { padding: 20px; min-height: 84px; border-radius: 16px; }
	.ia-choices--center { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
	.ia-choices--center .ia-choice__box { flex-direction: column; justify-content: center; text-align: center; min-height: 160px; padding: 24px 16px; border-radius: 16px; }
	.ia-choices--center .ia-choice__icon { width: 60px; height: 60px; border-radius: 16px; }
	.ia-choices--center .ia-choice__label { flex: 0 0 auto; }
	.ia-choices--text { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
	.ia-choices--text .ia-choice__box { padding: 18px 20px; min-height: 64px; }
	.ia-choices--text .ia-choice__sub { font-size: 14px; }
	.ia-choice__check { display: none !important; }
	.ia-choice:hover .ia-choice__box { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(30, 58, 49, .1); }
}

/* Pills (Erreichbarkeit) */
.ia-sub { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ia-sub__legend { font-weight: 600; font-size: 14px; color: var(--ia-ink); padding: 0; margin-bottom: 8px; }
.ia-choices--pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ia-choice--pill .ia-choice__box { min-height: 44px; border-radius: 999px; padding: 10px 18px; }

/* Weiter-Button für Tastatur/Screenreader (erscheint bei Fokus) */
.ia-next-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; padding: 0; }
.ia-next-sr:focus { position: static; width: auto; height: auto; clip: auto; align-self: flex-start; padding: 12px 22px; border-radius: 999px; background: var(--ia-green); color: var(--ia-deep); font-weight: 700; cursor: pointer; }
.ia-form:not(.ia-js) .ia-next-sr, .ia-form:not(.ia-js) .ia-btn--next { display: none; }

/* Felder */
.ia-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.ia-field { display: flex; flex-direction: column; gap: 6px; }
.ia-field label { font-weight: 600; font-size: 14px; color: var(--ia-ink); }
.ia-field input, .ia-field textarea {
	border: 2px solid var(--ia-line); border-radius: 10px; padding: 14px; font: inherit; font-size: 16px; color: var(--ia-ink); background: #fff; width: 100%;
	transition: border-color .2s, box-shadow .2s;
}
.ia-field textarea { resize: vertical; min-height: 96px; }
.ia-field input:focus, .ia-field textarea:focus { outline: none; border-color: var(--ia-green); box-shadow: 0 0 0 3px rgba(122, 182, 72, .25); }
.ia-field.has-error input, .ia-field.has-error textarea { border-color: var(--ia-error); }
.ia-optional { font-weight: 400; color: var(--ia-sage); }
.ia-error { color: var(--ia-error); font-size: 14px; font-weight: 600; }
.ia-hint { font-size: 14px; color: var(--ia-sage); }
.ia-field--plz { max-width: 360px; gap: 8px; }
.ia-field--plz label { font-size: 16px; }
.ia-plz { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ia-green); border-radius: 12px; padding: 0 16px; background: #fff; color: var(--ia-link); }
.ia-plz:focus-within { box-shadow: 0 0 0 3px rgba(122, 182, 72, .25); }
.ia-field .ia-plz input { border: 0; padding: 16px 0; font-size: 20px; font-weight: 600; box-shadow: none; }
.ia-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; font-weight: 400 !important; color: var(--ia-text) !important; cursor: pointer; }
.ia-consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--ia-link); flex: 0 0 auto; }
.ia-consent a { color: var(--ia-link); }
.ia-summary { background: var(--ia-mint); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--ia-ink); }
.ia-form:not(.ia-js) .ia-summary { display: none; }
.ia-alert { background: #fdecea; color: #7a1c15; border-radius: 12px; padding: 12px 16px; font-size: 15px; font-weight: 600; }

/* Buttons */
.ia-btn {
	display: inline-flex; gap: 10px; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
	border: 0; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 16px; padding: 16px 28px; min-height: 52px;
	background: var(--ia-green); color: var(--ia-deep);
	transition: transform .25s cubic-bezier(.2, .7, .2, 1), filter .2s;
}
.ia-btn:hover { transform: translateY(-2px); filter: brightness(1.04); color: var(--ia-deep); }
.ia-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.ia-btn--next { align-self: flex-start; }
.ia-btn--submit { font-weight: 800; font-size: 17px; padding: 18px 28px; min-height: 56px; width: 100%; }
.ia-btn--dark { background: var(--ia-deep); color: #fff; border-radius: 8px; padding: 14px 22px; min-height: 44px; }
.ia-btn--dark:hover { color: #fff; }
.ia-note { font-size: 13px; color: var(--ia-sage); text-align: center; margin: 0; }

/* Zurück */
.ia-nav { border-top: 1px solid var(--ia-line-soft); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ia-form:not(.ia-js) .ia-nav { display: none; }
.ia-back { cursor: pointer; background: none; border: 0; color: var(--ia-link); font: inherit; font-weight: 600; min-height: 44px; padding: 0; }
.ia-back:hover { text-decoration: underline; }
.ia-nav__note { font-size: 13px; color: var(--ia-sage); }

/* Danke */
.ia-step--done { align-items: center; text-align: center; padding: 16px 0; gap: 24px; display: flex; flex-direction: column; }
.ia-step--done[hidden] { display: none; }
.ia-done-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--ia-green); color: var(--ia-deep); display: flex; align-items: center; justify-content: center; }
.ia-step__title--done { font-size: clamp(26px, 3.4vw, 36px); }
.ia-done-text { max-width: 520px; margin: 0; }
.ia-next-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 520px; text-align: left; }
.ia-next-steps li { display: flex; gap: 14px; align-items: flex-start; background: #f7f8f4; border-radius: 14px; padding: 16px; }
.ia-next-steps strong { color: var(--ia-ink); }
.ia-num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--ia-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ia-done-call { font-size: 15px; margin: 0; }
.ia-done-call a { color: var(--ia-ink); }

@media (prefers-reduced-motion: reduce) {
	.ia-form *, .ia-form *::before, .ia-form *::after { transition: none !important; }
	.ia-btn:hover, .ia-choice:hover .ia-choice__box { transform: none !important; }
}
