/* home.css
   Nur Startseiten-spezifische Elemente.
   Hintergrund, Header und Footer kommen aus styles.css. */

.homepage-main {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 22px;
}

.homepage-section {
  display: flex;
  width: min(100%, 980px);
  min-height: calc(100vh - 190px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
  text-align: center;
}

.hero-3d {
  position: relative;
  width: min(100%, 650px);
  height: clamp(260px, 38svh, 430px);
  isolation: isolate;
}

.hero-3d::after {
  position: absolute;
  z-index: -1;
  bottom: 11%;
  left: 50%;
  width: clamp(160px, 31vw, 330px);
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .16);
  filter: blur(17px);
  transform: translateX(-50%) scaleY(.48);
  content: "";
}

#logo3d,
#logo3d canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
}

.claim {
  max-width: 590px;
  margin: 14px auto 0;
  color: var(--black);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.4;
}

.claim-main,
.claim-sub {
  display: block;
}

.claim-main {
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.claim-sub {
  margin-top: .55rem;
  font-size: clamp(.95rem, 1.45vw, 1.15rem);
  font-weight: 500;
  letter-spacing: -.015em;
  opacity: .68;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .07);
  color: var(--black);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.icon-button:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  transform: translateY(-3px);
}

.icon-button svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.icon-button .play {
  width: 29px;
  height: 32px;
}

@media (max-width: 680px) {
  .homepage-main {
    padding-top: 4px;
    padding-bottom: 20px;
  }

  .homepage-section {
    min-height: calc(100svh - 165px);
    padding: 18px 0 26px;
  }

  .hero-3d {
    height: clamp(300px, 92vw, 410px);
  }

  .hero-3d::after {
    bottom: 9%;
    width: 210px;
  }

  .claim {
    max-width: 400px;
    margin-top: 0;
    font-size: clamp(18px, 5.1vw, 22px);
  }

  .icon-row {
    gap: 11px;
    margin-top: 34px;
  }

  .icon-button {
    width: 64px;
    height: 64px;
    border-radius: 17px;
  }

  .icon-button svg {
    width: 27px;
    height: 27px;
  }

  .icon-button .play {
    width: 29px;
    height: 32px;
  }
}

/* Verhindert nachträgliche Footer-Positionsüberschreibungen */
.site-footer .footer-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
}

.site-footer .language-switch {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  transform: none !important;
}

.site-footer .footer-top {
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

/* Desktop: gleicher Footer-Aufbau wie Englisch */
@media (min-width: 681px) {
  .site-footer .footer-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 0 !important;
  }

  .site-footer .footer-inner > :first-child {
    grid-column: 1;
    justify-self: start;
  }

  .site-footer .language-switch {
    grid-column: 2;
    justify-self: center;
  }

    .site-footer .footer-links {
    grid-column: 3;
    justify-self: end;
  }
}

/* Aktive Sprache: Deutsch immer tiefschwarz und fett */
html body .site-footer .footer-inner .language-switch span.language-active,
html body .site-footer .footer-inner .language-switch a.language-active,
html body .site-footer .footer-inner .language-switch [aria-current="page"] {
  color: #050505 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

/* Inaktive Sprache bleibt grau */
html body .site-footer .footer-inner .language-switch a:not(.language-active) {
  color: #777 !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}
/* Deutsche Seite: erstes Element ist DE und immer aktiv */
.site-footer .language-switch > :first-child {
  color: #000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
