.mfviz {
  --mf-red: #dd351a;
  --mf-red-dark: #bd2c15;
  --mf-dark: #242424;
  --mf-muted: #666;
  --mf-line: #dedede;
  --mf-soft: #f6f6f6;
  width: 100%;
  margin: 0;
  color: var(--mf-dark);
  font-family: inherit;
  font-size: 16px;
}
.mfviz *, .mfviz *::before, .mfviz *::after { box-sizing: border-box; }
.mfviz [hidden] { display: none !important; }

.mfviz__intro { margin: 0 0 22px; max-width: 820px; }
.mfviz__intro h2 {
  margin: 0 0 9px;
  font: inherit;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--mf-dark);
}
.mfviz__intro h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 12px; background: var(--mf-red); }
.mfviz__intro p { margin: 0; color: var(--mf-muted); line-height: 1.6; }

.mfviz__steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 0 30px; border-bottom: 1px solid var(--mf-line); }
.mfviz__steps span { position: relative; padding: 0 8px 11px 0; color: #999; font-size: 14px; }
.mfviz__steps span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.mfviz__steps span.is-active { color: var(--mf-dark); }
.mfviz__steps span.is-active::after { background: var(--mf-red); }
.mfviz__steps b { margin-right: 4px; color: inherit; }

.mfviz__panel { padding: 0; background: transparent; }
.mfviz h3 { margin: 0 0 8px; font: inherit; font-size: clamp(21px,2.2vw,27px); line-height: 1.25; font-weight: 700; color: var(--mf-dark); }
.mfviz__section-title { margin-top: 28px !important; }
.mfviz p { line-height: 1.6; }
.mfviz__hint { margin: 0 0 16px; color: var(--mf-muted); }

.mfviz__mode { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; max-width: 780px; margin-top: 14px; }
.mfviz__mode label { position: relative; cursor: pointer; }
.mfviz__mode input { position: absolute; opacity: 0; pointer-events: none; }
.mfviz__mode span { display: flex; flex-direction: column; min-height: 86px; justify-content: center; padding: 16px 18px; border: 1px solid var(--mf-line); background: #fff; transition: .15s ease; }
.mfviz__mode strong { font-size: 17px; }
.mfviz__mode small { margin-top: 4px; color: var(--mf-muted); font-weight: 400; line-height: 1.4; }
.mfviz__mode input:checked + span { border-color: var(--mf-red); background: #fff8f6; }
.mfviz__mode input:focus-visible + span { outline: 2px solid rgba(221,53,26,.2); outline-offset: 2px; }

.mfviz__upload { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 28px; border: 1px dashed #bdbdbd; background: #fff; text-align: center; cursor: pointer; transition: .15s ease; }
.mfviz__upload:hover { border-color: var(--mf-red); background: #fffafa; }
.mfviz__upload input { position: absolute; opacity: 0; pointer-events: none; }
.mfviz__upload strong { font-size: 18px; }
.mfviz__upload > span:last-child { color: var(--mf-muted); font-size: 13px; }
.mfviz__upload-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--mf-dark); border-radius: 50%; font-size: 25px; line-height: 1; }
.mfviz__preview { margin-top: 14px; }
.mfviz__preview img { display: block; width: 100%; max-height: 460px; object-fit: contain; background: var(--mf-soft); }

.mfviz__text-button { appearance: none; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--mf-red); font: inherit; font-weight: 700; cursor: pointer; }
.mfviz__text-button:hover { text-decoration: underline; }

.mfviz__consent { display: flex !important; align-items: flex-start; gap: 9px; margin-top: 16px; color: var(--mf-muted); font-size: 13px; line-height: 1.55; font-weight: 400 !important; }
.mfviz__consent input { width: 17px !important; height: 17px !important; margin: 2px 0 0 !important; flex: 0 0 auto; accent-color: var(--mf-red); }
.mfviz__consent a { color: var(--mf-red); }

.mfviz__workspace { display: grid; grid-template-columns: minmax(280px,.82fr) minmax(380px,1.35fr); gap: clamp(24px,4vw,54px); align-items: start; }
.mfviz__prompt-side { min-width: 0; }
.mfviz__prompt-label { display: block; margin-top: 18px; font-weight: 700; }
.mfviz textarea, .mfviz input[type="text"], .mfviz input[type="email"], .mfviz input[type="tel"] { width: 100%; margin-top: 6px; border: 1px solid #cfcfcf; border-radius: 0; padding: 12px; background: #fff; color: var(--mf-dark); font: inherit; }
.mfviz textarea:focus, .mfviz input:focus { outline: 2px solid rgba(221,53,26,.14); border-color: var(--mf-red); }
.mfviz textarea:disabled, .mfviz input:disabled { background: #f2f2f2; color: #777; cursor: not-allowed; }
.mfviz__prompt-side textarea { min-height: 210px; resize: vertical; line-height: 1.55; }
.mfviz__prompt-meta { margin-top: 5px; color: #888; font-size: 12px; text-align: right; }
.mfviz__tip { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--mf-line); color: var(--mf-muted); font-size: 13px; }

.mfviz__result-side { min-width: 0; }
.mfviz__compare-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mfviz__compare-head h3 { margin: 0; }
.mfviz__compare-head span { color: var(--mf-muted); font-size: 12px; text-align: right; }
.mfviz__compare { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; background: #eee; border: 1px solid var(--mf-line); touch-action: pan-y; }
.mfviz__compare-before, .mfviz__compare-after { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
/* Beide Bilder bleiben pixelgenau gleich groß. Das Zielbild wird ausschließlich
   über clip-path an der aktuellen Trennposition sichtbar gemacht – es wird
   niemals skaliert, gestaucht oder in einem schmaleren Container neu berechnet. */
.mfviz__compare-after { z-index: 2; clip-path: inset(0 0 0 50%); will-change: clip-path; }
.mfviz__compare-placeholder { position: absolute; z-index: 2; inset: 0 0 0 50%; display: grid; place-items: center; padding: 18px; background: rgba(255,255,255,.88); border-left: 1px solid var(--mf-line); color: var(--mf-muted); text-align: center; font-size: 14px; }
.mfviz__compare-line { position: absolute; z-index: 4; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); transform: translateX(-1px); pointer-events: none; }
.mfviz__compare-line span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--mf-dark); box-shadow: 0 2px 10px rgba(0,0,0,.18); font-weight: 700; }
.mfviz__compare-range { position: absolute !important; z-index: 5; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0; cursor: ew-resize; }
.mfviz__compare-range:disabled { cursor: default; }
.mfviz__compare-label { position: absolute; z-index: 3; top: 10px; padding: 5px 8px; background: rgba(25,25,25,.78); color: #fff; font-size: 11px; font-weight: 700; pointer-events: none; }
.mfviz__compare-label--before { left: 10px; }
.mfviz__compare-label--after { right: 10px; }
.mfviz__loading { display: flex; align-items: center; gap: 12px; padding: 14px 0 0; color: var(--mf-muted); font-size: 13px; }
.mfviz__loading strong { display: block; color: var(--mf-dark); }
.mfviz__loading span { display: block; margin-top: 2px; }
.mfviz__spinner { width: 30px; height: 30px; flex: 0 0 auto; border: 3px solid #e7e7e7; border-top-color: var(--mf-red); border-radius: 50%; animation: mfviz-spin .8s linear infinite; }
@keyframes mfviz-spin { to { transform: rotate(360deg); } }
.mfviz__result-note { margin: 10px 0 0; color: var(--mf-muted); font-size: 12px; }
.mfviz__after-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--mf-line); }

.mfviz__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.mfviz__actions--split { justify-content: space-between; }
.mfviz__actions--left { justify-content: flex-start; flex-wrap: wrap; }
.mfviz__button { appearance: none; min-height: 44px; border: 1px solid var(--mf-red); border-radius: 2px; padding: 11px 18px; background: var(--mf-red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: .15s ease; }
.mfviz__button:hover { background: var(--mf-red-dark); border-color: var(--mf-red-dark); }
.mfviz__button:disabled { opacity: .55; cursor: wait; }
.mfviz__button--secondary { background: #fff; border-color: #bdbdbd; color: var(--mf-dark); }
.mfviz__button--secondary:hover { background: var(--mf-soft); border-color: #aaa; }

.mfviz__two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.mfviz label:not(.mfviz__upload):not(.mfviz__consent):not(.mfviz__mode label) { display: block; font-weight: 700; }
.mfviz label small { color: var(--mf-muted); font-weight: 400; }
.mfviz__lead-form > label { margin-top: 16px; }
.mfviz__success { padding: 16px 18px; border-left: 3px solid var(--mf-red); background: var(--mf-soft); }
.mfviz__success strong { font-size: 20px; }
.mfviz__notice { margin-top: 16px; padding: 11px 13px; border: 1px solid #e1b6ae; background: #fff7f4; color: #7f2516; font-size: 14px; }
.mfviz__notice[data-type="success"] { border-color: #bdd8c5; background: #f4faf6; color: #245c33; }
.mfviz__notice[data-type="limit"] { border-color: #d8c7a7; background: #fffaf1; color: #7a5a1d; }
.mfviz__legal { margin: 18px 0 0; color: #777; font-size: 12px; }

@media (max-width: 880px) {
  .mfviz__workspace { grid-template-columns: 1fr; }
  .mfviz__result-side { margin-top: 4px; }
}
@media (max-width: 620px) {
  .mfviz__intro h2 { font-size: 28px; }
  .mfviz__steps span { font-size: 12px; }
  .mfviz__steps span b { display: block; }
  .mfviz__mode, .mfviz__two-col { grid-template-columns: 1fr; }
  .mfviz__actions, .mfviz__actions--split, .mfviz__after-actions { flex-direction: column-reverse; align-items: stretch; }
  .mfviz__button { width: 100%; }
  .mfviz__upload { min-height: 155px; }
  .mfviz__compare-head { align-items: flex-start; flex-direction: column; }
  .mfviz__compare-head span { text-align: left; }
}

body{margin:0;background:white;font-family:Arial,sans-serif;color:#242424}.mfviz-page{max-width:1120px;padding:26px 22px 50px;margin:auto}.mfviz-brand{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #e6e6e6;padding-bottom:20px;margin-bottom:28px}.mfviz-brand img{width:230px;max-width:70vw;display:block}.mfviz-brand a{color:#333;font-size:14px}.mfviz__test{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#666}.mfviz__restore{padding:15px;background:#f6f6f6;margin-bottom:25px}.mfviz__hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}.mfviz__mode input{position:static;opacity:1;pointer-events:auto;accent-color:#dd351a}.mfviz__mode label{display:flex;gap:8px;align-items:center}.mfviz__mode span{flex:1}.mfviz__compare{aspect-ratio:3/2}.mfviz__compare-before,.mfviz__compare-after{width:100%;height:100%;object-fit:cover;object-position:center}.mfviz__compare-range:focus-visible{outline:3px solid #dd351a;outline-offset:3px}.mfviz a:focus-visible,.mfviz button:focus-visible{outline:3px solid #333;outline-offset:3px}

.mfviz__compare:has(.mfviz__compare-range:focus-visible){outline:3px solid #dd351a;outline-offset:3px}


.mfviz__result-summary {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #d5d9e1;
  border-radius: 5px;
  background: #fff;
}
.mfviz__result-summary h4 { margin: 0 0 12px; color: #173b83; font-size: 16px; }
.mfviz__result-summary dl {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 8px 18px;
  margin: 0;
  font-size: 14px;
}
.mfviz__result-summary dt { font-weight: 700; }
.mfviz__result-summary dd { margin: 0; overflow-wrap: anywhere; }
