/* ==========================================================================
   beinhofer.com — MyPowerTennis Design
   Markenfarben aus der App: Navy + Gold, Speed-Gradient blau→rot
   (vgl. Shared/UI/ColorScale.swift)
   ========================================================================== */

:root {
  /* Marke */
  --navy:        #1e2438;
  --navy-deep:   #161b2c;
  --navy-soft:   #28304a;
  --gold:        #f2c027;
  --gold-soft:   #ffd95e;
  --ink:         #1d2330;
  --text:        #2b3140;
  --muted:       #6b7280;
  --line:        #e6e8ee;
  --card:        #ffffff;
  --bg:          #f6f7fb;

  /* Speed-Skala (identisch zur App) */
  --c-blue:   #0a84ff;
  --c-cyan:   #2fd6dd;
  --c-green:  #30c84a;
  --c-yellow: #ffd60a;
  --c-orange: #ff9f0a;
  --c-red:    #ff3b30;
  --speed-gradient: linear-gradient(90deg,
      var(--c-blue) 0%, var(--c-cyan) 28%, var(--c-green) 50%,
      var(--c-yellow) 70%, var(--c-orange) 85%, var(--c-red) 100%);

  --radius:      18px;
  --radius-lg:   26px;
  --shadow:      0 1px 2px rgba(20,25,45,.04), 0 12px 32px rgba(20,25,45,.08);
  --shadow-sm:   0 1px 2px rgba(20,25,45,.05), 0 6px 18px rgba(20,25,45,.06);
  --maxw:        1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .8rem;
}
.eyebrow.dark { color: #b98f12; }

/* Speed-Linie als wiederkehrendes Marken-Element */
.speedline { height: 4px; border-radius: 4px; background: var(--speed-gradient); border: 0; margin: 0; }
.speedline.thin { height: 3px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30,36,56,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-header .speedline { border-radius: 0; }
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: #fff;
  text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.brand span small { display: block; font-size: .68rem; font-weight: 600; color: var(--gold-soft);
  letter-spacing: .02em; opacity: .9; }
.nav-spacer { flex: 1; }
.nav a.navlink { color: #d7dbe8; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a.navlink:hover { color: #fff; }
.lang { display: flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang a { color: #c5cad8; text-decoration: none; font-size: .8rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; }
.lang a.active { background: var(--gold); color: var(--navy); }

/* ---------- Navigation: Desktop-Reihe, mobil Burger-Menü ---------- */
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); border-radius: 12px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle:hover { background: rgba(255,255,255,.14); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: #e6e9f2;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav { gap: 10px; }
  .nav-toggle { display: inline-flex; }
  /* Menü klappt als Panel unter dem Kopf auf (Kopf ist sticky = Bezugsrahmen). */
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(24,29,46,.98);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    max-height: 0; overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav-links.open { max-height: 70vh; }
  .nav-links a.navlink {
    padding: 15px 22px; font-size: 1.02rem;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .brand span small { display: none; }   /* Logo-Untertitel spart Platz */
}
@media (max-width: 380px) { .brand span { font-size: .95rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 0;
  padding: 13px 22px; border-radius: 999px; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 22px rgba(242,192,39,.35); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn-dark { background: var(--ink); color: #fff; }

/* App-Store-Badge (CSS-Variante; offizielles Apple-Badge kann später eingesetzt werden) */
.appstore {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #000; color: #fff; border-radius: 14px; padding: 11px 20px 11px 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.appstore svg { width: 26px; height: 26px; fill: #fff; }
.appstore .t { line-height: 1.05; }
.appstore .t small { display: block; font-size: .66rem; font-weight: 500; opacity: .85; }
.appstore .t b { font-size: 1.18rem; font-weight: 600; }
/* App Store noch nicht verfügbar → ausgegraut, nicht klickbar */
.appstore.soon {
  background: rgba(255,255,255,.07); color: #868da2;
  box-shadow: none; cursor: default; pointer-events: none;
  border: 1px solid rgba(255,255,255,.14);
}
.appstore.soon svg { fill: #868da2; opacity: .85; }

/* ---------- Hero ---------- */
.hero { background:
    radial-gradient(1100px 520px at 78% -8%, rgba(242,192,39,.16), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(10,132,255,.12), transparent 55%),
    var(--navy);
  color: #fff; position: relative; overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: clamp(48px, 8vw, 92px) 0; }
.hero h1 { color: #fff; }
.hero h1 .hl { background: var(--speed-gradient); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.hero p.lead { color: #c7ccdb; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; }
.hero-meta { margin-top: 22px; color: #9aa1b6; font-size: .9rem; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-meta b { color: var(--gold-soft); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone {
  width: min(280px, 78%); border-radius: 38px; box-shadow: 0 30px 70px rgba(0,0,0,.45);
  border: 6px solid #0d1120; background: #0d1120; transform: rotate(-3deg);
}
.hero-visual .badge-speed {
  position: absolute; bottom: 6%; left: 2%; background: #fff; color: var(--ink);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); transform: rotate(2deg);
}
.hero-visual .badge-speed .kmh { font-size: 1.7rem; font-weight: 800; color: var(--c-green); }
.hero-visual .badge-speed small { color: var(--muted); font-weight: 600; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead, .hero-meta { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
}

/* ---------- Feature-Karten ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 14px; background: rgba(242,192,39,.14);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Screenshots-Showcase ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: end; }
.shot { text-align: center; }
.shot img {
  border-radius: 26px; border: 5px solid var(--navy); box-shadow: var(--shadow);
  margin: 0 auto 12px; background: var(--navy);
}
.shot p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr 1fr; } }

/* ---------- Dunkle Sektion ---------- */
.dark { background: var(--navy); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead { color: #b9bfd2; }
.dark .card { background: var(--navy-soft); border-color: rgba(255,255,255,.08); }

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  /* Hochformat-Video (9:16, Handy-Aufnahme): so groß wie möglich, aber (a) nie
     breiter als der Container und (b) durch die verfügbare Höhe begrenzt, damit
     das ganze Bild samt Play-Button ohne Beschnitt sichtbar bleibt. */
  width: min(100%, calc((100svh - 240px) * 9 / 16));
  max-width: 480px;
  margin-left: auto; margin-right: auto; margin-top: 18px;
  border-radius: 40px; overflow: hidden;
  border: 7px solid #14141a;
  /* Bezel + farbiger Ambient-Glow statt nacktem schwarzem Kasten */
  box-shadow: 0 24px 70px rgba(0,0,0,.55),
              0 0 90px rgba(47,111,237,.28),
              0 0 160px rgba(201,162,39,.14);
  background: #000;
  aspect-ratio: 9 / 16;
}
/* Querformat-Variante (Erklärvideo 16:9) */
.video-wrap.landscape {
  aspect-ratio: 16 / 9;
  width: min(100%, calc((100svh - 240px) * 16 / 9));
  max-width: 960px;
  border-radius: 22px; border-width: 5px;
}
/* Video-Seite: weniger Kopf-Abstand + Container-Breite aufheben, damit das Video
   den Bildschirm füllt (Seitenrand bleibt der 22px-Innenabstand des .wrap). */
#video.section { padding-top: clamp(20px, 3vw, 34px); }
#video .wrap { max-width: none; }
.video-wrap video { width: 100%; height: 100%; display: block; object-fit: contain; }

/* Zentrales Play-Symbol über dem Vorschaubild */
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 92px; height: 92px; border-radius: 999px; border: 0;
  cursor: pointer; background: var(--gold); color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .15s ease, background .15s ease;
}
.video-play::after {
  content: ""; position: absolute; inset: -14px;
  border-radius: 999px; border: 2px solid rgba(255,255,255,.35);
}
.video-play svg { width: 40px; height: 40px; fill: currentColor; margin-left: 5px; }
.video-play { z-index: 2; }
.video-wrap:not(.playing) { cursor: pointer; }
.video-wrap:not(.playing):hover .video-play { transform: scale(1.08); background: var(--gold-soft); }
.video-wrap.playing .video-play { display: none; }
/* Leichter Scrim über dem Poster, damit das Play-Symbol klar heraussticht */
.video-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(20,25,45,.28), rgba(20,25,45,.46));
  transition: opacity .25s ease;
}
.video-wrap.playing::before { opacity: 0; }
.dark .card p { color: #b9bfd2; }
.dark .card .ic { background: rgba(242,192,39,.18); }

/* ---------- Accuracy / Liste ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--gold); font-weight: 800; flex: 0 0 auto;
  background: rgba(242,192,39,.16); width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; font-size: .85rem; margin-top: 2px; }
.dark .checklist li::before { background: rgba(242,192,39,.2); }

/* ---------- CTA-Band ---------- */
.cta-band { background:
    radial-gradient(700px 300px at 100% 0%, rgba(242,192,39,.18), transparent 60%), var(--navy-deep);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(34px, 6vw, 60px);
  text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 800; font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Prosa (Impressum / Support-Text) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose a { color: #1463c9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aab0c4; padding: 48px 0 36px; }
.site-footer .speedline { margin-bottom: 36px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; }
.foot-brand { max-width: 280px; }
.foot-brand .brand { margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 14px; }
.site-footer a { color: #aab0c4; text-decoration: none; display: block; margin-bottom: 9px; font-size: .95rem; }
.site-footer a:hover { color: var(--gold-soft); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 22px;
  font-size: .85rem; color: #7c8298; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; }
