/**
 * News-Total - Custom CSS
 * Zentrale CSS-Datei fuer alle oeffentlichen Seiten
 * Enthaelt gemeinsam genutzte Styles aus inline <style> Bloecken
 */

/* =========================================
   Line-Clamp Utilities
   ========================================= */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   Scroll-Animationen (ersetzt trig.js)
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
[data-trig="fadeInUp"] {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* =========================================
   Pulsing Animation fuer LIVE Indicator
   ========================================= */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.pulse-dot {
    animation: pulse-dot 1.5s infinite;
}

/* =========================================
   Logo Kipp-Animation
   ========================================= */
@keyframes logoTilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}
.logo-animated {
    animation: logoTilt 4s ease-in-out infinite;
    transform-origin: center center;
}
.logo-animated:hover {
    animation: logoTilt 1.5s ease-in-out infinite;
}

/* =========================================
   Slogan Text
   ========================================= */
.slogan-text {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #f59e0b;
    position: relative;
    z-index: 70;
}
.dark .slogan-text {
    color: #fbbf24;
}

/* =========================================
   Tailwind img/video Reset Override
   ========================================= */
header img { max-width: none; height: auto; }

/* =========================================
   Nav Items
   ========================================= */
.nav-item {
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
    color: #404040;
}
.dark .nav-item {
    color: #d4d4d4;
}
.nav-item:hover {
    background-color: #f5f5f5;
}
.dark .nav-item:hover {
    background-color: #262626;
}
.nav-item-active {
    color: #2563eb !important;
    background-color: #eff6ff;
}
.dark .nav-item-active {
    color: #60a5fa !important;
    background-color: rgba(37, 99, 235, 0.15);
}

/* =========================================
   Navigation Wrapper
   ========================================= */
.nav-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    justify-content: center;
}

/* =========================================
   Flag Switcher
   ========================================= */
.flag-switcher {
    display: flex;
    gap: 3px;
    align-items: center;
    padding: 3px;
    border-radius: 8px;
    background: #f5f5f5;
}
.dark .flag-switcher {
    background: #262626;
}
.flag-link {
    padding: 3px 5px;
    border-radius: 5px;
    transition: all 0.2s;
}
.flag-link:hover {
    background: rgba(255,255,255,0.6);
}
.dark .flag-link:hover {
    background: rgba(255,255,255,0.1);
}
.flag-link-active {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    outline: 2px solid #2563eb;
}
.dark .flag-link-active {
    background: #404040;
}

/* =========================================
   Category Hero (category.php)
   ========================================= */
.category-hero {
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    margin-bottom: 40px;
    position: relative;
}
.category-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.category-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* =========================================
   Animierte Flaggen (Quellen.php)
   ========================================= */
@keyframes wave {
    0%, 100% { transform: rotateY(-5deg) rotateX(2deg) skewX(-2deg); }
    25% { transform: rotateY(3deg) rotateX(-1deg) skewX(1deg); }
    50% { transform: rotateY(-3deg) rotateX(1deg) skewX(-1deg); }
    75% { transform: rotateY(5deg) rotateX(-2deg) skewX(2deg); }
}
.flag-wave {
    animation: wave 3s ease-in-out infinite;
}

/* =========================================
   Language Hint Modal (lang_hint_modal.php)
   ========================================= */
.lhm-bar {
    text-align: center;
    padding: 7px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.875rem;
    line-height: 1.4;
}
.lhm-link {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.15s;
}
.lhm-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}
.lhm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: lhmFadeIn 0.18s ease;
}
.lhm-overlay.lhm-open {
    display: flex;
}
@keyframes lhmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.lhm-modal {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    padding: 28px 32px 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: lhmSlideIn 0.2s ease;
}
@keyframes lhmSlideIn {
    from { transform: translateY(-16px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.lhm-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 12px;
    line-height: 1.3;
}
.lhm-intro {
    color: #cbd5e1;
    margin: 0 0 14px;
    line-height: 1.55;
}
.lhm-how {
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 8px;
}
.lhm-steps {
    margin: 0 0 14px;
    padding-left: 20px;
    color: #cbd5e1;
    line-height: 1.7;
}
.lhm-steps li {
    margin-bottom: 4px;
}
.lhm-tip {
    background: rgba(56,189,248,0.1);
    border-left: 3px solid #38bdf8;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin: 0 0 14px;
    color: #bae6fd;
    line-height: 1.55;
    font-size: 0.92rem;
}
.lhm-tip strong {
    color: #7dd3fc;
}
.lhm-outro {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 20px;
}
.lhm-footer {
    text-align: right;
}
.lhm-close-btn {
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.lhm-close-btn:hover {
    background: #0284c7;
}

/* =========================================
   Prose Styles (ki_artikel.php, redaktion_artikel.php)
   ========================================= */
.prose p { margin-bottom: 1rem; }
.prose h2, .prose h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.prose ul, .prose ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.25rem; }
.prose a { text-decoration: underline; }
.prose blockquote { border-left: 4px solid currentColor; padding-left: 1rem; font-style: italic; color: #6b7280; }

/* KI-Artikel: purple links */
.prose-ki a { color: #8b5cf6; }
.prose-ki blockquote { border-left-color: #8b5cf6; }

/* Redaktions-Artikel: blue links */
.prose-redaktion a { color: #3b82f6; }
.prose-redaktion blockquote { border-left-color: #3b82f6; }

/* =========================================
   Responsive Media Queries
   ========================================= */
@media (max-width: 640px) {
    .slogan-text { font-size: 9px; letter-spacing: 0; }
}
@media (max-width: 480px) {
    .nav-item { font-size: 11px; padding: 3px 6px; }
    .lhm-modal {
        padding: 22px 18px 18px;
        border-radius: 12px;
    }
    .lhm-title { font-size: 1.1rem; }
}
