/* Startseite spotnav.app. Baut auf den Tokens und dem Grundgeruest in style.css auf
   (Farben, .wrap, .topbar, footer). Rechtsseiten und Teilen-Viewer laden nur style.css. */

/* Manrope (SIL Open Font License), selbst gehostet statt von Google Fonts: keine Anfrage an Dritte. */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-tint: #E3EFF8;     /* helle Blauflaeche: Icon-Kacheln, Fakten */
  --brand-light: #3FAEF2;    /* primary im dunklen Modus: Hervorhebungen auf Navy */
  --shadow: 0 28px 60px -26px rgba(15, 46, 74, .45);
  --phone-bezel: #0D1520;
}

body { font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3 { letter-spacing: -.02em; overflow-wrap: break-word; }
main { display: block; }

/* Kopfzeile: Navigation und kleiner Store-Knopf */
.topbar .wrap { gap: 16px; }
.topbar .right { display: flex; align-items: center; gap: 26px; }
.nav { gap: 26px; }
.nav a { font-weight: 600; font-size: .95rem; }
.top-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-dark); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.top-cta:hover { background: var(--brand); }
.top-cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.topbar .lang { margin-right: -10px; }

/* Hinweis auf EN/NL nach Browsersprache (nur auf der deutschen Startseite) */
.lang-hint { background: var(--brand-tint); border-bottom: 1px solid var(--line); font-size: .92rem; }
.lang-hint .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.lang-hint p { margin: 0; color: var(--text); }
.lang-hint a { font-weight: 700; white-space: nowrap; }
.lang-hint button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lang-hint button:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* Geraeterahmen per CSS: Bezel, abgerundete Ecken, Schatten */
.phone { position: relative; margin: 0; width: 300px; max-width: 100%; padding: 10px; border-radius: 15% / 6.9%; background: var(--phone-bezel); box-shadow: inset 0 0 0 2px #27323F, var(--shadow); }
.phone img { display: block; width: 100%; height: auto; border-radius: 12.5% / 5.75%; background: var(--brand-dark); }

/* Hero: Navy-Verlauf mit Hoehenlinien, Text links, zwei Geraete rechts */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 540px at 88% 0%, rgba(63, 174, 242, .30), transparent 62%),
    radial-gradient(760px 520px at 0% 100%, rgba(10, 110, 169, .40), transparent 62%),
    linear-gradient(165deg, #0F2E4A 0%, #0B1A26 78%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='675' viewBox='0 0 900 675' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.5'%3E%3Cpath d='M-10 470C120 400 220 430 330 360S500 210 640 240 820 330 910 300'/%3E%3Cpath d='M-10 520C120 450 240 480 350 410S520 260 660 290 840 380 910 350'/%3E%3Cpath d='M-10 570C120 500 260 530 370 460S540 310 680 340 860 430 910 400'/%3E%3Cpath d='M-10 620C120 550 280 580 390 510S560 360 700 390 880 480 910 450'/%3E%3Cpath d='M-10 670C120 600 300 630 410 560S580 410 720 440 900 530 910 500'/%3E%3Cellipse cx='640' cy='140' rx='200' ry='80' transform='rotate(-12 640 140)'/%3E%3Cellipse cx='640' cy='140' rx='140' ry='54' transform='rotate(-12 640 140)'/%3E%3Cellipse cx='640' cy='140' rx='80' ry='30' transform='rotate(-12 640 140)'/%3E%3C/svg%3E") right -60px bottom -40px / 1000px auto no-repeat;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; padding-top: 64px; }
.hero-copy { padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-light); }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.04; font-weight: 800; }
.hero .sub { margin: 0 0 28px; max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: rgba(255, 255, 255, .84); }

/* Store-Zeile: offizieller App-Store-Badge plus Hinweis auf Android */
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { display: block; width: 165px; height: 55px; }
.store-badge:hover { opacity: .92; }
.soon { display: inline-flex; align-items: center; gap: 8px; height: 55px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 10px; color: rgba(255, 255, 255, .88); font-weight: 600; font-size: .95rem; }
.soon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .78); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; stroke: var(--brand-light); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.hero-phones { position: relative; height: 620px; align-self: end; }
.hero-phones .phone { position: absolute; bottom: -70px; }
.hero-phones .front { right: 0; width: 300px; z-index: 2; }
.hero-phones .back { right: 250px; bottom: 10px; width: 250px; }

/* Drei Schritte unter dem Hero */
.steps { padding: 40px 0 8px; }
.steps .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.step .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step h3 { margin: 4px 0 4px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Abschnitte */
section { padding: 0; }
.kicker { margin: 0 0 10px; color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.section-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.features { background: #fff; padding: 72px 0 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 44px 0; }
.features .feature + .feature { border-top: 1px solid var(--line); }
.feature.rev .feature-copy { order: 2; }
.feature-art { display: flex; justify-content: center; }
.feature h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; }
.feature p { margin: 0 0 22px; color: var(--muted); font-size: 1.05rem; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.list .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.list svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.list li > span:last-child { padding-top: 6px; }

/* Logbuch: Navy-Flaeche, Kacheln links, zwei Geraete rechts */
.logbook { position: relative; overflow: hidden; color: #fff; padding: 88px 0; background: linear-gradient(180deg, #0F2E4A, #0B1A26); }
.logbook .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.logbook .kicker { color: var(--brand-light); }
.logbook h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.12; }
.logbook .lead { margin: 0 0 26px; color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tile { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 16px; }
.tile.wide { grid-column: 1 / -1; }
.tile svg { width: 24px; height: 24px; margin-bottom: 10px; stroke: var(--brand-light); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 0 0 4px; font-size: 1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tile p { margin: 0; color: rgba(255, 255, 255, .76); font-size: .93rem; }
.tag { display: inline-block; background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.duo { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.duo .phone:first-child { width: 250px; margin-right: -44px; margin-bottom: 44px; z-index: 1; }
.duo .phone:last-child { width: 280px; z-index: 2; }
/* Zwei Geraete im Funktionsabschnitt (Karte hinten links, Navigation vorn): schmalere Ueberlappung, damit AR-Suche-Knopf und Spot-Namen der Karte sichtbar bleiben */
.feature-art.duo .phone:first-child { margin-right: -24px; }

.share { padding: 40px 0; }

/* Datenschutz: kurze Fakten */
.privacy { background: #fff; padding: 72px 0; }
.privacy .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.privacy h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; }
.privacy p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.facts { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.facts .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.facts svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Preise: Basic hell, Premium auf Navy */
.pricing { padding: 80px 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 880px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.plan.pro { background: var(--brand-dark); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.plan h3 { margin: 0 0 4px; font-size: 1.1rem; }
.price { margin: 6px 0 2px; font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan.pro .price small { color: rgba(255, 255, 255, .78); }
.alt { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.plan.pro .alt { color: rgba(255, 255, 255, .78); }
.plan ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: var(--brand); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan.pro li svg { stroke: var(--brand-light); }
.plan li.muted { color: var(--muted); }
.ribbon { position: absolute; top: -14px; right: 24px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.plan .note { margin: auto 0 0; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.fine { max-width: 760px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: .88rem; }

/* Download: Navy-Verlauf, Badge mittig */
.download {
  position: relative; overflow: hidden; color: #fff; text-align: center; padding: 88px 0;
  background:
    radial-gradient(800px 420px at 50% 120%, rgba(63, 174, 242, .32), transparent 65%),
    linear-gradient(165deg, #0F2E4A, #0B1A26);
}
.download h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; }
.download p { max-width: 36rem; margin: 0 auto 28px; color: rgba(255, 255, 255, .84); font-size: 1.1rem; }
.download .store { justify-content: center; }

footer { background: var(--bg); }

@media (max-width: 1000px) {
  .hero-phones { height: 560px; }
  .hero-phones .front { width: 270px; }
  .hero-phones .back { width: 225px; right: 215px; }
  .duo .phone:first-child { width: 220px; margin-right: -40px; }
  .duo .phone:last-child { width: 250px; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; padding-top: 44px; }
  .hero-copy { padding-bottom: 12px; }
  .hero-phones { height: 500px; align-self: start; }
  .hero-phones .back { display: none; }
  .hero-phones .front {
    position: absolute; top: 0; bottom: auto; right: auto; left: 50%; transform: translateX(-50%);
    width: min(280px, 76vw);
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  }
  .steps .wrap { grid-template-columns: 1fr; }
  .feature, .logbook .wrap, .privacy .wrap { grid-template-columns: 1fr; gap: 32px; }
  .feature.rev .feature-copy { order: 0; }
  .feature-art { order: 1; }
  .logbook { padding: 64px 0; }
  .plans { grid-template-columns: 1fr; }
  .duo .phone:first-child { width: 44%; margin-right: -8%; margin-bottom: 10%; }
  .duo .phone:last-child { width: 52%; }
  .feature-art.duo .phone:first-child { margin-right: -4%; }
}

@media (max-width: 520px) {
  .topbar .right { gap: 10px; }
  .topbar .lang { margin-right: 0; gap: 2px; }
  .topbar .lang a { padding: 4px 7px; }
  /* Kopfzeile auf dem Handy: Store-Knopf nur als Symbol, damit Logo und Sprachwahl Platz haben */
  .top-cta { padding: 9px; }
  .top-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tiles { grid-template-columns: 1fr; }
  .feature-art .phone { width: min(280px, 84vw); }
  .store-badge img { width: 150px; height: 50px; }
  .soon { height: 50px; padding: 0 14px; }
  .plan { padding: 24px 20px; }
  .features { padding-top: 56px; }
  .pricing, .privacy { padding: 56px 0; }
  .download { padding: 64px 0; }
}
