/* ===========================================
   GLOBAL FOOTER (Contelos)
   =========================================== */

.ctls-footer {
  background: #fafafa;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  padding-top: 3em;
  padding-bottom: 3em;
  font-family: "Artifakt Element", sans-serif;
}

.footer-container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--global-gutter);
  padding-right: var(--global-gutter);
  box-sizing: border-box;
}

/* ===========================================
   OBERE REIHE
   =========================================== */
.footer-top {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 3em;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8em;
  color: #000;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin: 0.35em 0;
}

.footer-col ul li a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #d00000;
}

/* Kontaktbereich */
.footer-col p {
  margin: 0.4em 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.footer-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ===========================================
   AUSZEICHNUNGEN
   =========================================== */
.footer-awards {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5em;
}

.footer-awards img {
  max-height: 230px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  z-index: 1;
  will-change: transform;
}

/* Skalierungseffekt bei Hover */
.footer-awards img:first-child:hover,
.footer-awards img:last-child:hover {
  transform: scale(2.05);
  z-index: 10;
}

/* ===========================================
   UNTERE REIHE
   =========================================== */
.footer-bottom {
  border-top: 1px solid #ddd;
  padding-top: 1.5em;
  text-align: center;
}

/* Partnerlogos */
.footer-partner {
  display: flex;
  justify-content: center;
  gap: 4em;
  margin: 2em 0;
  flex-wrap: wrap;
}

.footer-partner img {
  max-height: 60px;
  object-fit: contain;
}

/* Social Links */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-bottom: 0.8em;
  flex-wrap: wrap;
}

.footer-social a {
  color: #333;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #d00000;
}

/* Rechtliches – jetzt gleich wie Social Links */
.footer-legal {
  font-size: 14px;       /* gleiche Größe */
  color: #333;           /* gleiche Farbe */
}

.footer-legal a {
  color: #333;
  text-decoration: none; /* kein Underline */
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #d00000;        /* gleiche Hover-Farbe */
  text-decoration: none; /* bleibt ohne Underline */
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-awards {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-awards {
    flex-direction: column;
    align-items: center;
  }

  .footer-awards img {
    max-height: 160px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-partner {
    gap: 2em;
  }

  .footer-legal {
    font-size: 0.9rem;
  }
}
/* ===========================================
   Desktop vs. Mobile Footer Umschaltung
   =========================================== */
.desktop-footer { 
  display: block; 
}
.mobile-footer  { 
  display: none; 
}

/* ===========================================
   Mobile Ansicht
   =========================================== */
@media (max-width: 768px) {

  /* Desktop ausblenden */
  .desktop-footer { 
    display: none; 
  }

  /* Mobile Footer aktivieren */
  .mobile-footer  {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
    padding: 1.5em 1em;
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    font-family: "Artifakt Element", sans-serif;

    /* Sticky unten */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 50;
  }

  /* Abstand unter Seite, damit nichts überlappt */
  body {
      padding-bottom: 90px; /* minimal größer */

  }

  .mobile-footer-inner {
    display: flex;
    gap: 1.25em;
    flex-wrap: nowrap;
  }

  .mobile-footer a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .mobile-copy {
    font-size: 12px;
    color: #666;
  }
}

/* ===========================================
   Mobile Footer – Autodesk Logos (nur Mobil)
   =========================================== */

/* Standard: Logos ausblenden */
.mobile-footer-logos {
  display: none;
}

/* Nur auf Mobilgeräten anzeigen */
@media (max-width: 768px) {
  .mobile-footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    padding: 2em 0 3em;
    background: #fff;
    border-top: 1px solid #eee;
  }
  footer.ctls-footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #fff;
  }
  .mobile-footer-logos img {
    height: 37px;
    width: auto;
    opacity: 0.85;
  }
}