:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --soft: #e8efff;
  --text: #121826;
  --muted: #5b6475;
  --line: #dfe4ec;
  --accent: #1e5eff;
  --accent-text: #ffffff;
  --green: #18a34a;
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1220;
    --surface: #171c2c;
    --soft: #1c2747;
    --text: #eef1f7;
    --muted: #a3acbf;
    --line: #2a3145;
    --accent: #5b8cff;
    --accent-text: #0e1220;
    --green: #3cc56f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1220; --surface: #171c2c; --soft: #1c2747; --text: #eef1f7; --muted: #a3acbf;
  --line: #2a3145; --accent: #5b8cff; --accent-text: #0e1220; --green: #3cc56f; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Kopfzeile */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.links { display: flex; gap: 22px; }
nav.links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.links a:hover { color: var(--text); }
@media (max-width: 680px) { nav.links { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-text); padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.phones { position: relative; display: flex; justify-content: center; }
.phone { width: 260px; border-radius: 34px; box-shadow: 0 30px 60px -20px rgba(18, 40, 100, 0.35); border: 1px solid var(--line); }
.phones .phone + .phone { position: absolute; width: 210px; right: 0; bottom: -20px; transform: rotate(4deg); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones .phone + .phone { display: none; }
}

/* Abschnitte */
section { padding: 56px 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 8px; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--accent); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }

/* Funktion mit Bild */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.flip .text { order: 2; }
.feature .shots { display: flex; gap: 16px; justify-content: center; }
.feature .shots img { width: 230px; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 20px 40px -18px rgba(18, 40, 100, 0.3); }
.feature ul { padding: 0; margin: 0; list-style: none; }
.feature li { padding-left: 30px; position: relative; margin: 10px 0; }
.feature li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); }
.feature li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .text { order: 0; }
  .feature .shots img { width: 46%; max-width: 230px; }
}
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Galerie */
.gallery { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: 0 0 200px; scroll-snap-align: start; }
.gallery img { border-radius: 24px; border: 1px solid var(--line); }
.gallery figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }

/* Fragen */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Aufruf */
.cta { text-align: center; background: var(--accent); color: var(--accent-text); border-radius: 28px; padding: 48px 20px; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0 0 24px; opacity: 0.9; }
.cta .btn { background: var(--accent-text); color: var(--accent); }

/* Fußzeile */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

/* Rechtstexte */
.legal { max-width: 760px; padding: 48px 16px 64px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 6px; line-height: 1.15; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal .stand { color: var(--muted); margin: 0 0 24px; }
.todo { background: #fff4c2; color: #5a4300; padding: 0 4px; border-radius: 4px; }
.box { background: var(--soft); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
.steps { counter-reset: s; padding: 0; list-style: none; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; margin: 14px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
