/* ==========================================================================
   1. GLOBAL RESETS & BASIS-STYLING
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e0101; 
    color: #f5f5f7;
    line-height: 1.6;
}

/* Hauptcontainer */
.container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 25px;
}

/* ==========================================================================
   2. HEADER & DAS NEUE 7ER-GRID-MENÜ
   ========================================================================== */
header {
    background-color: #3a0202; 
    padding: 20px;
    border-bottom: 2px solid #6b0404;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto 15px auto;
}

.site-logo {
    height: 65px;
    width: auto;
}

.header-text h1 {
    font-size: 2.2rem;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.header-text p {
    color: #e0b3b3;
    font-size: 0.95rem;
}

/* Perfektes, aufgeräumtes Raster für exakt 7 Felder pro Reihe */
.clean-grid-nav {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 5px 0 0 0;
}

.clean-grid-nav a {
    display: block;
    text-align: center;
    color: #f5f5f7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 8px 4px;
    border-radius: 4px;
    background-color: #3a0202; 
    border: 1px solid #540303;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.clean-grid-nav a:hover, 
.clean-grid-nav a.active {
    background-color: #6b0404; 
    color: #ffffff;
    border-color: #a30f0f; 
}

/* ==========================================================================
   3. AUTOMATISCHER SLIDER (HOMEPAGE)
   ========================================================================== */
.carousel-container {
    max-width: 1300px;
    margin: 25px auto 0 auto;
    padding: 0 25px;
}

.carousel-slider {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #120000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #540303;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: flex-end;
}

.carousel-slide.active { opacity: 1; position: relative; }
.carousel-slide img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.carousel-caption {
    position: relative;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    width: 100%;
    padding: 40px 25px 20px 25px;
}

.carousel-caption h3 {
    color: #ffffff; font-size: 1.6rem;
    margin-top: 5px; text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.c-badge {
    background-color: #6b0404; color: #ffffff;
    padding: 3px 8px; border-radius: 4px;
    font-size: 0.75rem; text-transform: uppercase; font-weight: bold;
}
/* ==========================================================================
   3b. SLIDER MANUELLE STEUERUNG (PFEILE)
   ========================================================================== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid #540303;
    font-size: 24px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0; /* Standardmäßig unsichtbar */
}

/* Pfeile zeigen, wenn man über den Slider-Container fährt */
.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: #6b0404;
    border-color: #a30f0f;
}

.carousel-prev {
    left: 40px; /* Leicht eingerückt wegen des Container-Paddings */
}

.carousel-next {
    right: 40px;
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 900px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
        opacity: 0.8; /* Mobil dauerhaft leicht sichtbar */
    }
    .carousel-prev { left: 30px; }
    .carousel-next { right: 30px; }
}
/* ==========================================================================
   4. HAUPT-LAYOUT (ZWEI SPALTEN)
   ========================================================================== */
.main-layout {
    display: flex;
    gap: 35px;
}

.content-column { flex: 3; }
.sidebar-column { flex: 1; min-width: 320px; }

.section-title {
    font-size: 1.5rem; text-transform: uppercase;
    margin-bottom: 20px; border-left: 4px solid #6b0404;
    padding-left: 12px; color: #ffffff;
}

/* Animation für pulsierende Überschriften */
.pulsing-title {
    animation: pulseAnimation 3s infinite ease-in-out;
}

@keyframes pulseAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); color: #ff4d4d; }
    100% { transform: scale(1); }
}

/* ==========================================================================
   5. DIE ARTIKEL-KACHELN (MODERN GRID) & ZOOM-EFFEKT
   ========================================================================== */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.modern-card {
    background-color: #3a0202;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #540303;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge {
    background-color: #1e0101;
    color: #ff6666;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    align-self: flex-start;
    margin-bottom: 10px;
}

.card-body h3 {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.3;
}

.card-teaser {
    font-size: 0.8rem;
    color: #e0b3b3;
    margin-top: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.card-date {
    font-size: 0.8rem;
    color: #e0b3b3;
    margin-top: auto; 
    padding-top: 10px;
}

/* Eleganter Zoom auf PCs beim Hovern (Layout-freundlich) */
@media (min-width: 901px) {
    .modern-card:hover {
        z-index: 10;
        transform: scale(1.05); /* Auf 1.05 reduziert, damit nichts zerschießt */
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 102, 102, 0.3); 
        border-color: #ff6666;
    }

    .modern-card:hover .card-teaser {
        max-height: 100px;
        opacity: 1;
    }
}

/* ==========================================================================
   6. SIDEBAR (ALLE RECHTEN BOXEN EINHEITLICH)
   ========================================================================== */
.sidebar-box {
    background-color: #3a0202; 
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #540303;
}

.sidebar-box h3 {
    font-size: 1.1rem; 
    color: #ffffff; 
    text-transform: uppercase;
}

.sidebar-box h4 {
    font-size: 0.95rem;
    color: #ff6666;
    margin-top: 5px;
    margin-bottom: 5px;
}

.box-line {
    height: 2px; 
    background-color: #6b0404; 
    margin: 10px 0 15px 0;
}

.sidebar-box p { 
    font-size: 0.85rem; 
    color: #e0b3b3; 
}

.sidebar-thumb {
    width: 100%; border-radius: 6px;
    overflow: hidden; margin-bottom: 10px;
}

.sidebar-thumb img { width: 100%; display: block; object-fit: cover; }

.box-link-more {
    color: #ff6666; 
    text-decoration: none;
    font-size: 0.85rem; 
    display: inline-block; 
    margin-top: 10px;
    font-weight: bold;
}

.box-link-more:hover {
    color: #ffffff;
}

/* Der neue seitliche YouTube-Button im Sidebar-Design */
.sidebar-yt-btn {
    transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.sidebar-yt-btn:hover {
    background: #b01318 !important;
    transform: scale(1.03);
}

/* Archiv-Liste in der Sidebar */
.archive-list { list-style: none; }
.archive-list li { margin-bottom: 6px; }
.archive-list a { color: #e0b3b3; text-decoration: none; font-size: 0.9rem; }
.archive-list a:hover { color: #ff6666; }

/* ==========================================================================
   7. BERICHTSSEITEN (ARTIKEL-DETAILS, AUFSTELLUNGEN, YOUTUBE)
   ========================================================================== */
.report-article {
    background-color: #3a0202;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #540303;
    margin-bottom: 35px;
}

.report-title { font-size: 1.9rem; color: #ffffff; margin: 10px 0; }
.report-meta { font-size: 0.85rem; color: #e0b3b3; margin-bottom: 20px; }

.report-img-container { width: 100%; border-radius: 6px; overflow: hidden; margin: 20px 0; border: 1px solid #6b0404; }
.report-img-container img { width: 100%; display: block; height: auto; }

.report-article h2 { font-size: 1.4rem; color: #ffffff; margin: 25px 0 10px 0; }
.report-article h3 { font-size: 1.15rem; color: #ff6666; margin: 20px 0 10px 0; }
.report-article p { margin-bottom: 15px; font-size: 0.95rem; color: #f5f5f7; line-height: 1.6; }

.artikel-bild {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Ereignisse & Aufstellungen */
.match-details-box {
    background-color: #1e0101;
    border-radius: 6px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #540303;
}
.match-details-box h3 { color: #ffffff; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 15px; border-bottom: 1px solid #6b0404; padding-bottom: 5px; }

.events-list { list-style: none; }
.events-list li { font-size: 0.85rem; padding: 6px 0; border-bottom: 1px dashed #3a0202; color: #e0b3b3; }
.events-list .time { color: #ff6666; font-weight: bold; margin-right: 8px; }

.lineups-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 15px; }
.lineups-grid h4 { color: #ff6666; font-size: 0.95rem; margin-bottom: 8px; text-transform: uppercase; }
.lineups-grid p { font-size: 0.85rem; color: #ffffff; }
.lineups-grid .players { color: #e0b3b3; margin-top: 5px; line-height: 1.4; }

/* YouTube Sektion in den Berichten */
.video-section { margin-bottom: 50px; }
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0; 
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #6b0404;
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ==========================================================================
   8. FOTOGALERIE & LIGHTBOX (POP-UP)
   ========================================================================== */
.gallery-section { 
    margin-bottom: 40px; 
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
    gap: 10px;
}

.gallery-item {
    background-color: #3a0202;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #540303;
    transition: transform 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: scale(1.08);
    border-color: #ff6666;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox-Hintergrund */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 35px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10000;
}

.lightbox-close:hover { color: #ff6666; }

.lightbox-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; height: 100%;
}

.lightbox-content {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(255,255,255,0.05);
    display: block;
    cursor: zoom-in;
    animation: zoomIn 0.2s ease-out;
    transition: transform 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Blätter-Pfeile in der Lightbox */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 60px;
    font-family: monospace;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, transform 0.2s;
    padding: 20px 10px;
    z-index: 10001;
}

.arrow-left { left: 50px; }
.arrow-right { right: 50px; }

.lightbox-arrow:hover {
    color: #ff6666;
    transform: translateY(-50%) scale(1.1);
}

/* ==========================================================================
   9. EMPFEHLUNGEN (ÄHNLICHE BEITRÄGE NEBENEINANDER)
   ========================================================================== */
.recommendations-section { 
    border-top: 2px solid #3a0202; 
    padding-top: 30px; 
}

.rec-title { 
    font-size: 1.2rem; 
    color: #ffffff; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
}

.rec-grid { 
    display: flex; 
    gap: 25px; 
}

a.rec-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background-color: #3a0202; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #540303; 
    flex: 1; 
    display: flex; 
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.rec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.rec-img-wrapper { width: 100%; height: 150px; overflow: hidden; }
.rec-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.rec-body { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.rec-badge { font-size: 0.7rem; color: #ff6666; text-transform: uppercase; font-weight: bold; margin-bottom: 8px; }
.rec-body h4 { font-size: 1rem; color: #ffffff; line-height: 1.3; flex-grow: 1; }
.rec-count { font-size: 0.8rem; color: #e0b3b3; margin-top: 10px; }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer {
    background-color: #0c0000; 
    text-align: center;
    padding: 30px 20px; 
    margin-top: 60px;
    border-top: 2px solid #3a0202;
}

.footer-nav a { color: #e0b3b3; text-decoration: none; font-size: 0.85rem; margin: 0 8px; }
.footer-logo { margin: 20px 0; }
.footer-logo img { height: 40px; opacity: 0.7; }
.copyright { color: #8a6f6f; font-size: 0.8rem; }

/* ==========================================================================
   11. RESPONSIVE DESIGN (MOBIL-ANPASSUNGEN)
   ========================================================================== */
@media (max-width: 1100px) {
    .clean-grid-nav {
        grid-template-columns: repeat(4, 1fr); /* `!important` entfernt, da unnötig */
    }
}

@media (max-width: 900px) {
    .main-layout { flex-direction: column; }
    .carousel-slider { height: 250px; }
    .carousel-caption h3 { font-size: 1.2rem; }
}

@media (max-width: 750px) {
    .lineups-grid { grid-template-columns: 1fr; }
    .rec-grid { flex-direction: column; }
    .lightbox-arrow { font-size: 40px; padding: 10px; }
    .arrow-left { left: 10px; }
    .arrow-right { right: 10px; }
}

@media (max-width: 600px) {
    .clean-grid-nav {
        grid-template-columns: repeat(2, 1fr); 
    }
    .lightbox-content {
        max-width: 98vw;
        max-height: 85vh;
    }
}

/* ==========================================================================
   12. BACK-TO-TOP BUTTON (NACH OBEN PFEIL)
   ========================================================================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #3a0202; 
    color: #ffffff;
    border: 2px solid #6b0404; 
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0; 
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Hover-Effekt beim Drüberfahren */
#backToTop:hover {
    background-color: #6b0404;
    border-color: #a30f0f;
    transform: translateY(-3px); 
}

/* Wenn der Button aktiv/sichtbar sein soll */
#backToTop.visible {
    opacity: 1;
    visibility: visible;
}
/* ==========================================================================
   13. DATENSCHUTZ / COOKIE BANNER STYLE
   ========================================================================== */
#data-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #3a0202; /* Gleiches Dunkelrot wie dein Header/Sidebar */
    color: #f5f5f7;
    padding: 15px 25px;
    box-sizing: border-box;
    font-size: 0.9rem;
    z-index: 99999;
    display: none;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid #6b0404; /* Akzentrot */
    box-shadow: 0 -4px 15px rgba(0,0,0,0.6);
}

#data-consent-banner a {
    color: #ff6666; /* Dein Standard-Rot für Links */
    text-decoration: underline;
}

#data-consent-banner a:hover {
    color: #ffffff;
}

#accept-consent-btn {
    background: #1e0101; /* Dunkler Hintergrund für den Button */
    color: #ffffff;
    border: 1px solid #540303;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: background 0.3s, border-color 0.3s;
    white-space: nowrap;
}

#accept-consent-btn:hover {
    background: #6b0404;
    border-color: #a30f0f;
}

/* Mobil-Anpassung: Text und Button untereinander */
@media (max-width: 600px) {
    #data-consent-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 15px;
    }
    #data-consent-banner div {
        padding-right: 0;
    }
}