/* Hero as a playful "404 – Halloween nicht gefunden" page: Bekifft #15 moves to mid November.
   Keeps the hero's two [data-hero-line] lines, so the reveal + parallax in hero-title.js still work. */
.hero-title { grid-auto-rows: auto; align-content: center; row-gap: var(--bk-space-5); padding-top: calc(var(--bk-space-9) + 56px); padding-bottom: calc(var(--bk-space-9) + 70px); }

.hero-404__chip { position: relative; z-index: 2; margin: 0 auto -6px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 3px solid var(--bk-brown-800); border-radius: 10px; background: var(--bk-cream-100); color: var(--bk-brown-800);
  font: 800 13px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--bk-brown-800);
  transform: rotate(-2deg); justify-self: center; width: max-content; }
.hero-404__chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #E2412B; box-shadow: 0 0 0 2px var(--bk-brown-800); animation: bk404-blink 1.2s steps(2) infinite; }
@keyframes bk404-blink { 50% { opacity: .25; } }
.hero-title__stage > .hero-404__chip { position: absolute; left: 50%; top: -10%; transform: translateX(-50%) rotate(-2deg); margin: 0; }

.hero-404.hero-title__lockup { gap: 0; text-align: center; }
.hero-404__mask { overflow: hidden; padding: 0 .1em .08em; }
.hero-404__code { display: inline-flex; align-items: center; justify-content: center; gap: .02em; font-family: var(--bk-font-display); font-weight: 400;
  font-size: clamp(110px, min(27vw, 33svh), 300px); line-height: .9; color: var(--bk-brown-800); -webkit-text-stroke: .045em var(--bk-cream-100); paint-order: stroke fill;
  text-shadow: .05em .05em 0 var(--bk-orange-700, #9E3318); animation: bk404-glitch 5s infinite; }
.hero-404__zero { height: .8em; width: auto; margin: 0 .02em; filter: drop-shadow(.04em .04em 0 var(--bk-orange-700, #9E3318)); animation: bk404-wobble 2.8s ease-in-out infinite; }
@keyframes bk404-wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-4%); } }
@keyframes bk404-glitch {
  0%, 88%, 100% { transform: none; text-shadow: .05em .05em 0 var(--bk-orange-700, #9E3318); }
  89% { transform: translateX(-3px) skewX(-6deg); text-shadow: -.04em 0 0 #26A55D, .05em .05em 0 var(--bk-orange-700, #9E3318); }
  91% { transform: translateX(4px) skewX(5deg); text-shadow: .04em 0 0 var(--bk-cream-100), .05em .05em 0 var(--bk-orange-700, #9E3318); }
  93% { transform: none; }
}
.hero-404__title { display: block; font-family: var(--bk-font-display); font-weight: 400; font-size: clamp(32px, 6.4vw, 70px); line-height: 1;
  color: var(--bk-cream-100); -webkit-text-stroke: .06em var(--bk-brown-800); paint-order: stroke fill; text-shadow: .06em .06em 0 var(--bk-brown-800); }

.hero-title__pill s { text-decoration-thickness: 3px; opacity: .65; }

.hero-404__body { position: relative; z-index: 2; justify-self: center; max-width: 620px; text-align: center; }
.hero-404__lead { margin: 0 0 var(--bk-space-4); color: var(--bk-brown-800); font-size: clamp(16px, 1.8vw, 20px); font-weight: 700; line-height: 1.45; }
.hero-404__lead strong { font-weight: 800; background: var(--bk-cream-100); padding: 0 .3em; border-radius: 6px; }
.hero-404__btn { display: inline-block; padding: 14px 28px; border-radius: var(--bk-radius-pill); background: var(--bk-brown-800); color: var(--bk-cream-100);
  font-weight: 800; text-decoration: none; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); transition: background-color .2s, color .2s; }
.hero-404__btn:hover, .hero-404__btn:focus-visible { background: var(--bk-green); color: var(--bk-black, #111); }

/* Scroll cue: sits above the 18+ line, gently bouncing */
.hero-404__scroll { position: absolute; z-index: 3; left: 50%; bottom: calc(var(--bk-space-6) + 30px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--bk-brown-800); text-decoration: none; font-weight: 800; font-size: 15px; white-space: nowrap; }
.hero-404__chevrons { display: grid; justify-items: center; height: 30px; animation: bk404-bounce 1.6s ease-in-out infinite; }
.hero-404__chevrons i { display: block; width: 16px; height: 16px; margin-top: -7px; border-right: 4px solid var(--bk-brown-800); border-bottom: 4px solid var(--bk-brown-800); transform: rotate(45deg); }
.hero-404__chevrons i + i { opacity: .55; }
@keyframes bk404-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.hero-404__scroll:hover, .hero-404__scroll:focus-visible { color: var(--bk-cream-100); }

@media (max-width: 600px) {
  .hero-title { row-gap: var(--bk-space-4); padding-bottom: calc(var(--bk-space-9) + 70px); }
  .hero-404__chip { font-size: 11px; padding: 6px 12px; }
  .hero-404__code { font-size: min(36vw, 26svh); }
  .hero-404__lead { font-size: 15.5px; padding: 0 var(--bk-space-2); }
  .hero-404__scroll { font-size: 13px; bottom: calc(var(--bk-space-5) + 48px); }
  /* phones: no decorative icon stickers; the two info pills become a row right under the title */
  .hero-title--404 .hero-title__stage { margin-bottom: 52px; }
  .hero-title--404 .hero-title__sticker--icon { display: none; }
  .hero-title--404 .hero-title__sticker--info { top: calc(100% + 10px) !important; height: 34px; }
  .hero-title--404 .hero-title__sticker--info { left: 50% !important; margin-left: -85px; }   /* the date pill, centred */
  .hero-title--404 .hero-title__pill { font-size: 12px; padding: 0 .85em; gap: .35em; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-404__code, .hero-404__zero, .hero-404__chevrons, .hero-404__chip::before { animation: none; }
}
