/* Momenté – Basis-Layout & Komponenten (Tokens siehe style.css) */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mm-bg);
  color: var(--mm-ink);
  font-family: 'Figtree', system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #EAD9C4; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Typo-Rollen */
.serif  { font-family: 'Figtree', system-ui, sans-serif; font-weight: 800; letter-spacing: -.6px; }
.script { font-family: 'Caveat', cursive; font-weight: 700; }

.mm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.mm-eyebrow {
  font-weight: 700; font-size: 12.5px; letter-spacing: 1.6px;
  color: var(--mm-rust); text-transform: uppercase;
}
.mm-h2 {
  font-family: 'Figtree'; font-weight: 800;
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -.5px; line-height: 1.02; margin: 12px 0 0;
}
.mm-section-head { max-width: 600px; }

/* Header */
.mm-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--mm-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mm-line);
}
.mm-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 30px; max-width: 1200px; margin: 0 auto;
}
.mm-logo { font-size: 24px; }
.mm-logo em { font-style: normal; color: var(--mm-rust); }
.mm-nav a { font-weight: 600; font-size: 14.5px; color: var(--mm-body); margin-left: 22px; }
.mm-nav a:hover { color: var(--mm-ink); }

/* Buttons */
.mm-btn {
  display: inline-block; cursor: pointer; border: 0;
  background: var(--mm-rust); color: #fff;
  border-radius: 13px; padding: 13px 22px;
  font-family: 'Figtree'; font-weight: 700; font-size: 15px;
  transition: background .14s ease, transform .14s ease;
}
.mm-btn:hover { background: var(--mm-rust-deep); transform: translateY(-1px); }
.mm-btn--ghost {
  background: #fff; color: var(--mm-ink);
  border: 1px solid var(--mm-line-deep);
}
.mm-btn--ghost:hover { background: var(--mm-card); }
.mm-btn:focus-visible { outline: 3px solid var(--mm-gold); outline-offset: 2px; }

/* Hero */
.mm-hero { padding: 72px 0 56px; }
.mm-hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.mm-hero h1 {
  font-size: clamp(46px, 6.4vw, 82px);
  line-height: .98; letter-spacing: -1px; margin: 24px 0 0;
}
.mm-hero h1 .script { color: var(--mm-rust); font-size: 1.12em; }
.mm-hero__lead {
  font-size: 18.5px; line-height: 1.6; max-width: 490px;
  margin: 26px 0 0; color: var(--mm-body);
}
.mm-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mm-hero__visual {
  aspect-ratio: 4/5; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, var(--mm-card-warm), var(--mm-line-deep));
  border: 1px solid var(--mm-line);
  display: grid; place-items: center;
  color: var(--mm-faint); font-weight: 600;
  position: relative;
}
.mm-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(165, 85, 31, .92); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px;
  padding: 4px 9px; border-radius: 6px;
}

/* Trust-Leiste */
.mm-trust {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--mm-line-grid);
  border: 1px solid var(--mm-line-grid); border-radius: 18px; overflow: hidden;
}
.mm-trust__cell { background: var(--mm-card); padding: 22px 24px; }
.mm-trust__cell .serif { font-size: 26px; letter-spacing: 0; }
.mm-trust__cell p { color: var(--mm-muted); font-size: 13.5px; margin: 3px 0 0; }

/* Sektionen */
.mm-section { padding: 84px 0 20px; }

/* So geht's */
.mm-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin-top: 42px;
}
.mm-step {
  background: var(--mm-card); border: 1px solid var(--mm-line);
  border-radius: 18px; padding: 24px;
}
.mm-step__n { font-size: 34px; color: #C9AE85; line-height: 1; }
.mm-step h3 { font-size: 18px; margin: 14px 0 6px; font-weight: 700; }
.mm-step p { color: var(--mm-muted); font-size: 14px; line-height: 1.55; margin: 0; }

/* Stile */
.mm-styles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin-top: 42px;
}
.mm-style-card {
  border-radius: 18px; border: 1px solid var(--mm-line);
  background: var(--mm-card); padding: 22px; position: relative;
}
.mm-style-card--soon { opacity: .55; }
.mm-style-card .serif { font-size: 22px; }
.mm-style-card p { color: var(--mm-muted); font-size: 13.5px; margin: 6px 0 0; }
.mm-soon {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--mm-gold); text-transform: uppercase;
}

/* Funnel */
.mm-funnel {
  background: var(--mm-card); border: 1px solid var(--mm-line);
  border-radius: 24px; padding: clamp(24px, 4vw, 48px);
  margin-top: 42px;
}
.mm-funnel__steps { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.mm-funnel__dot {
  font-size: 12px; font-weight: 700; letter-spacing: .6px;
  color: var(--mm-faint); padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--mm-line-deep); background: #fff;
}
.mm-funnel__dot.is-active { color: #fff; background: var(--mm-rust); border-color: var(--mm-rust); }
.mm-funnel__panel[hidden] { display: none; }

.mm-drop {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 180px; margin-top: 8px;
  border: 2px dashed var(--mm-line-deep); border-radius: 18px;
  background: var(--mm-card-warm); padding: 48px 24px;
  text-align: center; cursor: pointer; transition: border-color .14s ease;
}
.mm-drop:hover, .mm-drop.is-over { border-color: var(--mm-rust); }
.mm-drop input[type=file] { display: none; }
.mm-drop strong { font-size: 16.5px; color: var(--mm-ink); }
.mm-drop__hint { color: var(--mm-faint); font-size: 12.5px; margin: 0; }

.mm-field { margin-top: 18px; }
.mm-field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.mm-field input[type=text], .mm-field input[type=email] {
  width: 100%; padding: 13px 15px; border-radius: 13px;
  border: 1.5px solid var(--mm-line-deep); background: #fff;
  font: inherit; color: var(--mm-ink);
}
.mm-field input:focus-visible { outline: 3px solid var(--mm-gold); outline-offset: 1px; }

.mm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mm-chip {
  cursor: pointer; user-select: none;
  border: 1.5px solid var(--mm-line-deep); background: #fff;
  border-radius: 999px; padding: 8px 14px;
  font-weight: 600; font-size: 13.5px; color: var(--mm-body);
  transition: all .12s ease;
}
.mm-chip.is-on { background: var(--mm-pine); border-color: var(--mm-pine); color: #fff; }
.mm-chips__note { color: var(--mm-faint); font-size: 12px; margin-top: 6px; }

.mm-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--mm-body); margin-top: 18px;
}
.mm-funnel__actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.mm-funnel__status { color: var(--mm-muted); font-size: 13.5px; margin-top: 14px; min-height: 1.4em; }
.mm-funnel__status.is-error { color: #A03A2A; }

.mm-preview {
  aspect-ratio: 4/5; max-width: 420px; border-radius: 18px;
  border: 1px solid var(--mm-line); background: var(--mm-card-warm);
  display: grid; place-items: center; color: var(--mm-faint);
  overflow: hidden;
}
.mm-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Total-Panel (Tannengrün wie im Prototyp) */
.mm-total {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--mm-pine); border-radius: 16px; padding: 18px 22px; margin-top: 26px;
}
.mm-total__label {
  color: var(--mm-pine-soft); font-size: 11px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
}
.mm-total__price { font-size: 32px; color: var(--mm-bg); line-height: 1; margin-top: 2px; }
.mm-total__note { color: var(--mm-gold); font-weight: 600; font-size: 12px; text-align: right; line-height: 1.4; }
.mm-widerruf { margin: 12px 0 0; color: var(--mm-faint); font-size: 11.5px; line-height: 1.45; }

/* FAQ */
.mm-faq { max-width: 760px; margin-top: 42px; }
.mm-faq details {
  border-bottom: 1px solid var(--mm-line); padding: 18px 4px;
}
.mm-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.mm-faq summary::-webkit-details-marker { display: none; }
.mm-faq p { color: var(--mm-body); font-size: 14.5px; line-height: 1.6; }

/* Footer */
.mm-footer {
  margin-top: 96px; border-top: 1px solid var(--mm-line);
  background: var(--mm-card); padding: 40px 0 48px;
  color: var(--mm-muted); font-size: 13.5px;
}
.mm-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.mm-footer a { margin-right: 18px; font-weight: 600; }

@media (max-width: 860px) {
  .mm-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .mm-nav { display: none; }
}

/* ---- Funnel: Auswahl-Karten (Stil, Produkt) ---- */
.mm-panel-title { font-size: 26px; margin: 0 0 18px; }
.mm-pick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.mm-pick-grid--2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 20px; }
.mm-pick {
  position: relative; cursor: pointer; text-align: left;
  background: #fff; border: 1.5px solid var(--mm-line-deep);
  border-radius: 15px; padding: 16px;
  font-family: 'Figtree', system-ui, sans-serif;
  display: flex; flex-direction: column; gap: 3px;
  transition: all .14s ease;
}
.mm-pick strong { font-size: 17px; letter-spacing: -.2px; }
.mm-pick span { color: var(--mm-muted); font-size: 12.5px; font-weight: 500; }
.mm-pick .mm-pick__price { font-style: normal; font-size: 22px; margin-top: 8px; color: var(--mm-rust-deep); }
.mm-pick:hover:not(:disabled) { border-color: var(--mm-gold); }
.mm-pick.is-on { border-color: var(--mm-rust); box-shadow: 0 0 0 1.5px var(--mm-rust); }
.mm-pick:disabled, .mm-pick--soon { opacity: .5; cursor: default; }

/* Farb-Swatches */
.mm-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-swatch {
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--mm-line-deep);
  border-radius: 11px; padding: 6px 12px 6px 6px;
  font-family: 'Figtree'; font-weight: 600; font-size: 13px; color: var(--mm-body);
  transition: all .14s ease;
}
.mm-swatch span {
  width: 22px; height: 22px; border-radius: 7px;
  border: 1px solid rgba(0,0,0,.12); display: block;
}
.mm-swatch.is-on { border-color: var(--mm-rust); box-shadow: 0 0 0 1.5px var(--mm-rust); color: var(--mm-ink); }

/* Größen */
.mm-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-size {
  cursor: pointer; min-width: 52px;
  background: #fff; border: 1.5px solid var(--mm-line-deep);
  border-radius: 11px; padding: 11px 0;
  font-family: 'Figtree'; font-weight: 700; font-size: 15px; color: var(--mm-body);
  transition: all .14s ease;
}
.mm-size.is-on { background: var(--mm-pine); border-color: var(--mm-pine); color: #fff; }

/* Add-ons */
.mm-addons { display: grid; gap: 10px; }
.mm-addon {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1.5px solid var(--mm-line-deep);
  border-radius: 13px; padding: 13px 16px;
  font-family: 'Figtree'; text-align: left;
  transition: all .14s ease;
}
.mm-addon span { display: flex; flex-direction: column; gap: 2px; }
.mm-addon strong { font-size: 14.5px; color: var(--mm-ink); }
.mm-addon small { color: var(--mm-muted); font-size: 12px; font-weight: 500; }
.mm-addon em { font-style: normal; font-size: 17px; color: var(--mm-rust-deep); }
.mm-addon.is-on { border-color: var(--mm-rust); box-shadow: 0 0 0 1.5px var(--mm-rust); }

/* ---- Produkt-Viewer (Schritt 6) ---- */
.mm-product-layout {
  display: grid; grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 28px; align-items: start;
}
.mm-preview--viewer { max-width: none; position: sticky; top: 90px; }
.mm-preview--viewer img { transition: opacity .15s ease; }
.mm-preview--poster { max-width: none; margin-top: 12px; aspect-ratio: 6/7; }
@media (max-width: 860px) {
  .mm-product-layout { grid-template-columns: 1fr; }
  .mm-preview--viewer { position: static; }
}

/* ---- Fixes & Vorschau-Vergrößerung ---- */
/* hidden-Attribut muss IMMER gewinnen (display:grid der Preview-Box hatte es übersteuert) */
.mm-funnel [hidden] { display: none !important; }

/* Schritt-5-Vorschau deutlich größer – Schutz leistet das Wasserzeichen */
.mm-preview--large { max-width: 640px; width: 100%; cursor: zoom-in; }
.mm-preview--viewer { cursor: zoom-in; }

/* Lightbox */
.mm-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(33, 28, 22, .88);
  display: grid; place-items: center; padding: 24px;
  cursor: zoom-out;
}
.mm-lightbox img {
  max-width: min(94vw, 900px); max-height: 92vh;
  width: auto; height: auto; border-radius: 14px;
}

/* Erfolgs-Panel nach "In den Warenkorb" */
.mm-added {
  background: var(--mm-card-warm); border: 1px solid var(--mm-line-deep);
  border-radius: 15px; padding: 18px 20px; margin-top: 20px;
}
.mm-added strong { color: var(--mm-green); }
.mm-added .mm-funnel__actions { margin-top: 14px; }

/* ---- Varianten-Raster (Schritt 5) ---- */
.mm-variants {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.mm-variant {
  flex: 1 1 0;
  min-width: 120px;
  position: relative;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--mm-line, #e7ded2);
  border-radius: 12px;
  background: var(--mm-card, #faf6f0);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.mm-variant:hover { transform: translateY(-2px); }
.mm-variant img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mm-variant.is-loading,
.mm-variant.is-failed { cursor: default; }
.mm-variant.is-selected {
  border-color: var(--mm-rust, #b45f3f);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mm-rust, #b45f3f) 30%, transparent);
}
.mm-variant__err { color: var(--mm-body, #8a7d6b); font-size: 14px; }

/* Aquarell-Spinner: Enso-Ring rotiert */
.mm-variant__spinner {
  width: 64px; height: 64px;
  background: url(../img/spinner.png) center / contain no-repeat;
  animation: mm-spin 1.6s linear infinite;
}
@keyframes mm-spin { to { transform: rotate(360deg); } }

/* Zoom-Knopf pro Zelle */
.mm-variant__zoom {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px;
  border: none; border-radius: 50%;
  background: color-mix(in srgb, #fff 80%, transparent);
  color: var(--mm-ink, #2b2117);
  font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mm-variant__zoom:hover { background: #fff; }

/* ---- Icons: Trust + So-geht's ---- */
.mm-trust__icon { width: 56px; height: 56px; display: block; margin-bottom: 10px; }
.mm-step__icon { position: relative; display: inline-flex; margin-bottom: 4px; }
.mm-step__icon img { width: 64px; height: 64px; display: block; }
.mm-step__icon .mm-step__n { position: absolute; top: -4px; right: -16px; font-size: 20px; }

/* Hero-Visual + Beispiel-Bilder füllen ihre Box */
.mm-hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Hero Vorher/Nachher-Slider ---- */
.mm-ba {
  position: absolute; inset: 0;
  cursor: ew-resize; user-select: none; touch-action: none;
  overflow: hidden;
}
.mm-ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block; pointer-events: none;
}
.mm-ba__before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.mm-ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 0; transform: translateX(-50%);
  border-left: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  pointer-events: none;
}
.mm-ba__knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.mm-ba__knob::before, .mm-ba__knob::after {
  content: ''; position: absolute; top: 50%; width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.mm-ba__knob::before { left: 9px;  transform: translateY(-50%); border-right: 8px solid var(--mm-rust, #b45f3f); }
.mm-ba__knob::after  { right: 9px; transform: translateY(-50%); border-left: 8px solid var(--mm-rust, #b45f3f); }
.mm-ba__tag {
  position: absolute; bottom: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  color: #fff; background: rgba(0,0,0,.42);
  padding: 4px 9px; border-radius: 6px; pointer-events: none;
}
.mm-ba__tag--l { left: 12px; }
.mm-ba__tag--r { right: 12px; }

/* ---- Warenkorb im Funnel (Schritt 6) ---- */
.mm-cart-hint { color: var(--mm-muted,#8a7d6b); font-size: 13px; margin: 6px 0 0; min-height: 18px; }
.mm-cart-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 8px 14px; border: 1px solid var(--mm-line,#e7ded2); border-radius: 999px;
  background: var(--mm-card,#faf6f0); color: var(--mm-ink,#2b2117);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.mm-cart-badge:hover { border-color: var(--mm-rust,#b45f3f); }

.mm-added { margin-top: 14px; }
.mm-added__head { display: block; color: var(--mm-rust,#b45f3f); margin-bottom: 10px; }
.mm-cart-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mm-cart-item {
  display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 10px;
  padding: 8px; border: 1px solid var(--mm-line,#e7ded2); border-radius: 12px; background: var(--mm-card,#faf6f0);
}
.mm-cart-item__thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #efe7db; display: block; }
.mm-cart-item__info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mm-cart-item__info strong { font-weight: 600; font-size: 14px; }
.mm-cart-item__info small { color: var(--mm-muted,#8a7d6b); font-size: 12px; }
.mm-cart-item__price { font-size: 14px; white-space: nowrap; }
.mm-cart-item__rm {
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: transparent; color: var(--mm-muted,#8a7d6b); font-size: 18px; line-height: 1; cursor: pointer;
}
.mm-cart-item__rm:hover { background: #f0e6da; color: var(--mm-rust,#b45f3f); }

.mm-cart-sum {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--mm-pine); border-radius: 14px;
  padding: 16px 20px; margin: 4px 0 14px;
}
.mm-cart-sum > span:first-child {
  color: var(--mm-pine-soft); font-size: 11px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
}
.mm-cart-sum .serif { font-size: 26px; color: var(--mm-bg); line-height: 1; }
.mm-cart-actions2 { flex-wrap: wrap; }
.mm-cart-editlink { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--mm-muted,#8a7d6b); text-decoration: underline; }

/* Produkt-Grid auto (Shirt/Hoodie/Plakat nebeneinander, wrappt bei Bedarf) */
.mm-pick-grid--auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* Foto-Vorschau nach Upload (Bestätigung) */
.mm-photo-preview { position: relative; margin-top: 4px; border-radius: 16px; overflow: hidden; border: 1px solid var(--mm-line, #e7ded2); }
.mm-photo-preview img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.mm-photo-preview__ok {
  position: absolute; top: 12px; left: 12px;
  background: var(--mm-pine, #2f4a3f); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  padding: 5px 11px; border-radius: 999px;
}
.mm-photo-preview__change {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.92); color: var(--mm-ink, #2b2117);
  border: none; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 600; padding: 6px 12px;
}
.mm-photo-preview__change:hover { background: #fff; }

/* ========================================================================
   Momenté – Foto-Zuschnitt & Info-Modal (Schritt 2)
   Ans ENDE der main.css anhängen. Nutzt die vorhandenen --mm-* Variablen.
   ======================================================================== */

/* Info-Modal vor dem Upload */
.mm-modal {
	position: fixed;
	inset: 0;
	background: rgba(33, 28, 22, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
}
.mm-modal__box {
	background: var(--mm-card, #FCF8F1);
	border: 1px solid var(--mm-line, #EBE0CE);
	border-radius: 16px;
	max-width: 440px;
	padding: 26px 28px;
}
.mm-modal__box h3 { margin: 0 0 12px; }
.mm-modal__box ul {
	margin: 0 0 14px;
	padding-left: 18px;
	color: var(--mm-body, #5F564A);
	line-height: 1.7;
}
.mm-modal__note {
	color: var(--mm-muted, #7B6E5C);
	font-size: 14px;
	margin: 0 0 18px;
}

/* Zuschnitt-Bereich (Cropper.js) */
.mm-cropper__hint { color: var(--mm-body, #5F564A); margin: 0 0 10px; }
.mm-cropper__stage {
	max-height: 60vh;
	background: var(--mm-bg, #F7F1E7);
	border-radius: 12px;
	overflow: hidden;
}
.mm-cropper__stage img { max-width: 100%; display: block; }

/* Klar erkennbarer weißer gestrichelter Rahmen (dicker = längere Striche) */
.mm-cropper .cropper-view-box {
	outline: 4px dashed #fff;
	outline-offset: -2px;
	box-shadow: 0 0 0 1px rgba(33, 28, 22, .25); /* dezenter Kontrast, damit Weiß auf hellem Motiv sichtbar bleibt */
}
.mm-cropper .cropper-line,
.mm-cropper .cropper-point,
.mm-cropper .cropper-dashed,
.mm-cropper .cropper-center { display: none !important; }
.mm-cropper .cropper-modal { background: rgba(33, 28, 22, .5); }

/* Bedienleiste: Zoom links (mit Hinweis), „Anderes Foto" rechts */
.mm-cropper__controls {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.mm-cropper__zoom { display: flex; flex-direction: column; gap: 5px; }
.mm-cropper__zoomlabel { font-size: 13px; color: var(--mm-muted, #7B6E5C); }
.mm-cropper__zoom-btns { display: flex; gap: 8px; }
.mm-cropper__other { margin-left: auto; }

/* Zeichenzähler unter den Textfeldern */
.mm-counter {
	display: block;
	font-size: 13px;
	color: var(--mm-muted, #7B6E5C);
	margin: 4px 0 0;
}
.mm-counter.is-low { color: var(--mm-rust, #A5551F); }

/* Große Einzelvorschau in der Anpass-Phase (Schritt 5) */
.mm-bigpreview {
	border-radius: 12px;
	overflow: hidden;
	background: var(--mm-bg, #F7F1E7);
}
.mm-bigpreview img { width: 100%; display: block; }

/* Design-Phase: Bild links, Regler rechts (stapelt auf schmalen Screens) */
.mm-design {
	display: flex;
	gap: 26px;
	align-items: flex-start;
}
.mm-design__preview { flex: 0 0 46%; max-width: 440px; }
.mm-design__controls { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) {
	.mm-design { flex-direction: column; }
	.mm-design__preview { flex-basis: auto; max-width: 100%; width: 100%; }
}

/* Foto-Vorschau nach dem Zuschnitt: ganzes Bild zeigen, nicht beschneiden */
.mm-photo-preview { aspect-ratio: auto !important; }
.mm-photo-preview img {
	width: 100% !important;
	height: auto !important;
	max-height: 60vh;
	object-fit: contain !important;
	display: block;
}

/* Zoom-Steuerung im Bild (Google-Maps-Stil, unten rechts) */
.mm-cropper__stage { position: relative; }
.mm-cropper__zoomctl {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 20;
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(33, 28, 22, .28);
}
.mm-cropper__zoomctl button {
	width: 40px;
	height: 40px;
	border: 0;
	background: rgba(252, 248, 241, .95);
	color: var(--mm-ink, #211C16);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease;
}
.mm-cropper__zoomctl button:hover { background: #fff; }
.mm-cropper__zoomctl button:first-child { border-bottom: 1px solid var(--mm-line, #EBE0CE); }

/* Große, fadende Statusmeldung im Rahmen (unter dem Spinner) */
.mm-variant { position: relative; }
.mm-variant__msg {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20%;
	padding: 0 22px;
	text-align: center;
	font-size: clamp(15px, 2.3vw, 20px);
	font-weight: 600;
	line-height: 1.35;
	color: var(--mm-ink, #211C16);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .4s ease, transform .4s ease;
	pointer-events: none;
}
.mm-variant__msg.is-in { opacity: 1; transform: translateY(0); }


/* Foto-Hinweise: Pferd im Mittelpunkt, Menschen nur angedeutet */
.mm-modal__lead { color: var(--mm-body); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; }
.mm-photo-list { list-style: none; padding: 0; margin: 0 0 12px; }
.mm-photo-list li { position: relative; padding-left: 26px; margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--mm-body); }
.mm-photo-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.mm-photo-list--good li::before { content: "\2713"; color: var(--mm-rust); }
.mm-photo-list--less li { color: var(--mm-muted); }
.mm-photo-list--less li::before { content: "\2715"; color: var(--mm-faint); }
.mm-photo-tip { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--mm-line); border-radius: 12px; background: var(--mm-card); color: var(--mm-body); font-size: 13.5px; line-height: 1.55; }
.mm-photo-tip strong { color: var(--mm-ink); }

.mm-funnel__status.is-warning { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--mm-gold); border-radius: 12px; background: var(--mm-card); color: var(--mm-body); line-height: 1.55; }
