/* Startseite – Ergänzungen zu style.css (nur auf index.html geladen): sichtbare Hauptüberschrift, Werbevideo,
   Live-Demo-Hinweis, Pilotpartner-Hinweis, Nutzen-Raster, Kontaktdaten. Gleiche Farben/Schriften (Variablen aus style.css). */

/* Hero */
.hero-title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.12; letter-spacing: -0.01em; margin: 28px auto 0; max-width: 820px; text-wrap: balance;
}
.hero-inner .hero-lockup { max-width: 520px; }
.hero-actions { margin-bottom: 18px; }
.hero-more { margin: 0 0 48px; font-size: 0.95rem; }
.hero-more a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border-bright); }
.hero-more a:hover { color: var(--blue-bright); border-color: var(--blue); }

/* Werbevideo: Text links, Hochformat-Video rechts */
.promo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.promo-text h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2; margin: 0 0 16px; text-wrap: balance;
}
.promo-text .btn { margin-top: 28px; }
.promo-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.promo-list li { position: relative; padding-left: 24px; color: var(--muted); }
.promo-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 8px rgba(47, 125, 251, 0.6);
}
.promo-media { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
/* fester 9:16-Rahmen → kein Layoutsprung beim Laden. Breite aus der gewünschten Höhe abgeleitet (Höhe × 9/16),
   damit das Seitenverhältnis bei jeder Breite exakt bleibt (Desktop bis 640 px hoch, Smartphone bis 62 % der Höhe). */
.promo-frame {
  --video-h: min(78vh, 640px);
  aspect-ratio: 9 / 16; width: min(100%, calc(var(--video-h) * 9 / 16)); height: auto; margin: 0 auto;
  border-radius: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border-bright); box-shadow: 0 30px 60px -30px rgba(47, 125, 251, 0.45);
}
.promo-frame { position: relative; }
.promo-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.promo-transcript { margin-top: 14px; color: var(--muted); font-size: 0.88rem; }
.promo-transcript summary { cursor: pointer; color: var(--white); font-weight: 600; }
.promo-transcript summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.promo-transcript p { margin: 10px 0 0; }
.promo-note { color: var(--muted-2); font-size: 0.8rem; }

/* Live-Demo */
.demo-teaser {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.demo-teaser h2, .pilot-teaser h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0 0 14px;
}
.demo-teaser-cta { text-align: center; }
.demo-teaser-hint { color: var(--muted-2); font-size: 0.82rem; margin: 12px 0 0; }
.ext { margin-left: 8px; }

/* Pilotpartner */
.pilot-teaser-box {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--border-bright); border-radius: var(--radius); padding: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.pilot-teaser-box .btn { grid-column: 1 / -1; justify-self: start; }
.pilot-teaser-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pilot-teaser-list li { position: relative; padding-left: 28px; }
.pilot-teaser-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Nutzen: 3 Spalten statt 4 */
.benefit-grid { grid-template-columns: repeat(3, 1fr); }

/* Kontaktdaten */
.contact-card {
  font-style: normal; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  margin: 26px auto 0; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font-size: 0.95rem;
}
.contact-card span { color: var(--muted); }
.contact-card a, .footer-copy a { color: var(--blue-bright); }

@media (max-width: 860px) {
  .promo, .demo-teaser, .pilot-teaser-box { grid-template-columns: 1fr; }
  .promo { gap: 32px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  /* Smartphone: Video sichtbar, aber nicht bildschirmfüllend */
  .promo-media { max-width: 300px; }
  .promo-frame { --video-h: min(62vh, 520px); }
  .demo-teaser-cta { text-align: left; }
  .pilot-teaser-box { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .promo-media { max-width: 260px; }
  .demo-teaser-cta .btn, .pilot-teaser-box .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ersetzt ein früheres style-Attribut (von der CSP blockiert) */
.section-head-gap { margin-top: 30px; }

/* gut sichtbarer Start-Knopf über dem Vorschaubild (verschwindet beim Abspielen) */
.promo-play {
  position: absolute; left: 50%; top: 72%; transform: translate(-50%, -50%); width: 76px; height: 76px;  /* unter dem Hook-Text des Vorschaubilds */
  border-radius: 50%; border: 0; cursor: pointer; color: #051225; background: var(--blue);
  box-shadow: 0 0 0 8px rgba(47, 125, 251, 0.25), 0 12px 30px -8px rgba(0, 0, 0, 0.7);
  display: grid; place-items: center; transition: background 0.2s ease, transform 0.2s ease;
}
.promo-play svg { width: 34px; height: 34px; margin-left: 4px; }
.promo-play:hover { background: var(--blue-bright); transform: translate(-50%, -50%) scale(1.05); }
.promo-play:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }

/* Kontaktformular mit drei Anlässen: auf schmalen Bildschirmen untereinander statt nebeneinander */
@media (max-width: 640px) {
  .lead-choice { flex-wrap: wrap; }
  .lead-choice .choice-btn { flex: 1 1 100%; }
}

/* Pilotpartner-Aktionsleiste unter der Navigation (nur Status recruiting, siehe js/kampagne.js) */
.kampagne-leiste { background: var(--surface); border-bottom: 1px solid var(--border); }
.kampagne-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center;
  justify-content: center; gap: 8px 18px; flex-wrap: wrap; font-size: 0.92rem; text-align: center;
}
.kampagne-inner p { margin: 0; color: var(--muted); }
.kampagne-inner b { color: var(--white); font-weight: 600; margin-right: 4px; }
.kampagne-btn {
  color: var(--blue-bright); text-decoration: none; font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.kampagne-btn:hover, .kampagne-btn:focus-visible { border-bottom-color: var(--blue-bright); }
@media (max-width: 640px) { .kampagne-inner { font-size: 0.85rem; padding: 8px 16px; } }

/* Pilot-Video als Ebene (Klick auf einen Pilot-Link) */
.pilot-layer { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; color: var(--white); }
.pilot-layer[open] { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pilot-layer::backdrop { background: rgba(3, 4, 6, .88); backdrop-filter: blur(4px); }
.pilot-layer video { display: block; height: min(78vh, 760px); width: auto; max-width: 92vw; aspect-ratio: 9 / 16; object-fit: contain;
  background: #000; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.pilot-layer-zu { position: absolute; top: -6px; right: -54px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08); color: var(--white); font-size: 1.1rem; cursor: pointer; }
.pilot-layer-zu:hover, .pilot-layer-zu:focus-visible { background: var(--blue); outline: none; }
.pilot-layer-weiter.hervor { box-shadow: 0 0 0 6px rgba(47, 125, 251, .35); }
html.layer-offen { overflow: hidden; }
@media (max-width: 640px) {
  .pilot-layer video { height: min(72vh, 640px); }
  .pilot-layer-zu { top: auto; bottom: calc(100% + 8px); right: 0; }
  .pilot-layer[open] { margin-top: 64px; }
}

/* Imagefilm (16:9) unter dem Pilot-Reel */
.imagefilm { display: grid; gap: 24px; }
.imagefilm-text { max-width: 62ch; }
.imagefilm-media { margin: 0; width: 100%; max-width: 960px; justify-self: center; }
.imagefilm-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.imagefilm-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.imagefilm-frame .promo-play { top: 50%; }   /* mittig; Browser-Bedienleiste erst nach dem Start (main.js) */
