.footer-wrapper {
    width: 100%;
    background: #fff;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* TICKER */
.footer-ticker {
    width: 100%;
    height: 60px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    border-top: none;
    padding: 0;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: scrollLogos 30s linear infinite;
}

.ticker-track img {
    height: 40px;
    width: auto;
    margin: 0 0px;
    filter: grayscale(100%);
    opacity: 0.7;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* BOTTOM BAR */
.footer-bottom {
    width: 100%;
    height: 40px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content-limit {
    width: 92%;
    max-width: 1600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-links {
    display: flex;
    gap: 24px;
}

.contact-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #ff3333;
}

.copyright {
    color: #666;
    font-size: 10px;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    text-decoration: none;
    color: #999;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #fff;
}

/* OVERLAYS */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(12, 12, 12, 0.98);
    z-index: 99999 !important;  /* ABOVE EVERYTHING */
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: flex;
    opacity: 1;
}

.overlay-inner {
    width: 800px;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 60px 40px 40px 40px;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 8px;
}

/* CLOSE BUTTON - FIXED POSITION RELATIVE TO VIEWPORT */
.close-btn {
    position: fixed;  /* CHANGED FROM ABSOLUTE */
    top: 40px;
    right: 80px;  /* MOVED LEFT TO AVOID SCROLLBAR */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 0px solid #ff3333;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100000;  /* ABOVE OVERLAY CONTENT */
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.close-btn:hover {
    border-width: 2px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    color: #ff3333;
    transform: scale(1.05);
}

.overlay-content {
    overflow-y: auto;
    padding-right: 15px;
    color: #ccc;
    line-height: 1.8;
    max-height: 80vh;
}

.overlay-content h1 {
    color: #fff;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.overlay-content h2 {
    color: #ff3333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
}

.overlay-content p {
    margin-bottom: 1rem;
    font-size: 14px;
}

.overlay-content::-webkit-scrollbar {
    width: 8px;
}

.overlay-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.overlay-content::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.overlay-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 1. Ab 768px: nur Copyright weg, Rest bleibt wie Desktop */
@media (max-width: 768px) {
  .footer-bottom .copyright {
    display: none;
  }
}

/* 2. Ab 512px: dein Mobile-Layout */
@media (max-width: 512px) {

  .footer-content-limit {
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }

  .footer-bottom {
    height: auto;
    padding: 16px 0;
  }

  .footer-bottom .copyright {
    display: none;
  }

  .contact-links {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 12px;
  }

  .contact-links a {
    font-size: 10px;
    white-space: nowrap;
  }

  .legal-links {
    justify-content: center;
    gap: 20px;
    font-size: 10px;
    white-space: nowrap;
  }
}


body .overlay {
    z-index: 999999 !important;
}

body .close-btn {
    z-index: 1000000 !important;
}

body .site-header {
    z-index: 99 !important;
}
