/* ============================================================
   DESIGN-TOKENS
   Farbwelt an die Designvorlage angelehnt: helles, kühles Blau
   als Basis, tiefes Navy für Headlines, ein zurückhaltender
   Goldton als Akzent (aus dem Vorlagen-Logo), plus das
   vertrauenswürdige WhatsApp-Grün für den Haupt-CTA.
   ============================================================ */
:root {
  --bg-top: #eaf1fb;
  --bg-bottom: #ffffff;
  --navy: #16233f;
  --blue: #4472a8;
  --blue-deep: #2c4a76;
  --blue-soft: #dce6f5;
  --gold: #c9a227;
  --green: #22c55e;
  --green-dark: #16a34a;
  --ink-muted: #5b6b85;
  --white: #ffffff;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 20px 50px -20px rgba(22, 35, 63, 0.25);
  --shadow-button: 0 14px 30px -12px rgba(34, 197, 94, 0.55);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   RESET & BASICS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 55%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Sichtbare Fokuszustände für Barrierefreiheit */
a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-5) 0 var(--space-4);
}

.hero__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(68, 114, 168, 0.16) 0%, rgba(68, 114, 168, 0) 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  margin: 0 0 var(--space-3);
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(68, 114, 168, 0.18);
}

.headline {
  font-size: clamp(1.75rem, 5vw + 0.5rem, 2.9rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  max-width: 18ch;
  margin: 0 0 var(--space-2);
  opacity: 0;
  animation: fade-up 0.6s ease 0.08s forwards;
}

.subheadline {
  font-size: clamp(0.95rem, 1vw + 0.75rem, 1.1rem);
  color: var(--ink-muted);
  max-width: 42ch;
  line-height: 1.6;
  margin: 0 0 var(--space-4);
  opacity: 0;
  animation: fade-up 0.6s ease 0.16s forwards;
}

/* ============================================================
   VIDEO
   ============================================================ */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0c1524;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(22, 35, 63, 0.06);
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: fade-up 0.7s ease 0.24s forwards;
}

.video-frame__ring {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(201, 162, 39, 0.18), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(68, 114, 168, 0.25), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.video-frame__video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c1524;
}

/* Platzhalter-Overlay: verschwindet automatisch, sobald ein
   echtes Video mit gültiger Quelle geladen wurde (siehe script.js) */
.video-frame__placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  background: linear-gradient(160deg, #101d33 0%, #0a1120 100%);
  pointer-events: none;
}

.video-frame__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}



/* Vimeo-Zustimmung vor dem Laden des externen Players */
.video-consent {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(160deg, rgba(16, 29, 51, 0.96) 0%, rgba(10, 17, 32, 0.98) 100%);
}

.video-consent__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}

.video-consent__play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 3px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.video-consent__button:hover .video-consent__play {
  transform: scale(1.06);
}

.video-consent__text {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.video-consent__link {
  color: var(--white);
  font-size: 0.84rem;
  text-underline-offset: 3px;
}

.vimeo-embed {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   CALL TO ACTION
   ============================================================ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(1rem, 1vw + 0.9rem, 1.15rem);
  text-decoration: none;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-button);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  opacity: 0;
  animation: fade-up 0.7s ease 0.32s forwards;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -14px rgba(34, 197, 94, 0.6);
  filter: brightness(1.03);
}

.cta:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.cta--pulse {
  animation: pulse-once 1s ease;
}

.cta__icon { flex-shrink: 0; }

.cta-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  opacity: 0;
  animation: fade-up 0.6s ease 0.4s forwards;
}

/* ============================================================
   VERTRAUENSBEREICH
   ============================================================ */
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: var(--space-4) 0 0;
  padding: 0;
  opacity: 0;
  animation: fade-up 0.6s ease 0.48s forwards;
}

.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}

.trust__icon { color: var(--blue); display: inline-flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--blue-soft);
  padding: var(--space-3) 0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.footer__links {
  display: flex;
  gap: 1.2rem;
}

.footer__links a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer__links a:hover { color: var(--blue-deep); }

/* ============================================================
   ANIMATIONEN
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-once {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .eyebrow, .headline, .subheadline, .video-frame, .cta, .cta-note, .trust {
    opacity: 1;
  }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (min-width: 640px) {
  .container { padding: 0 var(--space-4); }
  .hero { padding: var(--space-5) 0 3rem; }
}

@media (min-width: 960px) {
  .container { max-width: 760px; }
  .headline { max-width: 20ch; }
}
