:root {
  /* Gleiche Farben wie die App (src/lib/colors.ts) */
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f2742;
  --muted: #6b7a8c;
  --main: #1a4268;    /* App-Blau: Buttons + Links */
  --accent: #f59e0b;  /* App-Akzent (Amber): der "Blitz" / Highlights */
  --border: #d7e0ea;
  --soft: #eef3f8;    /* App-Softton: Nav-Hover/Active */
}

* { box-sizing: border-box; }

/* Scrollbar-Platz immer reservieren -> kein horizontaler Sprung beim Wechsel zwischen
   kurzen (ohne Scrollbalken) und langen (mit Scrollbalken) Seiten. */
html { scrollbar-gutter: stable; }

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(15, 39, 66, 0.05);
}

header.site .wrap {
  padding: 13px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

header.site .nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
header.site .nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  transition: background .15s ease, color .15s ease;
}
header.site .nav a:hover,
header.site .nav a.active {
  color: var(--main);
  background: var(--soft);
}

/* ── Mobile: Hamburger-Menü (CSS-only, kein JS) ──────────────────── */
.nav-toggle { display: none; }
.nav-burger { display: none; }

@media (max-width: 640px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 9px;
    cursor: pointer;
  }
  .nav-burger:active { background: var(--soft); }
  .nav-burger span {
    width: 22px;
    height: 2px;
    background: var(--main);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Nav wird zum aufklappenden Dropdown-Panel unter dem Header */
  header.site .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 18px rgba(15, 39, 66, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
  }
  .nav-toggle:checked ~ .nav {
    max-height: 360px;
    padding-top: 8px;
    padding-bottom: 14px;
  }
  header.site .nav a { padding: 13px 14px; font-size: 15px; }
}

.brand {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.brand .bolt { color: var(--accent); }

h1 { font-size: 30px; line-height: 1.25; margin: 8px 0 4px; }
h2 { font-size: 21px; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 4px; }

.stand { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

p, li { font-size: 16px; }
a { color: var(--main); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 32px;
}

.lead { font-size: 18px; color: var(--muted); }

.cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--main);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
}

.features { list-style: none; padding: 0; margin: 20px 0 0; }
.features li { padding: 8px 0; border-top: 1px solid var(--border); }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { padding: 24px 20px; display: flex; flex-wrap: wrap; gap: 16px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--main); }
