:root {
  --bg: #f6f3ef;
  --text: #1c1b1a;
  --muted: #6b665f;
  --faint: #9a948c;
  --tile: rgba(255, 255, 255, 0.55);
  --tile-line: rgba(255, 255, 255, 0.85);
  --line: rgba(28, 27, 26, 0.08);
  --ink: #1c1b1a;
  --on-ink: #f6f3ef;
  --lav: #c9bdf7;
  --peach: #f4bba1;
  --mint: #a6dade;
  --accent: #5b4fc4;
  --shadow-lg: 0 50px 100px -40px rgba(45, 32, 80, 0.45), 0 20px 40px -24px rgba(45, 32, 80, 0.25);
  --shadow-sm: 0 12px 30px -14px rgba(45, 32, 80, 0.3), 0 2px 6px rgba(45, 32, 80, 0.06);
  --radius: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416;
    --text: #efece8;
    --muted: #a7a19a;
    --faint: #7a756f;
    --tile: rgba(255, 255, 255, 0.05);
    --tile-line: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.1);
    --ink: #efece8;
    --on-ink: #131416;
    --lav: #3a3070;
    --peach: #5e3526;
    --mint: #1c4a4f;
    --accent: #b6acff;
    --shadow-lg: 0 50px 100px -40px rgba(0, 0, 0, 0.9);
    --shadow-sm: 0 12px 30px -14px rgba(0, 0, 0, 0.7);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }

/* Hintergrund: weiche Farbflächen wie in der App, dazu feines Korn */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.7; animation: drift 24s ease-in-out infinite alternate; will-change: transform; }
.ambient .a { width: 58vmax; height: 58vmax; left: -20vmax; top: -22vmax; background: var(--lav); }
.ambient .b { width: 48vmax; height: 48vmax; right: -18vmax; top: -14vmax; background: var(--peach); animation-duration: 30s; }
.ambient .c { width: 52vmax; height: 52vmax; right: -22vmax; bottom: -26vmax; background: var(--mint); animation-duration: 27s; }
@keyframes drift { to { transform: translate(3vmax, 3vmax) scale(1.05); } }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Navigation: schwebende Glasleiste */
nav.top {
  position: sticky; top: 14px; z-index: 10; margin: 14px auto 0; max-width: 1160px;
  display: flex; align-items: center; gap: 22px; padding: 10px 12px 10px 14px; font-size: 15px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--tile-line); border-radius: 999px;
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); box-shadow: var(--shadow-sm);
}
nav.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; font-size: 17px; letter-spacing: -0.01em; }
nav.top .brand img { width: 30px; height: 30px; border-radius: 8px; }
nav.top a:not(.brand):not(.btn) { color: var(--muted); text-decoration: none; }
nav.top a:not(.brand):not(.btn):hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.btn.ghost { background: var(--tile); color: var(--text); border: 1px solid var(--tile-line); }
.btn.lg { padding: 15px 24px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { text-align: center; padding: 90px 0 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--tile); border: 1px solid var(--tile-line); }
.badge b { background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.hero h1 { font-size: clamp(48px, 9vw, 104px); line-height: 0.98; letter-spacing: -0.045em; margin: 26px auto 22px; font-weight: 800; max-width: none; }
.hero h1 .soft { white-space: nowrap; }
.hero h1 .soft { background: linear-gradient(100deg, #8a7be8 0%, #e3906e 55%, #4fb0b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 34em; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Bühne: Gerät mit schwebenden Karten */
.stage { position: relative; max-width: 900px; margin: 70px auto 0; height: 640px; }
.device {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 340px; aspect-ratio: 1320 / 2868;
  border-radius: 56px; padding: 11px; background: linear-gradient(145deg, #3a3836, #121110); box-shadow: var(--shadow-lg);
}
.device::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.14); pointer-events: none; }
.device img { width: 100%; height: 100%; border-radius: 45px; object-fit: cover; }
/* Gerät unten weich ausblenden – ohne Farbfläche, die auf dem Verlauf als Kasten sichtbar wäre */
.device { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); }
.float {
  position: absolute; z-index: 2; background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1px solid var(--tile-line);
  border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow-sm); text-align: left; font-size: 14px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: bob 6s ease-in-out infinite;
}
.float.left { left: 0; top: 150px; width: 290px; }
.float.right { right: 0; top: 70px; width: 270px; animation-delay: -3s; }
.float.bottom { right: 40px; top: 360px; width: 240px; animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.float .label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.float .row { display: flex; align-items: center; gap: 10px; }
.float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 17px; }
.float strong { display: block; font-size: 15px; }
.float .warn { color: #9a5a12; font-weight: 600; font-size: 13px; }
@media (prefers-color-scheme: dark) { .float .warn { color: #e7b36b; } }

/* Eingabe-Nachbau mit Chips */
.typer { display: flex; align-items: center; gap: 8px; background: var(--tile); border: 1px solid var(--line); border-radius: 999px; padding: 9px 9px 9px 16px; font-size: 16px; }
.typer .txt { flex: 1; white-space: nowrap; overflow: hidden; min-height: 1.4em; }
.typer .txt::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typer .send { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; flex: none; font-weight: 700; }
.chipline { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; min-height: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--tile); border: 1px solid var(--line); font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.chip.on { opacity: 1; transform: none; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Abschnitte */
section { padding: 90px 0; }
.head { max-width: 640px; margin: 0 0 44px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 16px; font-weight: 800; }
.head p { color: var(--muted); font-size: 19px; margin: 0; }

/* Bento-Raster */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tile); border: 1px solid var(--tile-line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-height: 420px;
}
.tile .copy { padding: 28px 28px 0; }
.tile h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.tile .shot { margin: 26px 28px 0; border-radius: 20px 20px 0 0; overflow: hidden; box-shadow: 0 -1px 0 var(--line), var(--shadow-sm); flex: 1; min-height: 220px;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.tile .shot img { width: 100%; }
.tile .demo { padding: 26px 28px 30px; margin-top: auto; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
.tall { grid-row: span 2; }

.avatars { display: flex; align-items: center; margin: 26px 28px 30px; gap: 14px; margin-top: auto; }
.avatars span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #fff; box-shadow: 0 0 0 4px var(--bg); }
.avatars span + span { margin-left: -22px; }
.avatars small { color: var(--muted); font-size: 14px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pills span { padding: 10px 16px; border-radius: 999px; background: var(--tile); border: 1px solid var(--tile-line); font-size: 15px; }

/* Datenschutz-Statement */
.statement { text-align: center; }
.statement h2 { font-size: clamp(38px, 6.5vw, 76px); max-width: 14ch; margin: 0 auto 20px; }
.statement p { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0 auto; }
.statement .pills { justify-content: center; margin-top: 28px; }

.cta { text-align: center; padding: 60px 0 90px; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.cta h2 { margin-top: 26px; }
.cta p { color: var(--muted); margin: 0 0 26px; }

footer { padding: 28px 0 50px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer span:first-child { margin-right: auto; }

/* Rechtstexte */
main.legal { max-width: 720px; margin: 0 auto; padding: 0 20px 64px; }
main.legal nav.top { margin-bottom: 30px; }
main.legal h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; margin: 20px 0 8px; }
main.legal h2 { font-size: 21px; margin: 36px 0 8px; letter-spacing: -0.01em; font-weight: 700; }
main.legal .muted { color: var(--muted); }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }

/* Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ambient span, .float, .typer .txt::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .s2, .s3, .s4 { grid-column: span 2; }
  .tall { grid-row: auto; }
  .stage { height: 560px; }
  .float.left { left: -6px; top: 330px; width: 250px; }
  .float.right { right: -6px; top: 40px; width: 230px; }
  .float.bottom { display: none; }
  nav.top a.hide-sm { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 56px; }
  .device { width: 280px; border-radius: 46px; padding: 9px; }
  .device img { border-radius: 37px; }
  .stage { height: 500px; margin-top: 50px; }
  .float { font-size: 13px; padding: 12px 13px; }
  .float.left { width: 230px; top: 300px; }
  .float.right { width: 210px; top: 20px; }
  .tile { min-height: 0; }
  .tile .copy { padding: 22px 22px 0; }
  .tile .shot { margin: 20px 22px 0; max-height: 320px; }
  .tile .demo { padding: 20px 22px 24px; }
  section { padding: 64px 0; }
}
