/* Footer retains the existing branding and content width. */
.site-footer { padding: 26px 0 16px; }
.footer-inner { display: block; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-bottom: 20px; }
.footer-brand { flex-shrink: 0; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 15px; line-height: 1.5; white-space: nowrap; color: #a9b5bd; font-size: 12px; }
.footer-links a { color: #e3e7e9; }
.footer-instagram { display: inline-flex; align-items: center; gap: 12px; }
.footer-instagram svg { width: 24px; height: 24px; fill: none; stroke: #00e5ef; stroke-width: 2; }
.run-counter { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; flex-shrink: 0; max-width: 100%; }
.counter-controller { flex: 0 0 auto; width: 76px; height: auto; image-rendering: pixelated; }
.counter-readout { flex: 0 0 auto; min-width: max-content; text-align: center; position: relative; }
.counter-label { display: block; color: var(--yellow, #ffda68); font-size: 16px; line-height: 1.3; margin-bottom: 6px; white-space: nowrap; text-shadow: 1px 1px #8a7714; }
.counter-digits { display: grid; grid-auto-flow: column; grid-auto-columns: 29px; width: max-content; gap: 3px; border: 2px solid #263d49; padding: 3px; background: #03080c; box-shadow: inset 0 0 0 1px #111e27; overflow: hidden; }
.counter-wheel { position: relative; flex: 0 0 29px; height: 42px; overflow: hidden; border: 2px solid #172b37; background: #08131c; color: var(--yellow, #ffda68); font-size: 30px; font-weight: bold; line-height: 38px; text-shadow: 2px 2px #756017; box-shadow: inset 0 3px #02070b, inset 0 -3px #02070b; }
.counter-wheel::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #0006; pointer-events: none; }
.counter-reel { display: flex; flex-direction: column; }
.counter-reel > span { height: 38px; flex: 0 0 38px; }
.counter-status { position: absolute; top: 100%; right: 0; font-size: 9px; color: #abb8c0; white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 22px; border-top: 1px solid #29414c; padding-top: 16px; color: #d7dce0; font-size: 12px; }
.footer-credit { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: 0; }
.footer-credit > span { display: inline-flex; align-items: center; gap: 8px; }
.footer-credit a { color: #00e5ef; text-underline-offset: 3px; }
.footer-heart { width: 20px; height: 18px; flex: 0 0 20px; fill: #ff4b52; stroke: none; filter: none; }
.footer-sparkle { width: 20px; height: 24px; fill: none; stroke: #00e5ef; stroke-width: 1.7; }
.footer-copyright { flex-shrink: 0; margin: 0; color: #c0c8cf; }
@media (max-width: 1100px) { .footer-top { flex-wrap: wrap; } .footer-links { order: 3; width: 100%; } .footer-bottom { flex-wrap: wrap; } }
@media (max-width: 640px) { .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; } .footer-links { order: 0; justify-content: flex-start; gap: 8px; font-size: 10px; flex-wrap: wrap; white-space: normal; } .footer-instagram { gap: 6px; } .footer-instagram svg { width: 20px; height: 20px; } .run-counter { align-self: flex-end; } .footer-bottom { font-size: 11px; } .footer-credit { gap: 10px 12px; } }
/* Shared footer on content pages, without the run counter or credit statement. */
.site-footer--compact { width: 100%; margin: 0; border-top: 1px solid #34506c; background: radial-gradient(ellipse at 50% 100%, #101a2d, transparent 75%), #04080e; line-height: normal; }
.site-footer--compact .footer-inner { max-width: 1160px; width: calc(100% - 64px); margin: auto; }
.site-footer--compact .footer-brand { display: flex; gap: 12px; align-items: center; }
.site-footer--compact .footer-brand img { width: 48px; image-rendering: pixelated; }
.site-footer--compact .footer-brand h2 { color: var(--yellow); font-size: 23px; letter-spacing: -.06em; margin: 0; line-height: 1.2; text-shadow: 2px 2px 0 #724321, 0 0 16px #ffb52e22; }
.site-footer--compact .footer-brand small { color: var(--cyan); font-size: 9px; letter-spacing: .09em; }
.site-footer--compact .footer-links { margin: 0; }
.site-footer--compact .footer-links a { text-decoration: none; overflow-wrap: normal; }
.site-footer--compact .footer-links a:hover { color: var(--yellow); }
.site-footer--compact [aria-current="page"] { color: var(--yellow); }
.site-footer--compact .footer-ai-link { color: #00e5ef; text-underline-offset: 3px; }
@media (max-width: 640px) { .site-footer--compact .footer-inner { width: calc(100% - 40px); } }

/* Keep every counter digit visible on narrow screens, even as the total grows. */
@media (max-width: 640px) {
  .counter-controller { width: 64px; }
  .counter-digits { grid-auto-columns: clamp(20px, 6.5vw, 25px); }
  .counter-wheel { min-width: 0; font-size: clamp(21px, 6vw, 26px); }
}


/* Einheitliches Lunch-Run-Logo: dieselbe Grafik, Typografie und Schatten
   im Startseiten-Header, auf Unterseiten und im Footer. */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  text-shadow: none;
  overflow-wrap: normal;
}
.site-logo img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: none;
}
.site-logo .logo-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.site-logo .logo-title {
  display: block;
  color: var(--yellow, #ffda68);
  font-size: 23px;
  font-weight: 1000;
  letter-spacing: -.06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #724321, 0 0 16px #ffb52e22;
}
.site-logo .logo-tagline {
  display: block;
  color: var(--cyan, #73dfff);
  font-size: 9px;
  font-weight: normal;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: none;
  white-space: nowrap;
}
@media (max-width: 700px), (max-width: 1100px) and (pointer: coarse) {
  .mobile-header .site-logo,
  .legal-header .site-logo { gap: 8px; }
  .mobile-header .site-logo img,
  .legal-header .site-logo img { width: 32px; height: 32px; flex-basis: 32px; }
  .mobile-header .site-logo .logo-title,
  .legal-header .site-logo .logo-title { font-size: 18px; }
  .mobile-header .site-logo .logo-tagline,
  .legal-header .site-logo .logo-tagline { font-size: 7px; letter-spacing: .04em; }
}
