/* Wavewrite – Webseite. Farben aus dem App-Icon (Blau #2636e6 → Violett #792be2).
   Systemschriften statt Webfonts: keine Verbindung zu Dritten, schnell, Apple-typisch. */

:root {
  --bg: #07071a;
  --bg-raised: #0e0e27;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5ff;
  --muted: #a6a6c8;
  --faint: #6f6f93;
  --blue: #3340ff;
  --violet: #8a2be2;
  --accent: #8f8cff;
  --gradient: linear-gradient(135deg, #3340ff 0%, #6a36f0 55%, #8a2be2 100%);
  --radius: 22px;
  --gutter: clamp(16px, 5vw, 40px);
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.gradient-text {
  background: linear-gradient(100deg, #7d86ff 0%, #a77bff 50%, #c38bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

.section-title { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 700; max-width: 16ch; }
.section-lead { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; margin-top: 20px; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 26, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
/* Sprachschalter wie ein iOS-Segment: DE | EN, die aktive Seite trägt den Farbverlauf. */
.lang-toggle {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--border);
}
.nav__links .lang-toggle a {
  min-width: 36px; padding: 3px 9px; border-radius: 999px; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links .lang-toggle a:hover { color: var(--text); }
.nav__links .lang-toggle a[aria-current] {
  color: #fff; background: var(--gradient); box-shadow: 0 4px 14px -4px rgba(90, 60, 240, 0.8);
}

@media (max-width: 640px) {
  .nav__secondary { display: none; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0 clamp(64px, 10vw, 120px); }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 520px at 78% 42%, rgba(106, 54, 240, 0.42), transparent 70%),
    radial-gradient(circle 440px at 12% 8%, rgba(51, 64, 255, 0.32), transparent 70%);
}
.hero__inner {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: clamp(48px, 7vw, 72px); align-items: center;
}
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.15fr 0.85fr; } }

.hero__title { font-size: clamp(2.7rem, 8vw, 5.4rem); font-weight: 800; letter-spacing: -0.045em; }
.hero__lead { margin-top: 24px; font-size: clamp(1.08rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 36ch; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #000; border-radius: 14px; padding: 9px 20px 9px 16px;
  line-height: 1.1; font-weight: 600; font-size: 20px; letter-spacing: -0.02em;
}
.store-badge svg { width: 26px; height: 26px; fill: currentColor; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.button--ghost { border: 1px solid var(--border); background: var(--surface); }
.button--ghost:hover { background: var(--surface-strong); border-color: rgba(255, 255, 255, 0.18); }
.button:active { transform: scale(0.98); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 30px 0 0; }
.pills li {
  font-size: 14px; color: var(--muted);
  padding: 6px 14px 6px 30px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%238f8cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 10px 50% / 14px no-repeat;
}

/* ---------- Phone mock ---------- */

.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.2;
  border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #2a2a44, #111122 40%, #1c1c30);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 100px -20px rgba(80, 60, 240, 0.55),
    0 20px 40px -10px rgba(0, 0, 0, 0.6);
  transform: rotate(-2deg);
}
.phone__screen {
  height: 100%; border-radius: 42px; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, #1b1a4a 0%, #0b0b1f 60%);
  display: flex; flex-direction: column; padding: 70px 22px 26px;
}
.phone__island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 118px; height: 34px; border-radius: 20px; background: #000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
}
.phone__rec { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; animation: blink 1.4s infinite; }
.phone__time { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: #ff6b61; }
.phone__title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }

.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 90px; margin: 26px 0 18px; }
.wave span {
  width: 5px; height: 100%; border-radius: 3px; background: var(--gradient);
  transform-origin: center; animation: wave 1.2s var(--ease) infinite alternate;
}
.wave span:nth-child(3n) { animation-duration: 0.9s; }
.wave span:nth-child(3n+1) { animation-duration: 1.35s; }
.wave span:nth-child(4n) { animation-delay: -0.4s; }
.wave span:nth-child(5n) { animation-delay: -0.8s; }
.wave span:nth-child(7n) { animation-delay: -0.2s; }

.phone__live { font-size: 17px; line-height: 1.5; min-height: 7.5em; color: #e9e9ff; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--accent); animation: blink 1s steps(1) infinite; }

/* Drei gleich breite Spalten: Der Aufnahmeknopf sitzt immer exakt in der Mitte. */
.phone__bar { margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.phone__chip {
  font-size: 11px; line-height: 1.25; text-align: center; color: var(--muted);
  border: 1px solid var(--border); border-radius: 12px; padding: 4px 8px;
}
.phone__chip:first-child { justify-self: start; }
.phone__chip:last-child { justify-self: end; }
.phone__stop {
  width: 62px; height: 62px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.85);
  display: grid; place-items: center;
}
.phone__stop span { width: 22px; height: 22px; border-radius: 6px; background: #ff3b30; }

@keyframes wave { from { transform: scaleY(0.12); } to { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Welle → Text ---------- */

.morph { padding: clamp(40px, 8vw, 100px) 0; text-align: center; }
.morph__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.morph .section-title, .morph .section-lead { margin-left: auto; margin-right: auto; }

.logo-anim { position: relative; width: 220px; height: 150px; margin-bottom: 40px; }
.logo-anim span { position: absolute; background: var(--gradient); border-radius: 99px; }
.logo-anim .bar { width: 14px; bottom: 50%; transform-origin: center; translate: 0 50%; animation: bar 2.4s var(--ease) infinite; }
.logo-anim .b1 { left: 0; height: 46px; animation-delay: 0s; }
.logo-anim .b2 { left: 26px; height: 84px; animation-delay: 0.15s; }
.logo-anim .b3 { left: 52px; height: 122px; animation-delay: 0.3s; }
.logo-anim .b4 { left: 78px; height: 78px; animation-delay: 0.45s; }
.logo-anim .line { left: 108px; height: 14px; transform-origin: left center; animation: line 2.4s var(--ease) infinite; }
.logo-anim .l1 { top: 38px; width: 64px; animation-delay: 0.5s; }
.logo-anim .l2 { top: 68px; width: 112px; animation-delay: 0.65s; }
.logo-anim .l3 { top: 98px; width: 46px; animation-delay: 0.8s; }

@keyframes bar { 0%, 100% { transform: scaleY(0.45); } 40% { transform: scaleY(1); } }
@keyframes line { 0% { transform: scaleX(0); opacity: 0; } 35%, 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- Kennzahl ---------- */

.stat { padding: 0 var(--gutter) clamp(60px, 9vw, 110px); }
.stat__inner {
  max-width: 900px; margin: 0 auto; padding: clamp(28px, 5vw, 48px);
  border-radius: calc(var(--radius) + 8px); border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(51, 64, 255, 0.16), rgba(138, 43, 226, 0.12));
  display: grid; gap: 12px 36px; align-items: center;
}
@media (min-width: 700px) { .stat__inner { grid-template-columns: auto 1fr; } }
.stat__number { font-size: clamp(4.5rem, 16vw, 8.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.stat__number span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.stat__note { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ---------- Funktionen ---------- */

.features { padding: clamp(60px, 9vw, 110px) 0; }
.bento { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); } .card--wide { grid-column: span 2; } }

.card {
  position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(60% 80% at 100% 0%, rgba(106, 54, 240, 0.22), transparent 70%);
}
.card:hover { border-color: rgba(143, 140, 255, 0.35); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 22px; margin: 20px 0 10px; }
.card p { color: var(--muted); }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gradient); box-shadow: 0 10px 30px -8px rgba(90, 60, 240, 0.7);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0 0; }
.tags li { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--surface-strong); color: var(--text); }

/* ---------- Datenschutz ---------- */

.privacy { padding: clamp(60px, 9vw, 110px) 0; background: linear-gradient(180deg, transparent, var(--bg-raised) 20%, var(--bg-raised) 80%, transparent); }
.privacy__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .privacy__inner { grid-template-columns: 0.7fr 1.3fr; gap: 72px; } }
.privacy__shield { justify-self: center; width: min(240px, 55vw); filter: drop-shadow(0 30px 60px rgba(90, 60, 240, 0.55)); }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.checks li { position: relative; padding-left: 38px; color: var(--muted); font-size: 17px; }
.checks li strong { color: var(--text); font-weight: 650; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px;
  background: var(--gradient) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Modelle ---------- */

.models { padding: clamp(60px, 9vw, 110px) 0; }
.models__grid { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 820px) { .models__grid { grid-template-columns: repeat(3, 1fr); } }
.model { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.model:first-child { background: linear-gradient(160deg, rgba(51, 64, 255, 0.22), rgba(138, 43, 226, 0.14)); border-color: rgba(143, 140, 255, 0.35); }
.model h3 { font-size: 24px; margin: 14px 0 10px; }
.model p:not(.model__badge) { color: var(--muted); }
.model__badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; background: var(--gradient); }
.model__badge--muted { background: var(--surface-strong); color: var(--muted); }

/* ---------- Zielgruppen ---------- */

.audience { padding: clamp(60px, 9vw, 110px) 0; }
.audience__grid { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .audience__grid { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.audience__item { padding: 26px 0; border-bottom: 1px solid var(--border); }
/* Ungerade Anzahl: die letzte Kachel über die volle Breite. */
@media (min-width: 760px) { .audience__item:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.audience__item h3 { font-size: 21px; margin-bottom: 8px; }
.audience__item p { color: var(--muted); }

/* ---------- Preis ---------- */

.price { padding: clamp(40px, 8vw, 90px) var(--gutter) clamp(80px, 12vw, 140px); }
.price__card {
  position: relative; max-width: 620px; margin: 0 auto; text-align: center;
  padding: clamp(36px, 6vw, 60px) clamp(22px, 5vw, 56px); border-radius: 32px;
  background: radial-gradient(90% 70% at 50% 0%, rgba(106, 54, 240, 0.35), transparent 70%), var(--bg-raised);
  border: 1px solid rgba(143, 140, 255, 0.28);
  box-shadow: 0 40px 120px -40px rgba(90, 60, 240, 0.6);
}
.price__card img { margin: 0 auto 24px; border-radius: 18px; box-shadow: 0 16px 40px -10px rgba(90, 60, 240, 0.8); }
.price__card h2 { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 800; }
.price__lead { margin-top: 14px; font-size: 19px; color: var(--muted); }
.price__list { list-style: none; padding: 0; margin: 28px auto; display: grid; gap: 10px; width: fit-content; text-align: left; }
.price__list li { padding-left: 30px; position: relative; }
.price__list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; background: var(--gradient); }
.price__soon { color: var(--faint); font-size: 15px; margin-bottom: 22px; }

/* ---------- Textseiten (Hilfe, Datenschutz, Impressum) ---------- */

.prose { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 90px) var(--gutter) clamp(70px, 10vw, 120px); }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; margin-bottom: 16px; }
.prose .lead { color: var(--muted); font-size: 19px; margin-bottom: 40px; }
.prose h2 { font-size: 24px; margin: 48px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: #cfcfe8; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose address { font-style: normal; line-height: 1.7; }
.prose .note { margin-top: 40px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 15px; }

.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; }
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--border); border-radius: 14px; }
.langs { width: 100%; border-collapse: collapse; font-size: 15px; }
.langs th, .langs td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.langs th { color: var(--muted); font-weight: 600; font-size: 13px; background: var(--surface); }
.langs td + td, .langs th + th { text-align: center; }
.langs tbody tr:last-child td { border-bottom: 0; }
.langs td { color: #cfcfe8; }
.langs .no { color: var(--faint); }

/* ---------- Fuß ---------- */

.footer { border-top: 1px solid var(--border); padding: 44px 0 max(44px, env(safe-area-inset-bottom)); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 14px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer__brand img { border-radius: 7px; }
.footer__claim { color: var(--muted); font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); }
.footer__legal { color: var(--faint); font-size: 13px; }

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wave span { transform: scaleY(0.6); }
}
