/* =========================================
   WIR.SCHLADMING – SITE FOOTER
========================================= */

.ws-footer {
  --ws-footer-white: var(--cream-soft);
  --ws-footer-muted: #b4c2bc;
  --ws-footer-line: rgba(243, 236, 223, 0.18);
  --ws-footer-accent: var(--lime);

  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;

  width: 100%;
  min-height: max(1080px, 100svh);

  overflow: hidden;

  background: var(--dark-deep);
  color: var(--ws-footer-white);
}

/* Dezenter Brand-Farbverlauf */

.ws-footer::before {
  content: "";
  position: absolute;
  z-index: -1;

  top: -270px;
  right: -250px;

  width: 850px;
  height: 850px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(145, 140, 226, 0.13) 0%,
    rgba(145, 140, 226, 0.04) 38%,
    transparent 70%
  );

  pointer-events: none;
}

.ws-footer .ws-footer-container {
  position: relative;

  display: flex;
  flex-direction: column;
  flex: 1;

  width: 100%;
  min-height: inherit;
}

/* =========================================
   1. TOP CTA
========================================= */

.ws-footer .ws-footer-cta {
  padding-top: clamp(85px, 9vw, 155px);
  padding-bottom: clamp(75px, 8vw, 135px);
}

/* Subheadline */

.ws-footer .ws-footer-subheadline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;

  margin: 0 0 25px;
  color: var(--ws-footer-accent);
}

.ws-footer .ws-footer-subheadline::before {
  content: "";
  display: block;

  width: 35px;
  height: 3px;
  flex: 0 0 35px;

  border-radius: 10px;
  background: var(--ws-footer-accent);
}

/* Headline – globale H2-Typografie */

.ws-footer .ws-footer-headline {
  max-width: 780px;
  margin: 0;

  color: var(--ws-footer-white);
  overflow-wrap: break-word;
}

/* CTA rechts */

.ws-footer .ws-footer-cta-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;

  max-width: 440px;
  margin-left: auto;
}

.ws-footer .ws-footer-cta-text {
  max-width: 420px;
  margin: 0;
  color: var(--ws-footer-muted);
}

/* CTA Button */

.ws-footer .ws-footer-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  min-height: 58px;
  max-width: 100%;

  padding: 14px 25px;

  border: 1px solid var(--lime);
  border-radius: 3px;

  background-color: var(--lime);
  background-image: linear-gradient(var(--cream-soft), var(--cream-soft));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0 100%;

  color: var(--dark-deep) !important;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background-size 0.35s ease,
    color 0.35s ease;
}

.ws-footer .ws-footer-cta-button svg {
  display: block;

  width: 22px;
  height: 22px;
  flex: 0 0 22px;

  transition: transform 0.3s ease;
}

.ws-footer .ws-footer-cta-button:hover {
  background-size: 100% 100%;
  color: var(--dark-deep) !important;
  text-decoration: none;
}

.ws-footer .ws-footer-cta-button:hover svg {
  transform: translate(3px, -3px);
}

/* =========================================
   2. FOOTER MAIN
========================================= */

.ws-footer .ws-footer-main {
  padding-top: clamp(55px, 6vw, 90px);
  padding-bottom: clamp(60px, 6vw, 105px);

  border-top: 1px solid var(--ws-footer-line);
}

/* =========================================
   BRAND
========================================= */

.ws-footer .ws-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  max-width: 330px;
}

/* Logo als Typografie */

.ws-footer .ws-footer-brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;

  margin-bottom: 28px;

  color: var(--ws-footer-white) !important;
  text-decoration: none;

  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.ws-footer .ws-footer-brand-logo span:last-child {
  color: var(--lime);
}

.ws-footer .ws-footer-brand-logo:hover {
  text-decoration: none;
}

.ws-footer .ws-footer-brand-description {
  max-width: 290px;
  margin: 0;

  color: var(--ws-footer-muted);
}

/* =========================================
   SOCIAL MEDIA
========================================= */

.ws-footer .ws-footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 30px;
}

.ws-footer .ws-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  border: 1px solid var(--ws-footer-line);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.03);
  color: var(--ws-footer-white) !important;

  text-decoration: none;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.ws-footer .ws-footer-social a:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--dark-deep) !important;
  transform: translateY(-3px);
}

.ws-footer .ws-footer-social svg {
  display: block;

  width: 20px;
  height: 20px;
}

/* =========================================
   NAVIGATION
========================================= */

.ws-footer .ws-footer-column-title {
  margin: 0 0 28px;
  color: var(--ws-footer-white);
}

.ws-footer .ws-footer-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.ws-footer .ws-footer-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-footer .ws-footer-menu a {
  display: inline-block;
  position: relative;

  padding: 3px 0;

  color: var(--ws-footer-muted) !important;
  text-decoration: none;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.ws-footer .ws-footer-menu a:hover,
.ws-footer .ws-footer-menu .current-menu-item > a,
.ws-footer .ws-footer-menu .current_page_item > a {
  color: var(--lime) !important;
}

.ws-footer .ws-footer-menu a:hover {
  transform: translateX(4px);
}

/* =========================================
   KONTAKT
========================================= */

.ws-footer .ws-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  max-width: 350px;
}

.ws-footer .ws-footer-contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;

  width: 100%;
}

.ws-footer .ws-footer-address {
  margin: 0;
  color: var(--ws-footer-muted);
  font-style: normal;
}

.ws-footer .ws-footer-contact-link {
  max-width: 100%;

  color: var(--ws-footer-white) !important;
  text-decoration: none;
  overflow-wrap: anywhere;

  transition: color 0.25s ease;
}

.ws-footer .ws-footer-contact-link:hover {
  color: var(--lime) !important;
  text-decoration: none;
}

.ws-footer .ws-footer-contact-description {
  max-width: 310px;
  margin: 0;

  color: var(--ws-footer-muted);
}

/* Kontakt-Link */

.ws-footer .ws-footer-contact-action {
  display: inline-flex;
  align-items: center;
  gap: 17px;

  margin-top: 28px;
  padding-bottom: 9px;

  border-bottom: 1px solid var(--lime);

  color: var(--ws-footer-white) !important;
  text-decoration: none;

  transition: color 0.3s ease;
}

.ws-footer .ws-footer-contact-action svg {
  display: block;
  width: 19px;
  height: 19px;

  transition: transform 0.3s ease;
}

.ws-footer .ws-footer-contact-action:hover {
  color: var(--lime) !important;
}

.ws-footer .ws-footer-contact-action:hover svg {
  transform: translate(3px, -3px);
}

/* =========================================
   3. OVERSIZED WORDMARK
========================================= */

.ws-footer .ws-footer-wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;

  width: 100%;
  margin-top: auto;
  padding-top: 45px;
  padding-bottom: clamp(30px, 4vw, 60px);

  overflow: hidden;

  white-space: nowrap;
  font-size: clamp(2.2rem, 8.4vw, 9.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.065em;
}

.ws-footer .ws-footer-wordmark-first {
  color: var(--ws-footer-white);
}

.ws-footer .ws-footer-wordmark-second {
  color: var(--lime);
}

/* =========================================
   4. BOTTOM BAR
========================================= */

.ws-footer .ws-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;

  width: 100%;

  padding-top: 24px;
  padding-bottom: 34px;

  border-top: 1px solid var(--ws-footer-line);
}

/* Copyright */

.ws-footer .ws-footer-copyright {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  color: var(--ws-footer-muted);
}

.ws-footer .ws-footer-copyright-separator {
  color: var(--lime);
}

/* Rechtliches */

.ws-footer .ws-footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 13px 25px;
}

.ws-footer .ws-footer-legal-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 25px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.ws-footer .ws-footer-legal-menu li {
  margin: 0;
  padding: 0;

  list-style: none;
}

.ws-footer .ws-footer-legal-menu a,
.ws-footer .ws-footer-cookie-link {
  display: inline-flex;
  align-items: center;

  min-height: 30px;

  color: var(--ws-footer-muted) !important;
  text-decoration: none;

  transition: color 0.25s ease;
}

.ws-footer .ws-footer-legal-menu a:hover,
.ws-footer .ws-footer-cookie-link:hover {
  color: var(--lime) !important;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* =========================================
   FOCUS STATES
========================================= */

.ws-footer a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
  border-radius: 2px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1199.98px) {
  .ws-footer {
    min-height: max(1080px, 100svh);
  }

  .ws-footer .ws-footer-main {
    padding-bottom: 70px;
  }

  .ws-footer .ws-footer-wordmark {
    font-size: clamp(2.2rem, 8.2vw, 7.5rem);
  }
}

@media (max-width: 991.98px) {
  .ws-footer .ws-footer-cta {
    padding-top: 90px;
    padding-bottom: 85px;
  }

  .ws-footer .ws-footer-headline {
    max-width: 700px;
  }

  .ws-footer .ws-footer-cta-aside {
    max-width: 650px;
    margin-left: 0;
    gap: 25px;
  }

  .ws-footer .ws-footer-cta-text {
    max-width: 600px;
  }

  .ws-footer .ws-footer-brand {
    max-width: 360px;
  }

  .ws-footer .ws-footer-main {
    padding-top: 65px;
    padding-bottom: 70px;
  }

  .ws-footer .ws-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .ws-footer .ws-footer-bottom-links {
    justify-content: flex-start;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {
  .ws-footer {
    min-height: 100svh;
  }

  .ws-footer::before {
    top: -150px;
    right: -250px;

    width: 550px;
    height: 550px;
  }

  .ws-footer .ws-footer-container {
    min-height: 100svh;
  }

  .ws-footer .ws-footer-cta {
    padding-top: 75px;
    padding-bottom: 70px;
  }

  .ws-footer .ws-footer-subheadline {
    gap: 10px;
    margin-bottom: 20px;
  }

  .ws-footer .ws-footer-subheadline::before {
    width: 25px;
    flex-basis: 25px;
  }

  .ws-footer .ws-footer-cta-aside {
    align-items: stretch;
    gap: 25px;
  }

  .ws-footer .ws-footer-cta-button {
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    min-height: 54px;
    padding: 13px 20px;
  }

  .ws-footer .ws-footer-main {
    padding-top: 55px;
    padding-bottom: 60px;
  }

  .ws-footer .ws-footer-brand-logo {
    margin-bottom: 20px;
    font-size: 2.6rem;
  }

  .ws-footer .ws-footer-column-title {
    margin-bottom: 22px;
  }

  .ws-footer .ws-footer-menu {
    gap: 13px;
  }

  .ws-footer .ws-footer-wordmark {
    justify-content: flex-start;

    padding-top: 35px;
    padding-bottom: 35px;

    font-size: clamp(1.8rem, 8.1vw, 4.5rem);
    letter-spacing: -0.06em;
  }

  .ws-footer .ws-footer-bottom {
    gap: 20px;

    padding-top: 25px;
    padding-bottom: 35px;
  }

  .ws-footer .ws-footer-copyright {
    gap: 7px;
  }

  .ws-footer .ws-footer-legal-menu,
  .ws-footer .ws-footer-bottom-links {
    gap: 9px 18px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 399.98px) {
  .ws-footer .ws-footer-wordmark {
    font-size: 7.9vw;
  }

  .ws-footer .ws-footer-copyright-separator {
    display: none;
  }

  .ws-footer .ws-footer-copyright {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  .ws-footer .ws-footer-cta-button,
  .ws-footer .ws-footer-cta-button svg,
  .ws-footer .ws-footer-social a,
  .ws-footer .ws-footer-menu a,
  .ws-footer .ws-footer-contact-link,
  .ws-footer .ws-footer-contact-action,
  .ws-footer .ws-footer-contact-action svg,
  .ws-footer .ws-footer-legal-menu a,
  .ws-footer .ws-footer-cookie-link {
    transition: none;
  }
}
