
/* ==========================
 * Checkout Modal (Formular)
 * ========================== */
.mw-hp{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

.mw-modal{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:none;
}
.mw-modal.is-open{ display:block; }

.mw-modal__scrim{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}

.mw-modal__panel{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(720px, calc(100vw - 24px));
  max-height:min(95dvh, 800px);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.mw-modal__head{
  padding:16px 16px 16px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}

/* Modal-Header: Paket links, Stepper mittig, Close rechts */
.mw-modal__headrow{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding-right:0;
}

.mw-headplan{
  min-width:0;
  width:100%;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:0;
  white-space:nowrap;
}

.mw-headplan__kicker{
  font-size:12px;
  color:var(--muted);
  line-height:1.1;
}
.mw-headplan__sep{
  color:var(--muted);
  font-weight:600;
}
.mw-headplan__title{
  margin:0;
  width:100%;
  text-align:center;
  font-size:17px;
  font-weight:850;
  letter-spacing:-.01em;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mw-modal__close{
  position:absolute;
  right:-8px;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:25px;
  border:1px solid #16a34a;
  background:rgba(255,255,255,.02);
  color:var(--text);
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.mw-modal__close:focus-visible{
  outline:3px solid var(--brand-soft);
  outline-offset:2px;
}

/* Stepper im Header: kompakt, ohne eigene Card-Box */
.mw-stepper--head{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  border-radius:0;
  min-width:0;
}
.mw-stepper--head .mw-stepper__top{ gap:10px; }
.mw-stepper--head .mw-stepper__bar{ margin-top:8px; height:6px; }

/* Header layout: Stepper below title row */
.mw-modal__head .mw-stepper--head{ margin-top:10px; }

/* =========================
   Buttons
========================= */
.mw-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:650;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background .12s ease,
    border-color .12s ease,
    color .12s ease,
    opacity .12s ease;
}

.mw-btn-primary{
  background:rgba(16,185,129,.08);
  border-color:var(--brand);
  color:#d1fae5;
}
.mw-btn-primary:hover{
  transform:translateY(-1px);
  background:rgba(16,185,129,.14);
  border-color:rgba(34,197,94,.35);
  box-shadow:0 12px 30px rgba(16,185,129,.18);
}

.mw-btn-ghost{
  background:transparent;
  border-color:var(--brand);
  color:#d1d5db;
}
.mw-btn-ghost:hover{
  border-color:var(--brand);
  color:#fff;
}

.mw-btn-block{ width:100%; }

.mw-btn[disabled],
button.mw-btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

/* ==========================
 * Form Layout (Wizard)
 * ========================== */
.mw-form{
  display:flex;
  flex-direction:column;
  height:100%;
  padding:0;
  overflow:hidden;
}

.mw-form__scroll{
  flex:1 1 auto;
  padding:14px 16px 0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  min-height:0;
}

.mw-form__actions{
  flex:0 0 auto;
  margin-top:0;
  padding:12px 16px 16px;
  border-top:1px solid var(--border);
  background:linear-gradient(to bottom, rgba(16,18,26,.65), rgba(16,18,26,.95));
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mw-form__row{ margin:0 0 14px; }
.mw-form__row--2{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media (min-width:720px){
  .mw-form__row--2{ grid-template-columns:1fr 1fr; }
}

.mw-label{
  display:block;
  font-size:.95rem;
  font-weight:650;
  margin:0 0 6px;
}

.mw-input,
.mw-textarea{
  width:100%;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  color:var(--text);
  padding:12px 12px;
  font:inherit;
}

/* Select-Felder im Formular dunkel + sauber */
select.mw-input{
  -webkit-appearance:none;
  appearance:none;
  background-color:rgba(255,255,255,.02);
  color:var(--text);
  padding-right:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:16px 16px;
}

select.mw-input:required:invalid{
  color:var(--muted);
}

select.mw-input option{
  background:#10121a;
  color:var(--text);
}
.mw-textarea{ resize:vertical; }

.mw-input:focus,
.mw-textarea:focus{
  outline:none;
  border-color:rgba(29,185,84,.55);
  box-shadow:0 0 0 3px rgba(29,185,84,.18);
}

.mw-input-group{
  display:flex;
  align-items:stretch;
  gap:10px;
}
.mw-input-suffix{
  display:flex;
  align-items:center;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.02);
  color:var(--muted);
  white-space:nowrap;
  user-select:none;
}

.mw-field-error{
  margin:8px 0 10px;
  color:#ff6b6b;
  font-size:.9rem;
  line-height:1.25;
  min-height:1px;
}

.mw-help{
    margin: 8px 0 0;
    color: #ffffff;
    font-size: .9rem;
    line-height: 1.3;
    border: solid 1px rgba(29, 185, 84, .55);
    padding: 7px;
    border-radius: 12px;
}

.mw-availability{
  margin:10px 0 0;
  font-size:.92rem;
  line-height:1.2;
  color:var(--muted);
}
.mw-availability.is-ok{ color:rgba(29,185,84,.95); }
.mw-availability.is-bad{ color:#ff6b6b; }

.mw-form__fineprint{
  margin:10px 0 0;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.3;
}
.mw-form__status{
  margin:10px 0 0;
  font-size:.95rem;
  line-height:1.25;
  min-height:1.1em;
}

.mw-hero-actions{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

/* ==========================
 * Checkout Stepper (Wizard)
 * ========================== */
.mw-stepper{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}

.mw-stepper__top{
  display:flex;
  align-items:center;
  justify-content:center;
}

.mw-stepper__meta{
  position:relative;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  white-space:nowrap;
  margin-top:10px;
  min-height:16px; /* damit absolute Mitte Platz hat */
}

/* links: "Schritt 1 von 4" bleibt normal */
.mw-stepper__label{
  font-size:12px;
  color:var(--muted);
  line-height:1.1;
}

/* Mitte: "Kontakt" IMMER exakt zentriert */
.mw-stepper__hint{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  font-size:12px;
  font-weight:750;
  line-height:1.1;
  color:#e5e7eb;
  max-width:70%;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center;
  pointer-events:none;
}

.mw-stepper__bar{
  margin-top:8px;
  height:6px;
  border-radius:999px;
  background:rgba(55,65,81,.55);
  overflow:hidden;
}

.mw-stepper__bar > span{
  display:block;
  height:100%;
  width:0%;
  background:linear-gradient(90deg, rgba(29,185,84,.55), rgba(34,197,94,.9));
  border-radius:999px;
  transition:width .18s ease;
}

.mw-step-pane[hidden]{ display:none !important; }

.mw-form__nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.mw-form__nav .mw-btn{
  flex:1 1 auto;
  min-height:44px;
}
@media (min-width:720px){
  .mw-form__nav{ justify-content:flex-end; }
  .mw-form__nav .mw-btn{ flex:0 0 auto; min-width:160px; }
}

/* ==========================
 * Wizard tweaks: Help link + Toast
 * ========================== */
.mw-modal-help{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--brand);
  text-decoration:none;
  margin-top:8px;
  align-self:flex-start;
}
.mw-modal-help:hover{ color:var(--text); text-decoration:underline; }

/* Hide footer helper rows when they are empty (removes unwanted space) */
.mw-form__fineprint:empty,
.mw-form__status:empty{
  display:none;
  margin:0 !important;
  min-height:0 !important;
  padding:0 !important;
}

/* Step-Hint accent */
#mwStepMeta .mw-stepper__hint{
  font-weight:700;
  color:var(--brand);
}

/* ==========================
 * Date Picker (FIX)
 * ========================== */
#mwEventDate{
  padding-right:44px; /* Platz fürs Icon */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:18px 18px;

  -webkit-appearance:none;
  appearance:none;
}

/* Chrome/Android & Desktop WebKit: native Indicator ausblenden,
   aber Klickfläche behalten */
#mwEventDate::-webkit-calendar-picker-indicator{
  opacity:0;
  width:44px;
  height:44px;
  cursor:pointer;
}

/* =========================
   Toast (final, konsolidiert)
   Icon links oben, Title daneben, Msg volle Breite,
   Actions darunter, OK ganz unten
========================= */
.mw-toast{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  opacity:0;
  transform:scale(.98);
  transition:opacity .18s ease, transform .18s ease;
  pointer-events:none;
}
.mw-toast.is-show{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.mw-toast__panel{
  pointer-events:auto;
  width:min(520px, 100%);
  background:rgba(16,18,26,.98);
  border:1px solid rgba(31,41,55,.85);
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
  padding:14px 14px;

  display:grid;
  grid-template-columns:34px 1fr;
  grid-template-areas:
    "icon title"
    "msg  msg"
    "actions actions"
    "ok   ok";
  column-gap:12px;
  row-gap:5px;
  align-items:start;
}

.mw-toast__icon{
  grid-area:icon;
  width:34px;
  height:34px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(34,197,94,.18);
  border:1px solid rgba(34,197,94,.35);
  color:#d1fae5;
  font-weight:900;
  font-size:18px;
  box-shadow:0 12px 30px rgba(16,185,129,.14);
  margin-top:2px;
}

.mw-toast__title{
  grid-area:title;
  font-weight:850;
  letter-spacing:-.01em;
  margin:4px 0 15px;
  font-size:21px;
  color:var(--text);
}

.mw-toast__msg{
  grid-area:msg;
  margin:0;
  font-size:13px;
  line-height:1.35;
  color:var(--muted);
  white-space:pre-line;
}

.mw-toast__actions{
  grid-area:actions;
  margin-top:8px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.mw-toast__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(31,41,55,.85);
  background:rgba(11,12,16,.55);
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}
.mw-toast__link:hover{
  border-color:rgba(34,197,94,.35);
  background:rgba(34,197,94,.10);
  text-decoration:none;
}

.mw-toast__btn{
  grid-area:ok;
  justify-self:end;
  border:1px solid rgba(29,185,84,.8);
  background:rgba(29,185,84,.12);
  color:var(--text);
  border-radius:12px;
  padding:8px 12px;
  font-weight:700;
  cursor:pointer;
}
.mw-toast__btn:hover{
  background:rgba(29,185,84,.18);
  transform:translateY(-1px);
}

/* Spezial: WhatsApp Button-Farbe wie vorher */
a#mwToastWhatsApp{ background-color:#115328; }

/* =========================
   Autofill FINAL (Chrome/Edge/Safari) – immer dunkel, auch nach Zurück/Stepper
========================= */
.mw-input:-webkit-autofill,
.mw-input:-webkit-autofill:hover,
.mw-input:-webkit-autofill:focus,
.mw-input:-webkit-autofill:active,
.mw-textarea:-webkit-autofill,
.mw-textarea:-webkit-autofill:hover,
.mw-textarea:-webkit-autofill:focus,
.mw-textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active,

/* Fallback: falls irgendwo Inputs ohne mw-Klasse existieren */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,

/* Standard :autofill (Firefox/Safari teils) */
.mw-input:autofill,
.mw-textarea:autofill,
select:autofill,
input:autofill,
textarea:autofill,

/* Chrome intern: genau hier kommt der weiße Hintergrund her */
.mw-input:-internal-autofill-selected,
.mw-input:-internal-autofill-previewed,
.mw-textarea:-internal-autofill-selected,
.mw-textarea:-internal-autofill-previewed,
select:-internal-autofill-selected,
select:-internal-autofill-previewed,
input:-internal-autofill-selected,
input:-internal-autofill-previewed,
textarea:-internal-autofill-selected,
textarea:-internal-autofill-previewed {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;

  /* Chrome malt Autofill/Selected per Inset-Paint → wir überdecken es */
  -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,.02) inset !important;
  box-shadow: 0 0 0px 1000px rgba(255,255,255,.02) inset !important;

  background-color: transparent !important;
  border-color: var(--border) !important;

  transition: background-color 999999s ease-in-out 0s;
}

.mw-input:-webkit-autofill:focus,
.mw-textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus,
input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
.mw-input:autofill:focus,
.mw-textarea:autofill:focus,
select:autofill:focus,
input:autofill:focus,
textarea:autofill:focus,
.mw-input:-internal-autofill-selected:focus,
.mw-input:-internal-autofill-previewed:focus,
.mw-textarea:-internal-autofill-selected:focus,
.mw-textarea:-internal-autofill-previewed:focus,
select:-internal-autofill-selected:focus,
select:-internal-autofill-previewed:focus,
input:-internal-autofill-selected:focus,
input:-internal-autofill-previewed:focus,
textarea:-internal-autofill-selected:focus,
textarea:-internal-autofill-previewed:focus {
  border-color: rgba(29,185,84,.55) !important;

  -webkit-box-shadow:
    0 0 0px 1000px rgba(255,255,255,.02) inset,
    0 0 0 3px rgba(29,185,84,.18) !important;
  box-shadow:
    0 0 0px 1000px rgba(255,255,255,.02) inset,
    0 0 0 3px rgba(29,185,84,.18) !important;

  background-color: transparent !important;
