/* Modern Homepage Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #111E0A 0%, #1a2a0a 100%);
    padding: 60px 0;
    margin-bottom: 20px;
    border-radius: 20px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    text-align: center;
}

.hero-text {
    color: #ffffff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

.title-line.highlight-white {
    color: #ffffff;
}

.title-line.highlight {
    color: #ffd700;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    margin-left: 30px;
    margin-right: 30px;
    color: #cccccc;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-primary, .cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-primary {
    background: linear-gradient(135deg, #e31818 0%, #c01414 100%);
    color: white;
}

.cta-primary:hover {
    transform: translateY(-3px);
    color: white;
}

.cta-secondary {
    background-color: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.cta-secondary:hover {
    background-color: #ffd700;
    color: #111E0A;
    transform: translateY(-3px);
}

.cta-primary i, .cta-secondary i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.hero-image {
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e31818;
    border-radius: 2px;
}

/* Features Section */
.features-section {
    padding: 40px 0;
    background-color: #111E0A;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #ffd700;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #312E0A;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #e31818;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #312E0A;
}

.feature-card p {
    line-height: 1.6;
    color: #312E0A;
}

/* Headlines Section */
.headlines-section {
    padding: 40px 0;
    background-color: #111E0A;
}

.headlines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.headline-item {
    background-color: #ffd700;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    color: #312E0A;
}

.headline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.headline-item i {
    font-size: 1.5rem;
    color: #e31818;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.headline-item span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-section {
    padding: 40px 0;
    background-color: #111E0A;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    font-weight: bold;
    font-size: 1.1rem;
}

/* News Section */
.news-section {
    padding: 40px 0;
    background-color: #111E0A;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #ffd700;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #312E0A;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.news-date {
    flex: 0 0 auto;
    text-align: center;
    background-color: #e31818;
    color: white;
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.news-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #312E0A;
}

.news-content p {
    line-height: 1.6;
    color: #312E0A;
}

.news-content a {
    color: #e31818;
    text-decoration: none;
    font-weight: 600;
}

.news-content a:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #e31818 0%, #c01414 100%);
    color: white;
    border-radius: 20px;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-title-white {
    color: white !important;
}

.cta-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary.large, .cta-secondary.large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.cta-secondary.large {
    background-color: #ffd700;
    color: #312E0A;
    border: 2px solid #ffd700;
}

.cta-secondary.large:hover {
    background-color: #ffed4e;
    color: #312E0A;
    border-color: #ffed4e;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .headlines-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-section, .headlines-section, .gallery-section, .news-section, .cta-section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .headlines-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary.large, .cta-secondary.large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        flex-direction: column;
        text-align: center;
    }
    
    .news-date {
        align-self: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e31818 0%, #c01414 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.visible {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* News Actions (Button für ältere News) */
.news-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-show-older-news {
    background: linear-gradient(135deg, #e31818 0%, #c01414 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-show-older-news:hover {
    transform: translateY(-3px);
}

.btn-show-older-news i {
    font-size: 1.1rem;
}

/* News Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.news-modal.active {
    opacity: 1;
    pointer-events: all;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.news-modal-content {
    position: relative;
    background: #111E0A;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.news-modal.active .news-modal-content {
    transform: scale(1);
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 2px solid #ffd700;
}

.news-modal-header h2 {
    color: #ffd700;
    font-size: 2rem;
    margin: 0;
}

.news-modal-close {
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    background: #ffd700;
    color: #111E0A;
    transform: rotate(90deg);
}

.news-modal-body {
    padding: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 400px;
    max-height: calc(85vh - 120px);
}

.news-modal-body::-webkit-scrollbar {
    width: 10px;
}

.news-modal-body::-webkit-scrollbar-track {
    background: #1a2f0f;
    border-radius: 10px;
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 10px;
}

.news-modal-body::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}

.news-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.news-loading,
.news-no-more {
    text-align: center;
    padding: 30px;
    color: #ffd700;
    font-size: 1.1rem;
}

.news-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.news-no-more {
    color: #888;
    font-style: italic;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .news-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .news-modal-header {
        padding: 20px;
    }
    
    .news-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .news-modal-body {
        padding: 20px;
    }
    
    .news-modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Body Lock beim Modal öffnen */
body.modal-open {
    overflow: hidden;
}

