/* Mutatio Homepage – Stylesheet (Basis identisch mit der ViaMagna-Homepage)
   Farben und Schrift 1:1 aus der App übernommen (siehe DESIGN.md).
   Die Schrift liegt lokal unter assets/fonts/ (nicht bei Google geladen),
   damit beim Seitenaufruf keine Daten an Dritte übertragen werden. */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-variable.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --vm-background: #F4F5F2;
  --vm-surface: #FFFFFF;
  --vm-text: #101828;
  --vm-text-muted: #5B6472;
  --vm-line: #E3E6E0;
  --vm-accent: #0B7A75;
  --vm-accent-soft: #E1F1EF;
  --vm-warning-bg: #FEF1DC;
  --vm-warning-text: #7A3E00;
  --vm-warning-icon: #B45309;

  --vm-radius-card: 24px;
  --vm-radius-button: 18px;
  --vm-radius-chip: 999px;
  --vm-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
  --vm-max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--vm-background);
  color: var(--vm-text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--vm-accent);
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
  color: var(--vm-text-muted);
}

.vm-wrap {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.vm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 242, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--vm-line);
}

.vm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--vm-max-width);
  margin: 0 auto;
  gap: 16px;
}

.vm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--vm-text);
}

.vm-logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.vm-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.vm-nav a {
  color: var(--vm-text);
  font-weight: 600;
  font-size: 15px;
}

.vm-nav a:hover {
  color: var(--vm-accent);
}

.vm-lang-switch {
  display: flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.vm-lang-switch a {
  padding: 6px 11px;
  border-radius: var(--vm-radius-chip);
  color: var(--vm-text-muted);
  border: 1px solid var(--vm-line);
}

.vm-lang-switch a.active {
  background: var(--vm-accent);
  color: #fff;
  border-color: var(--vm-accent);
}

.vm-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.vm-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--vm-text);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.vm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--vm-radius-button);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vm-btn-primary {
  background: var(--vm-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 122, 117, 0.28);
}

.vm-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 122, 117, 0.34);
}

.vm-btn-secondary {
  background: var(--vm-surface);
  color: var(--vm-text);
  border: 1px solid var(--vm-line);
}

.vm-btn-secondary:hover {
  border-color: var(--vm-accent);
  color: var(--vm-accent);
}

.vm-btn-ghost {
  background: transparent;
  color: var(--vm-accent);
  padding: 14px 8px;
}

/* ---------- Hero ---------- */

.vm-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.vm-hero-eyebrow {
  display: inline-block;
  background: var(--vm-accent-soft);
  color: var(--vm-accent);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--vm-radius-chip);
  margin-bottom: 20px;
}

.vm-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.vm-hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 620px;
  margin: 0 auto 32px;
}

.vm-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.vm-hero-shot {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--vm-shadow);
  border: 10px solid #0E1013;
}

/* ---------- Audience switch (Startseite) ---------- */

.vm-audience {
  padding: 24px 0 72px;
}

.vm-audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vm-audience-card {
  background: var(--vm-surface);
  border-radius: var(--vm-radius-card);
  padding: 36px;
  box-shadow: var(--vm-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--vm-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vm-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.12);
}

.vm-audience-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--vm-accent-soft);
  color: var(--vm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-audience-icon svg {
  width: 28px;
  height: 28px;
}

.vm-audience-card h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.vm-audience-card .vm-btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

.vm-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.vm-eyebrow {
  display: inline-block;
  color: var(--vm-accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ---------- Feature grid ---------- */

.vm-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.vm-feature-card {
  background: var(--vm-surface);
  border: 1px solid var(--vm-line);
  border-radius: var(--vm-radius-card);
  padding: 28px;
}

.vm-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--vm-accent-soft);
  color: var(--vm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.vm-feature-icon svg {
  width: 22px;
  height: 22px;
}

.vm-feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.vm-feature-card p {
  margin: 0;
  font-size: 15px;
}

/* ---------- Showcase (Bild + Text abwechselnd) ---------- */

.vm-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}

.vm-showcase.vm-reverse .vm-showcase-text {
  order: 2;
}

.vm-showcase.vm-reverse .vm-showcase-img {
  order: 1;
}

.vm-showcase-img img {
  border-radius: 28px;
  box-shadow: var(--vm-shadow);
  border: 1px solid var(--vm-line);
}

.vm-showcase-text h2 {
  font-size: 30px;
}

.vm-check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vm-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--vm-text);
}

.vm-check-list li::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--vm-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.2 11.5L13 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Beispieldaten-Hinweis ---------- */

.vm-note {
  background: var(--vm-warning-bg);
  color: var(--vm-warning-text);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.vm-note strong {
  font-weight: 800;
}

/* ---------- CTA Band ---------- */

.vm-cta {
  background: var(--vm-accent);
  border-radius: var(--vm-radius-card);
  padding: 56px;
  text-align: center;
  color: #fff;
  margin: 24px auto 0;
}

.vm-cta h2 {
  color: #fff;
  font-size: 30px;
}

.vm-cta p {
  color: rgba(255,255,255,0.86);
  max-width: 520px;
  margin: 0 auto 28px;
}

.vm-cta .vm-btn-secondary {
  background: #fff;
  border: none;
}

/* ---------- App-Store Hinweis ---------- */

.vm-store-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 18px;
  border-radius: var(--vm-radius-chip);
  font-size: 13px;
  font-weight: 700;
  margin-top: 18px;
  color: #fff;
}

.vm-cta-contact {
  display: block;
  margin-top: 16px;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vm-cta-contact:hover {
  color: #fff;
}

/* ---------- Footer ---------- */

.vm-footer {
  border-top: 1px solid var(--vm-line);
  padding: 44px 0 32px;
  margin-top: 40px;
}

.vm-footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.vm-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--vm-text-muted);
}

.vm-footer-links a {
  color: var(--vm-text-muted);
}

.vm-footer-links a:hover {
  color: var(--vm-accent);
}

.vm-footer-copy {
  font-size: 13px;
  color: var(--vm-text-muted);
}

/* ---------- Simple pages (Impressum/Datenschutz) ---------- */

.vm-legal {
  padding: 56px 0 80px;
}

.vm-legal h1 {
  font-size: 32px;
}

.vm-legal h2 {
  font-size: 19px;
  margin-top: 36px;
}

.vm-legal p, .vm-legal li {
  color: var(--vm-text);
  font-size: 15px;
}

.vm-legal-card {
  background: var(--vm-surface);
  border: 1px solid var(--vm-line);
  border-radius: var(--vm-radius-card);
  padding: 32px;
  max-width: 720px;
}

/* ---------- Pricing-ish tier badges (optional reuse) ---------- */

.vm-badge {
  display: inline-block;
  background: var(--vm-accent-soft);
  color: var(--vm-accent);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--vm-radius-chip);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .vm-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    background: var(--vm-surface);
    border: 1px solid var(--vm-line);
    border-radius: 20px;
    box-shadow: var(--vm-shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 16px;
    display: none;
  }

  .vm-nav.vm-open {
    display: flex;
  }

  .vm-nav-toggle {
    display: block;
  }

  .vm-audience-grid,
  .vm-features,
  .vm-showcase {
    grid-template-columns: 1fr;
  }

  .vm-showcase.vm-reverse .vm-showcase-text,
  .vm-showcase.vm-reverse .vm-showcase-img {
    order: initial;
  }

  .vm-cta {
    padding: 36px 24px;
  }

  .vm-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .vm-header-inner {
    padding: 14px 16px;
  }

  .vm-wrap {
    padding: 0 16px;
  }

  .vm-hero {
    padding: 48px 0 40px;
  }

  .vm-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =====================================================================
   Mutatio – Ergänzungen (Preissuche, Karte, Rechner)
   ===================================================================== */

.vm-logo img { border-radius: 9px; }

.mu-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

.mu-name {
  background: var(--vm-surface);
  border: 1px solid var(--vm-line);
  border-radius: var(--vm-radius-card);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.mu-name blockquote {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--vm-text);
  border-left: 4px solid var(--vm-accent);
  padding-left: 20px;
}
.mu-route {
  display: flex; align-items: center; gap: 0; margin-top: 8px;
}
.mu-route-stop { text-align: center; flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--vm-text-muted); }
.mu-route-stop i {
  display: block; width: 18px; height: 18px; border-radius: 50%; margin: 0 auto 6px;
  border: 3px solid var(--vm-accent); background: var(--vm-surface);
}
.mu-route-stop.mu-big i { width: 26px; height: 26px; background: var(--vm-accent); }
.mu-route-line { flex: 1; height: 4px; background: var(--vm-line); margin-bottom: 22px; border-radius: 2px; }

/* ---------- Preissuche ---------- */

.mu-app { padding: 24px 0 40px; }

.mu-search {
  display: flex; gap: 10px; flex-wrap: wrap;
  background: var(--vm-surface); border: 1px solid var(--vm-line);
  border-radius: var(--vm-radius-card); padding: 14px; box-shadow: var(--vm-shadow);
}
.mu-search input[type=search] {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 16px; font-weight: 600;
  border: 1px solid var(--vm-line); border-radius: 14px; padding: 12px 16px;
  background: var(--vm-background); color: var(--vm-text);
}
.mu-search input:focus { outline: 2px solid var(--vm-accent); outline-offset: 1px; }
.mu-search .vm-btn { padding: 12px 20px; font-size: 15px; }

.mu-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; align-items: center; }
.mu-chip {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: var(--vm-radius-chip);
  border: 1px solid var(--vm-line); background: var(--vm-surface); color: var(--vm-text);
  min-height: 40px;
}
.mu-chip[aria-pressed=true] { background: var(--vm-accent); border-color: var(--vm-accent); color: #fff; }
.mu-select {
  font: inherit; font-size: 14px; font-weight: 700; padding: 9px 12px; min-height: 40px;
  border-radius: var(--vm-radius-chip); border: 1px solid var(--vm-line); background: var(--vm-surface); color: var(--vm-text);
}
.mu-spacer { flex: 1; }

.mu-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }

.mu-map {
  position: sticky; top: 90px;
  height: 560px; border-radius: var(--vm-radius-card); overflow: hidden;
  background: #EDF0E9; border: 1px solid var(--vm-line);
}
.mu-map-consent {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px; gap: 8px;
}
.mu-map-consent p { font-size: 14px; max-width: 360px; }

.mu-pin {
  background: var(--vm-surface); color: var(--vm-text); font-weight: 800; font-size: 13px;
  padding: 4px 9px; border-radius: 999px; border: 2px solid var(--vm-accent);
  box-shadow: 0 4px 10px rgba(16,24,40,.18); white-space: nowrap; transform: translate(-50%, -50%);
  display: inline-block;
}
.mu-pin.mu-cheapest { background: var(--vm-accent); color: #fff; }
.mu-pin.mu-closed { border-color: #B8BEC6; color: var(--vm-text-muted); }
.mu-pin-me { width: 18px; height: 18px; border-radius: 50%; background: #2F6FED; border: 3px solid #fff; box-shadow: 0 0 0 2px #2F6FED; transform: translate(-50%, -50%); }

.mu-list { display: flex; flex-direction: column; gap: 12px; }
.mu-summary { font-size: 14px; color: var(--vm-text-muted); font-weight: 600; margin: 0 4px 4px; }

.mu-card {
  background: var(--vm-surface); border: 1px solid var(--vm-line); border-radius: 20px;
  padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; cursor: pointer;
}
.mu-card.mu-active { border: 2px solid var(--vm-accent); padding: 17px 19px; }
.mu-card h3 { font-size: 16px; margin: 0; }
.mu-card .mu-addr { font-size: 13px; color: var(--vm-text-muted); margin: 0; }
.mu-price { font-size: 30px; font-weight: 800; text-align: right; line-height: 1; letter-spacing: -0.02em; }
.mu-price sup { font-size: 15px; }
.mu-price-label { font-size: 12px; color: var(--vm-text-muted); text-align: right; font-weight: 600; }
.mu-meta { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.mu-tag {
  font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: var(--vm-background); color: var(--vm-text-muted);
}
.mu-tag.mu-good { background: var(--vm-accent-soft); color: var(--vm-accent); }
.mu-tag.mu-bad { background: var(--vm-warning-bg); color: var(--vm-warning-text); }
.mu-tag.mu-ref { background: #EEF2F7; color: #344054; }

.mu-source {
  font-size: 12.5px; color: var(--vm-text-muted); margin-top: 16px; line-height: 1.5;
}
.mu-source a { font-weight: 700; }

.mu-empty { text-align: center; padding: 40px 20px; background: var(--vm-surface); border-radius: 20px; border: 1px dashed var(--vm-line); }

/* ---------- Einstellungen (Fahrzeugdaten) ---------- */

.mu-dialog {
  border: none; border-radius: 28px; padding: 0; max-width: 460px; width: calc(100% - 32px);
  box-shadow: 0 30px 80px rgba(16,24,40,.25); color: var(--vm-text);
}
.mu-dialog::backdrop { background: rgba(16,24,40,.35); }
.mu-dialog form { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.mu-dialog h2 { font-size: 22px; margin: 0; }
.mu-field label { display: block; font-size: 13px; font-weight: 700; color: var(--vm-text-muted); margin-bottom: 6px; }
.mu-field .mu-input-row { display: flex; align-items: center; gap: 8px; }
.mu-field input {
  flex: 1; font: inherit; font-size: 20px; font-weight: 800; padding: 10px 14px; min-width: 0;
  border: 1px solid var(--vm-line); border-radius: 14px; background: var(--vm-background); color: var(--vm-text);
}
.mu-field input:invalid { border-color: #E8B04F; }
.mu-field .mu-unit { font-weight: 700; color: var(--vm-text-muted); font-size: 14px; min-width: 70px; }
.mu-field small { display: block; font-size: 12.5px; color: var(--vm-text-muted); margin-top: 4px; }
.mu-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }

.mu-banner { margin-bottom: 16px; }

@media (max-width: 860px) {
  .mu-layout, .mu-name { grid-template-columns: 1fr; }
  .mu-map { position: relative; top: 0; height: 360px; }
  .mu-name { padding: 28px; }
}
.mu-pin sup { font-size: 9px; }

/* ---------- Preisverlauf ---------- */
.mu-history { grid-column: 1 / -1; border-top: 1px solid var(--vm-line); margin-top: 12px; padding-top: 14px; cursor: default; }
.mu-history h4 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.mu-hist-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.mu-chip-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.mu-hist-read { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; font-size: 13px; color: var(--vm-text-muted); font-weight: 600; }
.mu-price-md { font-size: 24px; text-align: left; }
.mu-price-sm { font-size: 18px; text-align: left; display: block; }
.mu-price-md sup { font-size: 12px; } .mu-price-sm sup { font-size: 10px; }
.mu-hist-chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.mu-hist-chart .mu-grid { stroke: var(--vm-line); stroke-width: 1; }
.mu-hist-chart .mu-axis { fill: var(--vm-text-muted); font-size: 12px; font-family: inherit; }
.mu-hist-chart .mu-band { fill: var(--vm-accent-soft); }
.mu-hist-chart .mu-line { fill: none; stroke: var(--vm-accent); stroke-width: 2; stroke-linejoin: round; }
.mu-hist-chart .mu-cursor { stroke: var(--vm-text-muted); stroke-opacity: .5; }
.mu-hist-chart .mu-dot { fill: var(--vm-accent); }
.mu-hist-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 6px; }
.mu-hist-stats small { display: block; font-size: 12px; color: var(--vm-text-muted); font-weight: 600; }
.mu-hist-note { font-size: 12.5px; margin: 8px 0 0; }
