/* ==========================================================================
   Bodyform Athletikklub Salzburg – Gemeinsame Styles
   Diese Datei wird von allen Seiten eingebunden, um Code-Duplizierung
   zu vermeiden. Seitenspezifische Regeln bleiben in einem kleinen
   <style>-Block direkt auf der jeweiligen Seite.
   ========================================================================== */

/* Hero-Hintergrund (Verlauf Primär- zu Sekundärfarbe) */
.hero-bg {
    background: linear-gradient(135deg, #231f20 40%, #ff0000 100%) !important;
    background-size: cover;
    background-position: center;
}

/* Sanftes Hover-Scale für Karten */
.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.03);
}

/* Smooth transition für das mobile Menü */
#mobile-menu {
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 600px;
    opacity: 1;
}

/* Button-Stil für "Mitglied werden" */
.nav-button {
    background-color: #ff0000 !important;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.nav-button:hover {
    background-color: #cc0000 !important;
    transform: scale(1.05);
}

/* 1. Fluid Typography für Haupt-Überschriften (gilt seitenweit) */
h1, .hero-title {
    font-size: clamp(1.8rem, 8vw, 4rem) !important;
    line-height: 1.1;
}

/* 2. Responsive Navigation: Mobile-Menü finger-freundlich */
@media (max-width: 768px) {
    #mobile-menu a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }
}

/* 3. Full-width CTA-Buttons auf Mobile (z.B. "JETZT DURCHSTARTEN") */
@media (max-width: 640px) {
    .nav-button,
    a.inline-block.bg-secondary,
    .cta-button {
        display: block !important;
        width: 100% !important;
        text-align: center;
        margin-bottom: 0.75rem;
    }
}

/* 4. Einspaltiges Grid für Karten (Trainingsangebote, Team, ...) */
@media (max-width: 1024px) {
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3,
    .grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

/* 5. Flexible Partner- & Footer-Logos */
.partner-logos,
.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}
.footer-logos img {
    height: 3.5rem; /* Einheitliche Höhe auf Mobile */
    width: auto;
}

/* Verhindert seitliches Scrollen auf mobilen Geräten (site-weit sinnvoll) */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}
.container, section {
    overflow-x: hidden;
}
