/*
 * Kursseite · Zulassungs-Check – barrierearm und eindeutig: helle Karte, aktiver Schritt blau umrandet,
 * erledigter Schritt grün mit Haken, Antwortfelder mit sichtbarem Rahmen (#6C757D = 4,7 : 1) und Auswahlkreis,
 * Ergebnis mit Symbol + Text. Das Akkordeon #voraussetzungen bleibt im HTML, Wortlaut aufklappbar.
 */

#voraussetzungen.iffa-mit-check .mayolove-accordion__items {
  display: none;
}

.iffa-zulassung {
  --z-blau: var(--iffa-blau, #213a8f);
  --z-blau-hell: #e8ecf8;
  --z-rahmen: #6c757d;
  --z-text: var(--iffa-text, #1b2340);
  --z-leise: var(--iffa-text-leise, #495057);
  --z-gruen: #2b8a3e;
  --z-gruen-text: #1e6b30;
  --z-gruen-hell: #edf7f0;
  --z-orange: #b35309;
  --z-orange-text: #8a3c00;
  --z-orange-hell: #fff4e6;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 16px;
  color: var(--z-text);
}

.iffa-zulassung__titel {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.iffa-zulassung__intro {
  margin: 0;
  font-size: 16px;
}

/* Linke Karte: der Check */
.iffa-zulassung__check {
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 0 0 22px;
  border: 1px solid #dfe3eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(27 35 64 / 10%);
}

.iffa-zulassung__check > :not(.iffa-zulassung__band) {
  margin: 0 22px;
}

.iffa-zulassung__band {
  display: grid;
  gap: 6px;
  padding: 20px 22px 18px;
  background: var(--z-blau);
  color: #fff;
}

.iffa-zulassung__fortschritt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.iffa-zulassung__leiste {
  flex: 0 0 120px;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgb(255 255 255 / 30%);
}

.iffa-zulassung__leiste i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 0.3s;
}

/* Schritte */
.iffa-zulassung__frage {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 2px solid #e3e7ef;
  border-radius: 18px;
  transition: border-color 0.2s, background 0.2s;
}

.iffa-zulassung__frage.ist-aktiv {
  border-color: var(--z-blau);
  background: #f7f9fd;
}

.iffa-zulassung__frage legend {
  display: flex;
  align-items: center;
  gap: 10px;
  float: left;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.iffa-zulassung__frage legend + * {
  clear: both;
}

.iffa-zulassung__nr {
  display: inline-grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--z-blau);
  color: #fff;
  font-size: 15px;
}

.iffa-zulassung__nr svg {
  display: none;
  width: 18px;
  height: 18px;
}

.ist-erledigt .iffa-zulassung__nr {
  background: var(--z-gruen);
}

.ist-erledigt .iffa-zulassung__nr b {
  display: none;
}

.ist-erledigt .iffa-zulassung__nr svg {
  display: block;
}

.iffa-zulassung__hilfe {
  margin: 0;
  color: var(--z-leise);
  font-size: 14.5px;
}

.ist-aktiv .iffa-zulassung__hilfe {
  color: var(--z-blau);
  font-weight: 700;
}

/* Antwortfelder */
.iffa-zulassung__wahlen {
  display: grid;
  gap: 8px;
}

.iffa-zulassung__wahl,
.iffa-zulassung__jahre label {
  position: relative;
  display: block;
  cursor: pointer;
}

.iffa-zulassung__wahl input,
.iffa-zulassung__jahre input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.iffa-zulassung__wahl span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px 10px 48px;
  border: 2px solid var(--z-rahmen);
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color 0.2s, background 0.2s;
}

/* sichtbarer Auswahlkreis */
.iffa-zulassung__wahl span::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 2px solid #495057;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  content: "";
}

.iffa-zulassung__wahl span svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--z-blau);
  visibility: hidden;
}

.iffa-zulassung__wahl:hover span,
.iffa-zulassung__jahre label:hover span {
  border-color: var(--z-blau);
  background: #f3f5fb;
}

.iffa-zulassung__wahl input:checked + span {
  border-color: var(--z-blau);
  background: var(--z-blau-hell);
  box-shadow: inset 0 0 0 1px var(--z-blau);
  font-weight: 700;
}

.iffa-zulassung__wahl input:checked + span::before {
  border-color: var(--z-blau);
  background: radial-gradient(var(--z-blau) 0 5px, #fff 6px);
}

.iffa-zulassung__wahl input:checked + span svg {
  visibility: visible;
}

.iffa-zulassung__jahre {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.iffa-zulassung__jahre span {
  display: grid;
  min-height: 48px;
  padding: 4px;
  place-items: center;
  border: 2px solid var(--z-rahmen);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-align: center;
}

.iffa-zulassung__jahre input:checked + span {
  border-color: var(--z-blau);
  background: var(--z-blau);
  color: #fff;
}

.iffa-zulassung__wahl input:focus-visible + span,
.iffa-zulassung__jahre input:focus-visible + span {
  outline: 3px solid var(--z-blau);
  outline-offset: 3px;
}

/* Ergebnis: immer Symbol + Satz, Farbe nur zusätzlich */
.iffa-zulassung__ergebnis {
  padding: 16px 18px;
  border: 2px dashed #adb5bd;
  border-radius: 16px;
  background: #f8f9fa;
}

.iffa-zulassung__leer {
  margin: 0;
  color: var(--z-leise);
}

.iffa-zulassung__ergebnis.ist-ja {
  border: 2px solid var(--z-gruen);
  background: var(--z-gruen-hell);
}

.iffa-zulassung__ergebnis.ist-noch {
  border: 2px solid var(--z-orange);
  background: var(--z-orange-hell);
}

.iffa-zulassung__ergebnis p {
  margin: 0 0 8px;
}

.iffa-zulassung__urteil {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.iffa-zulassung__urteil p {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.iffa-zulassung__symbol {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.iffa-zulassung__symbol svg {
  width: 22px;
  height: 22px;
}

.ist-ja .iffa-zulassung__symbol {
  background: var(--z-gruen);
}

.ist-ja .iffa-zulassung__urteil p {
  color: var(--z-gruen-text);
}

.ist-noch .iffa-zulassung__symbol {
  background: var(--z-orange);
}

.ist-noch .iffa-zulassung__urteil p {
  color: var(--z-orange-text);
}

.iffa-zulassung__knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 10px 0 0 !important;
}

.iffa-zulassung__knoepfe a {
  color: var(--z-blau);
  font-weight: 700;
}

.iffa-zulassung__knoepfe a.ist-voll {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--z-blau);
  color: #fff;
  text-decoration: none;
}

.iffa-zulassung__fussleiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.iffa-zulassung__fuss {
  flex: 1 1 260px;
  margin: 0;
  color: var(--z-leise);
  font-size: 13.5px;
}

.iffa-zulassung__neu {
  min-height: 44px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--z-blau);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Rechte Karte: alle Wege als Balken, Maßstab 0–5 Jahre */
.iffa-zulassung__wege {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid #e3e7ef;
  border-radius: 24px;
  background: #fff;
}

.iffa-zulassung__wege .iffa-zulassung__intro {
  color: var(--z-leise);
}

.iffa-zulassung__balken {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.iffa-zulassung__balken li {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.iffa-zulassung__balken li.ist-gewaehlt {
  border-color: var(--z-blau);
  background: var(--z-blau-hell);
}

.iffa-zulassung__weg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.iffa-zulassung__weg em {
  display: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--z-blau);
  color: #fff;
  font-size: 12px;
  font-style: normal;
}

.ist-gewaehlt .iffa-zulassung__weg em {
  display: inline-block;
}

.iffa-zulassung__spur {
  position: relative;
  height: 28px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #f1f3f5 0, #f1f3f5 calc(100% / var(--max) - 1px), #ced4da calc(100% / var(--max) - 1px), #ced4da calc(100% / var(--max)));
}

.iffa-zulassung__wert {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: calc(var(--jahre) / var(--max) * 100%);
  padding-right: 8px;
  border-radius: 8px;
  background: var(--z-rahmen);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ist-gewaehlt .iffa-zulassung__wert {
  background: var(--z-blau);
}

/* Weg ohne Praxis-Pflicht: kein Balken, dunkle Aufschrift */
.iffa-zulassung__wert.ist-null,
.ist-gewaehlt .iffa-zulassung__wert.ist-null {
  width: auto;
  padding-left: 10px;
  background: none;
  color: var(--iffa-text, #1b2340);
  justify-content: flex-start;
}

.iffa-zulassung__ich {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: calc(var(--ich) / var(--max) * 100%);
  width: 3px;
  margin-left: -1.5px;
  background: var(--z-gruen);
}

.iffa-zulassung__ich::before {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--z-gruen);
  content: "";
}

.iffa-zulassung__achse {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0 14px;
  color: var(--z-leise);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.iffa-zulassung__legende {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 14px;
  color: var(--z-leise);
  font-size: 13px;
}

.iffa-zulassung__legende i {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--z-gruen);
}

.iffa-zulassung__regeln {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 14px 0 0 18px;
  border-top: 1px solid #edf0f5;
  color: var(--z-leise);
  font-size: 15px;
}

.iffa-zulassung__regeln strong {
  color: var(--z-text);
}

.iffa-zulassung__wortlaut {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  background: #f8f9fb;
}

.iffa-zulassung__wortlaut summary {
  min-height: 32px;
  color: var(--z-blau);
  font-weight: 700;
  cursor: pointer;
}

.iffa-zulassung__wortlaut > div {
  margin-top: 10px;
  color: var(--z-leise);
  font-size: 15px;
}

@media (max-width: 991px) {
  .iffa-zulassung {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .iffa-zulassung__jahre {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .iffa-zulassung__check > :not(.iffa-zulassung__band) {
    margin: 0 14px;
  }
}

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