/* =========================================================
   MALERPLUS • KOSTENLOSER UMZUGSSERVICE (CSS)
   Branding: MalerPlus Light Design System (mp-blue #2bb0ff)
   Sichtbarkeit: Streng NUR für Testphase / Trial-Nutzer!
   ========================================================= */

/* =========================================================
   1. SICHTBARKEITS-GUARD (STRENG NUR TESTPHASE)
   Standard: Vollständig unsichtbar für alle (Bestandskunden)
   ========================================================= */
.mp-umzugsservice-only-trial,
#dashUmzugsserviceCard,
#umzugsserviceBtn,
#umzugsserviceKatalogBanner {
  display: none !important;
}

/* Nur wenn Body als Testphase-Nutzer deklariert ist */
body.mp-is-trial-user .mp-umzugsservice-only-trial,
body.mp-is-trial-user #dashUmzugsserviceCard,
body.mp-is-trial-user #umzugsserviceKatalogBanner {
  display: flex !important;
}

body.mp-is-trial-user #umzugsserviceBtn {
  display: inline-flex !important;
}

/* =========================================================
   2. DASHBOARD HERO BANNER (Eingearbeitet in den Header)
   Helles, harmonisches MalerPlus-Branding passend zur Hero-Card
   ========================================================= */
.mp-umzug-dash-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 12px 18px;
  margin: 14px 0 16px 0;
  box-shadow: 0 4px 14px rgba(43, 176, 255, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  color: #0f172a;
  overflow: hidden;
  transition: all 0.2s ease;
}

.mp-umzug-dash-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 6px 18px rgba(43, 176, 255, 0.14), 0 2px 5px rgba(0, 0, 0, 0.04);
}

.mp-umzug-dash-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mp-umzug-dash-icon {
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  box-shadow: 0 2px 6px rgba(43, 176, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mp-umzug-dash-text h3 {
  margin: 0 0 3px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mp-umzug-badge-free {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.mp-umzug-dash-text p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
}

.mp-umzug-dash-btn {
  background: var(--mp-blue, #2bb0ff);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 3px 12px rgba(43, 176, 255, 0.35);
  flex-shrink: 0;
}

.mp-umzug-dash-btn:hover {
  background: var(--mp-blue-h, #20a3ee);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(43, 176, 255, 0.45);
}

.mp-umzug-dash-btn:active {
  transform: translateY(0);
}

/* =========================================================
   3. LEISTUNGEN-KATALOG BANNER
   ========================================================= */
.mp-umzug-kat-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 16px 0;
  color: #0c4a6e;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(43, 176, 255, 0.08);
}

.mp-umzug-kat-banner strong {
  color: #0369a1;
}

.mp-umzug-kat-banner button {
  background: var(--mp-blue, #2bb0ff);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(43, 176, 255, 0.3);
}

.mp-umzug-kat-banner button:hover {
  background: var(--mp-blue-h, #20a3ee);
  transform: translateY(-1px);
}

/* =========================================================
   4. MODAL DIALOG (MalerPlus Light Branding)
   ========================================================= */
.mp-umzug-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mp-umzug-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mp-umzug-modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mp-umzug-backdrop.is-open .mp-umzug-modal {
  transform: scale(1) translateY(0);
}

.mp-umzug-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
}

.mp-umzug-header-text h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-umzug-header-text p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
}

.mp-umzug-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 18px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.mp-umzug-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mp-umzug-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- 3-Schritte-Anleitung ---- */
.mp-umzug-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mp-umzug-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mp-umzug-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-umzug-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.mp-umzug-step-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

/* ---- Dropzone ---- */
.mp-umzug-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mp-umzug-dropzone:hover,
.mp-umzug-dropzone.is-dragover {
  border-color: #2bb0ff;
  background: #f0f9ff;
  transform: scale(1.005);
}

.mp-umzug-dz-icon {
  font-size: 34px;
  color: #0284c7;
}

.mp-umzug-dz-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.mp-umzug-dz-hint {
  font-size: 12.5px;
  color: #64748b;
}

.mp-umzug-dz-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

/* ---- Dateiliste ---- */
.mp-umzug-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-umzug-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mp-umzug-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mp-umzug-file-icon {
  font-size: 18px;
  color: #ef4444;
}

.mp-umzug-file-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-umzug-file-size {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
}

.mp-umzug-file-remove {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.mp-umzug-file-remove:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* ---- Formular ---- */
.mp-umzug-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mp-umzug-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mp-umzug-form-group.is-full {
  grid-column: span 2;
}

.mp-umzug-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.mp-umzug-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.mp-umzug-input:focus {
  border-color: var(--mp-blue, #2bb0ff);
  box-shadow: 0 0 0 3px rgba(43, 176, 255, 0.18);
}

.mp-umzug-textarea {
  min-height: 64px;
  resize: vertical;
}

/* ---- Garantie & Vertraulichkeit ---- */
.mp-umzug-guarantee {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #1e40af;
}

.mp-umzug-guarantee-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ---- Footer & Submit ---- */
.mp-umzug-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.mp-umzug-btn-cancel {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mp-umzug-btn-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.mp-umzug-btn-submit {
  background: var(--mp-blue, #2bb0ff);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(43, 176, 255, 0.35);
}

.mp-umzug-btn-submit:hover:not(:disabled) {
  background: var(--mp-blue-h, #20a3ee);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(43, 176, 255, 0.45);
}

.mp-umzug-btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- Success State ---- */
.mp-umzug-success {
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mp-umzug-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  border: 2px solid #86efac;
  color: #16a34a;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-umzug-success h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.mp-umzug-success p {
  margin: 0;
  font-size: 14px;
  color: #475569;
  max-width: 480px;
  line-height: 1.5;
}

.mp-umzug-success-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: #334155;
  text-align: left;
  max-width: 480px;
  line-height: 1.45;
}

.mp-umzug-btn-wa {
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.15s ease;
  margin-top: 6px;
}

.mp-umzug-btn-wa:hover {
  background: #20ba59;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* =========================================================
   5. DARK MODE ANPASSUNG (wenn User dark theme aktiv hat)
   ========================================================= */
html.dark .mp-umzug-dash-card {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  color: #f8fafc;
}

html.dark .mp-umzug-dash-icon {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(56, 189, 248, 0.3);
}

html.dark .mp-umzug-dash-text h3 {
  color: #7dd3fc;
}

html.dark .mp-umzug-dash-text p {
  color: #94a3b8;
}

html.dark .mp-umzug-modal {
  background: #0f172a;
  border-color: rgba(56, 189, 248, 0.25);
  color: #f8fafc;
}

html.dark .mp-umzug-header {
  background: #0f172a;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark .mp-umzug-header-text h2 {
  color: #f8fafc;
}

html.dark .mp-umzug-header-text p {
  color: #94a3b8;
}

html.dark .mp-umzug-step,
html.dark .mp-umzug-dropzone,
html.dark .mp-umzug-success-box {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .mp-umzug-step-title,
html.dark .mp-umzug-dz-title,
html.dark .mp-umzug-file-name,
html.dark .mp-umzug-success h3 {
  color: #f8fafc;
}

html.dark .mp-umzug-file-item {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .mp-umzug-input {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}

html.dark .mp-umzug-footer {
  background: #0f172a;
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   6. RESPONSIVE (Smartphone & Tablet)
   ========================================================= */
@media (max-width: 640px) {
  .mp-umzug-dash-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    margin: 12px 0 14px 0;
  }

  .mp-umzug-dash-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    min-height: 44px;
  }

  .mp-umzug-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mp-umzug-form-grid {
    grid-template-columns: 1fr;
  }

  .mp-umzug-form-group.is-full {
    grid-column: span 1;
  }

  .mp-umzug-header {
    padding: 16px 18px 14px;
  }

  .mp-umzug-body {
    padding: 16px 18px;
    gap: 16px;
  }

  .mp-umzug-footer {
    padding: 14px 18px 16px;
    flex-direction: column-reverse;
  }

  .mp-umzug-btn-cancel,
  .mp-umzug-btn-submit {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}
