/* =========================================================
   XPROMEDIA — Video-Projekt-Konfigurator
   Loaded on film.html and index.html only. Reuses design tokens
   from css/style.css (:root vars) and form-field/consent/submit/
   success-state styling from css/contact-widget.css verbatim —
   only the modal shell, progress bar and selection tiles are new.
   ========================================================= */

.xpm-vpk-overlay{
  position: fixed;
  inset: 0;
  z-index: 980; /* above .xpm-lightbox (950) and .xpm-contact-btn/.xpm-panel (900) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 8, 0.94);
  opacity: 0;
  /* Closed-state must stay click-through — an unconditional display:flex
     on a still-in-DOM [hidden] element would otherwise swallow every
     click on the page (author CSS beats the UA [hidden]{display:none}
     default at equal specificity). Same fix already applied to
     .xpm-lightbox in css/work-lightbox.css. */
  pointer-events: none;
  transition: opacity .25s ease;
}
.xpm-vpk-overlay.xpm-vpk-visible{ opacity: 1; pointer-events: auto; }

.xpm-vpk-modal{
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 94vw);
  max-height: 90vh;
  background: var(--black, #0a0a0a);
  color: var(--white, #fff);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  transform: scale(0.97);
  transition: transform .25s ease;
  outline: none;
}
.xpm-vpk-overlay.xpm-vpk-visible .xpm-vpk-modal{ transform: scale(1); }

.xpm-vpk-close{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: var(--white, #fff);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.xpm-vpk-close svg{ width: 16px; height: 16px; display: block; }
.xpm-vpk-close:hover{
  border-color: var(--red, #e5202c);
  background: rgba(229,32,44,0.18);
  transform: scale(1.06);
}

.xpm-vpk-header{
  flex-shrink: 0;
  padding: 30px 60px 0 28px;
}
.xpm-vpk-header .eyebrow{ margin-bottom: 14px; }

.xpm-vpk-progress-track{
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  margin-bottom: 10px;
}
.xpm-vpk-progress-fill{
  height: 100%;
  width: 0%;
  background: var(--red, #e5202c);
  border-radius: 2px;
  transition: width .3s ease;
}
.xpm-vpk-step-label{
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-300, #d8d6d2);
}

.xpm-vpk-body{
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 28px 24px;
}

.xpm-vpk-question{
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--white, #fff);
}

.xpm-vpk-tiles{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.xpm-vpk-tile{
  text-align: left;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  color: var(--white, #fff);
  font-family: var(--font, inherit);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.xpm-vpk-tile:hover{ border-color: rgba(255,255,255,0.4); }
.xpm-vpk-tile:focus-visible{ outline: 2px solid var(--red, #e5202c); outline-offset: 2px; }
.xpm-vpk-tile--selected{
  border-color: var(--red, #e5202c);
  background: rgba(229,32,44,0.16);
}

.xpm-vpk-divider{
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 26px 0;
}

.xpm-vpk-freetext{ margin-top: 22px; }

.xpm-vpk-nav{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.xpm-vpk-nav .btn{ padding: 13px 22px; font-size: 13px; }

/* ---------- Schritt 7: Kontaktformular ---------- */
.xpm-vpk-contact-title{
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--white, #fff);
}
.xpm-vpk-contact-sub{
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-300, #d8d6d2);
}
.xpm-vpk-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.xpm-vpk-price-note{
  margin: 4px 0 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border-left: 2px solid var(--red, #e5202c);
  border-radius: 2px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray-300, #d8d6d2);
}
.xpm-vpk-submit{ margin-top: 4px; }

/* ---------- Erfolgsstatus ---------- */
.xpm-vpk-success{ padding: 40px 4px 8px; }
.xpm-vpk-success-title{
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.005em;
  margin: 0 0 8px !important;
}
.xpm-vpk-success .xpm-vpk-success-close{ margin-top: 22px; }

@media (max-width: 640px){
  .xpm-vpk-overlay{ padding: 12px; }
  .xpm-vpk-modal{ width: 100%; max-height: 94vh; }
  .xpm-vpk-header{ padding: 24px 52px 0 20px; }
  .xpm-vpk-close{ top: 14px; right: 14px; }
  .xpm-vpk-body{ padding: 4px 20px 20px; }
  .xpm-vpk-nav{ padding: 14px 20px 20px; }
  .xpm-vpk-tiles{ grid-template-columns: 1fr 1fr; }
  .xpm-vpk-form-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 420px){
  .xpm-vpk-tiles{ grid-template-columns: 1fr; }
}

/* =========================================================
   Auslöser-Platzierungen
   ========================================================= */

/* film.html — gut sichtbarer Abschnitt vor der CTA */
.video-config-promo-text{
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-700, #4a4a49);
}
.video-config-promo-actions{ text-align: center; }

/* index.html — dezenter Zusatzlink innerhalb der bestehenden CTA-Sektion */
/* index.html — large, clearly-visible entry point below ANRUFEN/
   WHATSAPP/NACHRICHT, using the exact same .btn.btn-red look as
   "PROJEKT ANFRAGEN" in the nav (and film.html's own configurator
   button) — not a small text link. Left-aligned automatically since
   .cta-content itself is not centered. */
.cta-config{
  margin-top: 30px; /* 25–35px from the contact options above */
}
.cta-config-label{
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300, #d8d6d2);
}
@media (max-width: 640px){
  .cta-config .btn{
    width: 100%;
    justify-content: center;
  }
}
