/* Ergänzung zu hf.css (Kopie von 8thsense.de/hiit-flow) für die eigenständige
   Seite: Schrift, Body-Reset, Hero ohne 8thsense-Kopfleiste, Fußzeile. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

html { background: #131313; color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.hf-body { margin: 0; background: #131313; }
.hf { --hf-font: "Inter"; }
/* Basis-Resets aus globals.css von 8thsense.de, auf die hf.css aufbaut.
   :where() hält die Spezifität bei null, damit jede hf-Regel gewinnt. */
:where(.hf) * { margin: 0; padding: 0; }
:where(.hf) a { color: inherit; text-decoration: none; }
:where(.hf) img { display: block; max-width: 100%; }

/* Auf 8thsense.de schob die fixe Navigation den Hero nach unten. */
.hf-hero { padding-top: 56px; }
@media (max-width: 1020px) { .hf-hero { padding-top: 40px; } }

/* ---------- Fußzeile ---------- */
.hf-foot {
  background: #0e0e0e;
  color: #b4adab;
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  border-top: 1px solid rgba(229, 226, 225, 0.1);
  padding: 40px 0 48px;
}
.hf-foot .hf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hf-foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hf-foot .hf-brand { display: flex; align-items: center; gap: 10px; margin: 0; color: #e5e2e1; font-weight: 800; letter-spacing: -0.02em; }
.hf-foot .hf-brand img { border-radius: 8px; }
.hf-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hf-foot a { color: #e5e2e1; text-decoration: none; }
.hf-foot a:hover { color: #ff571a; }
.hf-foot a:focus-visible { outline: 3px solid #afc6ff; outline-offset: 3px; border-radius: 6px; }
.hf-foot__by { margin: 0 0 0 auto; }
.hf-foot__by a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .hf-foot__by { margin: 0; flex-basis: 100%; } }

/* ======================================================================
   Mehrseitige Struktur (Start, /timer, /challenges): Bausteine im Stil
   der Vorlage. Alles nutzt die Farbvariablen aus hf.css.
   ====================================================================== */
.hf-body { --nav-h: 72px; }
.hf-nav, .hf-foot { --ink: #131313; --chalk: #e5e2e1; --mute: #b4adab; --work: #ff571a; --rest: #36ffc4; --on-work: #2a0900; --line: rgba(229, 226, 225, 0.1); --card-2: #201f1f; --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }
.hf-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 19, 19, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif; color: var(--chalk);
}
.hf-nav * { box-sizing: border-box; }
.hf-nav .hf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hf-nav__in { display: flex; align-items: center; gap: 28px; min-height: var(--nav-h); }
.hf-nav .hf-brand { display: flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; margin: 0; }
.hf-nav .hf-brand img { border-radius: 9px; display: block; }
.hf-nav__links { display: flex; gap: 6px; margin-left: 8px; }
.hf-nav__links a {
  color: var(--chalk); text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 9px 14px; border-radius: 999px; opacity: 0.8; transition: opacity 0.2s, background 0.2s;
}
.hf-nav__links a:hover { opacity: 1; background: rgba(229, 226, 225, 0.06); }
.hf-nav__links a[aria-current="page"] { opacity: 1; background: rgba(229, 226, 225, 0.1); }
.hf-nav .hf-lang { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; }
.hf-nav .hf-lang a, .hf-nav .hf-lang span { display: inline-grid; place-items: center; min-width: 40px; min-height: 30px; padding: 0 9px; border-radius: 999px; text-decoration: none; }
.hf-nav .hf-lang a { color: var(--chalk); opacity: 0.7; }
.hf-nav .hf-lang a:hover { opacity: 1; background: var(--card-2); }
.hf-nav .hf-lang__on { background: var(--work); color: var(--on-work); }
.hf-nav .hf-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 800; text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.hf-btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.hf-nav .hf-btn--go { background: var(--work); color: var(--on-work); box-shadow: 0 8px 26px -10px rgba(255, 87, 26, 0.7); }
.hf-nav .hf-btn--go:hover { transform: translateY(-1px); }
.hf-nav a:focus-visible { outline: 3px solid #afc6ff; outline-offset: 3px; }
html { scroll-padding-top: 88px; }
.hf-hero { min-height: calc(100svh - var(--nav-h)); }
@media (max-width: 760px) {
  .hf-body { --nav-h: 60px; }
  .hf-nav .hf-wrap { padding: 0 14px; }
  .hf-nav__in { gap: 10px; }
  .hf-nav .hf-brand span { display: none; }
  .hf-nav__links { margin-left: 0; gap: 2px; }
  .hf-nav__links a { padding: 8px 10px; font-size: 15px; }
  .hf-nav .hf-btn--sm { display: none; }
  .hf-nav .hf-lang a, .hf-nav .hf-lang span { min-width: 34px; padding: 0 6px; }
}

/* Gemeinsame Kleinteile */
.hf-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--work); }
.hf-eyebrow .hf-ico { width: 20px; height: 20px; color: currentColor; }
.hf-eyebrow--rest { color: var(--rest); margin-bottom: 18px; }
.hf-head--center { text-align: center; }
.hf-head--center .hf-sub { margin: 0 auto; }
.hf-mint { --work: var(--rest); --on-work: #002116; }
.hf-where--spotify div { border-left-color: #1ed760; }

/* ---------- Startseite: zwei Wege ---------- */
.hf-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hf-path {
  position: relative; display: flex; flex-direction: column; padding: 40px; border-radius: 32px;
  background: var(--card-2); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s var(--ease);
}
.hf-path--timer { background: radial-gradient(70% 60% at 100% 0%, rgba(255, 87, 26, 0.18), transparent 70%), var(--card-2); }
.hf-path--challenges { --work: var(--rest); background: radial-gradient(70% 60% at 100% 0%, rgba(54, 255, 196, 0.14), transparent 70%), var(--card-2); }
.hf-path:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--work) 45%, transparent); box-shadow: 0 30px 70px -40px var(--work); }
.hf-path p { color: var(--mute); margin: 0; font-size: 17px; }
.hf-path .hf-h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; margin: 12px 0 14px; }
.hf-path .hf-ticks { margin-bottom: 30px; }
.hf-path .hf-ticks .hf-ico { color: var(--work); }
.hf-path__more { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--work); }
.hf-path__more .hf-ico { width: 22px; height: 22px; color: currentColor; transition: transform 0.3s var(--ease); }
.hf-path:hover .hf-path__more .hf-ico { transform: translateX(5px); }
.hf-path__visual { height: 150px; margin: -8px 0 26px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hf-mini-phases { display: flex; gap: 6px; height: 46px; }
.hf-mini-p { border-radius: 12px; flex: 2; background: #3b1e14; position: relative; overflow: hidden; }
.hf-mini-p--prep { flex: 1; background: #1d2a45; } .hf-mini-p--rest { flex: 1; background: #123a30; }
.hf-mini-p::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(1); }
.hf-mini-p--prep::after { background: var(--prep, #528dff); } .hf-mini-p--work::after { background: #ff571a; } .hf-mini-p--rest::after { background: #36ffc4; }
.hf-js .hf-path--timer .hf-mini-p::after { animation: hf-mini 7.5s linear infinite both; }
.hf-js .hf-mini-p:nth-child(2)::after { animation-delay: 0.75s; } .hf-js .hf-mini-p:nth-child(3)::after { animation-delay: 2.25s; }
.hf-js .hf-mini-p:nth-child(4)::after { animation-delay: 3s; } .hf-js .hf-mini-p:nth-child(5)::after { animation-delay: 4.5s; }
@keyframes hf-mini { 0% { transform: scaleX(0); } 10% { transform: scaleX(1); } 85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.hf-mini-digits { font-size: 64px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--chalk); }
.hf-mini-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hf-mini-board li { display: grid; grid-template-columns: 26px 64px 1fr; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; }
.hf-mini-board b { color: var(--rest); }
.hf-mini-board i { height: 12px; border-radius: 8px; background: rgba(229, 226, 225, 0.08); position: relative; overflow: hidden; }
.hf-mini-board i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--rest); transition: width 1.2s var(--ease) 0.3s; }
.hf-js .hf-path--challenges:not(.is-in) .hf-mini-board i::after { width: 0; }
.hf-mini-board li:nth-child(2) { color: var(--rest); }

/* ---------- Challenges: Hero mit Bestenliste ---------- */
.hf-hero--ch { background: radial-gradient(60% 50% at 0% 0%, rgba(54, 255, 196, 0.10), transparent 70%), radial-gradient(50% 50% at 100% 60%, rgba(255, 87, 26, 0.10), transparent 70%), var(--ink); }
.hf-hero--ch .hf-h1 .hf-c-rest { display: block; }
.hf-board {
  width: min(500px, 100%); margin: 0 auto; padding: 26px 24px 18px; border-radius: 30px;
  background: linear-gradient(170deg, #22262a, #171a1c 70%); border: 1px solid rgba(54, 255, 196, 0.16);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 120px -50px var(--rest);
}
.hf-board__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-weight: 800; font-size: 19px; }
.hf-board__head span:first-child { display: flex; align-items: center; gap: 10px; }
.hf-board__head .hf-ico { width: 24px; height: 24px; color: var(--rest); }
.hf-board__live { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rest); display: inline-flex; align-items: center; gap: 8px; }
.hf-board__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rest); box-shadow: 0 0 0 0 rgba(54, 255, 196, 0.6); }
.hf-js .hf-board__live::before { animation: hf-pulse 1.8s infinite; }
@keyframes hf-pulse { 0% { box-shadow: 0 0 0 0 rgba(54, 255, 196, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(54, 255, 196, 0); } }
.hf-board__list { list-style: none; margin: 0; padding: 0; position: relative; }
.hf-board__row {
  display: grid; grid-template-columns: 22px 42px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 12px; border-radius: 16px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.03);
  transition: transform 0.6s var(--ease), background 0.3s;
}
.hf-board__row.is-me { background: rgba(54, 255, 196, 0.10); outline: 1px solid rgba(54, 255, 196, 0.35); }
.hf-board__row.is-bump { background: rgba(255, 87, 26, 0.14); }
.hf-board__rank { font-weight: 800; font-size: 17px; color: var(--mute); text-align: center; }
.hf-board__row:first-child .hf-board__rank { color: #ffd166; }
.hf-board__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #2f3336; color: var(--chalk); }
.hf-board__row.is-me .hf-board__av { background: var(--rest); color: #002116; }
.hf-board__who { min-width: 0; display: grid; gap: 3px; }
.hf-board__who b { font-size: 16px; }
.hf-board__who small { font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 4px; }
.hf-board__fl { width: 14px; height: 14px; color: var(--work); }
.hf-board__who em, .hf-board__pts em { font-style: normal; }
.hf-board__bar { height: 6px; border-radius: 6px; background: rgba(229, 226, 225, 0.08); overflow: hidden; margin-top: 4px; }
.hf-board__bar i { display: block; height: 100%; border-radius: inherit; background: var(--rest); transition: width 0.8s var(--ease); }
.hf-board__pts { text-align: right; display: grid; gap: 2px; }
.hf-board__pts b { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hf-board__pts small { font-size: 12px; color: var(--mute); white-space: nowrap; }
.hf-board__note { margin: 10px 4px 0; font-size: 12px; color: var(--mute); opacity: 0.8; }

/* Screenshot im Rahmen (Bestenliste) */
.hf-shot { perspective: 1400px; display: grid; place-items: center; }
.hf-shot img {
  width: min(320px, 80%); height: auto; border-radius: 34px; border: 8px solid #2a2a2a;
  transform: rotateY(-14deg) rotateZ(2deg);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.95), 0 0 120px -40px var(--rest);
}
.hf-js .hf-shot { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

/* ---------- Punkte ---------- */
.hf-calc { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 0.9fr; gap: 18px; align-items: stretch; }
.hf-calc__card { padding: 30px 26px; border-radius: 26px; background: var(--card-2); border: 1px solid var(--line); }
.hf-calc__card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; margin: 20px 0 8px; }
.hf-calc__card p { color: var(--mute); margin: 0; font-size: 16px; }
.hf-calc__vis { height: 96px; display: flex; align-items: center; gap: 12px; }
.hf-calc__vis small { color: var(--mute); font-size: 14px; max-width: 6em; line-height: 1.3; }
.hf-calc__ring {
  --deg: calc(var(--p) * 3.6deg);
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--card-2) 76%, transparent 78%), conic-gradient(var(--rest) var(--deg), rgba(229, 226, 225, 0.1) 0);
  font-weight: 800; font-size: 19px;
}
.hf-calc__ring .hf-ico { width: 38px; height: 38px; color: var(--rest); }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.hf-js .hf-calc__card .hf-calc__ring { transition: --p 1.4s var(--ease) 0.2s; }
.hf-js .hf-calc__card:not(.is-in) .hf-calc__ring { --p: 0 !important; }
.hf-calc__flame { display: flex; align-items: center; gap: 4px; }
.hf-calc__flame .hf-ico { width: 46px; height: 46px; color: var(--work); }
.hf-calc__flame b { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.hf-calc__op { align-self: center; font-size: 40px; font-weight: 800; color: var(--mute); }
.hf-calc__sum {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
  padding: 30px 26px; border-radius: 26px; background: linear-gradient(160deg, #18302a, #101b18 70%); border: 1px solid rgba(54, 255, 196, 0.25);
}
.hf-calc__sum .hf-ico { width: 40px; height: 40px; color: var(--rest); }
.hf-calc__sum b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--rest); }
.hf-calc__sum span { color: var(--mute); font-size: 16px; }
.hf-js .hf-calc > [data-hf-reveal]:nth-child(3) { transition-delay: 0.15s; }
.hf-js .hf-calc > [data-hf-reveal]:nth-child(5) { transition-delay: 0.3s; }
.hf-js .hf-calc > [data-hf-reveal]:nth-child(7) { transition-delay: 0.45s; }

/* ---------- Monat ---------- */
.hf-month { padding: 40px 36px 28px; border-radius: 32px; background: var(--card-2); border: 1px solid var(--line); }
.hf-month__day { margin: 0; font-size: clamp(96px, 12vw, 150px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; color: var(--rest); }
.hf-month__new { margin: 14px 0 30px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.hf-month__label { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.hf-month__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hf-month__list li { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.hf-month__list b { display: inline-flex; align-items: center; gap: 8px; color: var(--chalk); }
.hf-month__list .hf-ico { width: 18px; height: 18px; color: #ffd166; }

/* ---------- Einladen ---------- */
.hf-badges { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; }
.hf-badges li { display: grid; justify-items: center; gap: 10px; }
.hf-badge {
  position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #3a3f42, #1d2022 70%); border: 2px solid rgba(54, 255, 196, 0.35);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9), inset 0 0 30px -12px var(--rest);
}
.hf-badge .hf-ico { position: absolute; top: 18px; width: 22px; height: 22px; color: var(--rest); }
.hf-badge b { margin-top: 16px; font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.hf-badges li:nth-child(n+4) .hf-badge { border-color: rgba(255, 209, 102, 0.5); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9), inset 0 0 30px -12px #ffd166; }
.hf-badges li:nth-child(n+4) .hf-badge .hf-ico { color: #ffd166; }
.hf-badges small { color: var(--mute); font-size: 14px; }
.hf-js .hf-badges li { opacity: 0; transform: scale(0.6); transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.hf-js .hf-badges.is-in li { opacity: 1; transform: none; }
.hf-js .hf-badges.is-in li:nth-child(2) { transition-delay: 0.1s; } .hf-js .hf-badges.is-in li:nth-child(3) { transition-delay: 0.2s; }
.hf-js .hf-badges.is-in li:nth-child(4) { transition-delay: 0.3s; } .hf-js .hf-badges.is-in li:nth-child(5) { transition-delay: 0.4s; }

/* ---------- Vorteile (sechs) ---------- */
.hf-facts--six { margin-top: 0; }
.hf-facts--six .hf-ico { width: 30px; height: 30px; color: var(--rest); margin-bottom: 14px; }

@media (max-width: 1020px) {
  .hf-split--rev > :first-child { order: 2; }
  .hf-paths { grid-template-columns: 1fr; }
  .hf-calc { grid-template-columns: 1fr; }
  .hf-calc__op { justify-self: center; font-size: 30px; line-height: 1; }
}
@media (max-width: 760px) {
  .hf-path { padding: 30px 24px; border-radius: 26px; }
  .hf-path__visual { height: 120px; }
  .hf-mini-digits { font-size: 48px; }
  .hf-board { padding: 20px 14px 14px; border-radius: 24px; }
  .hf-board__row { grid-template-columns: 18px 36px 1fr auto; gap: 9px; padding: 12px 10px; }
  .hf-board__av { width: 36px; height: 36px; }
  .hf-board__pts small { display: none; }
  .hf-month { padding: 30px 24px 20px; }
  .hf-badges { gap: 18px; }
  .hf-badge { width: 84px; height: 84px; }
  .hf-badge b { font-size: 28px; }
  .hf-badge .hf-ico { top: 12px; width: 18px; height: 18px; }
}
