/* =============================================
   ANTRAGS-ASSISTENT – antrag.css
   ============================================= */

.antrag-body {
  background: var(--warm-grey);
  min-height: 100vh;
}

/* ── HEADER ───────────────────────────────── */
.antrag-header {
  background: white;
  border-bottom: 1px solid var(--mid-grey);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.antrag-header__logo img { height: 40px; width: auto; }
.antrag-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.antrag-header__back:hover { color: var(--red); }

/* ── MAIN LAYOUT ──────────────────────────── */
.antrag-main {
  padding: 48px 24px 80px;
}
.antrag-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── INTRO ────────────────────────────────── */
.antrag-intro { text-align: center; }
.antrag-intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: #166A22;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.antrag-intro__h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
}
.antrag-intro__lead {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── STEPPER ──────────────────────────────── */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.wizard-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wizard-stepper__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--mid-grey);
  color: var(--text-light);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.wizard-stepper__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  transition: color 0.3s;
}
.wizard-stepper__line {
  flex: 1;
  height: 2px;
  background: var(--mid-grey);
  margin: 0 8px;
  margin-bottom: 22px;
  transition: background 0.3s;
  max-width: 80px;
}
/* Active step */
.wizard-stepper__item.active .wizard-stepper__circle {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.wizard-stepper__item.active .wizard-stepper__label { color: var(--red); font-weight: 700; }
/* Completed step */
.wizard-stepper__item.done .wizard-stepper__circle {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.wizard-stepper__item.done .wizard-stepper__label { color: var(--green); }
.wizard-stepper__item.done .wizard-stepper__circle::after { content: '✓'; font-size: 16px; }
.wizard-stepper__item.done .wizard-stepper__circle { font-size: 0; }
.wizard-stepper__line.done { background: var(--green); }

/* ── CARD ─────────────────────────────────── */
.wizard-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

/* ── PANELS ───────────────────────────────── */
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wizard-panel__h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}
.wizard-panel__lead {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 28px;
  line-height: 1.65;
}
.wizard-panel__hint {
  font-size: 13px;
  color: var(--red);
  margin-top: 12px;
  min-height: 18px;
}

/* ── PACKAGE CARDS ────────────────────────── */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pkg-card {
  position: relative;
  border: 2px solid var(--mid-grey);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  background: var(--warm-white);
  display: block;
}
.pkg-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.pkg-card.selected {
  border-color: var(--red);
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(217,43,43,0.12);
}
.pkg-card--highlight {
  border-color: var(--red);
  background: #fff8f8;
}
.pkg-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.pkg-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pkg-card__name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.pkg-card__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mid-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.pkg-card.selected .pkg-card__check,
.pkg-card:has(input:checked) .pkg-card__check {
  background: var(--green);
}
.pkg-card__price {
  font-size: 26px;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 2px;
}
.pkg-card__price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}
.pkg-card__einmalig {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.pkg-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pkg-card__features li {
  font-size: 13px;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
}
.pkg-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
}

/* ── FORM ─────────────────────────────────── */
.wform { display: flex; flex-direction: column; gap: 18px; }
.wform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wform__group { display: flex; flex-direction: column; gap: 5px; }
.wform__group--wide { grid-column: 1 / -1; }
.wform__group--plz { max-width: 140px; }
.wform__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.wform__label span { color: var(--red); }
.wform__input {
  padding: 12px 14px;
  border: 2px solid var(--mid-grey);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.wform__input:focus { border-color: var(--red); }
.wform__input.has-error { border-color: var(--red); background: #fff8f8; }
.wform__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A7875' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.wform__textarea { resize: vertical; min-height: 90px; }
.wform__error {
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
}

/* Radio cards */
.wform__radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.wform__radio-group--3 { grid-template-columns: repeat(3, 1fr); }
.wform__radio-card {
  border: 2px solid var(--mid-grey);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: block;
}
.wform__radio-card input { display: none; }
.wform__radio-card:has(input:checked) {
  border-color: var(--red);
  background: #fff8f8;
}
.wform__radio-card:hover { border-color: var(--red); }
.wform__radio-card__title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.wform__radio-card__sub {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Consent */
.wform__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  cursor: pointer;
}
.wform__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}
.wform__consent span {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
}
.wform__consent a { color: var(--red); text-decoration: underline; }

/* ── SUMMARY ──────────────────────────────── */
.summary {
  background: var(--warm-grey);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.summary__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.summary__value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
}

/* ── NAVIGATION ───────────────────────────── */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wizard-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  background: white;
  border: 2px solid var(--mid-grey);
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.wizard-nav__back:hover { border-color: var(--text-mid); color: var(--text); }
.wizard-nav__next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217,43,43,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-left: auto;
}
.wizard-nav__next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217,43,43,0.35);
}

/* ── SUCCESS ──────────────────────────────── */
.wizard-success {
  display: none;
  text-align: center;
  padding: 20px 0;
  animation: fadeInUp 0.4s ease;
}
.wizard-success.active { display: block; }
.wizard-success__icon {
  width: 72px;
  height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.wizard-success__h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.wizard-success__text {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  color: var(--text-mid);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.wizard-success__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--green);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.wizard-success__btn:hover { opacity: 0.9; }

/* ── NEW FORM ELEMENTS ────────────────────── */

/* Info box (step 5 SEPA notice) */
.wform__info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #EDF7EF;
  border: 1px solid var(--green-mid);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #1A5C25;
  line-height: 1.55;
  margin-bottom: 4px;
}
.wform__info-box svg { flex-shrink: 0; margin-top: 1px; color: var(--green); }

/* Section label within a step */
.wform__section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--warm-grey);
  margin-bottom: 4px;
}
.wform__required-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--red-light);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
}

/* Checkbox rows */
.wform__checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border: 2px solid var(--mid-grey);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.wform__checkbox-row:hover { border-color: var(--red); }
.wform__checkbox-row:has(input:checked) {
  border-color: var(--red);
  background: #fff8f8;
}
.wform__checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--red);
  cursor: pointer;
}
.wform__checkbox-row span { font-size: 14px; color: var(--text-mid); line-height: 1.5; }
.wform__checkbox-row--spaced { margin-top: 6px; }

/* Add bezugsperson button */
.wform__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 2px dashed var(--mid-grey);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  width: 100%;
  justify-content: center;
}
.wform__add-btn:hover { border-color: var(--red); color: var(--red); }

/* SEPA mandate text */
.wform__sepa-text {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  background: var(--warm-grey);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 4px;
}
.wform__sepa-text strong { color: var(--text-mid); }

/* IBAN input */
.wform__iban {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
  font-size: 16px !important;
}

/* Consents block (step 6) */
.wform__consents {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

/* Order summary box (step 6) */
.wform__order-summary {
  background: var(--warm-grey);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wform__order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text-mid);
}
.wform__order-line--highlight {
  font-size: 17px;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px solid var(--mid-grey);
  margin-top: 4px;
}
.wform__order-line strong { color: var(--red); font-weight: 800; }
.wform__order-line--highlight strong { font-size: 20px; }

/* Error state (parallel to success) */
.wizard-error {
  text-align: center;
  padding: 20px 0;
  animation: fadeInUp 0.4s ease;
}
.wizard-error__icon {
  width: 72px;
  height: 72px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.wizard-error__h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.wizard-error__text { font-size: 16px; color: var(--text-mid); margin-bottom: 24px; line-height: 1.65; }

/* Success hint text */
.wizard-success__hint {
  font-size: 13px;
  color: var(--text-light);
  margin-top: -16px;
  margin-bottom: 24px;
}

/* Loading state on next button */
.wizard-nav__next.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
.wizard-nav__next.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 640px) {
  .wizard-card { padding: 24px 20px; }
  .pkg-grid { grid-template-columns: 1fr; }
  .wform__row { grid-template-columns: 1fr; }
  .wform__group--plz { max-width: 100%; }
  .wform__radio-group--3 { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .wizard-stepper__line { max-width: 40px; }
  .wizard-stepper__label { font-size: 11px; }
}
@media (max-width: 400px) {
  .antrag-main { padding: 24px 16px 60px; }
  .wizard-stepper__line { display: none; }
}
