/* ============================================================
   CarGuard – Website Styles
   Dark & Premium, passend zur App. Scroll-Storytelling.
   ============================================================ */

:root {
  /* Farb-Tokens (konsistent zur iOS-App) */
  --bg:        #06080F;
  --bg-2:      #0B0F1C;
  --surface:   #121829;
  --surface-2: #1A2238;
  --line:      rgba(255,255,255,.08);
  --text:      #F4F7FC;
  --muted:     #93A0B8;
  --muted-2:   #5C6982;

  --accent:    #34E2A4;   /* Mint – "geschützt" */
  --accent-2:  #2D9CDB;   /* Blau */
  --danger:    #FF4D5E;   /* Alarm-Rot */
  --grad:      linear-gradient(120deg, var(--accent), var(--accent-2));
  --grad-soft: linear-gradient(120deg, rgba(52,226,164,.16), rgba(45,156,219,.16));

  --radius:    22px;
  --radius-sm: 14px;
  --maxw:      1120px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: rgba(52,226,164,.3); }

/* ---------- Layout-Helfer ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px; border-radius: 100px;
  background: var(--grad-soft); border: 1px solid rgba(52,226,164,.22);
  margin-bottom: 22px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  padding: 15px 28px; border-radius: 100px; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #04130D;
  box-shadow: 0 10px 30px -8px rgba(52,226,164,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(52,226,164,.6); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* App-Store-Badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 16px;
  background: #fff; color: #000;
  transition: transform .25s ease;
}
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge .sub { font-size: 11px; line-height: 1; opacity: .7; }
.appstore-badge .main { font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }

/* ---------- Header ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(6,8,15,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 9px 18px; font-size: .9rem; }
@media (max-width: 720px) { .nav-links .hide-mobile { display: none; } }

/* ---------- Animierter Glow-Hintergrund ---------- */
.glow-field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: drift 22s ease-in-out infinite alternate;
}
.glow.g1 { width: 560px; height: 560px; background: rgba(52,226,164,.32);  top: -160px; left: -120px; }
.glow.g2 { width: 620px; height: 620px; background: rgba(45,156,219,.30); top: 30%; right: -200px; animation-delay: -7s; }
.glow.g3 { width: 480px; height: 480px; background: rgba(124,77,255,.22); bottom: -160px; left: 25%; animation-delay: -13s; }
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px, -50px) scale(1.15); }
}

/* ---------- Reveal-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
section { position: relative; padding: 110px 0; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head .lead { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-trust { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted-2); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-phone { margin: 10px auto 0; }
}

/* ---------- iPhone-Mockup ---------- */
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19.5; margin: 0 auto;
  background: linear-gradient(160deg, #1c2436, #0c1120);
  border-radius: 44px; padding: 12px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.phone::before { /* Dynamic Island */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #000; border-radius: 100px; z-index: 4;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #0e1626 0%, #07090f 70%);
  display: flex; flex-direction: column;
}
.hero-phone .phone { transform: rotate(2deg); }

/* Mock-UI im Screen */
.scr { padding: 58px 18px 22px; display: flex; flex-direction: column; height: 100%; gap: 14px; }
.scr-status { display: flex; align-items: center; gap: 10px; }
.scr-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.scr-status .t { font-size: 13px; font-weight: 600; }
.scr-status .s { font-size: 11px; color: var(--muted); }
.scr-shield {
  margin: 6px auto; width: 92px; height: 92px;
  display: grid; place-items: center;
  background: var(--grad-soft); border-radius: 26px; border: 1px solid rgba(52,226,164,.25);
}
.scr-shield svg { width: 50px; height: 50px; }
.scr-bars { display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.scr-bar { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.scr-bar .track { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; position: relative; }
.scr-bar .fill { position: absolute; inset: 0; transform-origin: left; border-radius: 6px; background: var(--grad); }
.scr-bar.b1 .fill { animation: lvl 2.4s ease-in-out infinite; }
.scr-bar.b2 .fill { animation: lvl 3.1s ease-in-out infinite .4s; background: linear-gradient(120deg,#2D9CDB,#7C4DFF); }
@keyframes lvl { 0%,100% { transform: scaleX(.2); } 50% { transform: scaleX(.85); } }
.scr-cta { margin-top: 6px; text-align: center; font-size: 12px; font-weight: 600; color: #04130D; background: var(--grad); border-radius: 12px; padding: 11px; }

/* Alarm-Variante des Screens */
.scr.alarm { background: radial-gradient(120% 80% at 50% 0%, rgba(255,77,94,.25) 0%, transparent 60%); }
.scr.alarm .scr-dot { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.scr.alarm .scr-shield { background: rgba(255,77,94,.14); border-color: rgba(255,77,94,.35); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative;
}
.step .num {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem; color: #04130D; background: var(--grad); margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Scroll-Story (sticky Feature-Tour) ---------- */
.story { padding: 0; }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.story-panels { display: flex; flex-direction: column; }
.panel { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.panel .eyebrow { align-self: flex-start; }
.panel h2 { margin-bottom: 18px; }
.panel p { color: var(--muted); font-size: 1.12rem; max-width: 460px; }
.panel ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.panel li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 1rem; }
.panel li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* Story-Visual wechselt mit aktivem Panel */
.story-visual { position: relative; }
.story-card {
  position: absolute; inset: 0; opacity: 0; transform: scale(.96) translateY(14px);
  transition: opacity .6s ease, transform .6s ease; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.story-card.active { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; }
  .story-sticky { position: static; height: auto; margin-bottom: 10px; }
  .story-visual { height: 560px; }
  .panel { min-height: auto; padding: 30px 0; }
}

/* Feature-Mockup-Tiles (im Sticky-Visual) */
.tile {
  width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
}
.tile-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(52,226,164,.22); margin-bottom: 20px; }
.tile-ico svg { width: 30px; height: 30px; color: var(--accent); }
.tile h4 { font-size: 1.15rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .95rem; }
.tile-mini-bars { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.tile-mini-bars .track { height: 7px; border-radius: 7px; background: rgba(255,255,255,.07); overflow: hidden; }
.tile-mini-bars .track i { display: block; height: 100%; border-radius: 7px; background: var(--grad); }

/* ---------- Feature-Grid (kompakt) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(52,226,164,.3); background: var(--surface-2); }
.feature .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; color: var(--accent); }
.feature h3 { font-size: 1.18rem; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 14px; }
.priv {
  text-align: center; padding: 30px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.priv .ico { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); }
.priv .ico svg { width: 24px; height: 24px; color: var(--accent); }
.priv strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.priv span { color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Pricing / CTA ---------- */
.price-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(52,226,164,.25); border-radius: 28px; padding: 50px 36px;
  box-shadow: 0 40px 90px -40px rgba(52,226,164,.3);
}
.price-amount { font-size: clamp(3rem, 8vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; margin: 10px 0 4px; }
.price-card .once { color: var(--muted); font-size: 1.05rem; }
.price-list { list-style: none; margin: 28px 0; display: inline-flex; flex-direction: column; gap: 12px; text-align: left; }
.price-list li { display: flex; align-items: center; gap: 11px; }
.price-list svg { width: 20px; height: 20px; color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2);
}
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: .92rem; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: .87rem; }

/* ============================================================
   Legal / Support – Innenseiten
   ============================================================ */
.page { padding-top: 140px; padding-bottom: 100px; min-height: 70vh; }
.page .wrap { max-width: 820px; }
.page-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; margin-bottom: 30px; transition: color .2s; }
.page-back:hover { color: var(--accent); }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.page > .wrap > p.updated { color: var(--muted-2); font-size: .9rem; margin-bottom: 44px; }
.prose h2 { font-size: 1.5rem; margin: 42px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 1.02rem; margin-bottom: 12px; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.card-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin: 24px 0;
}
.card-block p { margin-bottom: 6px; }

/* FAQ */
.faq { margin-top: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 24px; margin-bottom: 14px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--accent); font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; margin: 0; }
.contact-card {
  text-align: center; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(52,226,164,.22); border-radius: 24px; padding: 44px 30px; margin-top: 40px;
}
.contact-card .ico { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 17px; display: grid; place-items: center; background: var(--grad-soft); }
.contact-card .ico svg { width: 30px; height: 30px; color: var(--accent); }
.contact-card a.mail { font-size: 1.4rem; font-weight: 700; }
