:root {
  --footer-h: calc(28px + env(safe-area-inset-bottom, 0px));
}

/* The footer is the final row in each app viewport, not an overlay. */
body:not(.legal-page) {
  position: relative;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  /* Webflow slides the whole page body horizontally to reveal About/Game.
     Hiding body overflow clips those translated screens to the body box. */
  overflow: visible !important;
}

.site-footer {
  position: absolute;
  inset: auto 0 0;
  z-index: 2147483647;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: var(--footer-h);
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #000;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Go', sans-serif;
  white-space: nowrap;
}

.site-footer__legal {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.site-footer a {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6) !important;
  font-family: inherit;
  font-size: 0.6875rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: none;
  text-shadow: none !important;
  filter: none !important;
}

.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active,
.site-footer a:focus,
.site-footer a:focus-visible {
  color: rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
  text-decoration: none !important;
  outline: none;
  box-shadow: none;
  text-shadow: none !important;
  filter: none !important;
}

.site-footer__legal a {
  padding: 0 4px;
}

.site-footer__separator {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.6875rem;
  user-select: none;
}

/* Shrink full-screen content so the app view and footer total exactly one viewport. */
.background-immage {
  inset: 0 0 var(--footer-h) !important;
  height: calc(100vh - var(--footer-h)) !important;
  height: calc(100dvh - var(--footer-h)) !important;
}

.landing-page {
  height: calc(100vh - var(--footer-h)) !important;
  height: calc(100dvh - var(--footer-h)) !important;
}

.div-block-10 {
  height: calc(100vh - var(--footer-h)) !important;
  height: calc(100dvh - var(--footer-h)) !important;
}

.page-index .panorama-container,
.page-index .panorama-section {
  height: calc(100vh - var(--footer-h)) !important;
  height: calc(100dvh - var(--footer-h)) !important;
}

.page-index .panorama-container {
  max-height: calc(100vh - var(--footer-h)) !important;
  max-height: calc(100dvh - var(--footer-h)) !important;
}

.mobile-editor-zones {
  bottom: var(--footer-h) !important;
}

.mobile-swipe-tutorial {
  inset: 0 0 var(--footer-h) !important;
  padding-bottom: 0 !important;
}

.bottom-bar {
  bottom: var(--footer-h) !important;
}

.mobile-editor-shop {
  bottom: calc(2vh + var(--footer-h)) !important;
}

.cart-overlay {
  position: absolute !important;
  top: 0 !important;
  bottom: auto !important;
  height: calc(100vh - var(--footer-h)) !important;
  height: calc(100dvh - var(--footer-h)) !important;
  max-height: calc(100vh - var(--footer-h)) !important;
  max-height: calc(100dvh - var(--footer-h)) !important;
}

.blackscreen {
  box-sizing: border-box;
  height: calc(100vh - var(--footer-h)) !important;
  height: calc(100dvh - var(--footer-h)) !important;
  padding-bottom: 0 !important;
}

.shop-overlay-black {
  height: calc(100vh - var(--footer-h)) !important;
  height: calc(100dvh - var(--footer-h)) !important;
  min-height: calc(100vh - var(--footer-h)) !important;
  min-height: calc(100dvh - var(--footer-h)) !important;
}

.klamotten-space {
  height: calc(100vh - var(--mobile-bottom-reserve)) !important;
  height: calc(100dvh - var(--mobile-bottom-reserve)) !important;
}

@media screen and (max-width: 767px) {
  :root {
    --mobile-bottom-reserve: calc(var(--footer-h) + max(48px, 8dvh) + 12px);
  }

  .klamotten-space {
    padding-top: 7vh !important;
  }

  .clothinggrid > .shirt-container,
  .clothinggrid .beanie-container {
    box-sizing: border-box;
    height: 100% !important;
    max-height: 100%;
  }

}

.shop-overlay-black > .bottom-bar {
  bottom: var(--footer-h) !important;
  padding-bottom: 0 !important;
}

.shop-overlay-black > .bottom-bar > [data-cart-add] {
  bottom: calc(1vh + var(--footer-h)) !important;
}

.shop-overlay-black .info-box.warenkorb {
  padding-bottom: var(--footer-h);
}

/* Legal and revocation pages remain the only scrollable documents. */
.legal-document,
.legal-document body {
  min-height: 100%;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #1d1d1b !important;
  color: #fff;
  font-family: 'Go', sans-serif;
}

.legal-document body {
  position: relative;
  min-height: 100vh !important;
  padding-bottom: var(--footer-h);
}

.legal-document .site-footer {
  position: fixed;
}

.legal-content {
  box-sizing: border-box;
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: 32px 0 calc(var(--footer-h) + 24px);
  color: #fff;
  font-family: 'Go', sans-serif;
}

.legal-content h1,
.legal-content h2,
.legal-content p,
.legal-content li {
  color: #fff;
}

.legal-content h2 {
  scroll-margin-top: 16px;
}

.legal-content a {
  color: #fff;
}

.revocation-page {
  width: min(560px, 92vw);
}

.revocation-page h1 {
  margin-top: 0;
  font-size: clamp(24px, 6vw, 38px);
  line-height: 1.15;
}

.revocation-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.revocation-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  font-size: 13px;
}

.revocation-form input {
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px;
  border: 1px solid #777;
  background: #111;
  color: #fff;
  font: inherit;
}

.revocation-form button {
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid #e30613;
  background: #ff000f;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.revocation-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.revocation-privacy {
  margin: 0;
  font-size: 12px;
}

.revocation-status {
  min-height: 1.5em;
  color: #fff;
}

.revocation-page > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 360px) {
  .site-footer {
    padding-right: 2px;
    padding-left: 2px;
  }

  .site-footer__legal {
    gap: 0;
  }

  .site-footer a,
  .site-footer__separator {
    font-size: 0.6875rem;
  }

  .site-footer__legal a {
    padding-right: 3px;
    padding-left: 3px;
  }
}
