/* SensFinder – nur Startseite (index.html, de/index.html).
   Gemeinsame Bausteine (Kopfzeile, Karten, Tasten, Display, Maßband) stehen in style.css.
   Hier: stärkere Lichtbahnen (Raycast), Lautsprecher-Gitter (Contra), Erklär-Grafik mit Rahmen (Alethia). */

body.home { --blue: #38aaff; background-image: none; overflow-x: clip; }
body.home .wrap { max-width: 860px; padding: 0 24px; }
body.home main { position: relative; }

/* ---------- Lichtbahnen hinter Headline und Rechner ---------- */
.home .hero-bg {
  position: absolute; z-index: -1; pointer-events: none;
  top: -160px; left: 50%; width: 100vw; height: 1100px; transform: translateX(-50%);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 95%);
}
.home .hero-bg::before {
  content: ""; position: absolute; inset: -10% -20%;
  /* weiche Bahnen nur über Verlaufs-Stopps (kein filter: blur); Orange rechts, weg von der Headline */
  background: linear-gradient(135deg,
    transparent 0 30%,
    rgba(56, 170, 255, .05) 33%, rgba(56, 170, 255, .16) 36%, rgba(56, 170, 255, .05) 39%, transparent 42%,
    rgba(56, 170, 255, .04) 46%, rgba(56, 170, 255, .12) 49%, transparent 53%,
    rgba(255, 90, 31, .06) 56%, rgba(255, 90, 31, .24) 59.5%, rgba(255, 70, 40, .10) 63%, transparent 67%,
    rgba(255, 120, 70, .05) 70%, rgba(255, 120, 70, .16) 73%, transparent 77%,
    rgba(56, 170, 255, .04) 80%, rgba(56, 170, 255, .13) 83%, transparent 87%);
}
.home .hero-bg::after { /* Abdunklung hinter Headline und Einleitung + leichte Körnung */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 34% at 42% 23%, rgba(13, 15, 18, .92) 0%, rgba(13, 15, 18, .7) 45%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Headline ---------- */
body.home h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
body.home h1 .kicker { font-size: .875rem; letter-spacing: .08em; }
body.home .lead { color: #b9c0ca; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* ---------- Lautsprecher-Gitter neben dem Button ---------- */
body.home .actions { align-items: center; }
.home .grille {
  margin-left: auto; width: 112px; height: 36px; border-radius: 8px; opacity: .9;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .1) 0 3px, transparent 3px 8px);
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent);
          mask-image: radial-gradient(closest-side, #000 60%, transparent);
}

/* ---------- Erklärung mit Grafik ---------- */
body.home .card.explain {
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(56, 170, 255, .12), transparent 60%),
    linear-gradient(160deg, rgba(36, 41, 49, .92), rgba(17, 20, 24, .96));
}
.home .explain figure { /* ein ruhiger Rahmen um Grafik + Unterschrift */
  position: relative; max-width: 620px; margin: 24px 0 4px; padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  background: linear-gradient(160deg, rgba(56, 170, 255, .05), rgba(255, 255, 255, .015));
}
.home .explain svg { position: relative; display: block; width: 100%; max-width: 560px; height: auto; }
.home .explain figcaption { position: relative; margin-top: 16px; font: 500 .875rem/1.5 var(--font-mono); color: var(--dim); }
.home .ex-name { font: 600 15px var(--font); fill: var(--text); }
.home .ex-val { font: 700 15px var(--font-mono); fill: var(--text); }
.home .ex-line { stroke: var(--muted); stroke-width: 1; }
.home .ex-tick { stroke: #4a5361; stroke-width: 1; }
.home .ex-chip { fill: var(--accent); }
.home .ex-chip-t { font: 700 15px var(--font-mono); fill: var(--accent-ink); }

body.home footer { font-size: .875rem; }

@media (max-width: 560px) {
  body.home .wrap { padding: 0 16px; }
  .home .hero-bg { top: -100px; height: 900px; }
  .home .grille { display: none; }
  .home .explain figure { padding: 16px; }
  .home .ex-name, .home .ex-val, .home .ex-chip-t { font-size: 19px; }
}
