/*
 * MP Erklärfilm-Anfrage – multistep enquiry form with live package price.
 *
 * Scoping rules (the page also runs Divi and the mpk- price calculator):
 * - Everything lives under .mpe and uses the mpe- prefix; no bare element selectors.
 * - The reset uses :where(.mpe) → zero specificity, so it never beats a component class.
 * - Component rules are written as ".mpe .mpe-x" (0,2,0). That outranks theme rules such as
 *   Divi's input[type=text] or .entry-content ul (0,1,1), which the zero-specificity reset cannot.
 *   Properties themes like to set on p/ul/li/h/input are therefore declared explicitly below.
 */

.mpe {
  --mpe-navy: #153375;
  --mpe-ink: #1f2d3d;
  --mpe-muted: #6b7a90;
  --mpe-line: #e6ebf2;
  --mpe-line-2: #d9e2ec;
  --mpe-soft: #f7f9fc;
  --mpe-accent: #3aafc9;
  --mpe-accent-2: #3fecdf;
  --mpe-accent-ink: #0a1838;
  --mpe-eyebrow: #12849a;
  --mpe-danger: #c2410c;
  --mpe-focus: #12849a;
  --mpe-radius: 3px;
  --mpe-shadow: 0 24px 60px -30px rgba(15, 40, 70, .26);
  --mpe-navy-card: linear-gradient(158deg, #1e3f70 0%, #0a1838 92%);
  --mpe-accent-grad: linear-gradient(135deg, var(--mpe-accent), var(--mpe-accent-2));
  --mpe-scroll-offset: 24px; /* raise if a fixed header covers the progress box after a step change */

  display: block;
  max-width: 1360px;
  margin: 0 auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--mpe-ink);
  text-align: left;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Reset – :where() keeps it at zero specificity (see header). */
:where(.mpe) *,
:where(.mpe) *::before,
:where(.mpe) *::after { box-sizing: border-box; margin: 0; padding: 0; }
:where(.mpe) :is(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(.mpe) :is(ul, ol) { list-style: none; }
:where(.mpe) svg { display: block; }

.mpe [hidden] { display: none !important; }
.mpe .mpe-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.mpe .mpe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.mpe .mpe-left,
.mpe .mpe-right { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ---------- Header ---------- */
.mpe .mpe-header { display: block; margin: 0; padding: 0; }
.mpe .mpe-title {
  margin: 0; padding: 0 0 10px;
  font-family: inherit; font-size: clamp(30px, 3.2vw, 43px); font-weight: 600; line-height: 1.2;
  letter-spacing: normal; text-transform: none; color: var(--mpe-navy);
}
.mpe .mpe-lead { margin: 0; padding: 0; font-size: 16px; line-height: 1.5; color: var(--mpe-ink); }

/* ---------- Progress + mini price (keeps the price in view on phones) ---------- */
.mpe .mpe-progress {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--mpe-line); border-radius: var(--mpe-radius);
  scroll-margin-top: var(--mpe-scroll-offset);
}
.mpe .mpe-progress-text { font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--mpe-muted); white-space: nowrap; }
.mpe .mpe-progress-text strong { font-weight: 700; color: var(--mpe-accent); }
.mpe .mpe-progress-bar { display: block; flex: 1; min-width: 40px; height: 6px; background: #e2e8f0; border-radius: 999px; }
.mpe .mpe-progress-fill {
  display: block; width: 16.6667%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--mpe-accent), var(--mpe-accent-2));
  box-shadow: 0 0 10px rgba(58, 175, 201, .55);
  transition: width .35s ease;
}
.mpe .mpe-mini-price {
  margin-left: auto; padding-left: 12px; border-left: 1px solid var(--mpe-line);
  font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--mpe-navy);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mpe .mpe-mini-price small { font-size: 11px; font-weight: 500; color: var(--mpe-muted); }
.mpe:not(.is-js) .mpe-progress-text,
.mpe:not(.is-js) .mpe-progress-bar { visibility: hidden; }

/* ---------- Card + steps ---------- */
.mpe .mpe-card {
  padding: 36px; background: #fff; border: 1px solid var(--mpe-line);
  border-radius: var(--mpe-radius); box-shadow: var(--mpe-shadow);
}
.mpe .mpe-form { display: block; margin: 0; padding: 0; }
.mpe .mpe-step { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.mpe:not(.is-js) .mpe-step + .mpe-step { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--mpe-line); }
.mpe.is-js .mpe-step { display: none; }
.mpe.is-js .mpe-step.is-active { display: block; animation: mpe-in .3s ease; }
@keyframes mpe-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.mpe .mpe-step-title {
  display: block; float: none; width: 100%; margin: 0; padding: 0;
  font-family: inherit; font-size: 24px; font-weight: 700; line-height: 1.3;
  letter-spacing: normal; text-transform: none; color: var(--mpe-ink);
}
.mpe .mpe-step-title:focus { outline: none; }
.mpe .mpe-step-sub { margin: 6px 0 22px; padding: 0; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--mpe-muted); }
.mpe .mpe-step-gap { height: 22px; }

/* ---------- Option tiles: real radios/checkboxes, hidden once JS runs ---------- */
.mpe .mpe-options { display: flex; flex-direction: column; gap: 10px; }
.mpe .mpe-options--2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.mpe .mpe-option {
  position: relative; display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px 20px;
  font-weight: 400; line-height: 1.4; color: var(--mpe-ink); text-align: left;
  background: var(--mpe-soft); border: 1.5px solid var(--mpe-line-2); border-radius: var(--mpe-radius);
  cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.mpe .mpe-option:hover { background: rgba(58, 175, 201, .06); border-color: rgba(58, 175, 201, .4); }
.mpe .mpe-option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--mpe-accent); }
.mpe.is-js .mpe-option input { position: absolute; top: 50%; left: 20px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.mpe .mpe-option-content { display: block; flex: 1; min-width: 0; }
.mpe .mpe-option-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--mpe-ink); }
.mpe .mpe-option-desc { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.45; color: var(--mpe-muted); }
.mpe .mpe-option-price { flex: none; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--mpe-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mpe .mpe-option-price small { font-size: 11px; font-weight: 500; color: var(--mpe-muted); }

.mpe .mpe-ribbon {
  position: absolute; top: -9px; right: 16px; padding: 1px 8px;
  font-size: 10.5px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: var(--mpe-accent-ink); background: linear-gradient(90deg, var(--mpe-accent), var(--mpe-accent-2)); border-radius: 999px;
}

.mpe .mpe-tag {
  display: inline-block; margin-top: 6px; padding: 2px 8px;
  font-size: 11px; font-weight: 600; line-height: 1.5; color: var(--mpe-muted);
  background: #eef2f7; border-radius: 999px;
}
.mpe .mpe-tag.is-included { color: var(--mpe-eyebrow); background: rgba(58, 175, 201, .12); }
.mpe .mpe-tag.is-upgrade { color: var(--mpe-navy); background: rgba(21, 51, 117, .08); }

.mpe .mpe-check {
  display: grid; place-items: center; flex: none; width: 20px; height: 20px;
  background: #fff; border: 2px solid #cbd5e1; border-radius: 6px; transition: background-color .2s, border-color .2s;
}
.mpe .mpe-option--radio .mpe-check { border-radius: 50%; }
.mpe .mpe-check svg { width: 12px; height: 12px; stroke: var(--mpe-accent-ink); opacity: 0; }
.mpe:not(.is-js) .mpe-check { display: none; }

.mpe .mpe-option:has(input:checked) { background: rgba(58, 175, 201, .10); border-color: var(--mpe-accent); box-shadow: 0 8px 24px rgba(58, 175, 201, .18); }
.mpe .mpe-option:has(input:checked) .mpe-check { background: var(--mpe-accent); border-color: var(--mpe-accent); }
.mpe .mpe-option:has(input:checked) .mpe-check svg { opacity: 1; }
.mpe .mpe-option:has(input:focus-visible) { outline: 2px solid var(--mpe-focus); outline-offset: 2px; }
.mpe .mpe-option:has(input[aria-invalid="true"]) { border-color: var(--mpe-danger); }

.mpe .mpe-other { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.mpe.is-js .mpe-other { display: none; }
.mpe.is-js .mpe-other.is-open { display: flex; }

.mpe .mpe-note {
  margin: 16px 0 0; padding: 10px 14px; font-size: 12.5px; line-height: 1.5; color: var(--mpe-muted);
  background: var(--mpe-soft); border-radius: var(--mpe-radius);
}
.mpe .mpe-note strong { font-weight: 600; color: var(--mpe-ink); }

/* ---------- Fields ---------- */
.mpe .mpe-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.mpe .mpe-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mpe .mpe-field--full { grid-column: 1 / -1; }
.mpe .mpe-label { display: block; margin: 0; padding: 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--mpe-ink); }
.mpe .mpe-label small { font-size: inherit; font-weight: 500; color: var(--mpe-muted); }

.mpe .mpe-input {
  display: block; width: 100%; max-width: 100%; height: auto; min-height: 48px; margin: 0; padding: 12px 14px;
  font-family: inherit; font-size: 16px; /* 16px stops iOS from zooming on focus */ font-weight: 400; line-height: 1.4; color: var(--mpe-ink);
  background-color: #fff; border: 1.5px solid var(--mpe-line-2); border-radius: var(--mpe-radius); box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
.mpe .mpe-input::placeholder { color: #9aa7b8; opacity: 1; }
.mpe .mpe-input:focus { outline: none; color: var(--mpe-ink); border-color: var(--mpe-accent); box-shadow: 0 0 0 4px rgba(58, 175, 201, .16); }
.mpe .mpe-input[aria-invalid="true"],
.mpe .mpe-input[aria-invalid="true"]:focus { border-color: var(--mpe-danger); box-shadow: 0 0 0 4px rgba(194, 65, 12, .1); }
.mpe textarea.mpe-input { min-height: 110px; resize: vertical; }
.mpe select.mpe-input {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7a90' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}

.mpe .mpe-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--mpe-muted); cursor: pointer; }
.mpe .mpe-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--mpe-accent); cursor: pointer; }
.mpe .mpe-consent input:focus-visible { outline: 2px solid var(--mpe-focus); outline-offset: 2px; }
.mpe .mpe-consent input[aria-invalid="true"] { outline: 2px solid var(--mpe-danger); outline-offset: 2px; }
.mpe .mpe-consent a { color: var(--mpe-eyebrow); text-decoration: underline; }

.mpe .mpe-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.mpe .mpe-error {
  display: none; margin: 14px 0 0; padding: 10px 14px;
  font-size: 13px; font-weight: 500; line-height: 1.5; color: #9a3412;
  background: #fff7ed; border-left: 3px solid var(--mpe-danger); border-radius: var(--mpe-radius);
}
.mpe .mpe-error.is-visible { display: block; }

/* ---------- Navigation ---------- */
.mpe .mpe-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.mpe:not(.is-js) .mpe-nav { display: none; }
.mpe .mpe-noscript { margin: 24px 0 0; padding: 10px 14px; font-size: 13px; line-height: 1.5; color: var(--mpe-ink); background: var(--mpe-soft); border-radius: var(--mpe-radius); }
.mpe .mpe-noscript a { color: var(--mpe-eyebrow); text-decoration: underline; }

.mpe .mpe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px 22px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: normal; text-transform: none; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--mpe-radius); cursor: pointer;
  -webkit-appearance: none; appearance: none; transition: transform .15s, box-shadow .2s, opacity .2s, background-color .2s;
}
.mpe .mpe-btn:focus-visible { outline: 2px solid var(--mpe-focus); outline-offset: 2px; }
.mpe .mpe-btn--back { color: #334155; background: #f4f7fb; border-color: var(--mpe-line-2); }
.mpe .mpe-btn--back:hover:not([disabled]) { background: #eaf0f7; }
.mpe .mpe-btn--back[disabled] { opacity: .45; cursor: default; }
.mpe .mpe-btn--next { margin-left: auto; color: var(--mpe-accent-ink); background: var(--mpe-accent-grad); box-shadow: 0 8px 24px rgba(58, 175, 201, .3); }
.mpe .mpe-btn--next:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(58, 175, 201, .38); }
.mpe .mpe-btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Success ---------- */
.mpe .mpe-success { padding: 12px 0; text-align: center; }
.mpe .mpe-success-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px;
  background: var(--mpe-accent-grad); border-radius: 50%; box-shadow: 0 10px 30px rgba(58, 175, 201, .35);
}
.mpe .mpe-success-icon svg { width: 28px; height: 28px; stroke: var(--mpe-accent-ink); }
.mpe .mpe-success-title { margin-bottom: 4px; }
.mpe .mpe-success-text { margin: 8px 0 0; padding: 0; font-size: 15px; line-height: 1.5; color: var(--mpe-muted); }
.mpe .mpe-success-text strong { font-weight: 700; color: var(--mpe-navy); }

/* ---------- Right column: live price (navy card) ---------- */
.mpe .mpe-summary {
  position: relative; isolation: isolate; overflow: hidden; padding: 32px;
  color: #fff; background: var(--mpe-navy-card); border-radius: 24px; box-shadow: var(--mpe-shadow);
}
.mpe .mpe-summary::after {
  content: ""; position: absolute; z-index: -1; top: -80px; right: -80px; width: 260px; height: 260px;
  background: radial-gradient(closest-side, rgba(63, 236, 223, .22), transparent); border-radius: 50%; pointer-events: none;
}
.mpe .mpe-eyebrow {
  margin: 0; padding: 0; font-size: 11.5px; font-weight: 700; line-height: 1.4;
  letter-spacing: .06em; text-transform: uppercase; color: var(--mpe-eyebrow);
}
.mpe .mpe-summary .mpe-eyebrow { color: var(--mpe-accent-2); }

.mpe .mpe-price-live { margin: 0; padding: 0; }
.mpe .mpe-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 4px; padding: 0; }
.mpe .mpe-price-from { font-size: 18px; font-weight: 600; line-height: 1.2; color: rgba(255, 255, 255, .7); }
.mpe .mpe-price-value {
  font-size: clamp(36px, 3.6vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em;
  color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mpe .mpe-price-meta { margin: 0; padding: 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .65); }
.mpe .mpe-price-meta strong { font-weight: 600; color: #fff; }
.mpe .mpe-price-why { min-height: 19px; margin: 6px 0 0; padding: 0; font-size: 12.5px; line-height: 1.5; color: var(--mpe-accent-2); }
.mpe .mpe-why-line { display: block; }

.mpe .mpe-incl { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 18px 0 22px; padding: 0; list-style: none; line-height: 1.4; }
.mpe .mpe-incl li {
  margin: 0; padding: 4px 10px; list-style: none;
  font-size: 12px; font-weight: 500; line-height: 1.4; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
}
.mpe .mpe-incl li::before { content: "✓ "; content: "✓ " / ""; font-weight: 700; color: var(--mpe-accent-2); }

.mpe .mpe-sum { display: grid; gap: 12px; margin: 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.mpe .mpe-sum-row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; margin: 0; padding: 0 0 12px;
  font-size: 14px; line-height: 1.45; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mpe .mpe-sum-row:last-child { padding-bottom: 0; border-bottom: 0; }
.mpe .mpe-sum dt { margin: 0; padding: 0; font-weight: 500; color: rgba(255, 255, 255, .6); }
.mpe .mpe-sum dd { margin: 0; padding: 0; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.mpe .mpe-sum dd.is-empty { font-weight: 500; color: rgba(255, 255, 255, .35); }
.mpe .mpe-fineprint { margin: 22px 0 0; padding: 0; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .55); }

/* ---------- Right column: contact person ---------- */
.mpe .mpe-partner {
  padding: 20px 24px; background: #fff; border: 1px solid var(--mpe-line);
  border-radius: var(--mpe-radius); box-shadow: var(--mpe-shadow);
}
.mpe .mpe-partner-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--mpe-line); }
.mpe .mpe-avatar {
  display: block; flex: none; width: 52px; height: 52px; max-width: none; object-fit: cover;
  background: #1a2b52; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 4px rgba(58, 175, 201, .12);
}
.mpe .mpe-partner-name { margin: 0; padding: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--mpe-ink); }
.mpe .mpe-points { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mpe .mpe-point { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; list-style: none; line-height: 1.4; }
.mpe .mpe-point-icon {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; color: var(--mpe-eyebrow);
  background: rgba(58, 175, 201, .08); border: 1px solid rgba(58, 175, 201, .25); border-radius: var(--mpe-radius);
}
.mpe .mpe-point-icon svg { width: 15px; height: 15px; }
.mpe .mpe-point-text { display: block; min-width: 0; }
.mpe .mpe-point-text strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--mpe-ink); }
.mpe .mpe-point-text span { display: block; font-size: 12px; line-height: 1.45; color: var(--mpe-muted); }
.mpe .mpe-direct { margin: 16px 0 0; padding: 0; font-size: 13px; line-height: 1.5; color: var(--mpe-muted); }
.mpe .mpe-direct a { font-weight: 600; color: var(--mpe-navy); text-decoration: none; white-space: nowrap; }
.mpe .mpe-direct a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .mpe .mpe-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .mpe .mpe-card { padding: 24px 18px; }
  .mpe .mpe-summary { padding: 24px 20px; }
  .mpe .mpe-fields,
  .mpe .mpe-options--2,
  .mpe .mpe-points { grid-template-columns: minmax(0, 1fr); }
  .mpe .mpe-step-title { font-size: 21px; }
  .mpe .mpe-option { gap: 12px; padding: 14px 16px; }
  .mpe.is-js .mpe-option input { left: 16px; }
  .mpe .mpe-sum-row { grid-template-columns: 95px minmax(0, 1fr); }
  .mpe .mpe-progress { gap: 10px; padding: 10px 12px; }
  .mpe .mpe-mini-price { padding-left: 10px; }
}
@media (max-width: 380px) {
  .mpe .mpe-mini-price small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mpe *,
  .mpe *::before,
  .mpe *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
