/* ── MO MOTION – Landingpage ── */

:root {
  /* ── BASIS ── */
  --ink:     #171412;   /* Ink Black   – Hintergrund (dark) */
  --warm:    #F5F2EE;   /* Warm White  – Hintergrund (light) / Primärtext auf dark */

  /* ── NEUTRAL ── */
  --graphite:#3D3A35;   /* Graphite    – Fließtext auf light */
  --dusk:    #7A776F;   /* Dusk        – Sekundärtext · Rahmen · Trennlinien */

  /* ── AKZENT ── */
  --forest:  #2A6048;   /* Forest      – Primärer Akzent · CTA */
  --ocean:   #1D4A6B;   /* Deep Ocean  – Sekundärer Akzent · Links · Tags */

  /* ── RESERVIERT ── */
  --crimson: #A8202A;   /* Deep Crimson – Fehler · Kritisch (sparsam) */

  /* ── ALIASES (Rückwärtskompatibilität) ── */
  --dark:    var(--ink);
  --light:   var(--warm);
  --text:    var(--dusk);
  --accent:  var(--forest);
  --muted:   var(--dusk);
  --neutral: var(--dusk);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ── MAIN ── */

main {
  width: 100%;
}

/* ── HERO ── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 48px 24px 80px;
}

/* ── LOGO ── */

.logo {
  width: min(520px, 82vw);
}

/* ── SCROLL INDICATOR ── */

.scroll-indicator {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBob 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neutral);
}

.scroll-arrow {
  width: 13px;
  height: 13px;
  border-right: 1.5px solid var(--neutral);
  border-bottom: 1.5px solid var(--neutral);
  transform: rotate(45deg);
}

/* ── CONTENT ── */

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 64px 24px 48px;
  animation: fadeUp 1.4s ease forwards;
}

/* ── DIVIDER ── */

.divider {
  width: 340px;
  max-width: 70vw;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(42,96,72,0.65), transparent);
  animation: glimmer 5s ease-in-out infinite;
  border: none;
}

/* ── HEADLINE ── */

.headline-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.is-text {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

h1 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── TEXTBLOCK ── */

.textblock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.subline {
  font-size: 1.6rem;
  color: var(--light);
  letter-spacing: 1px;
  font-weight: 500;
}

.hint {
  font-size: 0.85rem;
  color: var(--neutral);
  letter-spacing: 1px;
  margin-top: 4px;
}

.hint-cta {
  font-size: 1rem;
  color: var(--text);
  margin-top: 12px;
}

/* ── TIPP-SPIEL ── */

.game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.game-box {
  border: 1px solid rgba(42,96,72,0.25);
  border-radius: 12px;
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(42,96,72,0.04);
  width: 100%;
  max-width: 380px;
}

.target-text {
  display: flex;
  gap: 1px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 6px;
}

.char         { color: var(--neutral); transition: color 0.1s; }
.char.active  { color: var(--light);  }
.char.correct { color: var(--accent); }
.char.wrong   { color: var(--crimson); }

.timer {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  min-width: 5ch;
  text-align: center;
}

.game-status {
  font-size: 0.75rem;
  color: var(--neutral);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hint-arrow {
  font-size: 0.9rem;
  color: var(--neutral);
  opacity: 0.6;
  margin-top: 4px;
}

.mobile-hint {
  display: none;
  font-size: 0.7rem;
  color: var(--neutral);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

.restart-btn {
  background: transparent;
  border: 1px solid rgba(42,96,72,0.3);
  color: var(--accent);
  padding: 8px 24px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.restart-btn:hover {
  border-color: var(--accent);
  background: rgba(42,96,72,0.08);
}

/* ── FOOTER ── */

footer {
  padding: 28px;
  text-align: center;
}

footer p {
  font-size: 0.7rem;
  color: var(--neutral);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── SPIEL: SICHEL-ANIMATION ── */

@keyframes sichel-wave {
  0%, 100% { opacity: 1;    }
  50%       { opacity: 0.15; }
}

#sichel-top    { animation: sichel-wave 3s cubic-bezier(0.45,0,0.55,1) 0s     infinite; }
#sichel-right  { animation: sichel-wave 3s cubic-bezier(0.45,0,0.55,1) 0.75s  infinite; }
#sichel-bottom { animation: sichel-wave 3s cubic-bezier(0.45,0,0.55,1) 1.5s   infinite; }
#sichel-left   { animation: sichel-wave 3s cubic-bezier(0.45,0,0.55,1) 2.25s  infinite; }

/* ── ANIMATIONEN ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glimmer {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 1;    }
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1;   }
}
