:root {
  --red: #d9001a;
  --red-dark: #a80014;
  --ink: #1d1d1f;
  --muted: #5f6368;
  --line: #e6e6e9;
  --paper: #ffffff;
  --soft: #f6f6f7;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; }
.brand img { width: 34px; height: 34px; }
nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--red); }
@media (max-width: 720px) { nav a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff !important; text-decoration: none;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 18px rgba(217,0,26,.25);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn.big { padding: 15px 28px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: none; border: 1px solid var(--line); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: url("assets/hintergrund.jpg") center right / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 42%, rgba(255,255,255,.2) 75%, rgba(255,255,255,0) 100%);
}
.hero .wrap { position: relative; padding: 96px 20px 110px; }
.hero .icon { width: 88px; height: 88px; margin-bottom: 18px; animation: float 3.6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.02em; max-width: 620px; }
.hero h1 span { color: var(--red); }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero small { display: block; margin-top: 14px; color: var(--muted); }
@media (max-width: 720px) {
  .hero::before { background: rgba(255,255,255,.9); }
  .hero .wrap { padding: 64px 16px 72px; }
}

/* Abschnitte */
section { padding: 84px 0; }
section.soft { background: var(--soft); }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.015em; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 40px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(217,0,26,.08); color: var(--red); font-size: 21px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* Schritte */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.step h3 { margin: 6px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); }

/* Animierte Formular-Demo */
.demo { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; width: max-content; max-width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.06); margin-top: 28px; }
.demo .lines { display: grid; gap: 8px; }
.demo .l { height: 8px; width: 170px; border-radius: 99px; background: #ececee; position: relative; overflow: hidden; }
.demo .l:nth-child(3) { width: 120px; }
.demo .l::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); animation: fill 4s infinite; }
.demo .l:nth-child(2)::after { animation-name: fill2; }
.demo .l:nth-child(3)::after { animation-name: fill3; }
.demo .ok { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 15px; animation: ok 4s infinite; }
@keyframes fill  { 0% { transform: scaleX(0); } 20%,100% { transform: scaleX(1); } }
@keyframes fill2 { 0%,22% { transform: scaleX(0); } 42%,100% { transform: scaleX(1); } }
@keyframes fill3 { 0%,45% { transform: scaleX(0); } 65%,100% { transform: scaleX(1); } }
@keyframes ok { 0%,66% { transform: scale(.3); opacity: 0; } 74%,100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } .demo .l::after { transform: scaleX(1); } .demo .ok { opacity: 1; } }

/* Download-Box */
.download {
  border-radius: 24px; padding: 48px 32px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 20px 50px rgba(168,0,20,.25);
}
.download h2 { color: #fff; }
.download p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; font-size: 18px; }
.download .btn { background: #fff; color: var(--red) !important; box-shadow: none; }
.download .btn:hover { background: #fff3f4; }
.download small { display: block; margin-top: 16px; color: rgba(255,255,255,.85); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
details summary::after { content: "+"; float: right; color: var(--red); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Fußzeile */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer .by { display: flex; align-items: center; gap: 10px; }
footer .by img { width: 30px; height: 30px; border-radius: 50%; }
footer nav { margin: 0; gap: 18px; }
footer nav a { color: var(--muted); font-size: 14px; }
footer .note { flex-basis: 100%; font-size: 13px; }

/* Rechtstexte */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: 36px; margin: 0 0 18px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
