/* =========================================
   TOP NEWS TICKER - SEPARATE FILE
   ========================================= */

.top-news-ticker {
    background: var(--bg-dark); 
    color: var(--text-main);
    width: 100%;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid var(--glass-border);
}

.top-news-ticker p {
    margin: 0 !important;
    padding: 0 !important;
}

.top-news-ticker strong {
    color: var(--accent);
    font-weight: 700;
}

.top-news-ticker a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-weight: 700;
    padding: 2px 8px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    margin-left: 8px;
}

.pulse-dot {
    width: 8px; height: 8px;
    background-color: #ff4b2b;
    border-radius: 50%;
    animation: pulse-red-ticker 2s infinite;
}

@keyframes pulse-red-ticker {
    0% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(255, 75, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0); }
}

/* -NEU- Container für den laufenden Text -NEU- */
.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 15px;
    position: relative;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-move 35s linear infinite; /* Etwas langsamer, da mehr Text */
    font-size: 0.95rem;
}

/* Die Animation */
@keyframes ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Pause bei Hover, damit man in Ruhe lesen kann */
.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused;
}

/* Falls dein bestehender .top-news-ticker noch kein Flex hat, stelle sicher: */
.top-news-ticker {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticker-content a {
    display: inline-block;
    background: #007bff; /* Dein Marken-Blau */
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    margin-left: 8px;
    margin-right: 5px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.ticker-content a:hover {
    background: #ffffff;
    color: #007bff !important;
}

.ticker-item {
    display: inline-block;
    padding-right: 50px; /* Erzeugt den Abstand nach jedem Block */
}

/* Optional: Ein vertikaler Trennstrich zwischen den Blöcken */
.ticker-item::after {
    content: ""; /* Du kannst hier auch "|" nutzen, wenn du willst */
    margin-left: 25px;
}

/* Ticker-Link Highlight für das Forum */
.ticker-item a[href*="tid=2"] {
    color: #ff9800; /* Auffälliges Orange */
    font-weight: bold;
    text-decoration: underline;
    text-transform: uppercase;
    font-size: 0.9em;
    padding: 2px 5px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 4px;
}

/* Ticker-Link Highlight für das Forum - ERZWUNGENES ORANGE */
.ticker-content .ticker-item a[href*="tid=2"] {
    color: #ff9800 !important; /* !important wird benötigt, um die Standard-Ticker-Farbe zu überschreiben */
    font-weight: 900 !important;
    text-decoration: underline !important;
    text-transform: uppercase;
    font-size: 0.9em;
    padding: 2px 8px;
    background: rgba(255, 152, 0, 0.2) !important;
    border: 1px solid #ff9800 !important;
    border-radius: 4px;
    display: inline-block;
}

/* Hover-Effekt damit es interaktiv wirkt */
.ticker-content .ticker-item a[href*="tid=2"]:hover {
    background: #ff9800 !important;
    color: #ffffff !important;
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

/* -----------------------------------------
   MOBILE RETTUNG - ÜBERSCHREIBT NUR TICKER-RELEVANTE FEHLER
   ----------------------------------------- */
@media (max-width: 768px) {
    /* 1. Ticker extrem schmal machen, um Platz zu sparen */
    .top-news-ticker {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
        gap: 8px;
    }

    /* 2. Den Hero-Versatz ausgleichen */
    /* Da die styles.css 480px erzwingt, reduzieren wir hier 
       leicht, damit der CTA nicht verschwindet */
    .hero {
        height: 440px !important; /* Etwas weniger Höhe, um den Ticker oben zu kompensieren */
        min-height: 440px !important;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Zentriert den Text & Badges wieder sauber */
    }

    /* 3. Text-Korrektur */
    .hero-text h1 {
        margin-bottom: 5px !important;
    }
}

@media (max-width: 480px) {
    .top-news-ticker p {
        font-size: 0.7rem !important;
        line-height: 1.1;
    }
    .top-news-ticker a {
        font-size: 0.65rem !important;
        padding: 1px 5px !important;
    }
}