:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #fff;
  --ink: #0d2033;
  --muted: #53687c;
  --line: #dce5ed;
  --brand: #0379c9;
  --brand-ink: #0270bc;
  --brand-deep: #0047ce;
  --brand-soft: #e6f2fb;
  --success: #0a8468;
  --shadow: 0 24px 70px -38px rgba(12, 43, 74, 0.45);
  --radius: 26px;
  /* Fixed brand gradient, the web counterpart of LinearGradient.lytaraBrand.
     Identical in both themes; the light end sits on AccentColor instead of
     #2899c6 so white label text keeps at least 4.5:1. */
  --brand-gradient: linear-gradient(135deg, #0379c9, #0047ce);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111d;
    --surface: rgba(16, 31, 48, 0.86);
    --surface-solid: #101f30;
    --ink: #edf6ff;
    --muted: #a4b7c9;
    --line: #223a50;
    --brand: #06c5f5;
    --brand-ink: #06c5f5;
    --brand-deep: #0047ce;
    --brand-soft: #0c2c41;
    --success: #60d1b3;
    --shadow: 0 28px 80px -40px rgba(0, 0, 0, 0.9);
  }
}

:root[data-theme="dark"] {
  --bg: #07111d;
  --surface: rgba(16, 31, 48, 0.86);
  --surface-solid: #101f30;
  --ink: #edf6ff;
  --muted: #a4b7c9;
  --line: #223a50;
  --brand: #06c5f5;
  --brand-ink: #06c5f5;
  --brand-deep: #0047ce;
  --brand-soft: #0c2c41;
  --success: #60d1b3;
  --shadow: 0 28px 80px -40px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 5%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}
.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 750 1.3rem/1 var(--display); letter-spacing: -0.02em; }
.brand-mark { width: 46px; height: 46px; display: block; }
.site-footer .brand { font-size: 1.55rem; }
.site-footer .brand-mark { width: 56px; height: 56px; }
.brand-name { white-space: nowrap; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.controls { display: flex; align-items: center; gap: 8px; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.segmented button, .icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 999px; }
.segmented button { padding: 5px 9px; font-size: .74rem; font-weight: 800; letter-spacing: .03em; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); }
.menu-button { display: none; }

.hero { padding: clamp(68px, 9vw, 124px) 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(40px, 7vw, 88px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--brand-ink); font-weight: 700; letter-spacing: .005em; font-size: .88rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
h1 { margin: 18px 0 22px; font-size: clamp(3rem, 7vw, 5.8rem); }
h2 { margin: 12px 0 18px; font-size: clamp(2.1rem, 4.5vw, 3.7rem); }
h3 { margin: 0 0 9px; font-size: 1.2rem; }
.lead { max-width: 58ch; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); color: var(--ink); text-decoration: none; font-weight: 750; box-shadow: 0 7px 22px -18px rgba(0,0,0,.5); }
.button.primary { border-color: transparent; background: var(--brand-gradient); color: white; }
.appstore { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px; border-radius: 16px; background: var(--brand-gradient); color: #fff; text-decoration: none; box-shadow: 0 18px 36px -22px #0047ce; }
.appstore svg { width: 23px; height: 23px; flex: none; }
.appstore-text { display: grid; text-align: left; line-height: 1.18; }
.appstore-text small { font-size: .69rem; font-weight: 650; letter-spacing: .02em; opacity: .85; }
.appstore-text strong { font-size: 1.04rem; font-weight: 800; letter-spacing: -.01em; }
.button:hover, .appstore:hover { transform: translateY(-1px); }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 26px 0 0; padding: 0; color: var(--muted); font-size: .9rem; list-style: none; }
.trust-row li::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 7px; }

.phone-stage { position: relative; min-height: 560px; display: grid; place-items: center; perspective: 1200px; }
.halo { position: absolute; width: 450px; height: 450px; border-radius: 50%; background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 28%, transparent), transparent 65%); filter: blur(2px); }
.phone { position: relative; z-index: 2; width: 284px; height: 570px; padding: 10px; border-radius: 48px; background: #07101a; box-shadow: 0 46px 90px -38px rgba(1, 33, 62, .75); transform: rotateY(-7deg) rotateX(2deg); transition: transform .2s ease-out; }
.phone-screen { width: 100%; height: 100%; border-radius: 39px; object-fit: cover; object-position: top; background: #f7fbff; }

.section { padding: 96px 0; }
.section.soft { background: color-mix(in srgb, var(--brand-soft) 58%, transparent); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 15px; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 13%, transparent); }
.feature-icon svg { width: 23px; height: 23px; }
.feature-card h3 { margin-top: 0; }
.feature-card p { color: var(--muted); margin: 0; }

.gallery-shell { position: relative; }
.gallery { overflow: hidden; border-radius: 32px; }
.gallery-track { display: flex; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.gallery-slide { flex: 0 0 100%; display: grid; grid-template-columns: .86fr 1.14fr; gap: 42px; align-items: center; padding: clamp(24px, 5vw, 58px); background: var(--surface); border: 1px solid var(--line); border-radius: 32px; }
.gallery-copy p { color: var(--muted); }
.gallery-visual { display: grid; place-items: center; padding: 32px 0; border-radius: 24px; background: linear-gradient(145deg, var(--brand-soft), color-mix(in srgb, var(--surface-solid) 60%, transparent)); overflow: hidden; }
.gallery-visual .phone { width: 200px; height: 400px; border-radius: 36px; transform: rotate(3deg); }
.gallery-visual .phone-screen { border-radius: 28px; }

/* Apple-Watch-Rahmen. Bildseitenverhältnis 416:496 (46 mm), damit der
   Screenshot ohne Beschnitt sitzt: Innenmaß = Breite - 2x padding. */
.watch { position: relative; z-index: 2; width: 176px; height: 206px; padding: 9px; border-radius: 48px; background: #07101a; box-shadow: 0 34px 66px -30px rgba(1, 33, 62, .7); }
.watch::before { content: ""; position: absolute; right: -5px; top: 32%; width: 6px; height: 30px; border-radius: 3px; background: linear-gradient(90deg, #24303e, #4c5d70); }
.watch::after { content: ""; position: absolute; right: -4px; top: 55%; width: 4px; height: 34px; border-radius: 2px; background: #1d2733; }
.watch-screen { display: block; width: 100%; height: 100%; border-radius: 40px; object-fit: cover; background: #000; }
.watch-pair { display: flex; align-items: center; justify-content: center; gap: 22px; }
.watch-pair .watch:first-child { transform: rotate(-3deg); }
.watch-pair .watch:last-child { transform: rotate(3deg); }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.gallery-arrow { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.gallery-dots { display: flex; gap: 7px; }
.gallery-dot { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; }
.gallery-dot::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 50%; background: var(--line); transition: width .25s ease, background .25s ease; }
.gallery-dot[aria-current="true"]::before { width: 22px; border-radius: 99px; background: var(--brand); }

.privacy-card { display: grid; grid-template-columns: .78fr 1.22fr; gap: 50px; padding: clamp(30px, 5vw, 60px); border-radius: 34px; color: white; background: linear-gradient(145deg, #0d2c47, #0a4a76); box-shadow: var(--shadow); }
.privacy-card p { color: #c7d9e8; }
.privacy-card .eyebrow { color: #7fd8fa; }
.privacy-card .button { justify-self: start; }
.privacy-points { display: grid; gap: 12px; }
.privacy-point { padding: 17px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.06); }
.privacy-point strong { display: block; margin-bottom: 2px; }
.privacy-point span { color: #c7d9e8; font-size: .91rem; }

.legal-hero { padding: 74px 0 38px; }
.legal-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.legal-hero p { max-width: 66ch; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 52px; align-items: start; padding-bottom: 100px; }
.toc { position: sticky; top: 100px; display: grid; gap: 7px; }
.toc a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.toc a:hover { color: var(--ink); }
.legal-content { min-width: 0; }
.legal-content section { scroll-margin-top: 100px; padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--line); }
.legal-content h2 { font-size: 1.65rem; margin: 0 0 15px; }
.legal-content h3 { margin-top: 22px; font-size: 1.03rem; letter-spacing: -.01em; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content ul { padding-left: 1.2rem; }
.legal-content address { color: var(--muted); font-style: normal; }
.notice { padding: 17px 19px; border: 1px solid #e2b35f; border-radius: 14px; background: color-mix(in srgb, #f2c36b 15%, var(--surface)); color: var(--ink); }
.placeholder { color: #a76000; font-weight: 800; background: #fff3d3; border-radius: 4px; padding: 0 4px; }

.section-tight { padding-top: 30px; }
.section-head-spaced { margin-top: 70px; }
.support-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 34px; }
.support-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.support-card p { color: var(--muted); }
.faq-group { max-width: 760px; margin-top: 52px; }
.faq-group h3 { margin: 0 0 6px; font-size: 1.32rem; }
.faq-group > p { margin: 0 0 14px; color: var(--muted); }
details { border-top: 1px solid var(--line); padding: 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: flex-start; gap: 12px; padding: 17px 0; cursor: pointer; font-weight: 750; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; flex: none; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand-ink); font-weight: 800; line-height: 1; }
details[open] summary::before { content: "–"; }
details p { margin: 0 0 15px; padding-left: 34px; color: var(--muted); }
details p:last-child { margin-bottom: 19px; }
details ul { margin: 0 0 15px; padding-left: 54px; color: var(--muted); }
details li { margin-bottom: 4px; }
details .faq-code { margin: 0 0 15px 34px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--brand) 6%, var(--surface-solid)); color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .84rem; line-height: 1.7; overflow-x: auto; white-space: pre; }
.faq-table { width: calc(100% - 34px); margin: 0 0 17px 34px; border-collapse: collapse; color: var(--muted); font-size: .93rem; }
.faq-table th, .faq-table td { padding: 7px 14px 7px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.faq-table th { color: var(--ink); font-weight: 700; }
.faq-table tr:last-child th, .faq-table tr:last-child td { border-bottom: 0; }

.site-footer { padding: 46px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer-copy { color: var(--muted); font-size: .86rem; max-width: 58ch; margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 11px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .85rem; }
.footer-links a:hover { color: var(--ink); }

/* Language switch. Only the inactive language is hidden, so every element
   keeps its own display value and no later rule can leak the wrong one in. */
html[lang="de"] .lang-en,
html[lang="en"] .lang-de { display: none !important; }

@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 80px 20px auto; display: none; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-solid); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .menu-button { display: block; }
  .hero-grid, .privacy-card, .gallery-slide, .legal-layout { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .actions, .trust-row { justify-content: center; }
  .lead { margin-inline: auto; }
  .phone-stage { min-height: 500px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-copy { text-align: center; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav { min-height: 68px; }
  .site-header .brand-name { display: none; }
  .nav-links { top: 68px; }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(2.7rem, 17vw, 4.2rem); }
  .phone-stage { min-height: 450px; }
  .phone { width: 224px; height: 450px; border-radius: 39px; }
  .phone-screen { border-radius: 31px; }
  .watch { width: 132px; height: 155px; padding: 7px; border-radius: 36px; }
  .watch-screen { border-radius: 30px; }
  .watch-pair { gap: 14px; }
  .section { padding: 72px 0; }
  .gallery-slide { padding: 24px; }
  .gallery-visual { padding: 22px 0; }
  .support-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .phone { transform: none !important; }
}
