/* ═══════════════════════════════════════════════════════════
   EXPRESS-BEWERBUNG – Popup-Funnel für die Startseite
   Design im Stil von bewerbung.doctevio.de
   Nutzt die globalen Design-Tokens aus css/styles.css
   Alle Klassen sind mit .exf- geprefixt, um Kollisionen
   mit dem restlichen Seiten-CSS auszuschließen.
════════════════════════════════════════════════════════════ */

/* ─── Präsenter Trigger-Block auf der Startseite ─────────────── */
.exf-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.exf-band::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.exf-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exf-band__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.exf-band__sub {
  margin: 0;
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.exf-band__cta-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.exf-band__trust {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 760px) {
  .exf-band {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .exf-band__cta-wrap {
    align-items: stretch;
  }
}

/* ─── Trigger-Button (auf dem Band) ──────────────────────────── */
.exf-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 60px;
  padding: 0 2rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 12px 30px rgba(59, 8, 34, 0.28),
    0 0 0 6px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exf-trigger:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(59, 8, 34, 0.34),
    0 0 0 8px rgba(255, 255, 255, 0.16);
}

.exf-trigger:active {
  transform: translateY(0) scale(0.98);
}

/* ═══════════════════════════════════════════════════════════
   MODAL / OVERLAY
════════════════════════════════════════════════════════════ */
.exf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: clamp(0.5rem, 3vw, 2rem);
  background: rgba(47, 8, 34, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

.exf-modal.is-open {
  display: flex;
  animation: exfFade 0.25s ease both;
}

@keyframes exfFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body.exf-open {
  overflow: hidden;
}

.exf-dialog {
  position: relative;
  width: min(100%, 640px);
  margin: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: exfPop 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes exfPop {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Modal-Header ───────────────────────────────────────────── */
.exf-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.exf-head__logo {
  height: 34px;
  width: auto;
  display: block;
}

.exf-head__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exf-badge {
  display: inline-flex;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.exf-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.exf-close:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .exf-badge { display: none; }
}

/* ─── Progress ───────────────────────────────────────────────── */
.exf-progress {
  padding: 0.85rem 1.25rem 0.4rem;
}

.exf-progress__track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(173, 17, 96, 0.1);
  overflow: hidden;
}

.exf-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exf-progress__label {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

/* ─── Body / Steps ───────────────────────────────────────────── */
.exf-body {
  padding: 1rem 1.25rem 1.75rem;
}

.exf-step {
  animation: exfStepIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.exf-step.is-back {
  animation: exfStepInBack 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes exfStepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes exfStepInBack {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.exf-step__head {
  text-align: center;
  padding: 0.75rem 0 1.5rem;
}

.exf-step__q {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.exf-step__hint {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ─── Back-Link ──────────────────────────────────────────────── */
.exf-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  padding: 0.35rem 0.15rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease;
}

.exf-back:hover { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   AUSWAHL-LISTE (Single- & Multi-Select)
════════════════════════════════════════════════════════════ */
.exf-optlist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.exf-opt {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(94, 14, 56, 0.05);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.exf-opt:hover {
  border-color: rgba(173, 17, 96, 0.34);
  background: var(--surface-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.exf-opt:active { transform: translateY(0) scale(0.99); }

.exf-opt.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-soft);
}

.exf-opt__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  transition: background 0.18s ease, color 0.18s ease;
}

.exf-opt.is-selected .exf-opt__icon {
  background: rgba(173, 17, 96, 0.18);
  color: var(--primary);
}

.exf-opt__body {
  flex: 1;
  min-width: 0;
}

.exf-opt__label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.exf-opt.is-selected .exf-opt__label { color: var(--primary-dark); }

.exf-opt__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Auswahl-Marker (Radio / Checkbox) */
.exf-opt__mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(139, 13, 77, 0.28);
  border-radius: 50%;
  background: var(--surface);
  position: relative;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.exf-opt--multi .exf-opt__mark { border-radius: 7px; }

.exf-opt.is-selected .exf-opt__mark {
  border-color: var(--primary);
  background: var(--primary);
}

.exf-opt.is-selected .exf-opt__mark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 7px;
  height: 12px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}

/* ═══════════════════════════════════════════════════════════
   HINWEIS-BOX
════════════════════════════════════════════════════════════ */
.exf-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  border: 1px solid rgba(173, 17, 96, 0.2);
  color: var(--primary-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

.exf-notice svg { flex-shrink: 0; margin-top: 2px; }
.exf-notice p { margin: 0; }
.exf-notice a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.exf-notice--error {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
  color: #b91c1c;
}

.exf-notice--error a { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════
   FORMULAR-ELEMENTE (Kontakt-Step)
════════════════════════════════════════════════════════════ */
.exf-form { display: flex; flex-direction: column; gap: 1.1rem; }

.exf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.exf-group { display: flex; flex-direction: column; }

.exf-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.exf-req { color: var(--primary); }
.exf-optional { font-weight: 400; font-size: 0.8rem; color: var(--muted); }

.exf-sublabel {
  margin: -0.2rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.exf-input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(139, 13, 77, 0.2);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.exf-input::placeholder { color: rgba(109, 88, 105, 0.55); }

.exf-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(173, 17, 96, 0.12);
}

.exf-input.is-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.exf-input-wrap { position: relative; }
.exf-input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  border-radius: 4px;
}
.exf-input--icon { padding-left: 2.85rem; }

/* Checkbox (DSGVO) */
.exf-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  line-height: 1.5;
}

.exf-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.exf-check-box {
  flex-shrink: 0;
  position: relative;
  top: 2px;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(139, 13, 77, 0.28);
  border-radius: 6px;
  background: var(--surface);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.exf-check:checked + .exf-check-box {
  background: var(--primary);
  border-color: var(--primary);
}

.exf-check:checked + .exf-check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 7px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}

.exf-check:focus-visible + .exf-check-box {
  outline: 3px solid rgba(173, 17, 96, 0.35);
  outline-offset: 3px;
}

.exf-check.is-error + .exf-check-box { border-color: #dc2626; }

.exf-check-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.exf-check-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* Fehlermeldung */
.exf-err {
  margin: 0.4rem 0 0;
  font-size: 0.83rem;
  color: #dc2626;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════ */
.exf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 56px;
  padding: 0 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.exf-btn:hover { transform: translateY(-2px); }
.exf-btn:active { transform: translateY(0) scale(0.98); }

.exf-btn--primary {
  background: linear-gradient(138deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(139, 13, 77, 0.28);
}
.exf-btn--primary:hover { box-shadow: 0 16px 38px rgba(139, 13, 77, 0.36); }

.exf-btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(173, 17, 96, 0.3);
  box-shadow: none;
}
.exf-btn--ghost:hover { background: var(--primary-soft); }

.exf-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.exf-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.exf-submit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   DANKE-STEP
════════════════════════════════════════════════════════════ */
.exf-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0 1.5rem;
}

.exf-done__mascot {
  width: clamp(120px, 32vw, 168px);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 16px 32px rgba(94, 14, 56, 0.2));
}

.exf-done__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.exf-done__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.exf-done__sub {
  margin: 0 0 1.75rem;
  max-width: 44ch;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.exf-done__trust {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 420px;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.exf-done__trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.exf-done__trust-item svg { flex-shrink: 0; color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
  .exf-row { grid-template-columns: 1fr; }
  .exf-opt { padding: 0.9rem 1rem; gap: 0.75rem; }
  .exf-opt__icon { width: 42px; height: 42px; }
}
