/* ==========================================
   1. BASIS & VARIABLEN
   ========================================== */
:root {
    --spora-red: #991b1b;
    --spora-red-light: #ef4444;
    --spora-red-dark: #7f1d1d;
    --spora-yellow: #f59e0b;
    --spora-yellow-hover: #d97706;
    --spora-white: #ffffff;
    --spora-bg: #f8fafc;
    --spora-text: #1e293b;
    --spora-text-light: #64748b;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-strong: 0 10px 40px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--spora-text);
    background-color: #800;
    background-image: url('./images/SVSporaHG.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   2. HEADER & BANNER
   ========================================== */
.site-header { width: 100%; position: relative; }

.header-banner {
    max-width: 1320px;
    margin: 20px auto 0;
    line-height: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}
.header-banner img { width: 100%; height: auto; display: block; }

/* ==========================================
   3. NAVIGATION
   ========================================== */
.main-nav {
    background: #800;
    border-bottom: 4px solid var(--spora-yellow);
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: 1320px;
    margin: 0 auto;
}

.nav-list { display: flex; list-style: none; justify-content: center; }
.nav-list > li > a {
    color: white;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    padding: 12px 20px;
    display: block;
    font-size: 0.85rem;
}
.nav-list > li > a:hover { background: rgba(255,255,255,0.1); color: var(--spora-yellow); }

/* ==========================================
   4. INHALTS-BEREICH (CONTENT)
   ========================================== */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.98); /* DER WEISSE HINTERGRUND */
    padding: 40px;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-strong);
}

.page-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-strong);
    min-height: 60vh;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

/* NEWS GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
    overflow: hidden;
    transition: 0.3s;
}
.news-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-strong); }

.news-body { padding: 25px; }
.news-body h3 { color: var(--spora-red-dark); margin-bottom: 15px; font-size: 1.3rem; font-weight: 900; }

.section-header h2 { font-size: 1.8rem; font-weight: 900; color: #333; margin-bottom: 30px; text-transform: uppercase; }

/* ==========================================
   5. SPONSOREN TICKER
   ========================================== */
.sponsors-bar {
    background: #ffffff;
    padding: 30px 0;
    border-top: 4px solid var(--spora-yellow);
    border-bottom: 1px solid #e2e8f0;
    margin-top: 60px;
    overflow: hidden;
    width: 100%;
}

.sponsors-ticker { display: flex; overflow: hidden; width: 100%; }
.sponsors-ticker-inner {
    display: flex;
    width: max-content;
    animation: sponsor-scroll 40s linear infinite;
    gap: 80px;
    align-items: center;
}

@keyframes sponsor-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sponsor-logo-img { max-height: 60px; filter: grayscale(100%); opacity: 0.6; transition: 0.4s; }
.sponsor-logo-img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

/* ==========================================
   6. FOOTER
   ========================================== */
.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}
.footer-bottom {
    background: #000;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* ==========================================
   7. MOBIL-OPTIMIERUNG (RESPONSIVE)
   ========================================== */

@media (max-width: 1024px) {
    .main-content { grid-template-columns: 1fr; padding: 20px; }

    .nav-list { display: none; flex-direction: column; background: #800; }
    .nav-list.active { display: flex; }
    .nav-list > li > a { text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }

    .menu-toggle { display: block !important; background: none; border: none; color: white; padding: 15px; width: 100%; font-weight: 900; cursor: pointer; }

    /* Tabellen-Schutz */
    .card, .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 600px; }
}

@media (max-width: 600px) {
    .header-banner { margin-top: 0; border-radius: 0; }
    .main-content { padding: 20px 10px; border-radius: 0; margin-top: 0; }
    .page-content { padding: 20px 15px; border-radius: 0; }
    .container { padding: 0 10px; }
    .news-grid { grid-template-columns: 1fr; }
}
