/* ============================================
   FOOTER – Asana Praxis
   3 Spalten oben, Nav + Credit unten
   ============================================ */

/* ── Sticky Footer ─── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main#main    { flex: 1 0 auto; }
.ap-header   { flex-shrink: 0; }
.ap-footer   { flex-shrink: 0; }


/* ============================================
   WAVE SECTION
   ============================================ */
.ap-footer-waves {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: transparent;
  margin-bottom: -1px;
}

.ap-footer-waves svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.ap-wave-4 { opacity: 0.18; animation: ap-wave-drift 14s linear infinite; }
.ap-wave-1 { opacity: 0.25; animation: ap-wave-drift 20s linear infinite; }
.ap-wave-2 { opacity: 0.38; animation: ap-wave-drift-reverse 16s linear infinite; }
.ap-wave-3 { opacity: 0.65; animation: ap-wave-drift 22s linear infinite; }

@keyframes ap-wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes ap-wave-drift-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (max-width: 767px)  { .ap-footer-waves { height: 80px; } }
@media (min-width: 1400px) { .ap-footer-waves { height: 150px; } }


/* ============================================
   FOOTER BASE
   ============================================ */
.ap-footer {
  background: var(--ap-red-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--ap-space-12) 0 0;
  position: relative;
}


/* ============================================
   3-SPALTEN GRID
   ============================================ */
.ap-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ap-space-10);
  padding-bottom: var(--ap-space-10);
}


/* ============================================
   HEADINGS – überschreibt Elementor Global H4
   ============================================ */
.ap-footer .ap-footer__heading,
.ap-footer h4.ap-footer__heading {
  font-family: var(--ap-font-body) !important;
  font-size: var(--ap-text-sm) !important;
  font-weight: var(--ap-weight-bold) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--ap-ls-caps) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-bottom: var(--ap-space-4) !important;
  line-height: 1.3 !important;
}


/* ============================================
   COLUMN CONTENT
   ============================================ */
.ap-footer__col p,
.ap-footer__col a {
  font-size: var(--ap-text-base);
  line-height: var(--ap-lh-body);
  color: rgba(255, 255, 255, 0.85);
}

.ap-footer__col a {
  display: inline-block;
  transition: color 0.2s var(--ap-ease), text-decoration-color 0.2s var(--ap-ease);
  text-decoration: underline transparent;
  text-underline-offset: 3px;
}

.ap-footer__col a:hover {
  color: var(--ap-white);
  text-decoration-color: var(--ap-white);
}

.ap-footer__note {
  font-size: var(--ap-text-xs) !important;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4) !important;
  margin-top: var(--ap-space-1);
}


/* ============================================
   CONTACT LIST
   ============================================ */
.ap-footer__contact-list {
  margin: 0;
  padding: 0;
}

.ap-footer__contact-row {
  display: grid;
  grid-template-columns: 6rem 1fr;        /* Breit genug für "Telefax:" */
  gap: var(--ap-space-4);
  align-items: baseline;
  margin-bottom: var(--ap-space-1);
}

.ap-footer__contact-row dt {
  font-size: var(--ap-text-base);
  line-height: var(--ap-lh-body);
  color: rgba(255, 255, 255, 0.65);
  font-weight: var(--ap-weight-regular);
  white-space: nowrap;
}

.ap-footer__contact-row dd {
  margin: 0;
  font-size: var(--ap-text-base);
  line-height: var(--ap-lh-body);
}

.ap-footer__contact-row dd a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline transparent;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ap-ease), text-decoration-color 0.2s var(--ap-ease);
}
.ap-footer__contact-row dd a:hover {
  color: var(--ap-white);
  text-decoration-color: var(--ap-white);
}


/* ============================================
   BOTTOM BAR: Nav links | Credit
   ============================================ */
.ap-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--ap-space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-4);
  align-items: flex-start;
}

/* Navigation als horizontale Liste */
.ap-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-2) var(--ap-space-6);
}

.ap-footer__nav-list li {
  margin: 0;
}

.ap-footer__nav-list a {
  font-size: var(--ap-text-base);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline transparent;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ap-ease), text-decoration-color 0.2s var(--ap-ease);
}

.ap-footer__nav-list a:hover {
  color: var(--ap-white);
  text-decoration-color: var(--ap-white);
}

.ap-footer__nav-list .current-menu-item a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--ap-weight-semibold);
}

/* Credit */
.ap-footer__credit {
  font-size: var(--ap-text-base) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

.ap-footer__credit a {
	display:block;
  color: rgba(255, 255, 255, 0.75);
  font-weight: var(--ap-weight-medium);
  text-decoration: underline transparent;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ap-ease), text-decoration-color 0.2s var(--ap-ease);
}

.ap-footer__credit a:hover {
  color: var(--ap-white);
  text-decoration-color: var(--ap-white);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .ap-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  /* 3 gleiche Spalten */
  .ap-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Bottom Bar: gleiches Grid, Nav links (Spalte 1-2), Credit auf Höhe Spalte 3 */
  .ap-footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--ap-space-10);
    align-items: baseline;
  }

  .ap-footer__nav {
    grid-column: 1 / 3;
  }

  .ap-footer__credit {
    grid-column: 3;
    text-align: left !important;
  }
}


/* ============================================
   REDUCE MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .ap-wave-1, .ap-wave-2, .ap-wave-3, .ap-wave-4 {
    animation: none;
  }
}



/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.ap-back-to-top {
  position: fixed;
  bottom: var(--ap-space-8);
  right: var(--ap-space-8);
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ap-red);
  color: var(--ap-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--ap-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--ap-dur) var(--ap-ease),
    visibility var(--ap-dur) var(--ap-ease),
    transform var(--ap-dur) var(--ap-ease),
    background var(--ap-dur) var(--ap-ease);
}

.ap-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ap-back-to-top:hover {
  background: var(--ap-red-dark);
  box-shadow: var(--ap-shadow-lg);
}

.ap-back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  .ap-back-to-top {
    width: 42px;
    height: 42px;
    bottom: var(--ap-space-5);
    right: var(--ap-space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-back-to-top {
    transition: none;
  }
}
