/* RinkIQ Landing — Ergänzungen zum Token-Sheet: Basis, Hover/Active/Fokus,
   Hero-Animation, Responsive. Quelle: design_handoff_landingpage. v2/ (2026-07-20).
   Layout-Maße/Farben stehen 1:1 inline im HTML; hier nur, was inline nicht geht. */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--riq-bg);
  font-family: var(--riq-font-sans);
  color: var(--riq-fg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--riq-fg-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: none; box-shadow: var(--riq-focus-ring); border-radius: 6px; }
::selection { background: rgba(10, 132, 255, 0.18); }
section { scroll-margin-top: 72px; }

@keyframes riq-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes riq-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes riq-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Scroll-Reveal (Feature-Blöcke, Ablauf, Vertrauen, Bisher/Mit-RinkIQ): faden beim
   Scrollen ein. Ohne view()-Timeline-Support (aeltere Browser) laeuft die Animation
   ohne Timeline einmal beim Laden — bewusstes Progressive Enhancement (Handoff-Spec). */
.reveal {
  animation: riq-reveal 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

/* Rink-Grid-Motiv (4 Stellen: Hero, Ablauf, Vertrauen, Kontakt) — je Sektion eigene
   Ellipsen-Maskierung inline per style, dieser Teil ist ueberall gleich. */
.rink-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--riq-ice-blue) 1px, transparent 1px),
    linear-gradient(90deg, var(--riq-ice-blue) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Header-Navigation */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--riq-fg-secondary); font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--riq-fg); text-decoration: none; }

/* Buttons — Basis hier, Größe je Einsatzort per .cta-Modifier (s.u.). CTA-Pfeil
   gleitet auf Hover nach rechts (gap 8→12px, padding-right −4px = Buttonbreite
   bleibt konstant) — nur bei .cta-Buttons, die einen Pfeil-Span führen. */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--riq-radius-sm);
  transition: background var(--riq-dur-fast) var(--riq-ease),
    gap 160ms var(--riq-ease), padding-right 160ms var(--riq-ease);
}
.btn-primary {
  background: var(--riq-ice-blue);
  color: #FFFFFF;
  font-weight: 600;
}
.btn-primary:hover { background: var(--riq-ice-blue-700); text-decoration: none; }
.btn-primary:active { background: var(--riq-ice-blue-800); }
.btn-secondary {
  background: #FFFFFF;
  color: var(--riq-fg);
  border: 1px solid var(--riq-border);
  font-weight: 500;
}
.btn-secondary:hover { background: var(--riq-bg-subtle); text-decoration: none; }
.btn-secondary:active { background: var(--riq-ice-blue-100); }

/* .cta = die drei Pfeil-CTAs (Hero primär/sekundär, Kontakt). Eigene Klasse statt
   Inline-Padding, sonst schlaegt das Inline-Shorthand die Hover-Regel unten. */
.btn-primary.cta { font-size: 15px; padding: 12px 22px; }
.btn-secondary.cta { font-size: 15px; padding: 11px 22px; }
.btn-primary.cta:hover,
.btn-secondary.cta:hover { gap: 12px; padding-right: 18px; }

/* Footer */
.footer-link { font-size: 13px; color: var(--riq-fg-secondary); }
.footer-link:hover { color: var(--riq-fg); }

/* UI-Mockup-Karten (Funktions-Blöcke): heben beim Hover zu Shadow md */
.mockup-card { transition: box-shadow 180ms var(--riq-ease); }
.mockup-card:hover { box-shadow: var(--riq-shadow-md); }

/* Blinkender Cursor im Freitext-Mockup */
.cursor-blink {
  display: inline-block;
  width: 1px;
  height: 15px;
  background: var(--riq-ice-blue);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: riq-blink 1.1s infinite;
}

/* Status-Badge Hero-Karte: pulsierender Punkt waehrend der Planung, Check bei Abschluss */
.status-dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--riq-ice-blue); flex-shrink: 0; animation: riq-pulse 1.1s infinite; }
.status-check { flex-shrink: 0; display: none; }
#hero-status.done .status-dot { display: none; }
#hero-status.done .status-check { display: inline-flex; }

/* Faceoff-Punkt am Ende jeder Ablauf-Trennlinie */
.faceoff-dot { width: 7px; height: 7px; border-radius: 9999px; border: 1px solid var(--riq-ice-blue); opacity: 0.35; flex-shrink: 0; }

/* Dunkle Vertrauens-Kacheln: Border faerbt sich beim Hover ice-blue */
.trust-tile { transition: border-color 180ms var(--riq-ease); }
.trust-tile:hover { border-color: rgba(10, 132, 255, 0.5); }

/* Pfeil-Badge zwischen Bisher/Mit-RinkIQ: mittiger Kreis ueber dem Grid */
.compare-grid { position: relative; }
.compare-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid var(--riq-border);
  box-shadow: var(--riq-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero-Spielplan-Animation: Chips erscheinen per .on (Fade + 4 px translate-up) */
.chip {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: var(--riq-ice-blue-50);
  border: 1px solid var(--riq-ice-blue-100);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.chip.on { opacity: 1; transform: translateY(0); }
.chip-g { font-family: var(--riq-font-mono); font-size: 10px; font-weight: 500; color: var(--riq-ice-blue-800); white-space: nowrap; }
.chip-t { font-family: var(--riq-font-mono); font-size: 9px; color: var(--riq-fg-secondary); }

/* Solver-Raster (Funktions-Block 2): Zellen füllen sich proportional blau */
.solver-cell {
  height: 18px;
  border-radius: 3px;
  background: var(--riq-bg-subtle);
  border: 1px solid var(--riq-border-subtle);
  transition: background 260ms var(--riq-ease), border-color 260ms var(--riq-ease);
}
/* Border #A9D3F7 = Handoff-Zwischenton zwischen ice-blue-100 und ice-blue (kein Token vorhanden) */
.solver-cell.on { background: var(--riq-ice-blue-100); border-color: #A9D3F7; }

/* Grid-Container (Spaltenzahl hier statt inline, damit Media Queries greifen) */
.hero-grid {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 32px 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-h1 { margin: 0; font-size: 48px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--riq-fg); text-wrap: pretty; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; max-width: 880px; margin-left: auto; margin-right: auto; }

/* Responsive (Handoff spezifiziert nur Desktop; hier defensives Stacking) */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 64px; }
  .hero-h1 { font-size: 36px; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row .order-1, .feature-row .order-2 { order: 0; }
  .steps-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .nav-link { display: none; }
}
@media (max-width: 560px) {
  .steps-grid, .trust-grid { grid-template-columns: 1fr; }
}

/* Reduzierte Bewegung: Endzustand statisch (hero.js prüft zusätzlich per JS) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip, .solver-cell, .reveal { transition: none; animation: none; }
  .cursor-blink, .status-dot { animation: none; }
}
