/**
 * =====================================================
 * FOOTER STYLES
 * =====================================================
 * Moderner Footer mit Logo-Transition und Contact Cards
 * Nutzt das zentrale Design-System (design-system.css)
 * =====================================================
 */

/* White Section with Logo Top Half */
.footer-white-section {
  background-color: var(--background-white);
  padding: var(--spacing-lg) 0 0;
  overflow: hidden;
}

.footer-logo-top {
  position: relative;
  padding-bottom: 125px; /* Half of typical logo height */
}

.footer-logo-top .footer-logo img {
  max-width: 250px;
  height: auto;
  position: relative;
  z-index: 2;
}

/* Footer Main Section */
.modern-footer {
  background-color: var(--background-beige);
  color: var(--text-primary);
  padding: 0 0 var(--spacing-lg);
  margin-top: -228px; /* Overlap to create mid-logo transition */
  padding-top: 100px; /* Space for logo overlap */
}

.footer-address-section h6 {
  color: var(--primary);
  font-size: var(--font-size-footer-heading);
}

.footer-address-section p {
  font-size: var(--font-size-footer-text);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

.footer-brand {
  text-align: center;
}

.footer-logo img {
  max-width: 250px;
  height: auto;
  margin-bottom: var(--spacing-lg);
}

.footer-address h6 {
  color: var(--primary);
  font-size: var(--font-size-footer-heading);
  margin-bottom: 10px;
}

.footer-address p {
  font-size: var(--font-size-footer-text);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

/* Contact Cards Section */
.contact-cards-section {
  margin-bottom: var(--spacing-2xl);
}

.contact-card {
  display: flex;
  align-items: center;
  background: var(--background-white);
  border: var(--border-width) solid var(--background-gray);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 80px;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary);
  color: inherit;
  text-decoration: none;
}

.contact-card-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-md);
  flex-shrink: 0;
}

.contact-card-icon i {
  font-size: var(--icon-size-md);
  color: var(--text-white);
}

.contact-card-content {
  flex: 1;
  min-width: 0;
}

.contact-card-label {
  font-size: var(--font-size-badge);
  color: var(--secondary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.contact-card-value {
  font-size: var(--font-size-body-sm);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  word-break: break-word;
  line-height: var(--line-height-tight);
}

/* Footer Bottom with Legal Links */
.footer-bottom {
  padding-top: 25px;
  border-top: var(--border-width) solid var(--border-color);
}

.footer-links-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.copyright-text {
  font-size: var(--font-size-footer-small);
  color: var(--text-secondary);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-slow);
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-separator {
  color: var(--text-light);
  font-weight: var(--font-weight-light);
}

/* =====================================================
 * RESPONSIVE BREAKPOINTS
 * ===================================================== */

@media (max-width: 991.98px) {
  .contact-cards-section .row {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .footer-white-section {
    display: none;
  }

  .modern-footer {
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    margin-top: 0;
  }

  .footer-main {
    margin-bottom: var(--spacing-2xl);
  }

  .footer-logo img {
    max-width: 200px;
  }

  .contact-card {
    padding: 12px;
    min-height: 70px;
  }

  .contact-card-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }

  .contact-card-icon i {
    font-size: var(--icon-size-md);
  }

  .contact-card-label {
    font-size: var(--font-size-badge-sm);
  }

  .contact-card-value {
    font-size: var(--font-size-body-xs);
  }

  .footer-links-copyright {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .footer-separator {
    display: none;
  }

  .copyright-text {
    font-size: var(--font-size-badge);
  }
}

@media (max-width: 575.98px) {
  .contact-cards-section .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .contact-card {
    margin-bottom: 10px;
  }
}
