/* ENTWURF Bewerbungsformular. Fällt weg, sobald das Typeform-Embed drin ist. */
.af {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.af-top { padding: 0; }
.af-progress {
  height: 3px;
  background: transparent;
  overflow: hidden;
}
.af-progress span {
  display: block;
  height: 100%;
  background: var(--acc);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .6s var(--ease);
}

.af-stage { flex: 1; display: flex; padding: 22px 20px 26px; }
.af-step { width: 100%; display: flex; flex-direction: column; }

.af-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
  margin-bottom: 14px;
}
.af-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.af-back {
  border: 0;
  background: none;
  color: var(--acc);
  font: 500 14px var(--sans);
  padding: 6px 0;
  cursor: pointer;
}

.af-q {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(25px, 6.6vw, 30px);
  line-height: 1.15;
  margin-bottom: 20px;
  text-wrap: balance;
}

.af-options { display: grid; gap: 10px; }
.af-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font: 500 16px/1.3 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease);
}
.af-option:hover { box-shadow: inset 0 0 0 1.5px var(--acc); }
.af-option:active { transform: scale(.985); }
.af-option[aria-checked="true"] { background: var(--acc-soft); box-shadow: inset 0 0 0 2px var(--acc); }
.af-key {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--acc);
  font: 600 12px var(--sans);
}
.af-option[aria-checked="true"] .af-key { background: var(--acc); color: var(--acc-ink); box-shadow: none; }

.af-field { display: grid; gap: 6px; margin-bottom: 14px; }
.af-field-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.af-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font: 400 17px var(--sans);
  transition: box-shadow .3s var(--ease);
}
.af-input::placeholder { color: var(--placeholder); }
.af-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc); }
.af-error { min-height: 0; font-size: 13px; color: var(--error); }
.af-error:empty { display: none; }

.af-ok-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.af-ok {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--pop);
  color: var(--pop-ink);
  font: 600 15px var(--sans);
  cursor: pointer;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.af-ok:hover { filter: brightness(1.06); }
.af-ok:active { transform: scale(.98); }
.af-hint { font-size: 13px; color: var(--muted); }
@media (hover: none) { .af-hint { display: none; } }

.af-cal {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 240px;
  margin-bottom: 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
  padding: 16px;
  align-content: center;
}
.af-cal-title { font-weight: 600; }
.af-cal-note { font-size: 13px; color: var(--muted); max-width: 26ch; }

.af-end { justify-content: center; align-items: flex-start; gap: 4px; }
.af-end .af-q { margin-bottom: 6px; }
.af-end-text { color: var(--muted); font-size: 16px; max-width: 36ch; }
.af-restart { margin-top: 18px; font-size: 13px; color: var(--muted); text-decoration: underline; }

.af-option:focus-visible, .af-ok:focus-visible, .af-back:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .af-in { animation: af-in .5s var(--ease) both; }
  @keyframes af-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

.af-cal .ph-key { margin-top: 8px; }
.af-calendly { min-width: 280px; height: 640px; margin: 0 -14px; }
.af-live { min-height: 560px; }
.af-live > div { height: 560px; }

/* Kontaktweg und Länderauswahl */
.af-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.af-seg-btn {
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: 500 14px/1.2 var(--sans);
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.af-seg-btn[aria-checked="true"] { background: var(--acc); color: var(--acc-ink); }
.af-seg-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.af-field[hidden], .af-code[hidden] { display: none; }
.af-phone-row { display: grid; gap: 8px; }
.af-country {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  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 1.5l5 5 5-5' fill='none' stroke='%2393D18A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.af-country:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc); }
.af-code-row { position: relative; display: flex; }
.af-code {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  font: 500 17px var(--sans);
  pointer-events: none;
}
.af-code:not([hidden]) + .af-phone { padding-left: 56px; }
.af-country option { background: var(--surface); color: var(--ink); }
