/* ElefantApp – Marketing-Site
   Palette und Formensprache aus der App (constants/colors.js):
   Primär #14d91d, Hintergrund #F8F9FA, Text #212529, Karten weiß,
   Kachel-Blau #0092cc, Radius 8–12, dezente Schatten. */

:root {
  --primary: #14d91d;
  --primary-dark: #0fb316;
  --secondary: #28a745;
  --blue: #0092cc;
  --blue-dark: #007aa3;
  --warning: #ffc107;
  --accent: #dc3545;
  --green-text: #0a7d0f; /* Grün mit ausreichend Kontrast (5.3:1) für Text auf hellem Grund */
  --bg: #f8f9fa;
  --card: #ffffff;
  --text: #212529;
  --muted: #5f676e;
  --border: #dee2e6;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(33, 37, 41, 0.08), 0 4px 16px rgba(33, 37, 41, 0.06);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-dark); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
}

.brand svg { width: 44px; height: 28px; color: var(--primary); }

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.site-header nav a:hover { color: var(--text); }

.site-header nav a.nav-cta {
  color: #fff;
}

.lang-toggle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.lang-toggle:hover { color: var(--text); border-color: var(--muted); }

@media (max-width: 640px) {
  .site-header nav a:not(.nav-cta):not(.lang-toggle) { display: none; }
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #063b08;
  box-shadow: 0 2px 8px rgba(20, 217, 29, 0.35);
}

.btn-primary:hover { background: var(--primary-dark); color: #052e06; }

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--muted); }

.btn-small { padding: 8px 16px; font-size: 14px; border-radius: 8px; }

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

.hero { padding: 72px 0 56px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero h1 .green { color: var(--green-text); }

.hero .sub {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}

.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero .cta-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.hero-logo {
  color: var(--primary);
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { max-width: 220px; }
}

/* ---------- Abschnitte ---------- */

section { padding: 56px 0; }

section[id] { scroll-margin-top: 72px; }

.section-head { max-width: 44em; margin-bottom: 36px; }

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-text);
  margin-bottom: 8px;
}

/* ---------- Feature-Grid ---------- */

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

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  color: #fff;
}

.icon-green { background: var(--primary); }
.icon-blue { background: var(--blue); }
.icon-gray { background: #666666; }
.icon-orange { background: #f0932b; }

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

.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Deep-Dive (Screenshot + Text) ---------- */

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

.showcase:nth-of-type(even) .shot { order: -1; }

@media (max-width: 820px) {
  .showcase { grid-template-columns: 1fr; gap: 24px; }
  .showcase:nth-of-type(even) .shot { order: 0; }
}

.showcase h3 { font-size: 24px; margin: 0 0 12px; }

.showcase p { color: var(--muted); margin: 0 0 12px; }

.showcase ul {
  color: var(--muted);
  padding-left: 20px;
  margin: 0;
}

.showcase li { margin-bottom: 6px; }

.showcase li strong { color: var(--text); }

.shot {
  margin: 0 auto;
  max-width: 320px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--card);
}

.shot img { width: 100%; }

.shot-caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Chips (Facetten-Optik) ---------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.chip.on {
  background: rgba(20, 217, 29, 0.12);
  border-color: var(--primary);
  color: #0a7d0f;
  font-weight: 600;
}

/* ---------- Privacy-Band ---------- */

.privacy-band {
  background: var(--text);
  color: #e9ecef;
}

.privacy-band .section-head h2 { color: #fff; }

.privacy-band .section-head p { color: #adb5bd; }

.privacy-band .kicker { color: var(--primary); }

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

@media (max-width: 820px) { .privacy-grid { grid-template-columns: 1fr; } }

.privacy-grid .cell h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: #fff;
}

.privacy-grid .cell p { margin: 0; color: #adb5bd; font-size: 15px; }

/* ---------- Abschluss-CTA ---------- */

.final-cta { text-align: center; padding: 72px 0; }

.final-cta h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 12px; }

.final-cta p {
  color: var(--muted);
  max-width: 38em;
  margin: 0 auto 28px;
}

.final-cta .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.site-footer nav { display: flex; gap: 16px; margin-left: auto; }

.site-footer a { color: var(--muted); text-decoration: none; }

.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }

.legal h1 { font-size: 30px; margin-bottom: 6px; }

.legal .legal-hint { font-style: italic; color: var(--muted); }

.legal h2 { font-size: 22px; margin-top: 40px; }

.legal h3 { font-size: 17px; margin-top: 26px; }

.legal hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
