/**
 * File: custom-sections.css
 *
 * CUSTOM SECTIONS STYLING
 * Tanzgruppen, Vorstand, Social Media, and other custom sections.
 *
 * @package     KuK Bendorf Theme
 * @author      Oliver Ferber <admin@kuk-bendorf.de>
 * @copyright   2024-2026 KuK Bendorf e.V.
 * @license     Proprietary
 * @version     1.0.0
 */

/* ==========================================
   1. TANZGRUPPEN KACHELN - PREMIUM DESIGN
   ========================================== */

.tanzgruppen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .tanzgruppen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .tanzgruppen-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tanzgruppe-tile {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.tanzgruppe-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.tanzgruppe-tile:hover::before {
    opacity: 1;
}

.tanzgruppe-tile:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.tanzgruppe-tile .tile-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.tanzgruppe-tile .tile-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    pointer-events: none;
}

.tanzgruppe-tile .tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tanzgruppe-tile:hover .tile-image img {
    transform: scale(1.1) rotate(1deg);
}

.tanzgruppe-tile .tile-content {
    padding: 35px 30px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tanzgruppe-tile .tile-content h3 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
}

.tanzgruppe-tile .tile-description {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: auto;
    font-size: 1.05rem;
}

.tanzgruppe-tile .tile-social {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.tanzgruppe-tile .tile-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tanzgruppe-tile .tile-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tanzgruppe-tile .tile-social a:hover::before {
    width: 100%;
    height: 100%;
}

.tanzgruppe-tile .tile-social a:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.tanzgruppe-tile .tile-social .fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.tanzgruppe-tile .tile-social .fa-tiktok {
    background: #000;
}

.tanzgruppe-tile .tile-social .fa-facebook {
    background: #1877f2;
}

/* ==========================================
   2. VORSTAND CARDS
   ========================================== */

.board-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile */
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 576px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .board-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .board-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.board-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.board-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-lg);
}

.board-card .board-photo {
    width: 100%;
    height: 280px;
    /* Fixed height for uniformity */
    overflow: hidden;
    background: var(--light-bg);
    flex-shrink: 0;
}

.board-card .board-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.board-card .board-content {
    padding: 20px;
}

.board-position-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.board-position-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #764ba2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.board-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.board-card .board-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================
   3. SOCIAL MEDIA SECTIONS
   ========================================== */

.social-section {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.social-section h2 {
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-section h2 i {
    color: var(--primary);
    font-size: 1.8rem;
}

.social-section>p {
    color: #666;
    margin-bottom: 25px;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    text-align: center;
}

.social-link-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-lg);
    color: white;
}
.social-link-card:hover i,
.social-link-card:hover span,
.social-link-card:hover small {
    color: white;
}

.social-link-card.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link-card.facebook {
    background: #1877f2;
}

.social-link-card.tiktok {
    background: #000;
}

.social-link-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.social-link-card span {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.social-link-card small {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==========================================
   4. SPONSOREN GRID
   ========================================== */

.sponsor-category {
    margin-bottom: 50px;
}

.sponsor-category h2 {
    color: var(--primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.sponsor-card {
    background: white;
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 300px;
}

.sponsor-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-lg);
}

.sponsor-card .sponsor-logo {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.sponsor-card .sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sponsor-card .sponsor-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sponsor-card .sponsor-contact a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sponsor-card .sponsor-contact a:hover {
    color: var(--text-dark);
}

.become-sponsor-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 50px;
}

.become-sponsor-cta h2 {
    color: white;
    margin-bottom: 15px;
}

.become-sponsor-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* ==========================================
   5. VEREINSPROFIL STATS & TRADITIONS
   ========================================== */

.intro-text .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 30px;
}

.tradition-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.tradition-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.tradition-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-lg);
}

.tradition-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tradition-icon i {
    font-size: 2rem;
    color: white;
}

.tradition-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.tradition-card p {
    color: #666;
    line-height: 1.7;
}

.stats-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
}

.stats-highlight .stat-card {
    text-align: center;
    color: white;
}

.stats-highlight .stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.stats-highlight .stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Verein Photo Placeholder */
.verein-photo-section {
    margin: 40px 0;
}

.verein-photo-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e9f0 100%);
    border: 3px dashed #cbd5e0;
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    color: #718096;
}

.verein-photo-placeholder i {
    font-size: 4rem;
    color: #a0aec0;
    margin-bottom: 20px;
}

.verein-photo-placeholder p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.verein-photo-placeholder strong {
    color: #4a5568;
    font-size: 1.2rem;
}

.verein-photo-placeholder small {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.closing-text {
    text-align: center;
    margin-top: 40px;
}

.closing-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* ==========================================
   6. MITGLIEDSCHAFT SEKTION
   ========================================== */

.intro-section {
    text-align: center;
    margin-bottom: 50px;
}

.intro-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2rem;
}

.why-join-section {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.why-join-section h3 {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 12px 0;
    color: #666;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefits-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-cta {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-cta h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.membership-form {
    margin-top: 30px;
}

.form-note {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary);
    color: #666;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {

    .tanzgruppen-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        /* Prevent touching screen edges */
        gap: 25px;
    }

    .tanzgruppe-tile .tile-image {
        height: 250px;
        /* Smaller image on mobile to save space */
    }

    .tanzgruppe-tile .tile-content {
        padding: 20px 15px;
        /* More breathing room inside */
    }

    .tanzgruppe-tile .tile-content h3 {
        font-size: 1.5rem;
    }

    .board-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        /* Prevent touching screen edges */
    }

    .sponsors-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .sponsor-card {
        padding: 25px 15px;
        min-height: auto;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }

    .stats-highlight {
        grid-template-columns: repeat(2, 1fr);
    }

    .tradition-section {
        grid-template-columns: 1fr;
    }

    .social-section {
        padding: 25px 18px;
        margin-left: 0;
        margin-right: 0;
    }

    .social-links-grid {
        gap: 12px;
    }

    .social-link-card {
        padding: 20px 12px;
    }
}