/* Zeitfuchs — Basis: Tokens, Typografie, Buttons, Navigation, globale Effekte */

:root {
  color-scheme: light;
  --paper:    #F6F3EC;
  --paper-2:  #EFE9DD;
  --card:     #FFFFFF;
  --espresso: #241309;
  --ink:      #33261B;
  --taupe:    #6F5F51;
  --faint:    #716255;
  --orange:   #E8590C;
  --orange-2: #F97316;
  /* Kontrast (WCAG AA): Markenorange nur für große Flächen/Grafiken/große Schrift; für Fließtext und Buttons die dunkleren Varianten */
  --orange-ink: #B93A0A;       /* Textfarbe auf Papier/Pfirsich/Weiß: >= 4,7:1 */
  --orange-btn: #C2410C;       /* Button-Fläche mit weißer Schrift: 5,2:1 */
  --orange-btn-hover: #9A3412; /* Hover mit weißer Schrift: 7,3:1 */
  --peach:    #FCE7D6;
  --peach-line:#F1C6A4;
  --green:    #166F3A;
  --live:     #37D07A;
  --rule:     #E6DECF;
  --sh-s: 0 2px 4px rgba(60,40,20,.05), 0 14px 30px -16px rgba(80,50,25,.20);
  --sh-m: 0 2px 6px rgba(60,40,20,.06), 0 34px 64px -30px rgba(80,50,25,.32);
  --sh-phone: 0 40px 80px -34px rgba(70,40,15,.40), 0 12px 30px -16px rgba(70,40,15,.26);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-family: "Fredoka", "Hanken Grotesk", sans-serif; font-weight: 700; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; color: var(--espresso); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 300; background: var(--espresso); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.tnum { font-variant-numeric: tabular-nums; }
.hand { font-family: "Caveat", "Hanken Grotesk", cursive; font-weight: 700; color: var(--orange); }
.kick {
  display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--orange-ink);
}
.kick.on-dark { color: var(--orange-2); }

/* ===================== Atmosphäre: feine Körnung ===================== */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 250; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .22  0 0 0 0 .12  0 0 0 0 .05  0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===================== Scroll-Fortschritt ===================== */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.motion-on) .progress { display: none; }

/* ===================== Buttons ===================== */
.btn {
  --bg: var(--orange-btn); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 15.5px;
  padding: 13px 23px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--orange) 55%, transparent);
  transition: transform .18s var(--ease-spring), background .18s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--orange-btn-hover); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--orange) 60%, transparent); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.ghost { --bg: var(--card); --fg: var(--espresso); box-shadow: inset 0 0 0 1.5px var(--rule), var(--sh-s); }
.btn.ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--orange), var(--sh-s); }
.btn.lg { font-size: 16.5px; padding: 15px 28px; }
.btn.sm { padding: 8px 15px; font-size: 13.5px; }

/* ===================== Navigation ===================== */
header.nav { position: sticky; top: 0; z-index: 80; background: color-mix(in srgb, var(--paper) 95%, transparent); will-change: transform; border-bottom: 1px solid transparent; transition: border-color .25s; }
header.nav.stuck { border-color: var(--rule); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .fx { width: 32px; height: 32px; transition: transform .5s var(--ease-spring); }
.brand:hover .fx { transform: rotate(-10deg) scale(1.08); }
.brand b { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 19px; color: var(--espresso); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { position: relative; font-size: 14.5px; font-weight: 500; color: var(--taupe); transition: color .16s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav-links a:not(.btn):hover { color: var(--espresso); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 820px) { .nav-links a:not(.np) { display: none; } }

.burger { display: none; position: relative; width: 42px; height: 38px; border: 1.5px solid var(--rule); border-radius: 11px; background: var(--card); cursor: pointer; padding: 0; box-shadow: var(--sh-s); }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--espresso); transition: transform .22s ease, top .22s ease; }
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 21px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 17px; transform: rotate(-45deg); }
.mnav { display: none; }
@media (max-width: 820px) {
  .burger { display: block; }
  .mnav { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--rule); box-shadow: var(--sh-m); padding: 6px 24px 18px; z-index: 90; }
  .mnav[hidden] { display: none; }
  .mnav a { display: block; padding: 13px 2px; font-size: 16px; font-weight: 600; color: var(--espresso); border-bottom: 1px solid var(--rule); }
  .mnav a:last-child { border-bottom: 0; }
  .mnav .np { display: inline-flex; border: 0; margin-top: 12px; }
}

/* ===================== Sektionen (Rahmen) ===================== */
.section { padding: 84px 0; position: relative; }
.section.tint { background: var(--paper-2); }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(1.95rem, 1.3rem + 2.5vw, 2.9rem); margin-top: 12px; }
.sec-head p { margin-top: 14px; color: var(--taupe); font-size: 1.06rem; }

/* ===================== Rollende Ziffern ===================== */
.roll { line-height: 1; white-space: nowrap; }
.roll-vis { display: inline-block; white-space: nowrap; }
.rd, .rd-x { display: inline-block; height: 1em; line-height: 1; vertical-align: top; }
.rd { overflow: hidden; }
.rd-x { white-space: pre; }
.rd-s { display: block; transition: transform .6s var(--ease-out); }
.rd-s i { display: block; height: 1em; line-height: 1; font-style: normal; text-align: center; }

/* ===================== GPU-Ebenen für scroll-/zeigergesteuerte Elemente ===================== */
html.motion-on .hero-dots, html.motion-on .hero .blob, html.motion-on .hero-copy, html.motion-on .dial-layer,
html.motion-on .hphone, html.motion-on .hero-card, html.motion-on .hero-glow, html.motion-on .story-bar,
html.motion-on .shot-peek .frame, html.motion-on .final-card, html.motion-on .flow-line i, .progress i,
html.motion-on .feed-track, html.motion-on .zeiger { will-change: transform; }

/* ===================== Puls-Ring (nur transform/opacity → GPU) ===================== */
@keyframes ringOut { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.hc-in.island .dot, .clock-lbl .dot, .lock-mock .bigpill .dot, .dot-live, .sb-live i { position: relative; }
.hc-in.island .dot::after, .clock-lbl .dot::after, .lock-mock .bigpill .dot::after, .dot-live::after, .sb-live i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; pointer-events: none;
  animation: ringOut 1.8s ease-out infinite;
}
.hc-in.island.pz .dot::after { animation: none; opacity: 0; }

/* ===================== Fuchs mit Charakter ===================== */
/* Logo grüßt einmal nach dem Laden */
@keyframes foxHi { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg) scale(1.08); } 45% { transform: rotate(10deg) scale(1.08); } 70% { transform: rotate(-5deg); } }
.brand .fx { animation: foxHi 1.1s var(--ease-out) 1.6s 1; }
/* Fuchs lugt über die Kante der Gratis-Test-Knöpfe (Ausschnitt endet an der Knopfkante) */
.fox-peek { position: absolute; left: 50%; bottom: 100%; width: 40px; height: 30px; margin-left: -20px; overflow: hidden; pointer-events: none; }
.fox-peek img { width: 40px; height: 40px; transform: translateY(100%) rotate(-8deg); transition: transform .45s var(--ease-spring); }
.btn:hover .fox-peek img, .btn:focus-visible .fox-peek img { transform: translateY(18%) rotate(0deg); }
/* weicher Seitenübergang zur Anmeldeseite (Chrome/Edge/Safari 18+; sonst normaler Seitenwechsel) */
@view-transition { navigation: auto; }
.brand { view-transition-name: zf-brand; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }
::view-transition-old(root) { animation: vtOut .28s ease-in both; }
::view-transition-new(root) { animation: vtIn .5s var(--ease-out) both; }

/* ===================== Footer ===================== */
footer { border-top: 1px solid var(--rule); padding: 32px 0; }
.ft-in { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--taupe); }
.ft-in .ft-note { flex-basis: 100%; font-size: 12px; }
.ft-in .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ft-in a:hover { color: var(--espresso); }

@media (max-width: 640px) {
  .wrap { width: min(1200px, 100% - 36px); }
  .section { padding: 60px 0; }
  .sec-head { margin-bottom: 26px; }
  .btn.lg { font-size: 15.5px; padding: 14px 22px; border-radius: 13px; }
  .kick { letter-spacing: .14em; font-size: 11px; }
  footer { padding: 26px 0; }
  .ft-in { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rd-s { transition: none !important; }
  .fox-peek { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .hc-in.island .dot::after, .clock-lbl .dot::after, .lock-mock .bigpill .dot::after, .dot-live::after, .sb-live i::after { animation: none !important; opacity: 0; }
}
