/* =========================================================================
   BEV-App · Interne Verteilseite
   Design-Tokens übernommen aus dem App-Theme "BEV 100"
   (Königsblau-Gradient + Gold + Wappen-Rot + Cremepapier)
   ========================================================================= */

:root {
  /* Marke */
  --primary:       #003F7F;
  --primary-dark:  #002B57;
  --primary-light: #0066B3;
  --primary-soft:  rgba(0, 63, 127, 0.10);

  /* Akzente */
  --action:     #C8242C;   /* Wappen-Rot */
  --action-dark:#9F1B22;
  --energy:     #D4A93C;   /* Gold */
  --energy-soft:rgba(212, 169, 60, 0.18);

  /* Flächen */
  --bg:        #FAF7EE;    /* Cremepapier */
  --surface:   #FFFFFF;
  --ice:       #F5F8FC;

  /* Text */
  --text:       #0F2654;
  --text-subtle:#1A3A75;
  --muted:      #6B7B9E;
  --border:     #DCE3EE;
  --border-light:#EDF1F7;

  /* Hero-Gradient */
  --hero-from: #0066B3;
  --hero-to:   #002B57;

  /* Maße */
  --radius:   16px;
  --radius-lg:24px;
  --radius-pill:999px;
  --maxw: 1140px;

  --shadow-sm: 0 2px 8px rgba(15, 38, 84, 0.07);
  --shadow-md: 0 8px 28px rgba(15, 38, 84, 0.12);
  --shadow-lg: 0 18px 48px rgba(0, 43, 87, 0.22);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

h1, h2, h3 { line-height: 1.18; color: var(--text); letter-spacing: -0.01em; }
section h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 620px; margin-top: 14px; }

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---- Divider / Rink-Line Motiv (wie im App-Login) ---------------------- */
.rinkline {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px 0;
}
.rinkline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--energy); }
.rinkline .bar { width: 56px; height: 2px; background: var(--energy); border-radius: 2px; }

/* ====================== Buttons ======================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--gold { background: var(--energy); color: var(--primary-dark); }
.btn--ghost {
  background: rgba(255,255,255,0.12); color: #fff;
  border-color: rgba(255,255,255,0.32);
}
.btn--ghost:hover { background: rgba(255,255,255,0.22); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn--outline:hover { background: var(--primary-soft); }

/* ====================== Header / Nav =================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 238, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--text); }
.brand img { height: 38px; width: auto; }
.brand span { font-size: 18px; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--text-subtle); font-weight: 600; font-size: 15px; }
.nav__links a:hover { color: var(--primary); text-decoration: none; }
.nav__cta { background: var(--action); color: #fff; padding: 10px 20px; border-radius: var(--radius-pill); }
.nav__cta:hover { background: var(--action-dark); color:#fff; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; }
@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ====================== Hero ========================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(212,169,60,0.20), transparent 60%),
    linear-gradient(160deg, var(--hero-from) 0%, var(--primary) 42%, var(--hero-to) 100%);
  color: #fff;
}
/* Bayerisches Rauten-Motiv (dezent, wie im App-Login) */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.6) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.6) 75%),
    linear-gradient(45deg, rgba(255,255,255,.6) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.6) 75%);
  background-size: 54px 54px;
  background-position: 0 0, 27px 27px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 70%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-top: 84px; padding-bottom: 96px;
}
.hero__logo { height: 96px; width: auto; margin-bottom: 22px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; }
.hero h1 .hl { color: var(--energy); }
.hero__lead { color: rgba(255,255,255,.86); font-size: clamp(17px, 2vw, 20px); margin-top: 18px; max-width: 540px; }
.hero__tag {
  display: inline-block; margin-top: 22px; font-weight: 800; letter-spacing: .04em;
  color: var(--energy); font-size: 18px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.72); display:flex; align-items:center; gap:8px; }

/* Phone-Mockup */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; max-width: 78vw;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #14182a, #05070f);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,.06) inset;
}
.phone::after { /* Notch */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; border-radius: 14px; background: #05070f; z-index: 2;
}
.phone img { border-radius: 32px; width: 100%; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; padding-top: 60px; padding-bottom: 72px; }
  .hero__lead, .hero__device { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__note { justify-content: center; }
}

/* ====================== Store-Badges =================================== */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; padding: 11px 20px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
}
.store-badge:hover { text-decoration: none; transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .l1 { font-size: 11px; opacity: .82; line-height: 1.1; }
.store-badge .l2 { font-size: 18px; font-weight: 700; line-height: 1.1; }

/* ====================== Feature-Karten ================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card--gold .card__icon { background: var(--energy-soft); color: var(--action-dark); }
.card--red  .card__icon { background: rgba(200,36,44,.10); color: var(--action); }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }

/* ====================== Sparten ======================================= */
.sparten { background: var(--primary); color: #fff; position: relative; overflow:hidden; }
.sparten::before {
  content:""; position:absolute; inset:0; opacity:.08;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 48px 48px; background-position: 0 0, 24px 24px;
}
.sparten .wrap { position: relative; z-index: 1; }
.sparten h2 { color: #fff; }
.sparten .section-sub { color: rgba(255,255,255,.78); }
.sparten-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; margin-top: 44px; }
.sparte {
  background: var(--surface); border-radius: var(--radius); padding: 22px 12px; text-align: center;
  box-shadow: var(--shadow-md);
}
.sparte img { height: 56px; width: auto; margin: 0 auto 12px; }
.sparte span { display: block; font-weight: 700; font-size: 15px; color: var(--text); }
.sparte small { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 880px) { .sparten-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .sparten-row { grid-template-columns: 1fr; } }

/* ====================== Screenshots-Galerie =========================== */
.shots { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.shots .phone { width: 260px; }

/* ====================== Installation ================================== */
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.install-card {
  background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.install-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.install-card__head svg { width: 34px; height: 34px; }
.install-card h3 { font-size: 22px; }
.steps { list-style: none; counter-reset: step; }
.steps li {
  position: relative; padding: 10px 0 10px 44px; color: var(--text-subtle); font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 9px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.install-card .btn { margin-top: 22px; width: 100%; }
.install-version {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; font-size: 13px; color: var(--muted);
}
.install-version__badge {
  display: inline-block; font-weight: 700; font-size: 12px;
  color: var(--primary); background: var(--primary-soft);
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--energy-soft); border: 1px solid rgba(212,169,60,.4);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 40px;
}
.callout svg { width: 24px; height: 24px; flex: none; color: var(--action-dark); margin-top: 2px; }
.callout p { font-size: 15px; color: var(--text-subtle); }
@media (max-width: 880px) { .install-grid { grid-template-columns: 1fr; } }

/* ====================== Support / FAQ ================================= */
.support { background: var(--ice); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.support-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 34px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.support-card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary); color: #fff; margin-bottom: 20px;
}
.support-card__icon svg { width: 30px; height: 30px; }
.support-card h3 { font-size: 22px; margin-bottom: 10px; }
.support-card p { color: var(--muted); margin-bottom: 22px; flex: 1; }
.support-card .btn { align-self: flex-start; }
@media (max-width: 880px) { .support-grid { grid-template-columns: 1fr; } }

/* ====================== CTA-Band ====================================== */
.cta-band {
  background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
  color: #fff; text-align: center; border-radius: var(--radius-lg);
  padding: 56px 28px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.84); margin: 14px auto 0; max-width: 520px; }
.cta-band .hero__actions { justify-content: center; }

/* ====================== Footer ======================================== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 56px 0 30px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 320px; }
.footer__brand img { height: 54px; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; color: rgba(255,255,255,.66); }
.footer__col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer__col a { display: block; color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 10px; }
.footer__col a:hover { color: var(--energy); text-decoration: none; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.footer__bottom a { color: rgba(255,255,255,.72); }

/* ====================== Reveal-Animation ============================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
