/* =========================================================
   Momot Umzugsrechner — Styles
   Brand red: #D31219  |  Dark: #1a1a1a  |  Green: #3a7d44
   ========================================================= */

:root {
  --mr-red:    #D31219;
  --mr-dark:   #1a1a1a;
  --mr-green:  #3a7d44;
  --mr-gray:   #f5f5f5;
  --mr-border: #e0e0e0;
  --mr-text:   #333;
  --mr-radius: 10px;
}

/* ---- Entry bar ---- */
.momot-rechner-entry {
  background: var(--mr-red);
  padding: 36px 24px 28px;
  text-align: center;
  border-radius: var(--mr-radius);
}
.momot-entry-headline {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 20px;
}
.momot-entry-form {
  background: #fff;
  border-radius: var(--mr-radius);
  padding: 16px;
  max-width: 680px;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.momot-entry-field {
  position: relative;
  display: flex;
  align-items: center;
}
.momot-entry-field input {
  width: 100%;
  padding: 14px 48px 14px 16px;
  border: 1.5px solid var(--mr-border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.momot-entry-field input:focus { border-color: var(--mr-red); }
.momot-pin-icon {
  position: absolute;
  right: 14px;
  font-size: 1.1rem;
  pointer-events: none;
}
.momot-entry-btn {
  background: var(--mr-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.momot-entry-btn:hover { background: #b5101a; transform: translateY(-1px); }
.momot-entry-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #fff;
  font-size: .9rem;
  margin-top: 4px;
}

/* ---- Modal overlay ---- */
.momot-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.momot-modal-overlay.open {
  display: flex;
  animation: mrFadeIn .2s ease;
}
@keyframes mrFadeIn { from { opacity: 0 } to { opacity: 1 } }

.momot-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
}

.momot-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #666;
  z-index: 10;
  padding: 4px 8px;
  border-radius: 6px;
}
.momot-modal-close:hover { background: var(--mr-gray); color: var(--mr-dark); }

/* ---- Step progress ---- */
.momot-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 20px 24px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--mr-border);
  padding-bottom: 16px;
}
.momot-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: #aaa;
  cursor: default;
}
.momot-step-icon {
  width: 32px;
  height: 32px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  background: #fff;
  transition: all .2s;
}
.momot-step.active .momot-step-icon,
.momot-step.done .momot-step-icon {
  background: var(--mr-red);
  border-color: var(--mr-red);
  filter: grayscale(0);
}
.momot-step.active .momot-step-label { color: var(--mr-dark); font-weight: 600; }
.momot-step.done .momot-step-label { color: var(--mr-red); }
.momot-step-dash { color: #ccc; font-size: .85rem; margin: 0 2px; }

/* ---- Panels ---- */
.momot-panels { flex: 1; padding: 24px 24px 12px; }
.momot-panel { display: none; }
.momot-panel.active { display: block; animation: mrSlideIn .22s ease; }
@keyframes mrSlideIn { from { opacity:0; transform:translateX(12px) } to { opacity:1; transform:none } }

.momot-panel h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--mr-dark);
}

/* ---- Field groups ---- */
.momot-field-group {
  background: var(--mr-gray);
  border-radius: var(--mr-radius);
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
}
.momot-field-group.flat { background: none; padding: 0; }
.momot-field-group.flat .momot-input { margin-bottom: 10px; }

.momot-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--mr-border);
  gap: 12px;
}
.momot-field-row:last-child { border-bottom: none; }
.momot-field-row.momot-sub { padding-left: 36px; background: #efefef; }

.momot-field-label {
  font-weight: 600;
  font-size: .95rem;
  color: var(--mr-dark);
  flex: 1;
}
.momot-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--mr-red);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-style: normal;
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
}

.momot-select {
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--mr-border);
  border-radius: 8px;
  font-size: .95rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  min-width: 160px;
  outline: none;
}
.momot-select:focus { border-color: var(--mr-red); }

/* ---- Address rows ---- */
.momot-row { display: flex; gap: 12px; margin-bottom: 12px; }
.momot-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.momot-col-sm { flex: 0 0 130px; }
.momot-col label { font-size: .85rem; font-weight: 600; color: #555; }

.momot-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--mr-border);
  border-radius: 8px;
  font-size: .97rem;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
  color: var(--mr-dark);
}
.momot-input::placeholder { color: #c0c0c0; font-style: italic; }
.momot-input:focus { border-color: var(--mr-red); }
.momot-input.is-filled { border-color: #3a7d44; background: #f9fffa; }
.momot-textarea { min-height: 90px; resize: vertical; }

/* Entry bar inputs share same placeholder style */
.momot-entry-field input::placeholder { color: #b0b0b0; font-style: italic; }

/* ---- Toggle switches ---- */
.momot-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.momot-toggle input { display: none; }
.momot-toggle-slider {
  width: 48px;
  height: 26px;
  background: #ccc;
  border-radius: 13px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.momot-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.momot-toggle input:checked + .momot-toggle-slider { background: var(--mr-red); }
.momot-toggle input:checked + .momot-toggle-slider::after { transform: translateX(22px); }
.momot-toggle-text { font-size: .9rem; color: #666; }

/* ---- Calendar ---- */
.momot-calendar-wrap { max-width: 600px; }
.momot-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}
.momot-cal-nav {
  background: none;
  border: 1.5px solid var(--mr-border);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--mr-dark);
  transition: background .15s;
}
.momot-cal-nav:hover { background: var(--mr-gray); }

.momot-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.momot-cal-day-name {
  font-size: .78rem;
  font-weight: 700;
  color: #888;
  padding: 4px 0;
}
.momot-cal-day {
  padding: 8px 4px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .95rem;
  position: relative;
  transition: background .15s;
  border: 2px solid transparent;
}
.momot-cal-day:hover:not(.momot-cal-empty):not(.momot-cal-past) { background: #f9e8e8; }
.momot-cal-day.momot-cal-empty { cursor: default; }
.momot-cal-day.momot-cal-past { color: #ccc; cursor: default; }
.momot-cal-day.momot-cal-selected { border-color: var(--mr-red); background: #fff0f0; font-weight: 700; }
.momot-cal-demand {
  display: block;
  height: 3px;
  border-radius: 2px;
  margin-top: 4px;
}
.momot-cal-demand.green  { background: #4caf50; }
.momot-cal-demand.orange { background: #ff9800; }
.momot-cal-demand.red    { background: #e53935; }
.momot-cal-surcharge {
  font-size: .65rem;
  color: #ff9800;
  display: block;
}

.momot-cal-legend {
  display: flex;
  gap: 12px;
  font-size: .82rem;
  color: #666;
  margin-top: 14px;
  flex-wrap: wrap;
}
.momot-cal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 3px;
}
.momot-cal-dot.green  { background: #4caf50; }
.momot-cal-dot.orange { background: #ff9800; }
.momot-cal-dot.red    { background: #e53935; }

.momot-cal-selected {
  margin-top: 12px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--mr-dark);
}
.momot-cal-warning {
  background: #ff9800;
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: .88rem;
}

/* ---- Contact ---- */
.momot-contact-block { margin-bottom: 20px; }
.momot-contact-block h3 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; color: var(--mr-dark); }
.momot-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: #555;
  cursor: pointer;
}
.momot-checkbox-label input { margin-top: 3px; flex-shrink: 0; }
.momot-checkbox-label a { color: var(--mr-red); }

/* ---- Footer ---- */
.momot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--mr-border);
  background: #fff;
  position: sticky;
  bottom: 0;
  border-radius: 0 0 16px 16px;
  gap: 12px;
}
.momot-price-box { min-width: 160px; }
.momot-price-label { font-size: .82rem; color: #555; font-weight: 600; }
.momot-price-value { font-size: 1.5rem; font-weight: 800; color: var(--mr-red); }
.momot-price-note { font-size: .72rem; color: #999; margin-top: 2px; }

.momot-nav-btns { display: flex; gap: 12px; align-items: center; }
.momot-btn-back {
  background: none;
  border: none;
  color: var(--mr-red);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 16px;
}
.momot-btn-back:hover { text-decoration: underline; }
.momot-btn-next {
  background: var(--mr-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.momot-btn-next:hover { background: #b5101a; }
.momot-btn-next:disabled { background: #ccc; cursor: default; }

/* ---- Alerts ---- */
.momot-error {
  background: #fce8e8;
  color: #c0392b;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: .9rem;
}
.momot-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .momot-steps { gap: 2px; }
  .momot-step-label { display: none; }
  .momot-step-dash { display: none; }
  .momot-row { flex-direction: column; }
  .momot-col-sm { flex: 1; }
  .momot-entry-badges { flex-direction: column; gap: 8px; }
  .momot-footer { flex-direction: column; align-items: flex-start; }
  .momot-price-value { font-size: 1.25rem; }
}

/* ---- Address autocomplete dropdown ---- */
.momot-ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--mr-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 99999;
  max-height: 280px;
  overflow-y: auto;
}
.momot-ac-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: .92rem;
  border-bottom: 1px solid #f0f0f0;
  outline: none;
  transition: background .12s;
}
.momot-ac-item:last-child { border-bottom: none; }
.momot-ac-item:hover,
.momot-ac-item:focus { background: #fff5f5; }
.momot-ac-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.momot-ac-text { line-height: 1.4; }
.momot-ac-text strong { color: var(--mr-dark); }
.momot-ac-text small { color: #888; font-size: .82rem; }

/* Valid-address checkmark */
.momot-valid-icon {
  position: absolute;
  right: 48px;
  font-size: 1rem;
  color: #3a7d44;
  pointer-events: none;
}

/* Calendar day number */
.momot-cal-num { display: block; font-size: .95rem; }
