/* Pixwish – Apple-artiges Glas-Design. Systemschrift, keine externen Ressourcen. */

:root {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .7);
  --shadow: 0 1px 1px rgba(0,0,0,.02), 0 12px 40px -12px rgba(23, 33, 74, .16);
  --blue: #0071e3;
  --blue-h: #0077ed;
  --cyan: #12a8f8;
  --indigo: #2f5fea;
  --violet: #8e3df5;
  --keep: #1a9f53;
  --mark: #e5383b;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--indigo) 50%, var(--violet) 100%);
  --radius: 28px;
  --radius-sm: 18px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #101014;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: rgba(255, 255, 255, .1);
    --glass: rgba(28, 28, 34, .58);
    --glass-strong: rgba(30, 30, 36, .8);
    --glass-line: rgba(255, 255, 255, .1);
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0, 0, 0, .8);
    --blue: #2997ff;
    --blue-h: #47a6ff;
    --keep: #32d074;
    --mark: #ff5a5f;
  }
}

/* ---------------------------------------------------------------- Basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Sanftes Farblicht im Hintergrund (wie auf den Store-Motiven) */
body::before {
  content: "";
  position: fixed; inset: -20vh -20vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 85% 0%, rgba(18, 168, 248, .18), transparent 70%),
    radial-gradient(45vw 45vw at 0% 100%, rgba(142, 61, 245, .14), transparent 70%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 70%, transparent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------------------------------------------------------------- Typo */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; letter-spacing: -.01em; }
.display { font-size: clamp(44px, 8.4vw, 96px); letter-spacing: -.045em; line-height: 1.02; }
.headline { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.04em; }
.headline-sm { font-size: clamp(26px, 3.6vw, 36px); display: flex; align-items: center; justify-content: inherit; gap: 12px; }
.lead { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.35; color: var(--text-2); margin-top: 18px; font-weight: 500; letter-spacing: -.015em; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 34ch; }
.fine { font-size: 13px; color: var(--text-2); margin-top: 14px; }
.muted { color: var(--text-2); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- Glas */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border: 0; border-radius: 980px;
  background: var(--blue); color: #fff;
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--blue-h); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 32px; padding: 5px 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 30px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-ghost { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.btn-ghost:hover { background: color-mix(in srgb, var(--blue) 18%, transparent); }
.btn .ico { width: 16px; height: 16px; }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 500; }
.link .ico { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link:hover .ico { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 32px; }

/* ---------------------------------------------------------------- Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 52px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text); opacity: .8; font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; text-decoration: none; }
.nav-end { display: flex; align-items: center; gap: 14px; }
.nav-lang { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 4px 8px; border-radius: 8px; }
.nav-lang:hover { color: var(--text); background: var(--line); text-decoration: none; }
@media (max-width: 740px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
}

/* ---------------------------------------------------------------- Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .d1 { transition-delay: .08s; } .js .d2 { transition-delay: .16s; } .js .d3 { transition-delay: .24s; } .js .d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- Hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 0; overflow: hidden; }
.hero-stage {
  position: relative;
  max-width: 980px; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 22px;
  display: flex; justify-content: center; align-items: flex-end;
  height: clamp(420px, 62vw, 700px);
}
.phone { filter: drop-shadow(0 40px 60px rgba(23, 33, 74, .22)); user-select: none; }
@media (prefers-color-scheme: dark) { .phone { filter: drop-shadow(0 40px 70px rgba(47, 95, 234, .25)); } }
.hero-stage .phone { position: absolute; bottom: -12%; width: auto; }
.hero-stage .p-main { height: 100%; z-index: 2; left: 50%; transform: translateX(-50%); }
.hero-stage .p-side { height: 82%; opacity: .95; z-index: 1; }
.hero-stage .p-left { left: 50%; transform: translateX(-118%) rotate(-4deg); }
.hero-stage .p-right { left: 50%; transform: translateX(18%) rotate(4deg); }
@media (max-width: 640px) {
  .hero-stage { height: 470px; }
  .hero-stage .p-side { height: 72%; opacity: .7; }
  .hero-stage .p-left { transform: translateX(-100%) rotate(-5deg); }
  .hero-stage .p-right { transform: translateX(0%) rotate(5deg); }
}

/* ---------------------------------------------------------------- Split-Abschnitte */
.split { padding: clamp(80px, 12vw, 160px) 0 0; }
.split-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-rev .split-copy { order: 2; }
.split-copy { max-width: 460px; }
.split-art { display: flex; justify-content: center; perspective: 1200px; }
.split-art .phone { width: min(400px, 82%); transition: transform .6s var(--ease); will-change: transform; }
@media (max-width: 820px) {
  .split-in { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .split-rev .split-copy { order: 0; }
  .split-copy { margin: 0 auto; }
  .split-copy .lead { margin-left: auto; margin-right: auto; }
  .split-art .phone { width: min(340px, 78%); }
}

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; }
@media (max-width: 820px) { .pills { justify-content: center; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 980px; font-weight: 600; font-size: 16px; border: 1.5px solid; }
.pill-keep { color: var(--keep); border-color: color-mix(in srgb, var(--keep) 45%, transparent); background: color-mix(in srgb, var(--keep) 9%, transparent); }
.pill-mark { color: var(--mark); border-color: color-mix(in srgb, var(--mark) 45%, transparent); background: color-mix(in srgb, var(--mark) 9%, transparent); }

/* ---------------------------------------------------------------- Kacheln */
.tiles-sec { padding: clamp(100px, 14vw, 180px) 0 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.tile { border-radius: var(--radius); padding: 30px 26px 32px; transition: transform .4s var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: 22px; margin-top: 22px; }
.tile p { color: var(--text-2); margin-top: 8px; font-size: 16px; }
.tile-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; }
.tile-ico .ico { width: 24px; height: 24px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } .tile { text-align: center; } }

/* ---------------------------------------------------------------- CTA */
.cta-sec { padding: clamp(100px, 14vw, 180px) 0 clamp(80px, 10vw, 120px); }
.cta-card { border-radius: 36px; padding: clamp(44px, 7vw, 80px) 28px; text-align: center; position: relative; overflow: hidden; }
.cta-card::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 90%; z-index: -1;
  background: radial-gradient(closest-side, rgba(47, 95, 234, .22), transparent);
}
.cta-card .lead { margin-left: auto; margin-right: auto; max-width: 34ch; }
.cta-card.small { max-width: 620px; margin: 0 auto; padding: 48px 28px; }
.cta-icon { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 16px 40px -10px rgba(47, 95, 234, .5); }
.badge-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; margin-bottom: 22px; }
.badge-ico .ico { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- Beta */
.beta-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 8vw, 100px); }
.beta-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.beta-copy { position: relative; padding-top: 12px; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 700; flex: none; }
.beta-art { margin-top: 44px; display: flex; justify-content: center; }
.beta-art .phone { width: min(330px, 70%); transform: rotate(-3deg); }
@media (max-width: 900px) {
  .beta-in { grid-template-columns: 1fr; gap: 40px; }
  .beta-copy { text-align: center; }
  .beta-copy .lead { margin-left: auto; margin-right: auto; }
  .steps { justify-content: center; }
  .beta-art { display: none; }
}

.form-card { border-radius: var(--radius); padding: clamp(28px, 4vw, 40px); position: sticky; top: 80px; background: var(--glass-strong); }
.form-card h2 { font-size: 28px; margin-bottom: 24px; }
.form { display: grid; gap: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .field > label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; font-weight: 600; color: var(--text-2); transition: background .25s, color .25s, box-shadow .25s; }
.seg span .ico { width: 20px; height: 20px; }
.seg input:checked + span { background: var(--bg-2); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--blue) 70%, transparent); outline-offset: 2px; }

input[type=email], input[type=text] {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
input[type=email]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 20%, transparent); }
input[aria-invalid=true] { border-color: var(--mark); }
.help { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.field-err { font-size: 14px; color: var(--mark); margin-top: 8px; font-weight: 500; }

/* Plattformabhaengige Beschriftung */
.for-ios, .for-android { display: none; }
[data-platform=ios] .for-ios, [data-platform=android] .for-android { display: block; }
[data-platform=ios] .for-none, [data-platform=android] .for-none { display: none; }
label .for-ios, label .for-android { display: none; }
[data-platform=ios] label .for-ios, [data-platform=android] label .for-android { display: inline; }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; color: var(--text-2); cursor: pointer; line-height: 1.45; margin: 0 !important; position: relative; }
.field > label.check { display: flex; }
.beta-copy .display { font-size: clamp(44px, 5.6vw, 72px); }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check .box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid color-mix(in srgb, var(--text) 30%, transparent); background: var(--bg-2); transition: background .2s, border-color .2s; }
.check .box .ico { width: 14px; height: 14px; stroke-width: 3; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s var(--ease); }
.check input:checked + .box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .box .ico { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 3px solid color-mix(in srgb, var(--blue) 70%, transparent); outline-offset: 2px; }

.alert { border-radius: 14px; padding: 14px 16px; margin-bottom: 22px; font-size: 15px; background: color-mix(in srgb, var(--mark) 10%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--mark) 35%, transparent); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert a { color: inherit; text-decoration: underline; }
.sent { text-align: center; padding: 20px 0; }
.sent h2 { margin-bottom: 12px; }
.sent p { color: var(--text-2); margin-bottom: 22px; }

/* ---------------------------------------------------------------- FAQ */
.faq-sec { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 120px); }
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 20px; height: 20px; color: var(--text-2); transition: transform .3s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; color: var(--text-2); max-width: 62ch; }

/* ---------------------------------------------------------------- Anleitung */
.page-hero { padding: clamp(56px, 9vw, 110px) 0 24px; }
.tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 36px; border-radius: 980px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 140px; min-height: 42px; padding: 0 20px; border-radius: 980px; color: var(--text-2); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-selected=true] { background: var(--bg-2); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.guide { padding: 32px 0 clamp(80px, 10vw, 120px); }
.guide-panel { padding-top: 40px; }
.guide-panel + .guide-panel { margin-top: 40px; }
.js .guide-panel[hidden] { display: none; }
.guide-panel > .muted { margin-top: 10px; }
.gsteps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.gstep { display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--radius-sm); }
.gstep h3 { font-size: 19px; }
.gstep p { color: var(--text-2); margin-top: 4px; font-size: 16px; }
.gstep .btn, .gstep .note { margin-top: 14px; }
.note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.guide-panel .faq { margin-top: 28px; }
.guide .cta-card { margin-top: 64px; }

/* ---------------------------------------------------------------- Rechtliches */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 120px); }
.legal-head { margin-bottom: 28px; }
.legal-head .muted { margin-top: 10px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.toc a { font-size: 13px; padding: 6px 12px; border-radius: 980px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.toc a:hover { background: color-mix(in srgb, var(--text) 11%, transparent); text-decoration: none; }
.legal-body { border-radius: var(--radius); padding: clamp(26px, 5vw, 52px); font-size: 16px; line-height: 1.6; }
.legal-body section + section { margin-top: 34px; }
.legal-body h2 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.25; }
.legal-body p + p { margin-top: 10px; }
.legal-body ul { padding-left: 20px; margin: 0; }
.legal-body li + li { margin-top: 6px; }
.legal-body p, .legal-body li { color: color-mix(in srgb, var(--text) 82%, var(--bg)); }
.legal-body a { word-break: break-word; }
.todo { display: inline-block; background: #ffe066; color: #3d3000; padding: 1px 6px; border-radius: 6px; font-size: 14px; }

/* ---------------------------------------------------------------- Hinweise */
.notice { padding: clamp(64px, 12vw, 140px) 0; text-align: center; }

/* ---------------------------------------------------------------- Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--text-2); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer .brand { font-size: 16px; }
.footer .brand img { border-radius: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-top: 18px; display: grid; gap: 6px; }
.footer-bottom a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.footer .fine { margin: 0; font-size: 12px; }
@media (max-width: 640px) { .footer-top { flex-direction: column; align-items: flex-start; } }

/* Fallback ohne backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
  .nav { background: var(--bg); }
}
