/* ==========================================================================
   style.css – sportfotodienst.com
   Verbesserte Version: Inline-Styles ausgelagert, Bugs behoben, Klassen ergänzt
   ========================================================================== */

/* ==========================================================================
   0. CSS-VARIABLEN (Farben zentral definiert – einmal ändern = überall wirksam)
   ========================================================================== */
:root {
    --color-bg:         #1e0101;
    --color-surface:    #3a0202;
    --color-surface-2:  #120000;
    --color-footer-bg:  #0c0000;
    --color-border:     #540303;
    --color-border-2:   #6b0404;
    --color-accent:     #a30f0f;
    --color-red-bright: #ff6666;
    --color-btn:        #6b0404;
    --color-text:       #f5f5f7;
    --color-text-muted: #e0b3b3;
    --color-text-dim:   #8a6f6f;
    --color-small:      #d0d0d0;
    --max-width:        1300px;
}

/* ==========================================================================
   1. GLOBAL RESETS & BASIS-STYLING
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Bilder nie breiter als ihr Container */
img {
    max-width: 100%;
    height: auto;
}

/* Hauptcontainer */
.container {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 25px;
}

/* ==========================================================================
   2. HEADER & 7ER-GRID-MENÜ
   ========================================================================== */
header {
    background-color: var(--color-surface);
    padding: 20px;
    border-bottom: 2px solid var(--color-border-2);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: var(--max-width);
    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: var(--color-text-muted);
    font-size: 0.95rem;
}

/* 7-Spalten-Navigationsraster */
.clean-grid-nav {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5px 0 0 0;
}

.clean-grid-nav a {
    display: block;
    text-align: center;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 8px 4px;
    border-radius: 4px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    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: var(--color-btn);
    color: #ffffff;
    border-color: var(--color-accent);
}

/* ==========================================================================
   3. AUTOMATISCHER SLIDER (HOMEPAGE)
   ========================================================================== */
.carousel-container {
    max-width: var(--max-width);
    margin: 25px auto 0 auto;
    padding: 0 25px;
    position: relative; /* Nötig für die absolut positionierten Pfeil-Buttons */
}

.carousel-slider {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: var(--color-surface-2);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    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;
}

/* Slider-Link füllt die gesamte Kachel */
.carousel-slide > a {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
}

.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: var(--color-btn);
    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 var(--color-border);
    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;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--color-btn);
    border-color: var(--color-accent);
}

.carousel-prev { left: 40px; }
.carousel-next { right: 40px; }

/* ==========================================================================
   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 var(--color-btn);
    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. ARTIKEL-KACHELN (MODERN GRID)
   ========================================================================== */
.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: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    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: var(--color-bg);
    color: var(--color-red-bright);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    align-self: flex-start;
    margin-bottom: 10px;
}

/* Badge-Variante für Fehlermeldungen (404-Seite) */
.badge--error {
    background-color: #1e0101;
    color: var(--color-red-bright);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    align-self: flex-start;
    margin-bottom: 15px;
    display: inline-block;
}

.card-body h3 {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.3;
}

.card-teaser {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    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: var(--color-text-muted);
    margin-top: auto;
    padding-top: 10px;
}

/* Hover-Zoom nur auf Desktop */
@media (min-width: 901px) {
    .modern-card:hover {
        z-index: 10;
        transform: scale(1.05);
        box-shadow: 0 12px 28px rgba(0,0,0,0.8), 0 0 15px rgba(255,102,102,0.3);
        border-color: var(--color-red-bright);
    }

    .modern-card:hover .card-teaser {
        max-height: 100px;
        opacity: 1;
    }
}

/* ==========================================================================
   6. SIDEBAR
   ========================================================================== */
.sidebar-box {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--color-border);
}

/* YouTube-Box: zentriert mit etwas mehr Padding */
.yt-sidebar-box {
    text-align: center;
    padding: 20px;
}

.sidebar-box h3 {
    font-size: 1.1rem;
    color: #ffffff;
    text-transform: uppercase;
}

.sidebar-box h4 {
    font-size: 0.95rem;
    color: var(--color-red-bright);
    margin-top: 5px;
    margin-bottom: 5px;
}

.box-line {
    height: 2px;
    background-color: var(--color-border-2);
    margin: 10px 0 15px 0;
}

.sidebar-box p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.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: var(--color-red-bright);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

.box-link-more:hover { color: #ffffff; }

/* YouTube-Button */
.sidebar-yt-btn {
    display: block;
    background: #cc181e;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.sidebar-yt-btn:hover {
    background: #b01318;
    transform: scale(1.03);
}

/* Archiv-Liste */
.archive-list { list-style: none; }
.archive-list li { margin-bottom: 6px; }
.archive-list a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.archive-list a:hover { color: var(--color-red-bright); }

/* Trennlinie in der Sidebar */
.sidebar-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 15px 0;
}

/* ==========================================================================
   7. BERICHTSSEITEN (ARTIKEL-DETAIL)
   ========================================================================== */
.report-article {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--color-border);
    margin-bottom: 35px;
}

.report-title {
    font-size: 1.9rem;
    color: #ffffff;
    margin: 10px 0;
}

.report-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.report-img-container {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid var(--color-border-2);
}

.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: var(--color-red-bright);
    margin: 20px 0 10px 0;
}

.report-article p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Inline-Bild im Artikel */
.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);
}

/* Zitat-/Hervorhebungsbox im Artikel */
.article-highlight {
    margin: 30px 0;
    border-left: 4px solid var(--color-red-bright);
    background-color: #1a0101;
    padding: 20px;
    border-radius: 0 4px 4px 0;
}

/* Tipp/Info-Box (grüner Akzent) */
.article-info-box {
    background: #2a2a2a;
    border-left: 4px solid #00bc8c;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

.article-info-box h3 {
    margin-top: 0;
    color: #00bc8c;
}

/* Spielereignisse & Aufstellungen */
.match-details-box {
    background-color: var(--color-bg);
    border-radius: 6px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid var(--color-border);
}

.match-details-box h3 {
    color: #ffffff;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border-2);
    padding-bottom: 5px;
}

.events-list { list-style: none; }
.events-list li {
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px dashed var(--color-surface);
    color: var(--color-text-muted);
}
.events-list .time {
    color: var(--color-red-bright);
    font-weight: bold;
    margin-right: 8px;
}

.lineups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 15px;
}

.lineups-grid h4 {
    color: var(--color-red-bright);
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.lineups-grid p { font-size: 0.85rem; color: #ffffff; }
.lineups-grid .players { color: var(--color-text-muted); margin-top: 5px; line-height: 1.4; }

/* YouTube-Einbettung */
.video-section { margin-bottom: 50px; }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--color-border-2);
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ==========================================================================
   8. FOTOGALERIE & LIGHTBOX
   ========================================================================== */
.gallery-section {
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.gallery-item {
    background-color: var(--color-surface);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    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: var(--color-red-bright);
    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 */
.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: var(--color-red-bright); }

.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; }
}

.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: var(--color-red-bright);
    transform: translateY(-50%) scale(1.1);
}

/* ==========================================================================
   9. EMPFEHLUNGEN (ÄHNLICHE BEITRÄGE)
   ========================================================================== */
.recommendations-section {
    border-top: 2px solid var(--color-surface);
    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;
    background-color: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    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: var(--color-red-bright); 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: var(--color-text-muted); margin-top: 10px; }

/* ==========================================================================
   10. PAGINIERUNG
   ========================================================================== */
.pagination-container {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-buttons {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.page-num,
.page-next {
    display: inline-block;
    background: #222;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid #333;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.page-num:hover,
.page-next:hover {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.page-num.active-page {
    background: var(--color-surface);
    border-color: #551111;
    font-weight: bold;
    cursor: default;
}

/* ==========================================================================
   11. 404-FEHLERSEITE
   ========================================================================== */
.error-box {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.error-box__image {
    flex: 1;
    min-width: 300px;
    max-height: 400px;
    overflow: hidden;
}

.error-box__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.error-box__content {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-box__title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.error-box__text {
    color: var(--color-text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* ==========================================================================
   12. IMPRESSUM & DATENSCHUTZ (CONTENT-SEITEN)
   ========================================================================== */

/* Haupt-Content-Bereich auf Textseiten */
.text-page {
    line-height: 1.7;
}

.text-page h2.section-title {
    border-bottom: 2px solid var(--color-border-2);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.8rem;
}

.text-page h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

.text-page p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Adress-/Kontaktblock mit rotem linken Rand */
.info-block {
    margin-bottom: 20px;
    background-color: rgba(0,0,0,0.15);
    padding: 15px;
    border-left: 3px solid var(--color-border-2);
    border-radius: 4px;
}

.text-page ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.text-page li {
    margin-bottom: 8px;
}

/* Kleine kursive Hinweistexte */
.hint-text {
    color: var(--color-small);
    font-style: italic;
    font-size: 0.85rem;
}

/* Externer Link im Fließtext */
.inline-link {
    color: var(--color-red-bright);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dotted var(--color-red-bright);
}

.inline-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* ==========================================================================
   13. ARCHIV-HINWEISBOX (archiv-seite-2.html)
   ========================================================================== */
.archive-notice {
    grid-column: 1 / -1;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.archive-notice h3 {
    color: var(--color-red-bright);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.archive-notice p {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Leerer Archiv-Platzhalter */
.archive-empty {
    grid-column: 1 / -1;
    font-style: italic;
    color: #888;
    text-align: center;
    padding: 60px 0;
}

/* ==========================================================================
   14. UTILITY-KLASSEN (häufig genutzte Einzelstyles als Klassen)
   ========================================================================== */

/* Primärer Aktions-Button (z.B. "Zurück zur Startseite") */
.btn-primary {
    display: inline-block;
    background-color: var(--color-btn);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid var(--color-accent);
    transition: background 0.3s;
    align-self: flex-start;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: #ffffff;
}

/* Übersichts-Tabellen (scrollbar auf Mobil) */
.table-wrapper {
    overflow-x: auto;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
footer {
    background-color: var(--color-footer-bg);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 2px solid var(--color-surface);
}

.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 8px;
}

.footer-nav a:hover { color: #ffffff; }

.footer-logo { margin: 20px 0; }
.footer-logo img { height: 40px; opacity: 0.7; }
.copyright { color: var(--color-text-dim); font-size: 0.8rem; }

/* ==========================================================================
   16. BACK-TO-TOP BUTTON
   ========================================================================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--color-surface);
    color: #ffffff;
    border: 2px solid var(--color-border-2);
    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);
}

#backToTop:hover {
    background-color: var(--color-btn);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   17. COOKIE-BANNER (DSGVO)
   ========================================================================== */
#data-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    color: var(--color-text);
    padding: 15px 25px;
    font-size: 0.9rem;
    z-index: 99999;
    display: none;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid var(--color-border-2);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.6);
}

#data-consent-banner a {
    color: var(--color-red-bright);
    text-decoration: underline;
}

#data-consent-banner a:hover { color: #ffffff; }

#accept-consent-btn {
    background: var(--color-bg);
    color: #ffffff;
    border: 1px solid var(--color-border);
    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;
    flex-shrink: 0;
    margin-left: 20px;
}

#accept-consent-btn:hover {
    background: var(--color-btn);
    border-color: var(--color-accent);
}

/* ==========================================================================
   18. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1100px) {
    .clean-grid-nav {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar-column {
        min-width: 0;
    }

    .carousel-slider { height: 250px; }
    .carousel-caption h3 { font-size: 1.2rem; }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
        opacity: 0.8;
    }

    .carousel-prev { left: 30px; }
    .carousel-next { right: 30px; }

    .error-box__content { padding: 25px; }
}

@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;
    }

    #data-consent-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 15px;
    }

    #data-consent-banner div {
        padding-right: 0;
    }

    #accept-consent-btn {
        margin-left: 0;
        width: 100%;
    }

    .header-text h1 {
        font-size: 1.6rem;
    }

    .error-box__image {
        max-height: 200px;
    }
}