/* miavie Cookie Consent — CI: Lavendel / Pink */
#mv-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  border-top: 1px solid rgba(45, 44, 64, 0.1);
  box-shadow: 0 -8px 32px rgba(102, 46, 147, 0.12);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Poppins', sans-serif;
}

#mv-cookie-banner .mv-cb-text {
  flex: 1;
  min-width: 0;
}

#mv-cookie-banner .mv-cb-title {
  font-size: 15px;
  font-weight: 600;
  color: #2d2c40;
  margin: 0 0 6px;
}

#mv-cookie-banner .mv-cb-desc {
  font-size: 13px;
  color: #7a7992;
  margin: 0;
  line-height: 1.55;
}

#mv-cookie-banner .mv-cb-desc a {
  color: #8b7ec8;
  text-decoration: underline;
}

#mv-cookie-banner .mv-cb-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mv-cb-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, background-position 0.4s ease, border-color 0.2s ease, color 0.2s ease;
  text-transform: none;
  line-height: 1.2;
}

.mv-cb-btn--settings,
.mv-cb-btn--necessary {
  background: transparent;
  border: 2px solid #c5b8e8;
  color: #2d2c40;
}

.mv-cb-btn--settings:hover,
.mv-cb-btn--necessary:hover {
  border-color: #aaaaff;
  color: #2d2c40;
}

.mv-cb-btn--accept {
  background-image: linear-gradient(to right, #aaaaff 0%, #fbbaf8 51%, #aaaaff 100%);
  background-size: 200% auto;
  border: none;
  color: #fff;
}

.mv-cb-btn--accept:hover {
  background-position: right center;
  color: #fff;
}

/* Settings Overlay */
#mv-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(45, 44, 64, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

#mv-cookie-overlay.active {
  display: flex;
}

#mv-cookie-modal {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 720px;
  padding: 28px 28px 24px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 -12px 40px rgba(102, 46, 147, 0.18);
}

#mv-cookie-modal h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2d2c40;
  margin: 0 0 8px;
}

#mv-cookie-modal .mv-cm-desc {
  font-size: 13px;
  color: #7a7992;
  margin: 0 0 20px;
  line-height: 1.55;
}

#mv-cookie-modal .mv-cm-desc a {
  color: #8b7ec8;
  text-decoration: underline;
}

.mv-cm-category {
  background: #f7f6fb;
  border: 1px solid rgba(45, 44, 64, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mv-cm-category-info {
  flex: 1;
}

.mv-cm-category-info strong {
  font-size: 14px;
  font-weight: 600;
  color: #2d2c40;
  display: block;
  margin-bottom: 3px;
}

.mv-cm-category-info span {
  font-size: 12px;
  color: #7a7992;
  line-height: 1.45;
}

.mv-cm-always {
  font-size: 11px;
  font-weight: 600;
  color: #8b7ec8;
  background: rgba(170, 170, 255, 0.18);
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.mv-cm-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.mv-cm-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mv-cm-toggle-slider {
  position: absolute;
  inset: 0;
  background: #dcd7ea;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mv-cm-toggle input:checked + .mv-cm-toggle-slider {
  background: linear-gradient(to right, #aaaaff, #fbbaf8);
}

.mv-cm-toggle-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(45, 44, 64, 0.2);
}

.mv-cm-toggle input:checked + .mv-cm-toggle-slider:before {
  transform: translateX(18px);
}

.mv-cm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Maps placeholder */
.mv-maps-consent {
  width: 100%;
  min-height: 280px;
  margin: 8px 0 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3f1fa 0%, #faf5fb 100%);
  border: 1px solid rgba(45, 44, 64, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  box-sizing: border-box;
}

.mv-maps-consent__inner {
  max-width: 420px;
}

.mv-maps-consent__title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #2d2c40;
  margin: 0 0 10px;
}

.mv-maps-consent__text {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #7a7992;
  line-height: 1.55;
  margin: 0 0 18px;
}

.mv-maps-consent__btn {
  display: inline-block;
}

@media (max-width: 767px) {
  #mv-cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }

  #mv-cookie-banner .mv-cb-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .mv-cb-btn {
    flex: 1 1 calc(50% - 5px);
    text-align: center;
    padding: 11px 12px;
  }

  .mv-cb-btn--accept {
    flex: 1 1 100%;
  }

  #mv-cookie-modal {
    padding: 22px 16px 18px;
  }

  .mv-cm-footer {
    flex-direction: column;
  }

  .mv-cm-footer .mv-cb-btn {
    width: 100%;
  }

  .mv-maps-consent {
    min-height: 240px;
    padding: 28px 18px;
  }
}

/* Cookie-Banner darf Footer-Links nicht überdecken */
body.mv-cookie-open {
  padding-bottom: 180px;
}

@media (max-width: 767px) {
  body.mv-cookie-open {
    padding-bottom: 260px;
  }

  body.mv-cookie-open #back-top {
    bottom: 280px;
  }
}
