/**
 * formatiq-catalog — Anfrage-Korb (Floating-Button + Modal)
 *
 * v0.8.0 Redesign: Modal folgt jetzt dem Kontakt-Popup-Stil von
 * formatiq.de — dunkle Karte mit abgerundeten Ecken, weißer Header,
 * orange Pill-Buttons, runder orange Close-Button. Token-getrieben.
 */

/* ============================================================
   AddPopup-Wizard (v0.10.14) — Multi-Step-UX
   ============================================================ */

.formatiq-wizard__progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
}
.formatiq-wizard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 160ms ease, transform 160ms ease;
}
.formatiq-wizard__dot.is-done {
  background: rgba(249, 136, 1, 0.6);
}
.formatiq-wizard__dot.is-active {
  background: #f98801;
  transform: scale(1.4);
}

.formatiq-wizard__step {
  min-height: 80px;
}

.formatiq-wizard__summary {
  margin: 18px 0 0;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  border-left: 3px solid #f98801;
}
.formatiq-wizard__summary-title {
  margin: 0 0 6px;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f98801;
}
.formatiq-wizard__summary-row {
  padding: 3px 0;
  font-size: 13px;
  line-height: 1.4;
}
.formatiq-wizard__summary-key {
  color: var(--fqi-card-text-soft);
  font-weight: 700;
}
.formatiq-wizard__summary-val {
  color: #fff;
}

.formatiq-form__input--invalid {
  border-color: #f18091 !important;
}

/* v0.10.15 — Color-Grid für Farbeigenschaft-Auswahl */
.formatiq-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.formatiq-color-grid--invalid {
  outline: 2px solid #f18091;
  outline-offset: 4px;
  border-radius: 6px;
}
.formatiq-color-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--fqi-input-bg);
  border: 1px solid var(--fqi-input-border);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.formatiq-color-swatch:hover {
  border-color: rgba(249, 136, 1, 0.6);
}
.formatiq-color-swatch.is-selected {
  border-color: #f98801;
  background: rgba(249, 136, 1, 0.14);
}
.formatiq-color-swatch__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.formatiq-color-swatch__label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.formatiq-wizard__summary-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  vertical-align: -1px;
}

/* ============================================================
   AddPopup (v0.10.12)
   Eigenständiges Modal das EINEN Produkteintrag konfiguriert
   (Eigenschaften-Selects + Anzahl), bevor er in den Korb wandert.
   ============================================================ */

.formatiq-modal--add .formatiq-modal__card--add {
  max-width: 560px;
}
.formatiq-modal__lead {
  text-align: center;
  color: var(--fqi-card-text-soft);
  margin: -8px 0 22px;
  font-size: 14px;
  line-height: 1.5;
}

/* v0.10.20: höhere Spezifität — .formatiq-form (Zeile ~648) wird im
   Source-Order später definiert und würde die Single-Column-Override
   sonst gewinnen. Mit Dual-Klassen-Selektor sind wir robust. */
.formatiq-form.formatiq-form--add { grid-template-columns: 1fr; }

.formatiq-form__group {
  border: 1px solid var(--fqi-card-border);
  border-radius: 12px;
  padding: 14px 14px 4px;
  margin: 0 0 6px;
  background: rgba(0, 0, 0, 0.08);
}
.formatiq-form__group-legend {
  padding: 0 8px;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fqi-accent);
}
.formatiq-form__check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fqi-card-text);
  cursor: pointer;
}
.formatiq-form__check-label input[type="checkbox"] {
  accent-color: var(--fqi-accent);
}
.formatiq-form__hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--fqi-card-text-mute);
  font-style: italic;
}

.formatiq-form__actions--add {
  justify-content: space-between;
  margin-top: 8px;
}
.formatiq-form__cancel {
  background: transparent;
  color: var(--fqi-card-text-soft);
  border: 1px solid var(--fqi-input-border);
  border-radius: 999px;
  padding: 11px 22px;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.formatiq-form__cancel:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ============================================================
   Anfragen-Button-Modul (v0.10.12 / Ausrichtung v0.10.15)
   Wird im Visual Builder pro Produkt/Subcat platziert.
   ============================================================ */

/* v0.10.15: Wrap-Container für Ausrichtung (left/center/right) */
/* v0.10.19: Flexbox statt text-align — robuster gegen Divi's
   eigene Spalten-Constraints. `text-align` ist nur effektiv wenn
   das innere Element wirklich `inline*` ist und kein Divi-Wrapper
   dazwischenliegt mit eigener Width. Flex justify-content schiebt
   den Button definitiv an die richtige Container-Kante. */
.formatiq-inquiry-add__wrap {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.formatiq-inquiry-add__wrap--left   { justify-content: flex-start; text-align: left; }
.formatiq-inquiry-add__wrap--center { justify-content: center;     text-align: center; }
.formatiq-inquiry-add__wrap--right  { justify-content: flex-end;   text-align: right; }

.formatiq-inquiry-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--fqib-py, 14px) var(--fqib-px, 32px);
  background: var(--fqib-bg, #f98801);
  color: var(--fqib-text, #ffffff);
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: var(--fqib-fs, 14px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--fqib-radius, 999px);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
  text-decoration: none;
}

.formatiq-inquiry-add__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.formatiq-inquiry-add--icon-none .formatiq-inquiry-add__icon { display: none; }

.formatiq-inquiry-add--width-full { width: 100%; }

.formatiq-inquiry-add:hover,
.formatiq-inquiry-add:focus-visible { outline: none; }

.formatiq-inquiry-add--hover-scale:hover,
.formatiq-inquiry-add--hover-scale:focus-visible {
  transform: scale(1.05);
}
.formatiq-inquiry-add--hover-color:hover,
.formatiq-inquiry-add--hover-color:focus-visible {
  background: var(--fqib-hover-bg, #e07800);
}

/* === Floating Cart-Button (v0.10.10 — Hex-Hardcoded, Corporate Orange) ===
   WICHTIG: Hex statt CSS-Vars — der Button hängt am <body>, nicht an
   .formatiq-inquiry, daher greifen die Token-Vars nicht. */

.formatiq-cart-button {
  position: fixed;
  right: 20px;
  /* Über Tims floating-contact-Button (typische 60px Höhe + 20px bottom
     + 12px Lücke → 92-100px). Mobile etwas dichter. */
  bottom: 100px;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  background: #f98801;
  color: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 32px -10px rgba(249, 136, 1, 0.55), 0 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  /* v0.10.11: Hover-Transition NUR auf transform (Farbe bleibt CD-Orange). */
  transition: transform 180ms ease;
}

.formatiq-cart-button[data-active] { display: inline-flex; }

/* v0.10.11: Hover wie von Tim gewünscht — scale-up statt darker bg.
   Farbe bleibt #f98801 (Corporate Design). */
.formatiq-cart-button:hover,
.formatiq-cart-button:focus-visible {
  outline: none;
  transform: scaleX(1.1) scaleY(1.1) !important;
}

.formatiq-cart-button__icon {
  /* v0.10.11: vergrößert von 26 auf 32 — entspricht etwa der Icon-Größe
     in Tims Floating-Contact-Button (32px Headset-SVG bei 60px-Kreis). */
  width: 32px;
  height: 32px;
  color: #fff;
  pointer-events: none;
}

.formatiq-cart-button__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #2a2a2a;
  color: #fff;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  border: 1px solid #fff;
}

/* Screenreader-only Label */
.formatiq-cart-button__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .formatiq-cart-button {
    bottom: 84px;
    width: 54px;
    height: 54px;
  }
  .formatiq-cart-button__icon { width: 28px; height: 28px; }
}

/* ============================================================
   Modal-Card im Kontakt-Popup-Stil
   ============================================================ */

.formatiq-modal {
  --fqi-card-bg:       #3f3f37;
  --fqi-card-bg-soft:  #4a4a40;
  --fqi-card-bg-deep:  #2c2c26;
  --fqi-card-text:     #ffffff;
  --fqi-card-text-soft:#cfcec7;
  --fqi-card-text-mute:#8e8e85;
  --fqi-card-border:   rgba(255, 255, 255, 0.08);
  --fqi-input-bg:      rgba(0, 0, 0, 0.22);
  --fqi-input-border:  rgba(255, 255, 255, 0.14);
  --fqi-accent:        #f98801;
  --fqi-accent-strong: #e07800;

  position: fixed;
  inset: 0;
  /* z-index sehr hoch — Divi-Mega-Menüs liegen bei 10.000-100.000,
     wir müssen darüber sein. 2147483600 = sicher max im 32-bit-signed-int. */
  z-index: 2147483600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* v0.10.10: backdrop-filter raus. Das war der Performance-Killer —
     auf vielen Setups muss der Browser jeden Frame die komplette Page
     hinter dem Modal neu rastern + blurren. Plus der "weiße Glitch":
     beim Modal-Open wird das ganze Page-Layer in einen GPU-Composite-
     Layer befördert, was kurzzeitig zu weißem Repaint führte. Statt
     Blur: solid dunkler Backdrop, instant. */
  background: rgba(0, 0, 0, 0.72);
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  color: var(--fqi-card-text);
}

/* Body-Scroll-Lock wenn Modal offen — JS toggelt diese Klasse */
body.formatiq-modal-open { overflow: hidden; }

.formatiq-modal[open] { display: flex; }

.formatiq-modal__card {
  position: relative;
  background: var(--fqi-card-bg);
  background-image: radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 60%
  );
  border-radius: 18px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
  width: 100%;
  max-width: 740px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--fqi-card-text);
}

/* runder orange Close-Button rechts oben (wie im Kontakt-Popup) */
.formatiq-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fqi-accent);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(249, 136, 1, 0.5);
  /* v0.10.10: nur background animieren — kein rotate-Wandern */
  transition: background 160ms ease;
}

/* v0.10.11: SVG-X exakt geometrisch zentriert (Unicode-× saß
   font-baseline-bedingt schief) */
.formatiq-modal__close-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.formatiq-modal__close:hover {
  background: var(--fqi-accent-strong);
}

.formatiq-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 36px clamp(24px, 4vw, 48px) 30px;
  scrollbar-width: thin;
}
.formatiq-modal__body::-webkit-scrollbar { width: 8px; }
.formatiq-modal__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* "Auf Anfrage"-Pill als kleines Tag oben */
.formatiq-modal__pill {
  display: inline-block;
  background: rgba(249, 136, 1, 0.16);
  color: var(--fqi-accent);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--fq-font-head);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.formatiq-modal__title {
  font-family: var(--fq-font-head);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 22px;
  text-align: center;
}

/* ============================================================
   Cart-Liste (auf dunkler Karte)
   ============================================================ */

.formatiq-cart {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--fqi-card-border);
}

.formatiq-cart__row {
  display: grid;
  /* v0.10.11: Nur noch 2 Spalten — Thumb + Main. Note + Controls
     sitzen in der .formatiq-cart__bottom-Sub-Row im Main-Block. */
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fqi-card-border);
  align-items: start;
}

/* v0.10.11: Note + Controls als flex-Row, vertical-center-aligned —
   GARANTIERT auf gleicher mittlerer Linie. */
.formatiq-cart__bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.formatiq-cart__bottom .formatiq-cart__note {
  flex: 1 1 auto;
  margin: 0;
}
.formatiq-cart__bottom .formatiq-cart__controls {
  flex: 0 0 auto;
}

.formatiq-cart__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--fqi-card-bg-deep);
}

.formatiq-cart__main { min-width: 0; }

.formatiq-cart__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* v0.10.10: Eine simple Werte-Zeile statt Property-Label-Liste */
.formatiq-cart__opts {
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--fqi-card-text-soft);
}

.formatiq-cart__note {
  width: 100%;
  background: var(--fqi-input-bg);
  border: 1px solid var(--fqi-input-border);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 12px;
  padding: 7px 11px;
  resize: vertical;
}
.formatiq-cart__note::placeholder { color: var(--fqi-card-text-mute); }
.formatiq-cart__note:focus {
  border-color: var(--fqi-accent);
  outline: none;
}

.formatiq-cart__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.formatiq-cart__qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--fqi-input-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--fqi-input-bg);
}
.formatiq-cart__qty button {
  width: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 160ms ease;
}
.formatiq-cart__qty button:hover { background: rgba(255, 255, 255, 0.08); }
.formatiq-cart__qty input {
  width: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font: inherit;
  font-weight: 700;
}

.formatiq-cart__remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fqi-card-text-soft);
  font-size: 16px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.formatiq-cart__remove:hover {
  background: var(--fqi-accent);
  color: #fff;
}

.formatiq-cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 12px;
  color: var(--fqi-card-text-soft);
}

.formatiq-cart-actions__clear {
  background: transparent;
  border: 0;
  color: var(--fqi-card-text-soft);
  font: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 160ms ease;
}
.formatiq-cart-actions__clear:hover { color: var(--fqi-accent); }

/* ============================================================
   Form
   ============================================================ */

.formatiq-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.formatiq-form__field { display: flex; flex-direction: column; gap: 6px; }
.formatiq-form__field--full { grid-column: 1 / -1; }

.formatiq-form__label {
  font-family: var(--fq-font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fqi-card-text-soft);
}
.formatiq-form__label[data-required]::after {
  content: "*";
  color: var(--fqi-accent);
  margin-left: 4px;
}

.formatiq-form__input,
.formatiq-form__textarea {
  width: 100%;
  background: var(--fqi-input-bg);
  border: 1px solid var(--fqi-input-border);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color 160ms ease, background 160ms ease;
}
.formatiq-form__textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.formatiq-form__input::placeholder,
.formatiq-form__textarea::placeholder { color: var(--fqi-card-text-mute); }
.formatiq-form__input:focus,
.formatiq-form__textarea:focus {
  outline: none;
  border-color: var(--fqi-accent);
  background: rgba(0, 0, 0, 0.32);
}

/* v0.10.20: Select-spezifische Behandlung. Browser rendern den
   ausgewählten Wert mit der OPTION-Farbe (Default: schwarz auf weiß)
   im Moment der Auswahl, erst nach Blur fällt das zur Select-Color
   zurück. Custom Appearance + erzwungene Color verhindert das. */
select.formatiq-form__input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 38px;
}
select.formatiq-form__input:focus,
select.formatiq-form__input:active {
  color: #fff;
}
select.formatiq-form__input option {
  color: #fff;
  background: #1a1a1a;
}

/* Datepicker auf dunklem Background lesbar */
.formatiq-form__input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
  cursor: pointer;
}

.formatiq-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--fqi-card-text-soft);
  line-height: 1.5;
  margin-top: 4px;
}
.formatiq-form__consent input[type="checkbox"] {
  accent-color: var(--fqi-accent);
  margin-top: 3px;
}
.formatiq-form__consent a { color: var(--fqi-accent); text-decoration: underline; }

/* Honeypot — visuell unsichtbar, nur für Bots
   (Template nutzt class="formatiq-form__honeypot" — beide Selektoren
   abgedeckt, falls Theme-Overrides die alte Klasse haben) */
.formatiq-form__honeypot,
.formatiq-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.formatiq-form__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
}

/* v0.10.23: "Anfrage senden"-Submit-Row im Anfragekorb — Button rechts. */
.formatiq-form__submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.formatiq-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--fqi-accent);
  color: #fff;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(249, 136, 1, 0.55);
  /* v0.10.10: kein transform mehr — translateY(-1px) im Hover hat
     auf manchen Setups Layout-Reflows + Lag verursacht. Nur background. */
  transition: background 160ms ease;
}
.formatiq-form__submit:hover {
  background: var(--fqi-accent-strong);
}
.formatiq-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.formatiq-form__status {
  font-size: 12px;
  color: var(--fqi-card-text-soft);
  min-height: 1em;
}
.formatiq-form__status--ok    { color: #8ed178; }
.formatiq-form__status--error { color: #f18091; }

/* Erfolgs-Zustand */
.formatiq-modal__success {
  text-align: center;
  padding: 30px 20px;
  color: var(--fqi-card-text);
}
.formatiq-modal__success-icon {
  display: inline-flex;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(249, 136, 1, 0.16);
  color: var(--fqi-accent);
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 16px;
}
.formatiq-modal__success-title {
  font-family: var(--fq-font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}
.formatiq-modal__success-text {
  color: var(--fqi-card-text-soft);
  line-height: 1.5;
}

/* ============================================================
   Empty-State
   ============================================================ */

.formatiq-cart--empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--fqi-card-text-mute);
  font-size: 13px;
  font-style: italic;
  border-top: 1px solid var(--fqi-card-border);
  border-bottom: 1px solid var(--fqi-card-border);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
  .formatiq-modal { padding: 10px; }
  .formatiq-modal__body { padding: 28px 20px 24px; }
  .formatiq-modal__title { font-size: 24px; margin-bottom: 18px; }
  .formatiq-form { grid-template-columns: 1fr; }
  .formatiq-cart__row {
    grid-template-columns: 48px 1fr;
  }
  .formatiq-cart__thumb { width: 48px; height: 48px; }
  /* Mobile: bottom-row darf umbrechen damit Notizfeld + Controls
     auch auf kleinen Screens passen */
  .formatiq-cart__bottom { flex-wrap: wrap; }
}

/* ============================================================
   Lightbox (v0.10.17) — Vollbild-Overlay für Iframe-Bildklicks
   ============================================================ */

.formatiq-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.94);
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.formatiq-lightbox[open] {
  display: flex;
  animation: formatiq-lightbox-in 180ms ease-out;
}
@keyframes formatiq-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.formatiq-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(96vw, 1600px);
  max-height: 92vh;
  gap: 14px;
}

.formatiq-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  background: #111;
}

.formatiq-lightbox__caption {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  text-align: center;
  max-width: 80ch;
  line-height: 1.5;
}

.formatiq-lightbox__close,
.formatiq-lightbox__nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 120ms ease, background 120ms ease;
}
.formatiq-lightbox__close { top: 24px; right: 24px; width: 44px; height: 44px; }
.formatiq-lightbox__close:hover,
.formatiq-lightbox__nav:hover {
  background: rgba(249, 136, 1, 0.85); /* Formatiq-Orange */
  border-color: rgba(249, 136, 1, 1);
  transform: scale(1.06);
}
.formatiq-lightbox__close svg,
.formatiq-lightbox__nav svg { width: 22px; height: 22px; }

.formatiq-lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.formatiq-lightbox__nav--prev { left: 24px; }
.formatiq-lightbox__nav--next { right: 24px; }
.formatiq-lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
/* v0.10.18: `display: flex` weiter oben überschreibt das HTML-
   `hidden`-Attribut. Explizit zurücksetzen damit die Pfeile bei
   Single-Image-Lightbox wirklich verschwinden. */
.formatiq-lightbox__nav[hidden],
.formatiq-lightbox__close[hidden] { display: none !important; }

@media (max-width: 640px) {
  .formatiq-lightbox { padding: 12px; }
  .formatiq-lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .formatiq-lightbox__nav { width: 42px; height: 42px; }
  .formatiq-lightbox__nav--prev { left: 8px; }
  .formatiq-lightbox__nav--next { right: 8px; }
}
