/* Self-hosted (not Google's CDN): avoids sending visitor IPs to Google on
   every page load, keeping "no tracking SDKs" true — see datenschutz.html.
   Both are variable fonts; the weight range lets normal/bold text pick the
   right instance from one file. Latin subset only (site is German-only). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/Inter-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/Manrope-Variable.woff2") format("woff2");
}

:root {
  --primary: #0b6e99;
  --primary-strong: #084f70;
  /* Text on a --primary fill. Dark mode lightens --primary, so white would
     drop under WCAG AA there — a deep navy is used instead. */
  --on-primary: #ffffff;
  /* Deep blue that stays constant across themes, for text on white fills
     (the CTA button) where a light-mode blue is needed in both modes. */
  --primary-fixed: #0b6e99;
  /* CTA gradient must stay dark enough for white text in both themes. */
  --cta-from: #0b6e99;
  --cta-to: #084f70;
  --accent: #e8871e;
  --ink: #101c23;
  --ink-soft: #4d5f6a;
  --bg: #f4f8fb;
  --bg-alt: #eaf1f6;
  --surface: #ffffff;
  --border: #dde7ee;
  --shadow-soft: 0 1px 2px rgba(16, 28, 35, 0.04), 0 8px 24px -12px rgba(16, 28, 35, 0.12);
  --shadow-lift: 0 2px 4px rgba(16, 28, 35, 0.05), 0 24px 48px -20px rgba(11, 110, 153, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2fa0d8;
    --primary-strong: #6fc4ec;
    --on-primary: #04202d;
    --cta-from: #0e5477;
    --cta-to: #072e42;
    --ink: #eef4f7;
    --ink-soft: #9fb2bd;
    --bg: #0b1216;
    --bg-alt: #101b21;
    --surface: #132027;
    --border: #22333d;
    --shadow-soft: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 24px 48px -20px rgba(0, 0, 0, 0.75);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  /* Real terrain, not a decorative pattern: an official swisstopo relief-
     shading tile mosaic (ch.swisstopo.swissalti3d-reliefschattierung) over
     the Bernese Alps, derived from the swissALTI3D elevation model — same
     data source as the app's 3D flyover. Blend-mode instead of opacity: the
     light variant is pre-levelled into a narrow bright range so multiply
     keeps white a no-op and only the shaded relief tints the page; the dark
     variant mirrors that with screen blend, so black is the no-op there.
     Attribution: © swisstopo. */
  background-image: url("relief-light.jpg");
  background-color: var(--bg);
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image: url("relief-dark.jpg");
    background-blend-mode: screen;
  }
}

/* Headlines only — mirrors the app's pairing (config/theme.dart): geometric
   Manrope for short, large text; neutral Inter stays on everything read at
   length. */
h1, h2, h3, .brand, .price-amount {
  font-family: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 500;
  margin-left: auto;
}

.nav-mobile-only {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .i-close {
  display: none;
}

.nav.is-open .nav-toggle .i-burger {
  display: none;
}

.nav.is-open .nav-toggle .i-close {
  display: block;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
  right: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--primary) 60%, transparent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 0.92rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}

/* Soft alpine glow behind the hero, echoing the brand blue. */
.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--primary) 16%, transparent) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}

.badge svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 22px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.lead {
  font-size: 1.14rem;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 47ch;
}

.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.87rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 296px;
  border-radius: 44px;
  padding: 9px;
  background: linear-gradient(160deg, #2b3a43, #0f1a20);
  box-shadow: var(--shadow-lift);
}

.phone::after {
  /* Speaker notch detail — sells it as a device, not a floating rectangle. */
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.phone img {
  border-radius: 36px;
  width: 100%;
}

.phone-tilt {
  transform: perspective(1400px) rotateY(-9deg) rotateX(2deg);
  animation: float-tilt 6s ease-in-out infinite;
}

@keyframes float-tilt {
  0%, 100% { transform: perspective(1400px) rotateY(-9deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1400px) rotateY(-9deg) rotateX(2deg) translateY(-14px); }
}

/* ---------- Trust band ---------- */

.trust {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 26px 0;
}

.trust .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 44px;
  flex-wrap: wrap;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.trust-item svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */

section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.15;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Showcase (alternating image + text) ---------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase + .showcase {
  margin-top: 96px;
}

.showcase-media {
  display: flex;
  justify-content: center;
}

.showcase.is-flipped .showcase-media {
  order: 2;
}

.showcase h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 14px 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.2;
}

.showcase p {
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-size: 1.03rem;
  max-width: 44ch;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.checklist svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: 0 2px 4px rgba(16, 28, 35, 0.05), 0 20px 40px -18px rgba(11, 110, 153, 0.35);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 23px;
  height: 23px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
  align-items: start;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-soft);
}

.price-card.is-premium {
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  box-shadow: var(--shadow-lift);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 34px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.price-sub {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 4px 0 0;
}

.price-amount {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 18px 0 24px;
}

.price-amount span {
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.price-card .checklist svg {
  color: var(--primary);
}

.price-card.is-premium .checklist svg {
  color: var(--accent);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 22px;
  box-shadow: var(--shadow-soft);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 4px;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- CTA ---------- */

.cta-band {
  text-align: center;
  padding: 80px 0;
}

.cta-inner {
  background: linear-gradient(140deg, var(--cta-from), var(--cta-to));
  border-radius: 32px;
  padding: 64px 32px;
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.cta-inner h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #fff;
}

.cta-inner p {
  margin: 0 auto 30px;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.04rem;
}

.cta-inner .btn-primary {
  background: #fff;
  color: var(--primary-fixed);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: var(--bg-alt);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

footer a:hover {
  color: var(--primary);
}

.footer-legal {
  width: 100%;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 64px 0 88px;
}

.legal .wrap {
  max-width: 720px;
}

.legal h1 {
  font-size: 2.1rem;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 44px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 44px 0 12px;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.legal h3 {
  font-size: 1.03rem;
  margin: 26px 0 8px;
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--primary);
}

.legal .table-scroll {
  overflow-x: auto;
  margin: 18px 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 11px 13px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.legal th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Scroll reveal ---------- */
/* Progressive enhancement: the .has-js class is only added by an inline
   script that runs before paint (see index.html <head>). Without it — JS
   disabled or failed to load — .reveal elements simply render normally, so
   content is never at risk of staying invisible. */
.has-js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.has-js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.has-js .reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.has-js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.has-js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.has-js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.has-js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.has-js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 56px 0 48px;
    text-align: center;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  /* Headline and CTA come first on phones — the visitor is already holding a
     phone, so a large device mockup above the fold just buries the message. */
  .phone {
    max-width: 232px;
  }
  .phone-tilt {
    animation: none;
    transform: none;
  }
  .showcase {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .showcase + .showcase {
    margin-top: 64px;
  }
  .showcase.is-flipped .showcase-media {
    order: -1;
  }
  .showcase p {
    margin-left: auto;
    margin-right: auto;
  }
  .checklist {
    max-width: 380px;
    margin: 0 auto;
    text-align: left;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .nav-mobile-only {
    display: block;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 8px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    /* Collapsed by default; .nav.is-open reveals it. Height (not display)
       animates so JS only ever needs to toggle one class. */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav.is-open .nav-links {
    max-height: 60vh;
  }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-links a::after {
    display: none;
  }
}

@media (max-width: 540px) {
  .features {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    padding: 48px 24px;
    border-radius: 24px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .phone-tilt {
    animation: none;
    transform: none;
  }
}
