/* news.css - Spezifische Styles für die News-Seite */

#header-font {
    font-family: "Playball", cursive;
    font-size: xxx-large;
    color: #F9B233;
}

.hero {
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4B93FF 0%, #3a7ae0 100%);
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.news-section {
    padding-top: 12rem;
    /* Platz für Nav */
    padding-bottom: 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.03);
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.news-category {
    color: #4B93FF;
    font-weight: 600;
}

.news-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-excerpt {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

body.light-mode .news-excerpt {
    color: #555;
}

.news-empty {
    text-align: center;
    padding: 8rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.read-more-btn {
    background: transparent;
    border: 1px solid rgba(75, 147, 255, 0.3);
    color: #4B93FF;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    width: fit-content;
    position: relative;
    z-index: 2;
}

.read-more-btn:hover {
    background: rgba(75, 147, 255, 0.1);
    border-color: #4B93FF;
    transform: translateX(4px);
}

body.light-mode .read-more-btn {
    border-color: rgba(0, 102, 255, 0.2);
    color: #0066ff;
}

/* News Modal Styles */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-modal.active {
    display: flex;
    opacity: 1;
}

.news-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.news-modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 32px;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-modal.active .news-modal-content {
    transform: translateY(0);
}

body.light-mode .news-modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0a0a0a;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

body.light-mode .modal-close {
    background: rgba(0, 0, 0, 0.05);
    color: #0a0a0a;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.modal-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.modal-image-wrapper {
    margin: 2rem 0;
    line-height: 0;
}

.modal-single-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-gallery-grid img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s;
    border: 2px solid transparent;
}

.modal-gallery-grid img:hover {
    transform: translateY(-5px);
    border-color: #4B93FF;
}

.modal-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

body.light-mode .modal-body {
    color: #444;
}

@media (max-width: 768px) {
    .news-modal-content {
        padding: 2rem;
        border-radius: 24px;
        width: 95%;
    }

    .modal-header h2 {
        font-size: 1.6rem;
    }

    .news-section {
        padding: 8rem 2rem;
    }

    .news-grid {
        gap: 2rem;
    }

    .news-title {
        font-size: 1.5rem;
    }
}