/* =============================================================
   MEGAFITNESS – custom-tarif-v2.css
   Neues Design – lädt statt custom-tarif.css (nur im Test-Layout)
   ============================================================= */

:root {
  --mf-green:       #1ec603;
  --mf-green-dark:  #178a02;
  --mf-green-grad:  linear-gradient(135deg, #38b000, #70e000);
  --mf-green-light: #eaffea;
  --mf-text:        #0f1a24;
  --mf-muted:       #6c757d;
  --mf-border:      #e8f5e0;
  --mf-card-bg:     #ffffff;
  --mf-radius:      14px;
  --mf-shadow:      0 4px 20px rgba(0,0,0,.07);
  --mf-shadow-hover:0 12px 36px rgba(30,198,3,.15);
  --mf-t:           .2s ease;
}

/* ── Basis ──────────────────────────────────────────────── */

html { font-size: 16px; }
p    { font-size: 14px; }
span { font-size: 16px; }

@media (max-width: 767px) {
  html { font-size: 14px; }
  span, p { font-size: 12px; }
  .contract-form-section { position: relative; margin-top: 2rem; padding-bottom: 30px; }
}

h1, h3, h4 { font-size: 4vw; }

@media (min-width: 1000px) {
  h1, h3, h4     { font-size: 25px; }
  span, p         { font-size: 13px; }
  .contract-detail-list p { font-size: 15px; }
  .contract-headline h1   { font-size: 30px; }
}

@media (max-width: 300px) {
  h1, h3, h4 { font-size: 18px; }
  span, p     { font-size: 12px; }
  .contract-headline h1 { font-size: 20px; }
}

/* ── Progress Bar ───────────────────────────────────────── */

.progress-div { margin-top: 0; margin-bottom: 1.5rem; }

.step-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0 0.75rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  min-width: 130px;
}

.step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 2px solid #e0e0e0;
  color: #aaa;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  transition: all .3s ease;
}

.step-item.step-active .step-circle {
  background: var(--mf-green);
  border-color: var(--mf-green);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(30,198,3,.18);
}

.step-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #bbb;
  transition: color .3s ease;
}

.step-item.step-active .step-label { color: #333; }

.step-connector {
  flex: 1; max-width: 180px;
  height: 3px; background: #e0e0e0;
  margin: 0 10px 22px;
  position: relative; border-radius: 2px;
}

.step-connector-fill {
  position: absolute; left: 0; top: 0;
  height: 100%; width: 0%;
  background: var(--mf-green-grad);
  border-radius: 2px;
  transition: width .4s ease;
}

/* ── Headline ───────────────────────────────────────────── */

.contract-headline {
  position: relative;
  margin: 3rem 0 2rem;
  text-align: center;
}

.contract-headline h1 {
  color: var(--mf-text);
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(28px, 5vw, 46px);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.1;
}

/* ═══════════════════════════════════════════════════════════
   AKTIONSBEREICH — dunkle Sport-Sektion
   ═══════════════════════════════════════════════════════════ */

.aktionsbereich {
  background: #0d1824;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  border: none;
}

.aktionsbereich::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56,176,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,176,0,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Aktion-Header */
.aktion-header { text-align: center; margin-bottom: 2rem; position: relative; }

.aktion-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(56,176,0,.1);
  border: 1px solid rgba(56,176,0,.35);
  color: #70e000;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px;
  margin-bottom: 10px;
}

.aktion-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #38b000;
  animation: mf-blink 1.8s ease-in-out infinite;
}

@keyframes mf-blink { 0%,100%{opacity:1} 50%{opacity:.15} }

.aktion-header h2 {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(20px, 3.5vw, 30px);
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1rem;
}

.aktionsheadline {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(20px, 3.5vw, 30px);
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1rem;
  text-align: center;
}

/* Countdown-Hinweis */
.aktions-hinweis {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 10px 18px;
  font-size: 13px; color: #94a3b8;
  flex-wrap: wrap; justify-content: center;
}

.aktions-countdown {
  font-family: 'Audiowide', sans-serif;
  font-size: 12px; font-weight: 700; color: #70e000;
  background: rgba(56,176,0,.12);
  border: 1px solid rgba(56,176,0,.3);
  padding: 4px 12px; border-radius: 6px;
  letter-spacing: .05em;
  animation: none;
}

/* Aktions-Boxen Grid */
.aktions-boxen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .aktions-boxen { grid-template-columns: 1fr; }
}

/* ── Dunkle Karte (dk) ──────────────────────────────────── */

.dk {
  background: #162232;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--mf-radius);
  overflow: hidden;
  transition: transform var(--mf-t), box-shadow var(--mf-t);
  display: flex; flex-direction: column;
}

.dk:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.45); }

.dk.featured {
  border-color: #38b000;
  box-shadow: 0 0 0 1px #38b000, 0 0 40px rgba(56,176,0,.2);
}

.dk.featured:hover {
  box-shadow: 0 0 0 1px #38b000, 0 0 60px rgba(56,176,0,.3), 0 20px 50px rgba(0,0,0,.5);
}

.dk-topbar {
  background: var(--mf-green-grad);
  color: #fff;
  font-family: 'Audiowide', sans-serif;
  font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center; padding: 8px;
}

.dk-body { padding: 1.75rem 1.5rem; flex: 1; display: flex; flex-direction: column; }

.dk-badge {
  display: inline-block;
  background: rgba(56,176,0,.12);
  border: 1px solid rgba(56,176,0,.3);
  color: #70e000;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
  margin-bottom: 1rem; align-self: flex-start;
}

.dk-name {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #f8fafc; text-transform: uppercase;
  letter-spacing: .03em; margin-bottom: 2px;
}

.dk-dauer {
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #64748b; margin-bottom: 1.5rem;
}

/* Gestaffelte Preise */
.dk-aktion-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #86efac; margin-bottom: 4px;
}

.dk-preis {
  display: flex; align-items: baseline; gap: 2px;
  margin-bottom: 2px;
}

.dk-preis-cur {
  font-family: 'Audiowide', sans-serif;
  font-size: 20px; color: #94a3b8; line-height: 1;
}

.dk-preis-main {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 700; color: #ffffff; line-height: 1;
}

.dk-preis-cent {
  font-family: 'Audiowide', sans-serif;
  font-size: 20px; color: #94a3b8;
  align-self: flex-end; padding-bottom: 4px;
}

.dk-preis-sub-aktion {
  font-size: 12px; color: #94a3b8; margin-bottom: 8px;
}

.dk-preis-danach {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #94a3b8;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; padding: 6px 12px;
  margin-bottom: 1.25rem; width: 100%;
}

.dk-preis-danach strong { color: #cbd5e1; font-weight: 600; }

.dk-inkl { font-size: 12px; color: #64748b; margin-bottom: 1.25rem; }

.dk-divider { height: 1px; background: rgba(255,255,255,.06); margin-bottom: 1.25rem; }

/* Feature-Liste */
.dk-features { list-style: none; margin-bottom: 1.5rem; flex: 1; }

.dk-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #cbd5e1;
  padding: 5px 0; line-height: 1.4;
}

.dk-features li::before {
  content: '';
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  background: rgba(56,176,0,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7l3.5 3.5 5.5-6' stroke='%2338b000' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
  border-radius: 50%;
}

.dk-info-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: #64748b;
  font-size: 12px; cursor: pointer; padding: 0;
  margin-bottom: 1rem;
  text-decoration: underline; text-underline-offset: 3px;
}

.dk-info-link:hover { color: #86efac; }

.dk-cta {
  display: block; width: 100%;
  background: var(--mf-green-grad);
  color: #fff; font-weight: 700; font-size: 15px;
  text-align: center; padding: 13px;
  border-radius: 10px; border: none; cursor: pointer;
  letter-spacing: .02em;
  transition: opacity var(--mf-t), transform var(--mf-t);
  box-shadow: 0 4px 18px rgba(56,176,0,.35);
  margin-top: auto;
}

.dk-cta:hover { opacity: .88; transform: translateY(-1px); }

.dk-legal {
  font-size: 11px; color: #64748b;
  margin-top: .75rem; line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: .75rem;
}

/* ═══════════════════════════════════════════════════════════
   WEITERE TARIFE — helle Sektion
   ═══════════════════════════════════════════════════════════ */

.standardtarife {
  background: #fff;
  border-radius: var(--mf-radius);
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid var(--mf-border);
  box-shadow: var(--mf-shadow);
}

.std-hl {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(17px, 2.5vw, 22px);
  color: var(--mf-text);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.75rem;
  letter-spacing: .04em;
}

.std-hl em { font-style: normal; color: #38b000; }

.std-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 560px) { .std-grid { grid-template-columns: 1fr; } }

.std-karte {
  border: 1.5px solid var(--mf-border);
  border-radius: 12px; padding: 1.25rem 1rem;
  background: #f7fdf5;
  transition: border-color var(--mf-t), transform var(--mf-t), box-shadow var(--mf-t);
}

.std-karte:hover {
  border-color: #38b000; transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56,176,0,.1);
}

.std-karte.allin-style { background: #f0f8ff; border-color: #bae6fd; }
.std-karte.allin-style:hover { border-color: #0ea5e9; box-shadow: 0 8px 24px rgba(14,165,233,.1); }

.std-name {
  font-family: 'Audiowide', sans-serif;
  font-size: 14px; text-transform: uppercase;
  color: #1a1a1a; margin-bottom: 2px;
}

.std-dauer {
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #94a3b8; margin-bottom: .9rem;
}

.std-preis {
  font-family: 'Audiowide', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--mf-text); margin-bottom: 2px;
}

.std-preis small { font-size: 14px; }

.std-sub { font-size: 11px; color: #94a3b8; margin-bottom: .9rem; }

.std-info-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; color: #94a3b8;
  font-size: 11px; cursor: pointer; padding: 0;
  margin-bottom: .9rem;
  text-decoration: underline; text-underline-offset: 2px;
}

.std-info-link:hover { color: #38b000; }

.std-cta {
  display: block; width: 100%;
  background: var(--mf-green-grad);
  color: white; font-weight: 700; font-size: 13px;
  padding: 10px; border-radius: 8px; border: none;
  cursor: pointer;
  transition: opacity var(--mf-t), transform var(--mf-t);
  box-shadow: 0 3px 10px rgba(56,176,0,.25);
}

.std-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════
   FEATURE BOX
   ═══════════════════════════════════════════════════════════ */

.features-box {
  background: #f7fdf5;
  border: 1.5px solid #d1fae5;
  border-radius: var(--mf-radius);
  padding: 1.75rem; margin-bottom: 2rem;
}

.features-box h3 {
  font-family: 'Audiowide', sans-serif;
  font-size: 14px; text-transform: uppercase;
  letter-spacing: .08em; color: #38b000;
  margin-bottom: 1.25rem; text-align: center;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 16px; list-style: none;
}

.features-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: #334155;
}

.features-list li::before {
  content: '';
  width: 18px; height: 18px; flex-shrink: 0;
  background: rgba(56,176,0,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7l3.5 3.5 5.5-6' stroke='%2338b000' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════
   FORMULAR STEP 2
   ═══════════════════════════════════════════════════════════ */

.form-container { display: flex; width: 100%; }
.left-column  { flex: 65%; }
.right-column { flex: 35%; }

@media (max-width: 768px) {
  .form-container { flex-direction: column-reverse; }
  .left-column, .right-column { flex: 100%; }
}

.contract-details {
  position: sticky; top: 3.4rem;
  background: #0d1824;
  border: 1px solid rgba(30,198,3,.25);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  overflow-y: auto;
  margin-left: 1.5rem;
}

.contract-details h3 {
  font-family: var(--mf-font-sport);
  color: #fff; font-size: 1rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(30,198,3,.2);
}

.contract-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.contract-detail-list:last-of-type { border-bottom: none; }

.contract-detail-list p {
  font-weight: 600; margin: 0;
  color: #7a8d99; font-size: 11px;
  text-transform: uppercase; letter-spacing: .6px;
}

.cd-val {
  font-weight: 700; color: #fff; font-size: 14px;
}

.cd-name { color: var(--mf-green); }

.cd-price-block span {
  display: block; font-weight: 700;
  color: #fff; font-size: 14px;
}

.cd-price-block span + span {
  color: #8fa0b0; font-size: 13px; margin-top: 2px;
}

.cd-change-btn {
  width: 100%; margin-top: 1.5rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid rgba(30,198,3,.4);
  color: var(--mf-green);
  border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 13px;
  transition: all .25s ease;
}

.cd-change-btn:hover {
  background: rgba(30,198,3,.1);
  border-color: var(--mf-green);
}

.contract-save {
  padding: .6em 1.75em; font-size: 1rem; font-weight: 600;
  background: var(--mf-green-grad); color: white;
  border: none; border-radius: 8px; cursor: pointer;
  transition: opacity var(--mf-t), transform var(--mf-t);
  box-shadow: 0 4px 12px rgba(56,176,0,.3);
}

.contract-save:hover { opacity: .9; transform: translateY(-1px); }

@media (max-width: 480px) { .contract-save { font-size: .85rem; padding: .75em 1.1em; width: 90%; } }

.left-column .default-form.style-two .form-group input,
.default-form.style-two .form-group textarea {
  background-color: #e6e6e6; border-radius: 10px;
  box-shadow: 0 1px 1px 1px #c6c6c6;
}

.contract-form-section { position: relative; padding-top: 2rem; padding-bottom: 30px; }

/* ═══════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════ */

.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999; display: none;
  backdrop-filter: blur(2px);
}

.popup, .popupInfos {
  position: fixed;
  background: white; border-radius: var(--mf-radius);
  padding: 20px; z-index: 1000; display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  max-height: 90vh; overflow-y: auto;
}

.popup {
  max-width: 420px; width: 90%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.popupInfos {
  width: 80%; top: 50%; left: 10%;
  transform: translateY(-50%);
}

.popup-close-btn {
  position: absolute; right: 0; top: 3px;
  z-index: 2; background: transparent;
}

.popup-close-btn:hover { background: transparent; color: #000; }
.poph4 { font-size: 18px; text-align: center; font-weight: 600; }
.popp  { text-align: center; color: #777; }
.popup span { font-size: 12px; }

/* Modal (neue Variante) */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 900;
  backdrop-filter: blur(2px);
}

.modal-overlay.active { display: block; }

.modal-box {
  display: none; position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000; background: #fff;
  border-radius: var(--mf-radius);
  padding: 2rem; max-width: 420px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.modal-box.active { display: block; }

.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none;
  font-size: 20px; color: #94a3b8;
  cursor: pointer; line-height: 1;
}

.modal-close:hover { color: #1a1a1a; }

.modal-title {
  font-family: 'Audiowide', sans-serif;
  font-size: 15px; text-transform: uppercase;
  color: var(--mf-text); margin-bottom: 3px;
  letter-spacing: .02em;
}

.modal-sub { font-size: 13px; color: #52525b; margin-bottom: 1.25rem; }

.modal-divider { height: 1px; background: #f0f0f0; margin-bottom: 1.25rem; }

.modal-inkl {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #38b000; margin-bottom: .75rem;
}

.modal-features { list-style: none; }

.modal-features li {
  padding: .6rem 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex; align-items: flex-start; gap: 10px;
}

.modal-features li:last-child { border-bottom: none; }

.modal-check {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  background: rgba(56,176,0,.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7l3.5 3.5 5.5-6' stroke='%2338b000' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
  border-radius: 50%;
}

.modal-feat-text strong { font-size: 13px; font-weight: 600; color: #1a1a1a; display: block; }
.modal-feat-text small  { font-size: 11px; color: #52525b; line-height: 1.4; }

.modal-legal { font-size: 11px; color: #52525b; line-height: 1.5; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #f0f0f0; }

/* ── Animationen ─────────────────────────────────────────── */

@keyframes mf-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.025); }
}
