/* ═══════════════════════════════════════════════════════════════════
   formular.css – Base-Styles, geteilt für alle Formulare.
   Nie direkt bearbeiten.
   Formular-spezifische Überschreibungen gehören in den
   <style>-Block der jeweiligen HTML-Datei.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Poppins Font – selbst gehostet ──────────────────────────────── */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; src: url('https://intermakro.de/embed/media/fonts/poppins/Poppins-Light.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; src: url('https://intermakro.de/embed/media/fonts/poppins/Poppins-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; src: url('https://intermakro.de/embed/media/fonts/poppins/Poppins-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; src: url('https://intermakro.de/embed/media/fonts/poppins/Poppins-SemiBold.ttf') format('truetype'); }

/* ── Standard CSS-Variablen ───────────────────────────────────────── */
:root {
  --cf-accent:          #0072e4;
  --cf-text:            #183153;
  --cf-font:            'Poppins', sans-serif;
  --cf-font-size:       1rem;
  --cf-font-size-small: 0.75rem;
  --cf-radius:          0px;
  --cf-border:          #cccccc;
  --cf-error-color:     #d32f2f;
  --cf-progress-bg:     #dddddd;
}

/* ── Body ─────────────────────────────────────────────────────────── */
body {
  margin:  0;
  padding: 0;
}

/* ── Reset ────────────────────────────────────────────────────────── */
#cf-embed *,
#cf-embed *::before,
#cf-embed *::after {
  box-sizing: border-box;
}

/* ── Wrapper ──────────────────────────────────────────────────────── */
#cf-embed {
  font-family: var(--cf-font);
  font-size:   var(--cf-font-size);
  color:       var(--cf-text);
  width:       100%;
}

/* ── Progress Bar ─────────────────────────────────────────────────── */
#cf-embed .cf-progress-bar {
  height:        3px;
  background:    var(--cf-progress-bg);
  margin-bottom: 20px;
  overflow:      visible;
  position:      relative;
}

#cf-embed .cf-progress {
  height:     100%;
  width:      0%;
  background: var(--cf-accent);
  transition: width .3s ease;
}

/* ── Schritte ─────────────────────────────────────────────────────── */
#cf-embed .cf-steps  { position: relative; }
#cf-embed .cf-step   { display: none; width: 100%; }
#cf-embed .cf-step.cf-active { display: block; }

/* ── Feld-Wrapper ─────────────────────────────────────────────────── */
#cf-embed .cf-field { margin-bottom: 2px; }

/* ── Labels ───────────────────────────────────────────────────────── */
#cf-embed .cf-label-title {
  font-size:     var(--cf-font-size);
  font-weight:   600;
  margin-bottom: 10px;
  display:       block;
}

/* ── Grid ─────────────────────────────────────────────────────────── */
#cf-embed .cf-grid-2 {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   8px;
}

/* Durchbricht grid-2 auf volle Breite – z.B. für Datenschutz-Checkbox */
#cf-embed .cf-grid-2 .cf-field--full {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* ── Text / Email Inputs ──────────────────────────────────────────── */
#cf-embed .cf-input-text,
#cf-embed .cf-input-email {
  width:         100%;
  padding:       10px;
  border:        1px solid var(--cf-border);
  border-radius: 0;
  font-family:   var(--cf-font);
  font-size:     var(--cf-font-size);
  color:         var(--cf-text);
  margin-top:    6px;
}

/* ── Radio / Checkbox Optionen ────────────────────────────────────── */
#cf-embed .cf-option {
  display:       inline-flex;
  align-items:   center;
  cursor:        pointer;
  margin-bottom: 6px;
  width:         fit-content;
}

#cf-embed .cf-checkbox,
#cf-embed .cf-radio {
  appearance:         none;
  -webkit-appearance: none;
  width:        18px;
  height:       18px;
  border:       2px solid var(--cf-text);
  margin-right: 8px;
  position:     relative;
  cursor:       pointer;
  flex-shrink:  0;
}

#cf-embed .cf-checkbox { border-radius: 2px; }
#cf-embed .cf-radio    { border-radius: 50%; }

#cf-embed .cf-checkbox:checked::after {
  content:      '';
  position:     absolute;
  top: 50%; left: 50%;
  width: 8px; height: 14px;
  border:       solid var(--cf-accent);
  border-width: 0 3px 3px 0;
  transform:    translate(-50%, -60%) rotate(45deg);
}

#cf-embed .cf-radio:checked::after {
  content:       '';
  position:      absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  background:    var(--cf-accent);
  border-radius: 50%;
  transform:     translate(-50%, -50%);
}

/* ── Fehlermeldungen ──────────────────────────────────────────────── */
#cf-embed .cf-error {
  color:      var(--cf-error-color);
  font-size:  var(--cf-font-size-small);
  margin-top: 6px;
  display:    none;
}
#cf-embed .cf-error.cf-visible { display: block; }

/* ── Notice (Datenschutzhinweis ohne Checkbox) ────────────────────── */
#cf-embed .cf-notice {
  font-size:   var(--cf-font-size-small);
  margin-top:  0;
  line-height: 1.5;
}
#cf-embed .cf-notice a { text-decoration: underline; }

/* ── Consent-Zusatztext ───────────────────────────────────────────── */
#cf-embed .cf-consent-text {
  font-size:  var(--cf-font-size-small);
  margin-top: 6px;
  opacity:    0.75;
}

/* ── Lade-Indikator ───────────────────────────────────────────────── */
#cf-embed .cf-loading {
  font-size: var(--cf-font-size-small);
  color:     #888;
  padding:   20px 0;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
#cf-embed .cf-buttons {
  display:         flex;
  justify-content: space-between;
  margin-top:      20px;
}

#cf-embed .cf-btn {
  background:  none;
  border:      none;
  box-shadow:  none;
  cursor:      pointer;
  font-size:   var(--cf-font-size);
  font-family: var(--cf-font);
  color:       var(--cf-text);
  -webkit-tap-highlight-color: transparent;
}

#cf-embed .cf-btn:hover,
#cf-embed .cf-btn:focus,
#cf-embed .cf-btn:active,
#cf-embed .cf-btn:focus-visible {
  outline:    none;
  box-shadow: none;
  background: none;
  color:      var(--cf-text);
}

#cf-embed .cf-next { margin-left: auto; }
#cf-embed .cf-prev { margin-right: auto; }

#cf-embed .cf-submit {
  margin-left:    auto;
  background:     var(--cf-accent);
  color:          white;
  text-transform: uppercase;
  padding:        10px 20px;
  border-radius:  0;
  font-weight:    600;
}

/* ── Pflichtfeld-Stern ────────────────────────────────────────────── */
#cf-embed .cf-label-required::after {
  content:     ' *';
  color:       var(--cf-error-color);
  font-weight: 400;
}

#cf-embed .cf-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#cf-embed .cf-submit:hover,
#cf-embed .cf-submit:focus,
#cf-embed .cf-submit:active,
#cf-embed .cf-submit:focus-visible {
  background: var(--cf-accent);
  color:      white;
  outline:    none;
  box-shadow: none;
}