/* ====== INDEX / STARTSEITE STYLES ====== */

/* ===== Hero Section (mit Bild + Overlay) ===== */
.hero-image {
    position: relative;
    height: 90vh;
    background: url("Meggele_Header_scs.png") center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 62, 62, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content .date {
    font-size: 14px;
    opacity: 0.9;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 3em;
    margin: 10px 0;
}

.hero-content h2 {
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 25px;
    color: #ffffff;
}

/* ===== Join Section ===== */
.join-section {
    background-color: #d60000;
    text-align: center;
    padding: 40px 20px;
    color: #fff;
}

.join-section p {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.join-section .join:hover {
    background: #fff;
    color: #ff0000;
}

/* ====== MIDDLE CONTENT SECTION ====== */
.middle-content {
    background: #fff;
    padding: 80px 20px;
}

.content-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.content-container h2 {
    color: var(--primary);
    font-size: 42px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.intro-text {
    font-size: 20px;
    color: var(--paragraph-gray);
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-box {
    background: #f9f9f9;
    padding: 35px 25px;
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.15);
}

.feature-box .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-box h3 {
    color: var(--primary-dark);
    font-size: 24px;
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--paragraph-gray);
    font-size: 16px;
    line-height: 1.5;
}

/* ============================================
   NEWS / AKTUELLES SECTION
   ============================================ */

.news-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.news-box h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
}

.news-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-date {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    background: #ff0000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.news h4 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: #2c3e50;
}

.news p {
    color: #666;
    line-height: 1.6;
    margin: 0.75rem 0 1rem 0;
}

.news a {
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.news a:hover {
    color: #c02b2b;
    padding-left: 5px;
}

/* ============================================
   RESPONSIVE - News & Features
   ============================================ */

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .news-items {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-box {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .news-box h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .news {
        padding: 1.25rem;
    }

    .news h4 {
        font-size: 1.15rem;
    }

    .news-date {
        font-size: 0.85rem;
    }
}