/* =========================================================
   LINVO – gemeinsame Grundlage aller Seiten
   Tokens, Schriften, Basis, Kopf/Fuß, Knöpfe, Videos
   ========================================================= */


/* ---------- Schriften (selbst gehostet, kein Google-Fonts-Abruf) ---------- */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(../fonts/dm-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url(../fonts/dm-sans-600.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(../fonts/dm-sans-700.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 400; font-display: swap; src: url(../fonts/dm-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 500; font-display: swap; src: url(../fonts/dm-mono-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format('woff2'); }

:root {
  /* Farben */
  --navy: #0a1628;
  --green: #34d98b;          /* Akzent auf dunklem Grund */
  --green-dark: #0a7548;     /* Akzent auf hellem Grund */
  --green-mid: #0fa968;      /* helle Knöpfe, Häkchen */
  --green-hover: #6ee7a8;
  --green-hover-light: #0c8f57;
  --soft: #eef2f6;
  --ink-2: #2a3445;
  --gray: #4a5568;
  --gray-2: #424245;
  --muted: #6b7486;
  --muted-2: #a3a9b1;
  --on-dark: #d7deeb;
  --on-dark-2: #b8c2d6;
  --on-dark-3: #e8edf6;
  --line: rgba(10, 22, 40, 0.18);
  --line-dark: rgba(255, 255, 255, 0.25);
  --red: #ff5a50;

  /* Schriften */
  --font-sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-head: Poppins, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, Menlo, monospace;

  /* Layout */
  --section-y: clamp(80px, 9vw, 120px);
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* Dunkler Verlauf (Hero, München, Prognose, Ablauf, Fußbereich) */
  --grad-dark:
    radial-gradient(ellipse 42% 80% at 60% 100%, rgba(27,63,224,0.6) 0%, rgba(27,63,224,0.3) 43%, rgba(27,63,224,0) 100%),
    radial-gradient(ellipse 48% 92% at 51% -7%, rgba(27,63,224,0.35) 0%, rgba(27,63,224,0) 100%),
    radial-gradient(ellipse 32% 60% at 26% 0%, rgba(27,63,224,0.25) 0%, rgba(27,63,224,0) 100%),
    radial-gradient(ellipse 21% 40% at 75% 104%, rgba(52,217,139,0.6) 0%, rgba(52,217,139,0.25) 40%, rgba(52,217,139,0) 100%),
    #0a1628;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img, svg, video { display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.container { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--section-y) 24px; }
.section--dark { background: var(--grad-dark); color: #ffffff; }
.section--soft { background: var(--soft); color: var(--navy); }
.section--white { background: #ffffff; color: var(--navy); }

/* ---------- Typografie ---------- */
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.section--dark .kicker { color: var(--green); }

.h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.accent { color: var(--green-dark); }
.section--dark .accent, .site-footer .accent { color: var(--green); }

.lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 30em;
}
.lead--wide { max-width: 34em; }
.lead--full { max-width: none; }
.section--dark .lead { color: var(--on-dark); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.head { display: flex; flex-direction: column; gap: 24px; max-width: 820px; }
.head--center { align-items: center; text-align: center; }

/* Überleitungen zum nächsten Abschnitt („… ↓“) */
.loop {
  align-self: center;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  color: inherit;
}
.loop:hover { color: inherit; border-color: var(--green) !important; }
.loop-arrow { display: inline-block; transition: transform 160ms; }
.loop:hover .loop-arrow { transform: translateY(3px); }
.loop--full { flex: 1 1 100%; }

/* ---------- Knöpfe ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--green);
  color: var(--navy);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 240ms;
}
.btn-cta:hover { background: var(--green-hover); color: var(--navy); }
.btn-cta:active { transform: scale(.97); }
.btn-cta--light { background: var(--green-mid); color: #ffffff; }
.btn-cta--light:hover { background: var(--green-hover-light); color: var(--navy); }
.btn-cta--shadow { box-shadow: 0 10px 26px rgba(15,169,104,0.28); }
.btn-cta--sm { min-height: 48px; padding: 0 22px; font-size: 16px; gap: 8px; }
.btn-cta svg { flex: none; width: 1.15em; height: 1.15em; transition: transform 160ms var(--ease); }
.btn-cta:hover svg { transform: translateX(3px); }

/* ---------- Kopfzeile ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; padding: 0 24px; }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 28px 0; display: flex; align-items: center; }
.site-header img { height: 26px; width: auto; }

.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--navy);
  cursor: pointer;
}
.video:focus-visible { outline-offset: -4px; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute;
  border-radius: 999px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms;
}
.video:hover .play { transform: scale(1.08); }
.play--large { left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.play--small { left: 16px; bottom: 16px; width: 48px; height: 48px; box-shadow: 0 6px 18px rgba(0,0,0,0.3); }

.vgrid { width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.vtile {
  grid-column: span 2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10,22,40,0.10);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.vtile--wide { grid-column: span 3; }
.vtile:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(10,22,40,0.16); }
@media (max-width: 760px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid > * { grid-column: span 1; }
  .vgrid > :first-child { grid-column: span 2; }
}

.rating { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 8px; }
.rating__line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.rating__line strong { color: var(--navy); }
.rating__line a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ---------- Fußbereich ---------- */
.site-footer {
  padding: var(--section-y) 24px 120px;
  background: var(--grad-dark);
  color: #8a96ad;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer .container { display: flex; flex-direction: column; gap: 20px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.legal img { height: 20px; width: auto; }
.legal nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.legal nav a { color: var(--on-dark-2); text-decoration: none; }
.legal nav a:hover { color: #ffffff; }
.disclaimer { margin: 0; max-width: 900px; font-size: 13px; line-height: 1.6; }

/* ---------- Video-Dialog ---------- */
.video-dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  color: #ffffff;
}
.video-dialog[open] { display: flex; align-items: center; justify-content: center; }
.video-dialog::backdrop { background: rgba(5,13,26,0.86); }
.video-dialog__box { position: relative; width: 100%; max-width: 960px; display: flex; flex-direction: column; gap: 14px; }
.video-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.video-dialog__title { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; }
.video-dialog__close {
  flex: none;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms, border-color 160ms;
}
.video-dialog__close:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.video-dialog__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: var(--navy); }
.video-dialog__frame video { width: 100%; height: 100%; background: #000000; }

/* ---------- Schmale Bildschirme ---------- */
/* Knopftext soll auf 375 px einzeilig bleiben */
@media (max-width: 480px) {
  .btn-cta { font-size: 16px; padding: 0 22px; gap: 10px; }
  .btn-cta--sm { font-size: 15px; padding: 0 18px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
