/* ==========================================================================
   MOYA Elements Design System · v1.0.0
   Tokens + Basisstile + Komponenten. Schrift: Barlow (Google Fonts)
   <link href="https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600&display=swap" rel="stylesheet">
   ========================================================================== */

:root {
  /* Marke */
  --moya-petrol: #052630;
  --moya-petrol-deep: #031B22;
  --moya-petrol-800: #0B3A48;
  --moya-petrol-700: #0E4757;
  --moya-petrol-grid: #0A3846;
  --moya-gold: #E3C671;
  --moya-gold-text: #8A6A1F;
  --moya-gold-line: #C9A43E;

  /* Neutral */
  --moya-white: #FFFFFF;
  --moya-surface: #F3F5F6;
  --moya-border: #DCE2E4;
  --moya-border-strong: #B9C5C9;
  --moya-text: #052630;
  --moya-text-body: #34494F;
  --moya-text-muted: #4A5D63;
  --moya-on-dark: #C7D3D6;
  --moya-on-dark-muted: #8FA6AC;
  --moya-line-on-dark: rgba(255, 255, 255, 0.18);

  /* Semantik */
  --moya-risk: #A23B2A;
  --moya-seal-inner: #9CC3CC;

  /* Typografie */
  --moya-font: 'Barlow', 'DIN Alternate', 'Helvetica Neue', sans-serif;
  --moya-fs-display: 60px;
  --moya-fs-h2: 44px;
  --moya-fs-h3: 28px;
  --moya-fs-title: 20px;
  --moya-fs-lead: 19px;
  --moya-fs-body: 17px;
  --moya-fs-small: 15px;
  --moya-fs-caption: 14px;
  --moya-fs-overline: 13px;

  /* Abstände & Layout */
  --moya-container: 1320px;
  --moya-gutter: 40px;
  --moya-section-y: 112px;
  --moya-gap-s: 12px;
  --moya-gap-m: 24px;
  --moya-gap-l: 56px;
  --moya-gap-xl: 72px;

  /* Form & Bewegung */
  --moya-radius: 0;
  --moya-shadow-menu: 0 30px 60px rgba(3, 27, 34, 0.14);
  --moya-shadow-float: 0 20px 50px rgba(0, 0, 0, 0.3);
  --moya-ease: cubic-bezier(.2, .7, .2, 1);
  --moya-t-fast: .2s;
  --moya-t-base: .3s;
  --moya-t-slow: 1.1s;
}

/* ---------- Basis ---------- */
.moya, .moya * { box-sizing: border-box; }
.moya { margin: 0; font-family: var(--moya-font); font-size: var(--moya-fs-body); line-height: 1.6; color: var(--moya-text); background: var(--moya-white); }
.moya a { color: var(--moya-petrol); }
.moya a:hover { color: #0B4A5C; }
.moya-container { max-width: var(--moya-container); margin: 0 auto; padding: 0 var(--moya-gutter); }
.moya-section { padding: var(--moya-section-y) 0; }
.moya-section--surface { background: var(--moya-surface); }
.moya-section--dark { background: var(--moya-petrol); color: var(--moya-white); }
.moya-section--grid { background-color: var(--moya-petrol); background-image: linear-gradient(var(--moya-petrol-grid) 1px, transparent 1px), linear-gradient(90deg, var(--moya-petrol-grid) 1px, transparent 1px); background-size: 40px 40px; color: var(--moya-white); }
.moya-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: var(--moya-gap-l) var(--moya-gap-xl); align-items: center; }
.moya-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: var(--moya-gap-m); }
.moya-stack { display: flex; flex-direction: column; gap: 22px; }

/* ---------- Typografie ---------- */
.moya-display { margin: 0; font-size: var(--moya-fs-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.moya-h2 { margin: 0; font-size: var(--moya-fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.moya-h3 { margin: 0; font-size: var(--moya-fs-h3); font-weight: 600; line-height: 1.15; }
.moya-title { font-size: var(--moya-fs-title); font-weight: 600; line-height: 1.3; }
.moya-lead { margin: 0; font-size: var(--moya-fs-lead); font-weight: 300; line-height: 1.6; color: var(--moya-text-body); }
.moya-section--dark .moya-lead, .moya-section--grid .moya-lead { color: var(--moya-on-dark); }
.moya-muted { color: var(--moya-text-muted); }
.moya-caption { font-size: var(--moya-fs-caption); color: var(--moya-text-muted); }
.moya-overline { font-size: var(--moya-fs-overline); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--moya-text-muted); }
.moya-stat { font-size: 44px; font-weight: 500; line-height: 1; }

/* Sektions-Label: 32 px Goldlinie + Text */
.moya-label { display: inline-flex; align-items: center; gap: 12px; font-size: var(--moya-fs-small); font-weight: 600; color: var(--moya-text-muted); }
.moya-label::before { content: ""; width: 32px; height: 2px; background: var(--moya-gold); }
.moya-section--dark .moya-label, .moya-section--grid .moya-label { color: var(--moya-gold); }

/* ---------- Buttons ---------- */
.moya-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 15px 26px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; border-radius: var(--moya-radius); cursor: pointer; transition: background var(--moya-t-fast) ease, color var(--moya-t-fast) ease, border-color var(--moya-t-fast) ease; }
.moya-btn--primary { background: var(--moya-petrol); color: var(--moya-white) !important; }
.moya-btn--primary:hover { background: var(--moya-petrol-800); }
.moya-btn--secondary { background: var(--moya-white); color: var(--moya-petrol) !important; border-color: var(--moya-border-strong); font-weight: 500; }
.moya-btn--secondary:hover { background: #E9EEF0; }
.moya-btn--inverse { background: var(--moya-white); color: var(--moya-petrol) !important; }
.moya-btn--inverse:hover { background: #E9EEF0; }
.moya-btn--ghost-dark { background: transparent; color: var(--moya-white) !important; border-color: rgba(255,255,255,.5); font-weight: 500; }
.moya-btn--ghost-dark:hover { border-color: var(--moya-white); }
.moya-btn:focus-visible { outline: 2px solid var(--moya-gold); outline-offset: 3px; }

/* Textlink mit Pfeil */
.moya-arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; }
.moya-arrow-link .moya-arrow, .moya-tile .moya-arrow { transition: transform var(--moya-t-base) ease; }
.moya-arrow-link:hover .moya-arrow, .moya-tile:hover .moya-arrow { transform: translateX(6px); }

/* ---------- Navigation ---------- */
.moya-topbar { background: var(--moya-petrol-deep); color: var(--moya-on-dark); font-size: 14px; }
.moya-topbar a { color: var(--moya-on-dark); text-decoration: none; padding: 12px 0; display: inline-block; }
.moya-topbar a[aria-current] { color: var(--moya-white); border-bottom: 2px solid var(--moya-gold); }
.moya-header { background: var(--moya-white); border-bottom: 1px solid var(--moya-border); }
.moya-header__inner { min-height: 92px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; }
.moya-nav { display: flex; flex-wrap: wrap; gap: 4px 36px; font-size: 17px; font-weight: 500; }
.moya-nav a { position: relative; text-decoration: none; padding: 14px 0; color: var(--moya-petrol); }
.moya-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--moya-gold); transform: scaleX(0); transform-origin: left; transition: transform var(--moya-t-base) ease; }
.moya-nav a:hover::after, .moya-nav a[aria-current]::after { transform: scaleX(1); }
.moya-megamenu { background: var(--moya-white); border-top: 1px solid var(--moya-border); box-shadow: var(--moya-shadow-menu); }
.moya-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--moya-text-muted); }
.moya-breadcrumb a { color: var(--moya-text-muted); text-decoration: none; }

/* ---------- Karten & Kacheln ---------- */
.moya-card { border: 1px solid var(--moya-border); padding: 40px; display: flex; flex-direction: column; gap: 16px; background: var(--moya-white); }
.moya-tile { display: flex; flex-direction: column; background: var(--moya-white); text-decoration: none; color: var(--moya-petrol); }
.moya-tile__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--moya-surface); }
.moya-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--moya-t-slow) var(--moya-ease); }
.moya-tile:hover .moya-tile__media img { transform: scale(1.04); }
.moya-tile__body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 10px; }
.moya-tile--dark, .moya a.moya-tile--dark { background: var(--moya-petrol); color: var(--moya-white); padding: 32px 30px; min-height: 180px; justify-content: space-between; }

/* Kennzahlen-/„Auf einen Blick“-Leiste */
.moya-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-top: 2px solid var(--moya-petrol); }
.moya-facts > * { padding: 26px 24px 0 0; display: flex; flex-direction: column; gap: 6px; }

/* Merkmals-Raster 2×2 mit Haarlinien */
.moya-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--moya-border); }
.moya-features > * { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--moya-border); display: flex; flex-direction: column; gap: 4px; }
.moya-features > *:nth-child(even) { padding: 20px 0 20px 16px; border-left: 1px solid var(--moya-border); }
.moya-section--dark .moya-features, .moya-section--dark .moya-features > * { border-color: var(--moya-line-on-dark); }

/* Chips */
.moya-chip { display: inline-block; font-size: 14px; font-weight: 500; padding: 8px 12px; background: var(--moya-surface); }

/* ---------- Tabs / Segmente ---------- */
.moya-tabs { align-self: flex-start; display: inline-flex; flex-wrap: wrap; border: 1px solid var(--moya-petrol); background: var(--moya-white); }
.moya-tabs button { font: inherit; font-size: 15px; font-weight: 500; min-height: 48px; padding: 12px 20px; border: none; background: transparent; color: var(--moya-petrol); cursor: pointer; transition: background var(--moya-t-fast) ease, color var(--moya-t-fast) ease; }
.moya-tabs button[aria-selected="true"], .moya-tabs button[aria-pressed="true"] { background: var(--moya-petrol); color: var(--moya-white); }

/* Filterleiste (Referenzen) */
.moya-filter { display: flex; flex-wrap: wrap; gap: 0 28px; }
.moya-filter button { font: inherit; font-size: 16px; font-weight: 500; min-height: 60px; padding: 20px 0 18px; border: none; border-bottom: 2px solid transparent; background: transparent; color: var(--moya-text-muted); cursor: pointer; }
.moya-filter button[aria-selected="true"] { color: var(--moya-petrol); font-weight: 600; border-bottom-color: var(--moya-gold); }
.moya-filter .moya-count { font-size: 13px; margin-left: 6px; color: var(--moya-gold-text); }

/* ---------- Vergleich „Häufig am Markt“ vs. „MOYA-Standard“ ---------- */
.moya-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.moya-compare__side { padding: 40px 44px; display: flex; flex-direction: column; gap: 18px; }
.moya-compare__side--market { background: var(--moya-white); border: 1px solid var(--moya-border); }
.moya-compare__side--moya { background: var(--moya-petrol); color: var(--moya-white); }
.moya-compare ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--moya-border); }
.moya-compare__side--moya ul { border-color: var(--moya-line-on-dark); }
.moya-compare li { padding: 14px 0; border-bottom: 1px solid var(--moya-border); display: flex; gap: 14px; align-items: baseline; }
.moya-compare__side--moya li { border-color: var(--moya-line-on-dark); }
.moya-compare__side--market li::before { content: "✕"; color: var(--moya-risk); font-weight: 600; }
.moya-compare__side--moya li::before { content: "✓"; color: var(--moya-gold); font-weight: 600; }

/* ---------- FAQ ---------- */
.moya-faq { border-top: 1px solid var(--moya-border); }
.moya-faq details { border-bottom: 1px solid var(--moya-border); }
.moya-faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 600; }
.moya-faq summary::-webkit-details-marker { display: none; }
.moya-faq summary::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; transition: transform var(--moya-t-base) ease; }
.moya-faq details[open] summary::after { transform: rotate(45deg); }
.moya-faq details p { margin: 0 0 22px; color: var(--moya-text-muted); }

/* ---------- Formulare ---------- */
.moya-field { display: flex; flex-direction: column; gap: 8px; }
.moya-field label { font-size: 15px; font-weight: 600; }
.moya-field label .req { color: var(--moya-gold-text); }
.moya-input, .moya-select, .moya-textarea { font: inherit; font-size: 16px; padding: 14px; min-height: 50px; width: 100%; border: 1px solid var(--moya-border-strong); border-radius: var(--moya-radius); background: var(--moya-white); color: var(--moya-petrol); }
.moya-input:focus, .moya-select:focus, .moya-textarea:focus { outline: 2px solid var(--moya-petrol); outline-offset: 0; border-color: var(--moya-petrol); }
.moya-check-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--moya-border-strong); background: var(--moya-white); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.moya-check-chip[aria-pressed="true"] { background: var(--moya-petrol); color: var(--moya-white); border-color: var(--moya-petrol); }

/* ---------- Partnerlogos ---------- */
.moya-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); border-top: 1px solid var(--moya-border); border-left: 1px solid var(--moya-border); }
.moya-logos > * { height: 132px; border-right: 1px solid var(--moya-border); border-bottom: 1px solid var(--moya-border); display: flex; align-items: center; justify-content: center; padding: 24px; }
.moya-logos img { max-width: 80%; max-height: 52px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .35s ease, opacity .35s ease; }
.moya-logos > *:hover img { filter: none; opacity: 1; }

/* ---------- CTA-Band & Footer ---------- */
.moya-cta { background: var(--moya-petrol); color: var(--moya-white); padding: 96px 0; }
.moya-footer { background: var(--moya-petrol-deep); color: var(--moya-on-dark); font-size: 15px; }
.moya-footer a { color: var(--moya-on-dark); text-decoration: none; }
.moya-footer strong { color: var(--moya-white); font-weight: 600; }

/* ---------- Barrierefreiheit ---------- */
@media (prefers-reduced-motion: reduce) { .moya *, .moya *::before, .moya *::after { animation: none !important; transition: none !important; } }
@media (max-width: 900px) { :root { --moya-fs-display: 42px; --moya-fs-h2: 34px; --moya-section-y: 80px; --moya-gutter: 20px; } }
