/* ==========================================================================
   EASYFITNESS Flow-UI Styles – Multi-Step Forms für MagicLine Integration
   Design: EASYFITNESS CI (Hellgrün #AFCA0B, Anthrazit #272726)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Flow Container
   -------------------------------------------------------------------------- */
.flow-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* --------------------------------------------------------------------------
   Breadcrumb Navigation (Step Indicator)
   Fixiert unterhalb des Seitenheaders, damit der Fortschritt auf jedem
   Flow-Schritt sichtbar bleibt und nach einem Schrittwechsel kein manuelles
   Hochscrollen noetig ist. --header-h wird per JS auf die aktuelle
   Headerhoehe gesetzt (Header hat keine feste Hoehe).
   -------------------------------------------------------------------------- */
.flow-breadcrumb {
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 40; /* unter dem Seitenheader (z-index:100), ueber dem Formular */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 0.9rem 1rem;
  flex-wrap: nowrap; /* alle Schritte in EINER Reihe halten (kein Umbruch der 6) */
  background: var(--ef-white);
  border-bottom: 1px solid rgba(39, 39, 38, 0.08);
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.18);
  overflow-x: auto; /* Sicherheitsnetz: bei extremem Platzmangel seitlich scrollbar statt abgeschnitten */
  scrollbar-width: none; /* Scrollleiste dezent ausblenden (Firefox) */
}
.flow-breadcrumb::-webkit-scrollbar { display: none; } /* Scrollleiste ausblenden (WebKit) */

.flow-breadcrumb-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto; /* Schritte behalten ihre Größe, werden nicht gestaucht */
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(39, 39, 38, 0.4);
  cursor: default;
  transition: color 0.25s ease;
}

.flow-breadcrumb-step.is-active {
  color: var(--ef-green);
}

.flow-breadcrumb-step.is-complete {
  color: var(--ef-anthracite);
  cursor: pointer;
}

.flow-breadcrumb-step.is-complete:hover {
  color: var(--ef-green);
}

.flow-breadcrumb-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(39, 39, 38, 0.1);
  color: inherit;
  transition: background-color 0.25s ease;
  flex-shrink: 0; /* Kreis bleibt rund, wird nicht gestaucht */
}

.flow-breadcrumb-step.is-active .flow-breadcrumb-number {
  background-color: var(--ef-green);
  color: var(--ef-anthracite);
}

.flow-breadcrumb-step.is-complete .flow-breadcrumb-number {
  background-color: var(--ef-anthracite);
  color: var(--ef-white);
}

.flow-breadcrumb-sep {
  color: rgba(39, 39, 38, 0.2);
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .flow-breadcrumb {
    gap: 0.35rem;
    padding: 0.9rem 0.5rem;
  }
  .flow-breadcrumb-label {
    display: none;
  }
  .flow-breadcrumb-step {
    gap: 0; /* ohne Label kein Innenabstand nötig */
  }
  .flow-breadcrumb-number {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }
  .flow-breadcrumb-sep {
    font-size: 0.9rem;
  }
}

/* Sehr schmale Geräte: Kreise und Abstände weiter verkleinern, damit alle
   sechs Schritte sicher in eine Reihe passen. */
@media (max-width: 380px) {
  .flow-breadcrumb {
    gap: 0.2rem;
    padding: 0.8rem 0.35rem;
  }
  .flow-breadcrumb-number {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }
  .flow-breadcrumb-sep {
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Flow Step (einzelne Schritte)
   -------------------------------------------------------------------------- */
.flow-step {
  display: none;
}

.flow-step.is-active {
  display: block;
  animation: flowFadeIn 0.35s ease;
}

@keyframes flowFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Schritt-Container bekommt nach einem Schrittwechsel programmatischen Fokus
   (Screenreader-Einstieg) – dafuer keine sichtbare Outline zeichnen */
[data-step]:focus {
  outline: none;
}

.flow-step-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.75rem;
  text-transform: uppercase;
  color: var(--ef-anthracite);
  margin: 0 0 1.5rem;
  text-align: center;
}

.flow-step-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(39, 39, 38, 0.8);
  text-align: center;
  margin: -0.75rem 0 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Form Elements
   -------------------------------------------------------------------------- */
.flow-form-group {
  margin-bottom: 1.5rem;
}

.flow-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
/* Grid-Kinder duerfen schmaler werden als ihr Inhalt – verhindert, dass ein
   langer Wert (z.B. IBAN) die Spalte und damit die Seite in die Breite zieht. */
.flow-form-row > * { min-width: 0; }

@media (max-width: 640px) {
  .flow-form-row {
    grid-template-columns: 1fr;
  }
}

.flow-form-label {
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ef-anthracite);
  margin-bottom: 0.5rem;
}

.flow-form-label-optional {
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(39, 39, 38, 0.6);
  text-transform: none;
  letter-spacing: 0;
}

/* Hinweistext unter einem Formularfeld (z.B. Erklaerung zum Trainingsbeginn) */
.flow-field-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(39, 39, 38, 0.65);
}
.flow-field-note:empty { display: none; }

.flow-form-input,
.flow-form-select,
.flow-form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(39, 39, 38, 0.15);
  border-radius: 4px;
  background-color: var(--ef-white);
  color: var(--ef-anthracite);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Automatisch befuelltes, gesperrtes Feld (z.B. Kontoinhaber = Mitglied):
   gedaempft, damit erkennbar ist, dass es aus anderen Angaben stammt. */
.flow-form-input.is-locked {
  background-color: rgba(39, 39, 38, 0.05);
  color: rgba(39, 39, 38, 0.7);
  cursor: not-allowed;
}

.flow-form-input:focus,
.flow-form-select:focus,
.flow-form-textarea:focus {
  outline: none;
  border-color: var(--ef-green);
  box-shadow: 0 0 0 3px rgba(175, 202, 11, 0.15);
}

.flow-form-input.has-error,
.flow-form-select.has-error,
.flow-form-textarea.has-error {
  border-color: #d32f2f;
}

.flow-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.flow-form-error {
  display: none;
  font-size: 0.85rem;
  color: #d32f2f;
  margin-top: 0.35rem;
}

.flow-form-input.has-error ~ .flow-form-error,
.flow-form-select.has-error ~ .flow-form-error,
.flow-form-textarea.has-error ~ .flow-form-error {
  display: block;
}

/* --------------------------------------------------------------------------
   Toggle Buttons (z. B. Geschlecht, Laufzeit)
   -------------------------------------------------------------------------- */
.flow-toggle-group {
  display: flex;
  flex-wrap: nowrap; /* die drei Buttons teilen sich immer eine Reihe, kein Überlauf */
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.flow-toggle {
  flex: 1 1 0; /* gleiche Basisbreite, schrumpffähig – passt sich dem Container an */
  min-width: 0;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1rem 0.6rem;
  border: 2px solid rgba(39, 39, 38, 0.15);
  border-radius: 999px;
  background-color: var(--ef-white);
  color: var(--ef-anthracite);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap; /* Label bricht nicht mitten im Wort um */
}

.flow-toggle:hover {
  border-color: var(--ef-green);
}

.flow-toggle.is-active {
  background-color: var(--ef-green);
  border-color: var(--ef-green);
  color: var(--ef-anthracite);
}

/* Mobil: Toggle-Buttons (z. B. Geschlecht) noch kompakter, damit auch längere
   Labels wie "Weiblich"/"Divers" nebeneinander passen. */
@media (max-width: 560px) {
  .flow-toggle-group {
    gap: 0.5rem;
  }
  .flow-toggle {
    padding: 0.85rem 0.3rem;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
  }
}

/* --------------------------------------------------------------------------
   Tarif Cards (Tarifauswahl mit Subgrid)
   -------------------------------------------------------------------------- */
.flow-tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

/* Breitenbegrenzung der Tarifauswahl. Bei nur einem Angebot zieht sich die
   Karte sonst ueber die volle Containerbreite und wirkt wuchtig. Ab Tablet
   auf 60% begrenzen und zentrieren; auf Mobil bleibt die volle Breite, dort
   waeren 60% unlesbar schmal. */
@media (min-width: 768px) {
  .flow-tariff-grid {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
}

.flow-tariff-card {
  position: relative;
  border: 2px solid rgba(39, 39, 38, 0.15);
  border-radius: 6px;
  padding: 1.5rem;
  background-color: var(--ef-white);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.flow-tariff-card:hover {
  border-color: var(--ef-green);
  box-shadow: 0 4px 16px rgba(175, 202, 11, 0.15);
  transform: translateY(-2px);
}

.flow-tariff-card.is-selected {
  border-color: var(--ef-green);
  border-width: 3px;
  padding: calc(1.5rem - 1px); /* Border-Kompensation */
  box-shadow: 0 0 0 3px rgba(175, 202, 11, 0.15);
}

.flow-tariff-badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--ef-green);
  color: var(--ef-anthracite);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
}

.flow-tariff-name {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--ef-anthracite);
  margin: 0 0 0.5rem;
}

.flow-tariff-price {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ef-green);
  margin: 0 0 0.25rem;
}

.flow-tariff-price-small {
  font-size: 1.25rem;
}

.flow-tariff-period {
  font-size: 0.9rem;
  color: rgba(39, 39, 38, 0.6);
  margin-bottom: 1rem;
}

.flow-tariff-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex-grow: 1;
}

.flow-tariff-features li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
}

.flow-tariff-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ef-green);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Kalender & Timeslot Picker
   -------------------------------------------------------------------------- */
.flow-calendar {
  border: 2px solid rgba(39, 39, 38, 0.15);
  border-radius: 6px;
  padding: 1.5rem;
  background-color: var(--ef-white);
  margin-bottom: 1.5rem;
}

.flow-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.flow-calendar-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--ef-anthracite);
}

.flow-calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.flow-calendar-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(39, 39, 38, 0.2);
  border-radius: 4px;
  background-color: var(--ef-white);
  color: var(--ef-anthracite);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.flow-calendar-nav button:hover {
  border-color: var(--ef-green);
  background-color: var(--ef-green);
  color: var(--ef-anthracite);
}

.flow-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.flow-calendar-weekday {
  text-align: center;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(39, 39, 38, 0.5);
  padding: 0.5rem 0;
}

.flow-calendar-day {
  aspect-ratio: 1;
  border: 1px solid rgba(39, 39, 38, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--ef-white);
}

.flow-calendar-day:hover:not(.is-disabled):not(.is-selected) {
  border-color: var(--ef-green);
  background-color: rgba(175, 202, 11, 0.1);
}

.flow-calendar-day.is-disabled {
  color: rgba(39, 39, 38, 0.2);
  cursor: default;
  background-color: rgba(39, 39, 38, 0.02);
}

.flow-calendar-day.is-selected {
  background-color: var(--ef-green);
  border-color: var(--ef-green);
  color: var(--ef-anthracite);
  font-weight: 800;
}

.flow-timeslots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.flow-timeslot {
  padding: 0.85rem 1rem;
  border: 2px solid rgba(39, 39, 38, 0.15);
  border-radius: 4px;
  background-color: var(--ef-white);
  text-align: center;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.flow-timeslot:hover:not(.is-disabled) {
  border-color: var(--ef-green);
  background-color: rgba(175, 202, 11, 0.1);
}

.flow-timeslot.is-disabled {
  color: rgba(39, 39, 38, 0.3);
  cursor: default;
  background-color: rgba(39, 39, 38, 0.02);
}

.flow-timeslot.is-selected {
  background-color: var(--ef-green);
  border-color: var(--ef-green);
  color: var(--ef-anthracite);
}

/* --------------------------------------------------------------------------
   Signature Pad
   -------------------------------------------------------------------------- */
.flow-signature-wrapper {
  border: 2px solid rgba(39, 39, 38, 0.15);
  border-radius: 6px;
  padding: 1rem;
  background-color: var(--ef-white);
  margin-bottom: 1.5rem;
}

.flow-signature-canvas {
  width: 100%;
  height: 200px;
  border: 1px solid rgba(39, 39, 38, 0.1);
  border-radius: 4px;
  cursor: crosshair;
  touch-action: none;
  background-color: #fafafa;
}

.flow-signature-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flow-signature-clear {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--ef-anthracite);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.flow-signature-clear:hover {
  color: var(--ef-green);
}

/* --------------------------------------------------------------------------
   Checkbox & SEPA
   -------------------------------------------------------------------------- */
.flow-checkbox-group {
  margin-bottom: 1.5rem;
}

.flow-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.flow-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--ef-green);
  cursor: pointer;
}

.flow-checkbox-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(39, 39, 38, 0.85);
}

.flow-checkbox-text a {
  color: var(--ef-green);
  text-decoration: underline;
}

/* Rechtliche Zustimmungen (AGB / Hausordnung / Datenschutz) aus Magicline.
   Container + einzelne Checkbox-Zeilen. */
.flow-consents {
  margin: 2rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.flow-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--ef-green);
  cursor: pointer;
}

.flow-consent-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(39, 39, 38, 0.85);
}

.flow-consent-link {
  color: var(--ef-green);
  text-decoration: underline;
  white-space: nowrap;
  margin-left: 0.35rem;
}

/* --------------------------------------------------------------------------
   Upsell-Overlay (galantes Flat-Angebot vor dem Absenden)
   -------------------------------------------------------------------------- */
.mw-upsell-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(39, 39, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: mw-upsell-fade 0.2s ease;
}

@keyframes mw-upsell-fade { from { opacity: 0; } to { opacity: 1; } }

.mw-upsell {
  background: var(--ef-white);
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  max-height: calc(100dvh - 2.5rem); /* nie höher als der Viewport (abzgl. Overlay-Padding) */
  overflow-y: auto;                  /* bei Bedarf INNERHALB des Panels scrollen */
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.4);
  animation: mw-upsell-rise 0.25s ease;
  -webkit-overflow-scrolling: touch;
}

@keyframes mw-upsell-rise {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.mw-upsell-title {
  font-family: var(--font-headline);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: var(--ef-anthracite);
  margin: 0 0 0.5rem;
}

.mw-upsell-intro {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(39, 39, 38, 0.75);
  margin: 0 0 1.25rem;
}

.mw-upsell-offer {
  border: 2px solid var(--ef-green);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  background: rgba(175, 202, 11, 0.08);
}

.mw-upsell-name {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ef-anthracite);
  margin-bottom: 0.35rem;
}

.mw-upsell-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(39, 39, 38, 0.75);
  margin-bottom: 0.6rem;
}

.mw-upsell-price {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.1rem;
  color: #6c8a00; /* dunkleres Grün für Kontrast auf hellem Grund */
}

.mw-upsell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mw-upsell-actions .flow-btn {
  flex: 1 1 auto;
  min-width: 0;
}

/* Mobil: Overlay kompakter, damit beide Buttons sicher im Sichtbereich liegen. */
@media (max-width: 560px) {
  .mw-upsell-overlay {
    padding: 0.75rem;
    align-items: flex-end; /* Panel unten andocken – Buttons näher am Daumen */
  }
  .mw-upsell {
    padding: 1.25rem 1.1rem;
    max-height: calc(100dvh - 1.5rem);
  }
  .mw-upsell-title {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
  }
  .mw-upsell-intro {
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
  }
  .mw-upsell-offer {
    padding: 0.8rem 0.9rem;
    margin-bottom: 1rem;
  }
  .mw-upsell-name { font-size: 0.95rem; }
  .mw-upsell-desc { font-size: 0.82rem; margin-bottom: 0.5rem; }
  .mw-upsell-price { font-size: 1rem; }
  .mw-upsell-actions .flow-btn {
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
  }
}

/* --------------------------------------------------------------------------
   Summary / Review (Schritt 6)
   -------------------------------------------------------------------------- */
.flow-summary {
  border: 2px solid rgba(39, 39, 38, 0.15);
  border-radius: 6px;
  padding: 1.5rem;
  background-color: var(--ef-white);
  margin-bottom: 1.5rem;
}

.flow-summary-section {
  margin-bottom: 1.5rem;
}

.flow-summary-section:last-child {
  margin-bottom: 0;
}

.flow-summary-heading {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--ef-anthracite);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(39, 39, 38, 0.1);
}

.flow-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.flow-summary-label {
  color: rgba(39, 39, 38, 0.7);
}

.flow-summary-value {
  font-weight: 600;
  color: var(--ef-anthracite);
  text-align: right;
}

.flow-summary-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid rgba(39, 39, 38, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.flow-summary-total-label {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--ef-anthracite);
}

.flow-summary-total-value {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ef-green);
}

/* --------------------------------------------------------------------------
   Action Buttons (Navigation)
   -------------------------------------------------------------------------- */
.flow-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.flow-btn {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1rem 2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap; /* CTA nicht umbrechen lassen (z.B. "Verbindlich buchen") */
}

.flow-btn-primary {
  background-color: var(--ef-green);
  color: var(--ef-anthracite);
}

.flow-btn-primary:hover {
  background-color: #9ab50a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(175, 202, 11, 0.3);
}

.flow-btn-primary:disabled {
  background-color: rgba(39, 39, 38, 0.2);
  color: rgba(39, 39, 38, 0.4);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.flow-btn-secondary {
  background-color: transparent;
  border-color: rgba(39, 39, 38, 0.3);
  color: var(--ef-anthracite);
}

.flow-btn-secondary:hover {
  border-color: var(--ef-anthracite);
}

.flow-btn-back {
  margin-right: auto;
}

/* Zurück-Button dezent als "<"-Chevron darstellen, damit er nicht ablenkt.
   Der Textinhalt ("Zurück"/"Back") bleibt im DOM als Accessible Name für
   Screenreader – visuell versteckt (font-size:0), das Chevron kommt via
   ::before mit eigener Größe. Kompakt, unauffällig, kein Rahmen. */
.flow-btn-back {
  margin-right: auto;
  font-size: 0;               /* versteckt den Button-Text visuell */
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: rgba(39, 39, 38, 0.55);
  line-height: 1;
}
.flow-btn-back::before {
  content: '‹';
  font-size: 1.9rem;
  line-height: 1;
  display: inline-block;
}
.flow-btn-back:hover {
  background: transparent;
  border: none;
  color: var(--ef-anthracite);
}

/* --------------------------------------------------------------------------
   Loading Spinner
   -------------------------------------------------------------------------- */
.flow-loading {
  display: none;
  text-align: center;
  padding: 2rem;
}

.flow-loading.is-active {
  display: block;
}

.flow-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(39, 39, 38, 0.1);
  border-top-color: var(--ef-green);
  border-radius: 50%;
  animation: flowSpin 0.8s linear infinite;
}

@keyframes flowSpin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.flow-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: 400px;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
  z-index: 9999;
  animation: flowToastIn 0.3s ease;
}

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

.flow-toast.flow-toast-success {
  background-color: var(--ef-green);
  color: var(--ef-anthracite);
}

.flow-toast.flow-toast-error {
  background-color: #d32f2f;
  color: var(--ef-white);
}

.flow-toast.flow-toast-info {
  background-color: var(--ef-anthracite);
  color: var(--ef-white);
}

@media (max-width: 640px) {
  .flow-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   Modal Overlay (optional)
   -------------------------------------------------------------------------- */
.flow-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(39, 39, 38, 0.85);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.flow-modal.is-active {
  display: flex;
}

.flow-modal-content {
  background-color: var(--ef-white);
  border-radius: 6px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.flow-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: rgba(39, 39, 38, 0.5);
  transition: color 0.2s ease;
}

.flow-modal-close:hover {
  color: var(--ef-anthracite);
}

/* --------------------------------------------------------------------------
   Membership Tariff Cards (dynamically rendered)
   -------------------------------------------------------------------------- */
.mw-card {
  background: white;
  border: 2px solid rgba(39, 39, 38, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mw-card:hover {
  border-color: var(--ef-green);
  box-shadow: 0 4px 12px rgba(175, 202, 11, 0.15);
}

.mw-card-clickable {
  cursor: pointer;
}

.mw-card-clickable:focus-visible {
  outline: 3px solid var(--ef-green);
  outline-offset: 2px;
}

.mw-head {
  border-bottom: 2px solid rgba(39, 39, 38, 0.1);
  padding-bottom: 1rem;
}

.mw-card-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ef-anthracite);
  margin: 0;
}

.mw-duration {
  margin: 0.75rem 0 1rem;
}

.mw-duration-label {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ef-anthracite);
  margin-bottom: 0.5rem;
}

/* Laufzeit-Auswahl als anklickbare Kacheln. Die gesamte Kachel ist Klickflaeche
   (das <label> umschliesst den Radio), damit sie auf Touch gut treffbar ist.
   Der native Radio bleibt erhalten und sichtbar - er traegt die Semantik fuer
   Screenreader und Tastatur. */
.mw-duration-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}

.mw-radio {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 2px solid #DEDEDA;
  border-radius: 0.5rem;
  background: var(--ef-white);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ef-anthracite);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mw-radio:hover {
  border-color: var(--ef-green);
  background: var(--ef-grey-bg);
}

.mw-radio input[type="radio"] {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--ef-green);
  cursor: pointer;
}

/* Ausgewaehlte Kachel hervorheben. */
.mw-radio:has(input[type="radio"]:checked) {
  border-color: var(--ef-green);
  background: #F5F9E1;
}

/* Tastaturfokus sichtbar machen, da der Radio selbst klein ist. */
.mw-radio:focus-within {
  outline: 2px solid var(--ef-anthracite);
  outline-offset: 2px;
}

.mw-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0;
}

.mw-price {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ef-green);
}

.mw-per {
  font-size: 0.9rem;
  color: rgba(39, 39, 38, 0.6);
}

.mw-fees {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: rgba(39, 39, 38, 0.03);
  border-radius: 4px;
}

.mw-fee {
  font-size: 0.85rem;
  color: rgba(39, 39, 38, 0.7);
  display: flex;
  justify-content: space-between;
}

.mw-fee-price {
  font-weight: 600;
  color: var(--ef-anthracite);
}

.mw-fee-freq {
  color: rgba(39, 39, 38, 0.5);
  font-weight: 400;
}

.mw-modules {
  margin: 0.75rem 0;
}

.mw-modules-head {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ef-anthracite);
  margin-bottom: 0.75rem;
}

.mw-module {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: rgba(39, 39, 38, 0.8);
}

.mw-module-check {
  width: 20px;
  height: 20px;
  color: var(--ef-green);
  flex-shrink: 0;
}

.mw-optional {
  margin: 0.75rem 0;
}

.mw-optional-head {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ef-anthracite);
  margin-bottom: 0.75rem;
}

.mw-optional-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(39, 39, 38, 0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mw-optional-item:hover {
  border-color: var(--ef-green);
  background-color: rgba(175, 202, 11, 0.05);
}

.mw-optional-item input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.mw-optional-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  font-size: 0.9rem;
}

.mw-optional-price {
  font-weight: 600;
  color: var(--ef-green);
}

.mw-card-desc {
  font-size: 0.9rem;
  color: rgba(39, 39, 38, 0.7);
  line-height: 1.6;
  margin: 0.5rem 0;
}

.mw-card-btn {
  width: 100%;
  margin-top: 0.5rem;
}

.mw-slot-empty {
  display: none;
}

/* Pflichtangaben unter der Tarifkarte (Beitrag, Gebuehren, Laufzeit,
   Gesamtpreis ueber die Mindestvertragslaufzeit). Bewusst klein gesetzt, aber
   mit ausreichendem Kontrast - es sind rechtlich relevante Angaben und keine
   Dekoration. */
.mw-card-fineprint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #5A5A57;
}

/* Summary */
.mw-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(39, 39, 38, 0.1);
  font-size: 0.95rem;
}

.mw-summary-label {
  color: rgba(39, 39, 38, 0.7);
  flex: 0 0 auto;
}

.mw-summary-value {
  font-weight: 600;
  color: var(--ef-anthracite);
  text-align: right;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mw-summary-total {
  border-bottom: none;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--ef-green);
}

.mw-summary-total-label {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ef-anthracite);
}

.mw-summary-total-value {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ef-green);
}

/* Mobil: Label und Wert untereinander stapeln, damit sie sich nicht berühren
   oder unschön umbrechen (Label oben, Wert darunter – beide linksbündig). */
@media (max-width: 560px) {
  .mw-summary-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }
  .mw-summary-value {
    text-align: left;
  }
  /* Die Gesamtsumme darf nebeneinander bleiben (Label + großer Betrag). */
  .mw-summary-total {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
  .mw-summary-total .mw-summary-value { text-align: right; }
}

/* Field errors */
.field-error {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  min-height: 1.2em;
}

/* ==========================================================================
   Connect-API-Flow (Probetraining) — Struktur wie im GymEdge-Original.
   Dieser Block wird zuletzt geladen und überschreibt die Mock-Regeln oben.
   Sichtbarkeit der Schritte steuert das JS über das [hidden]-Attribut.
   ========================================================================== */
#trial-training, #ems-lead { max-width: 720px; margin: 0 auto; padding: 0 1rem; }

.flow-form { background: #fff; }

/* Schritte: sichtbar per Default, JS blendet via hidden aus */
#trial-form .flow-step, #ems-form .flow-step { display: block; border: 0; margin: 0; padding: 0; }
#trial-form .flow-step[hidden], #ems-form .flow-step[hidden] { display: none !important; }

/* Step-Indikator (Probetraining / EMS) - sticky unter dem Seitenheader,
   damit der Fortschritt auf jedem Schritt sichtbar bleibt. --header-h wird
   per JS gesetzt (probetraining.js / ems-probetraining.js). */
.step-indicator {
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 1rem 0;
  background: #fff;
}
.step-indicator .step-bar {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(39, 39, 38, 0.15);
  transition: background 0.25s ease;
}
.step-indicator .step-bar.active { background: var(--ef-green); }

/* Formularfelder */
#trial-form .form-group, #ems-form .form-group { margin-bottom: 1.25rem; }
#trial-form .form-row, #ems-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
#trial-form label,
#ems-form label:not(.consent-line) {
  display: block; margin-bottom: 0.4rem;
  font-family: var(--font-headline); font-weight: 800;
  text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.03em;
  color: var(--ef-anthracite);
}
#trial-form input,
#trial-form select,
#ems-form input:not([type="checkbox"]),
#ems-form select {
  width: 100%; box-sizing: border-box;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(39, 39, 38, 0.25); border-radius: 4px;
  font: inherit; color: var(--ef-anthracite); background: #fff;
}
#trial-form input:focus,
#trial-form select:focus,
#ems-form input:not([type="checkbox"]):focus,
#ems-form select:focus {
  outline: none; border-color: var(--ef-green);
  box-shadow: 0 0 0 3px rgba(175, 202, 11, 0.25);
}

/* Geschlechts-Buttons */
.gender-group { display: flex; gap: 0.75rem; flex-wrap: nowrap; }
.gender-btn {
  flex: 1 1 0; min-width: 0;
  padding: 0.75rem 0.5rem;
  border: 1px solid rgba(39, 39, 38, 0.25); border-radius: 999px;
  background: #fff; color: var(--ef-anthracite);
  font-family: var(--font-headline); font-weight: 800;
  text-transform: uppercase; font-size: 0.8rem; cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap; text-align: center;
}
.gender-btn:hover { border-color: var(--ef-green); }
.gender-btn.selected { background: var(--ef-green); border-color: var(--ef-green); color: var(--ef-anthracite); }

/* Mobil: Geschlechts-Buttons noch kompakter, damit die drei sicher in eine
   Reihe passen (Probetraining/EMS). */
@media (max-width: 560px) {
  .gender-group { gap: 0.5rem; }
  .gender-btn {
    padding: 0.7rem 0.3rem;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
  }
}

/* Aktionszeile */
#trial-form .flow-actions,
#ems-form .flow-actions {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2rem;
}
#trial-form .flow-next,
#trial-form .flow-submit,
#ems-form .flow-next,
#ems-form .flow-submit { margin-left: auto; }
.flow-back {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  background: var(--ef-anthracite); border: 0; border-radius: 4px; cursor: pointer;
}
.flow-back:hover { filter: brightness(1.15); }

/* Terminslots */
.slots { margin-top: 0.5rem; }
.slots-status { padding: 1rem 0; color: rgba(39, 39, 38, 0.7); }
.slots-day { margin-bottom: 1.25rem; }
.slots-day-title {
  font-family: var(--font-headline); font-weight: 800;
  text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.5rem;
  color: var(--ef-anthracite);
}
.slots-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.slot {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(39, 39, 38, 0.25); border-radius: 4px;
  background: #fff; color: var(--ef-anthracite);
  font: inherit; cursor: pointer; transition: all 0.2s ease;
}
.slot:hover { border-color: var(--ef-green); }
.slot.selected { background: var(--ef-green); border-color: var(--ef-green); }

/* Ladeanzeige / Fehler */
.flow-loading:not([hidden]) { display: flex; justify-content: center; padding: 3rem 0; }
.flow-loading[hidden] { display: none; }
.flow-error-page { text-align: center; padding: 2rem 0; color: #d32f2f; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid rgba(39, 39, 38, 0.15); border-top-color: var(--ef-green);
  animation: flowSpin 0.8s linear infinite;
}
.spinner--sm { width: 18px; height: 18px; border-width: 3px; }
.spinner--white { border-color: rgba(255,255,255,0.35); border-top-color: #fff; }
@keyframes flowSpin { to { transform: rotate(360deg); } }

/* Toast */
.flow-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  z-index: 300; max-width: 90%;
  padding: 0.9rem 1.4rem; border-radius: 6px;
  color: #fff; font-weight: 600; box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.flow-toast--error { background: #d32f2f; }
.flow-toast--success { background: var(--ef-green); color: var(--ef-anthracite); }

.flow-section { padding: 3rem 0; }

/* --------------------------------------------------------------------------
   Flow Selection (Auswahl zwischen Standard & EMS)
   -------------------------------------------------------------------------- */
.flow-selection-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.flow-selection-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--ef-anthracite);
  margin: 0 0 1rem;
}

.flow-selection-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(39, 39, 38, 0.7);
  margin: 0;
}

.flow-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flow-selection-card {
  position: relative;
  display: block;
  background: var(--ef-anthracite);
  border: 3px solid var(--ef-anthracite);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.flow-selection-card:hover {
  border-color: var(--ef-green);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.flow-selection-card-content {
  color: var(--ef-white);
}

.flow-selection-card-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--ef-green);
  margin: 0 0 1rem;
}

.flow-selection-card-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem;
}

.flow-selection-card-cta {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--ef-green);
  letter-spacing: 0.05em;
}

/* Flow Header (im Flow selbst) */
.flow-header {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.flow-header-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--ef-anthracite);
  margin: 0 0 0.75rem;
}

.flow-header-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(39, 39, 38, 0.7);
  margin: 0;
}

/* Back Link */
.flow-back-link {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.flow-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--ef-anthracite);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
}

.flow-back-btn:hover {
  color: var(--ef-green);
}

@media (max-width: 768px) {
  .flow-selection-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .flow-selection-title {
    font-size: 1.5rem;
  }
  
  .flow-header-title {
    font-size: 1.5rem;
  }
}

/* Consent-Checkbox (EMS-Lead-Formular) */
.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.4;
}
.consent-line input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--ef-green);
  cursor: pointer;
}
.consent-line a { color: var(--ef-green); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Fehlerhervorhebung: fehlende Pflichtfelder / nicht bestätigte Checkboxen
   werden rot markiert (Klasse has-error auf der Feldgruppe).
   -------------------------------------------------------------------------- */
:root { --ef-error: #c0392b; }

/* Eingabefelder in einer Fehlergruppe rot umranden */
.flow-form-group.has-error .flow-form-input,
.flow-form-group.has-error .flow-form-select,
.flow-form-group.has-error .flow-form-textarea,
.flow-form-row.has-error .flow-form-input,
.flow-form-row.has-error .flow-form-select {
  border-color: var(--ef-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

/* Label der Fehlergruppe rot einfärben */
.flow-form-group.has-error .flow-form-label {
  color: var(--ef-error);
}

/* Geschlecht-Toggle-Gruppe: Buttons rot umranden */
.flow-toggle-group.has-error .flow-toggle {
  border-color: var(--ef-error);
}

/* Pflicht-Checkbox (AGB/Hausordnung/Datenschutz) nicht bestätigt */
.flow-consent.has-error {
  outline: 2px solid var(--ef-error);
  outline-offset: 4px;
  border-radius: 6px;
}
.flow-consent.has-error .flow-consent-text {
  color: var(--ef-error);
}
.flow-consent.has-error input[type="checkbox"] {
  accent-color: var(--ef-error);
  outline: 2px solid var(--ef-error);
}

/* Fehlende Unterschrift: Feld-Wrapper rot umranden */
.flow-signature-wrapper.has-error {
  border-color: var(--ef-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
