/* ViaMagna Homepage – gemeinsames Stylesheet
   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;
  }
}
