/* ==========================================================================
   SimpleCrafts Studio – globales Stylesheet (www.simplecrafts.de)
   Farbwelt = SpeedCompass-App: Navy-Verlauf, Teal→Violett-Akzent, Zeiger-Rot
   ========================================================================== */

:root {
  --bg-top: #1c2138;
  --bg-bottom: #0c0e1c;
  --bg-deep: #080b12;
  --card: #161d2b;
  --card-2: #121828;
  --text: #e7ecf5;
  --muted: #9aa3bd;
  --accent: #25e0c0;
  --accent-2: #8a7dff;
  --needle: #ff6584;
  --border: #2a3350;
  --grad: linear-gradient(100deg, var(--accent), var(--accent-2));
  --radius: 18px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: .2px; }

/* ===== Kopfzeile ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 clamp(14px, 4vw, 40px);
  background: rgba(10, 13, 24, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 51, 80, .6);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand-name { color: var(--text); font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--muted); font-weight: 500; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--muted); font-size: .92rem; font-weight: 600;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* Sprachwahl */
.lang-picker { position: relative; flex: none; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.05);
  color: var(--text); font: inherit; font-size: .9rem; font-weight: 600;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 13px; cursor: pointer;
  transition: border-color .2s;
}
.lang-btn:hover { border-color: var(--accent); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none;
  min-width: 190px; max-height: min(60vh, 430px); overflow: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.lang-list li {
  padding: 8px 12px; border-radius: 9px; cursor: pointer;
  font-size: .92rem; color: var(--text); white-space: nowrap;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lang-list li:hover { background: rgba(255,255,255,.07); }
.lang-list li.active { color: var(--accent); font-weight: 700; }
.lang-list li.active::after { content: "✓"; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) clamp(16px, 5vw, 56px) 70px;
  background:
    radial-gradient(1100px 520px at 70% -10%, rgba(138,125,255,.16), transparent 60%),
    radial-gradient(900px 500px at 12% 110%, rgba(37,224,192,.13), transparent 60%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom) 58%, var(--bg-deep));
  overflow: hidden;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.hero-glow-a { width: 460px; height: 460px; background: rgba(37,224,192,.16); top: -140px; right: 6%; animation: drift 11s ease-in-out infinite alternate; }
.hero-glow-b { width: 380px; height: 380px; background: rgba(138,125,255,.18); bottom: -120px; left: -60px; animation: drift 13s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(40px, 26px); } }

.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 5vw, 60px); align-items: center;
  max-width: 1160px; margin: 0 auto; width: 100%;
}
.kicker {
  display: inline-block;
  color: var(--accent); font-weight: 700; font-size: .88rem;
  letter-spacing: 2.2px; text-transform: uppercase;
  margin: 0 0 14px;
}
.hero-title {
  font-size: clamp(2.9rem, 7.2vw, 5rem);
  font-weight: 800; letter-spacing: -1px; margin-bottom: 18px;
}
.hero-title span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34em; margin: 0 0 28px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .18s, box-shadow .18s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #06251f; background: var(--grad);
  box-shadow: 0 8px 26px rgba(37, 224, 192, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,224,192,.42); }
.btn-ghost { color: var(--text); border: 1.5px solid var(--border); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-big { font-size: 1.1rem; padding: 16px 34px; }

.hero-usps { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.hero-usps li { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 7px; }
.hero-usps li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); flex: none;
}

.hero-gauge { display: flex; justify-content: center; }
#gaugeMount { width: min(430px, 82vw); filter: drop-shadow(0 28px 60px rgba(0,0,0,.55)); }
#gaugeMount svg { width: 100%; height: auto; display: block; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
}
.scroll-hint i {
  width: 1.5px; height: 34px; display: block;
  background: linear-gradient(var(--accent), transparent);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0% { transform: scaleY(.2); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ===== Zahlenband ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; max-width: 1000px; margin: 0 auto;
  padding: 54px clamp(16px, 4vw, 40px) 10px;
}
.stat { text-align: center; padding: 22px 8px; background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius); }
.stat strong {
  display: block; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: .88rem; }

/* ===== Sektionen ===== */
.section { padding: clamp(64px, 9vw, 110px) clamp(16px, 5vw, 56px); max-width: 1160px; margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(34px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ===== Video ===== */
.video-stage { display: flex; justify-content: center; }
.video-frame { position: relative; cursor: pointer; }
.video-frame img { transition: filter .3s; }
.video-frame:hover img { filter: brightness(.75); }
.video-frame.playing { cursor: default; }
.video-frame iframe { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border: 0; border-radius: 26px; background: #000; }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 86px; height: 86px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #06251f; background: var(--grad);
  border: 0; cursor: pointer;
  box-shadow: 0 10px 40px rgba(37,224,192,.45);
  transition: transform .2s;
}
.video-play:hover { transform: scale(1.08); }
.play-ring {
  position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid rgba(37,224,192,.55);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.video-soon {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: rgba(12,14,28,.9); border: 1px solid var(--border);
  color: var(--text); font-size: .9rem; white-space: nowrap;
  padding: 9px 17px; border-radius: 999px;
}
.video-note { text-align: center; color: var(--muted); font-size: .82rem; max-width: 46em; margin: 22px auto 0; }

/* ===== Funktionen ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(37,224,192,.5);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(37,224,192,.16), rgba(138,125,255,.16));
  border: 1px solid rgba(37,224,192,.3);
  color: var(--accent); margin-bottom: 15px;
}
.feature-icon svg { width: 25px; height: 25px; }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ===== Fahrzeug-Chips ===== */
.vehicles-section { padding-top: 0; }
.chip-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.chip {
  padding: 9px 18px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--border);
  color: var(--text); font-size: .92rem; font-weight: 600;
  transition: border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--accent-2); transform: translateY(-2px); }

/* ===== Handy-Rahmen ===== */
.phone-frame {
  position: relative;
  width: min(272px, 74vw); flex: none;
  border-radius: 34px;
  background: #05070d;
  border: 1px solid #2e3856;
  box-shadow:
    inset 0 0 0 3px #10141f,
    0 24px 60px rgba(0,0,0,.55),
    0 4px 14px rgba(0,0,0,.4);
  padding: 10px;
}
.phone-frame::after {
  content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #1a2136; box-shadow: 0 0 0 2px #0a0d16;
}
.phone-frame img { border-radius: 24px; width: 100%; height: auto; }

/* ===== Seite für Seite ===== */
.screen-flow { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 84px); }
.screen-block {
  display: flex; align-items: center; gap: clamp(26px, 5vw, 64px);
  justify-content: center;
}
.screen-block:nth-child(even) { flex-direction: row-reverse; }
.screen-text { max-width: 470px; }
.screen-num {
  font-size: .85rem; font-weight: 800; letter-spacing: 3px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.screen-text h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 6px 0 12px; }
.screen-text p { color: var(--muted); margin: 0 0 14px; }
.screen-tip {
  border-left: 3px solid var(--accent);
  background: rgba(37,224,192,.07);
  border-radius: 0 12px 12px 0;
  padding: 10px 15px;
  font-size: .9rem; color: var(--text) !important;
}

/* Phasen-Trenner im Ablauf (Einrichten / Fahren / Auswerten) */
.flow-phase {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px; align-items: center;
  max-width: 900px; width: 100%; margin: 0 auto;
  padding: 18px 22px;
  background: linear-gradient(100deg, rgba(37,224,192,.09), rgba(138,125,255,.09));
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.flow-phase-num {
  grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800; color: #06251f;
  background: var(--grad);
}
.flow-phase h3 { font-size: 1.15rem; margin: 0; }
.flow-phase p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ===== CTA ===== */
.cta-section { padding-top: 30px; }
.cta-card {
  text-align: center;
  background:
    radial-gradient(600px 260px at 50% -40%, rgba(37,224,192,.14), transparent 70%),
    var(--card-2);
  border: 1px solid var(--border); border-radius: 26px;
  padding: clamp(44px, 7vw, 72px) clamp(20px, 5vw, 60px);
}
.cta-card h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-card > p { color: var(--muted); margin: 0 0 30px; }
.cta-note { margin: 18px 0 0 !important; font-size: .85rem; }

/* ===== Studio ===== */
.studio-section { padding-top: 0; }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; max-width: 860px; margin: 0 auto; }
.studio-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px;
}
.studio-card img { border-radius: 13px; }
.studio-card strong { display: block; }
.studio-card span { color: var(--muted); font-size: .85rem; }
.studio-card.current { border-color: rgba(37,224,192,.45); }
.studio-card.soon { opacity: .62; border-style: dashed; }
.soon-icon {
  width: 56px; height: 56px; flex: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px dashed var(--border);
  color: var(--muted); font-size: 1.5rem; font-weight: 800;
}

/* ===== Fußzeile ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); }
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 26px clamp(16px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
}
.footer-brand { color: var(--muted); font-size: .88rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--muted); font-size: .88rem; }
.footer-nav a:hover { color: var(--accent); }

/* ===== Reveal-Animationen =====
   Versteckt wird nur, wenn JavaScript laeuft (html.js): Bleibt das Skript aus oder
   feuert der IntersectionObserver nicht, ist der Inhalt trotzdem da statt unsichtbar. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
/* Wer im Betriebssystem "Bewegung reduzieren" gesetzt hat (Windows: Einstellungen >
   Barrierefreiheit > Visuelle Effekte > Animationseffekte), bekommt keine Bewegung -
   aber weiterhin ein ruhiges Einblenden, damit die Seite nicht tot wirkt. Endlos
   laufende Schleifen (Glow, Puls, Scroll-Hinweis) bleiben aus. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .5s ease; }
  .js .reveal.visible { opacity: 1; }
  .hero-glow, .play-ring, .scroll-hint i { animation: none; }
  .feature:hover, .btn-primary:hover, .chip:hover { transform: none; }
}

/* ===== Responsiv ===== */
@media (max-width: 940px) {
  .main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-gauge { order: -1; margin-top: -8px; }
  #gaugeMount { width: min(320px, 72vw); }
  .screen-block, .screen-block:nth-child(even) { flex-direction: column; text-align: center; }
  .screen-tip { text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .brand-name { display: none; }
  .hero { padding-bottom: 90px; }
}

/* ===== Rechtsseite (legal.html) ===== */
.legal-wrap { max-width: 780px; margin: 0 auto; padding: calc(var(--header-h) + 34px) 20px 64px; }
.legal-wrap h1 { font-size: 1.6rem; margin-bottom: 4px; }
.legal-wrap .muted { color: var(--muted); font-size: .9rem; }
.legal-card {
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 24px 24px; margin-top: 22px;
}
.legal-card h2 { color: var(--accent); font-size: 1.2rem; margin-top: 26px; }
.legal-card h3 { font-size: 1rem; margin: 20px 0 6px; }
.legal-card p, .legal-card li { color: var(--text); font-size: .95rem; }
