/* About page layout */
main.viewport {
  display: block;
  min-height: auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.about-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: clamp(140px, 12vw, 220px) 0 0;
  box-sizing: border-box;
}

.about-desktop {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.about-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  aspect-ratio: 1920 / 868;
  margin-top: -52px;
  background-image: url("/panel3/panel3_background.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 1;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.34));
}

.about-hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-hero-stage img {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.about-hero-text {
  left: calc(2.6% - 10px);
  top: calc(14% - 65px);
  width: 91.04592%;
  z-index: 3;
}

.about-hero-logo {
  right: -1%;
  top: 10%;
  width: 54.375%;
  z-index: 1;
}

.about-hero-character {
  left: -4%;
  bottom: calc(-10% + 20px);
  width: 63.8%;
  z-index: 2;
}

.about-hero-description {
  left: 36%;
  top: 18%;
  width: 56%;
  z-index: 5;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.32));
}

.about-body {
  width: 100%;
  display: flex;
  justify-content: center;
}

.about-mobile-art {
  display: none;
  width: 100%;
}

.about-mobile-art__img {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.about-body-img {
  width: 100vw;
  max-width: none;
  height: auto;
  display: block;
  margin-top: -52px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

/* Footer styles (shared look with homepage) */
.footer {
  position: relative;
  width: 100vw;
  max-width: none;
  margin: 0 auto 0;
  padding: clamp(36px, 4vw, 68px) clamp(28px, 6vw, 88px);
  min-height: clamp(540px, 46vw, 944px);
  background-image: url("/footer/footer_background_Orange.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  overflow: hidden;
}

.footer-inner {
  width: min(1120px, 88vw);
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
}

.footer-logo {
  width: clamp(200px, 24vw, 360px);
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.38));
}

.footer-separator {
  height: clamp(280px, 38vw, 560px);
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.26));
}

.footer-nav-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 28px);
  flex: 1;
}

.footer-nav {
  width: 100%;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vw, 18px);
}

.footer-nav a {
  display: inline-block;
  font-family: "HomepageBaukasten Book", "HomepagebaukastenBook", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(18px, 2.1vw, 32px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 9px 26px rgba(0, 0, 0, 0.4);
  transition: color 160ms ease, transform 160ms ease, text-shadow 160ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #ffe5c4;
  transform: translateX(5px);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.52);
}

.footer-nav a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
  border-radius: 6px;
}

.footer-contact {
  display: inline-block;
  line-height: 0;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.3));
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), filter 160ms ease;
}

.footer-contact img {
  width: clamp(220px, 22vw, 360px);
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.footer-contact:hover,
.footer-contact:focus-visible {
  transform: translateY(-2px) scale(1.028);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.36));
}

.footer-contact:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 6px;
  border-radius: 12px;
}

@media (max-width: 1086px) {
  .about-page {
    padding: 0;
    gap: 0;
  }

  .about-desktop {
    display: none;
  }

  .about-mobile-art {
    display: block;
  }

  .about-mobile-art__img {
    margin: clamp(82px, 18vw, 120px) auto 0;
  }

  .footer {
    margin: 0 auto 0;
    padding: clamp(28px, 8vw, 52px) clamp(18px, 7vw, 42px);
    min-height: clamp(560px, 126vw, 840px);
  }

  .footer-inner {
    flex-direction: column;
    width: min(640px, 94vw);
    gap: clamp(18px, 6vw, 32px);
    text-align: center;
  }

  .footer-logo {
    width: clamp(180px, 62vw, 320px);
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.34));
  }

  .footer-separator {
    display: none;
  }

  .footer-nav-block {
    align-items: center;
  }

  .footer-nav ul {
    align-items: center;
    gap: clamp(8px, 3vw, 16px);
  }

  .footer-nav a {
    transform: none;
  }

  .footer-contact img {
    width: clamp(220px, 72vw, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-stage img,
  .about-body-img {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
