/* css/style.css */

:root {
    --primary: #ffcc00;
    --primary-glow: rgba(255, 204, 0, 0.4);
    --twitch: #9146FF;
    --bg-dark: #080808;
    --card-bg: rgba(26, 26, 26, 0.95);
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 204, 0, 0.5);
    --transition-speed: 0.3s;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 0%, #1a1500 0%, #080808 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: auto;
    min-height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
    padding: 0.5rem 0;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-box {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-speed);
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary);
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after {
    width: 100%;
}

.live-dot {
    height: 10px;
    width: 10px;
    background-color: #ff4444;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 10px #ff4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Hero Section */
.hero {
    padding: 3rem 1rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 .glow {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Info Profile Section */
.info-section {
    padding: 1.5rem 1rem;
    text-align: center;
}

.info-content {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.info-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    margin-bottom: 1rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.info-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.info-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

.section-title {
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    text-align: center;
    color: var(--primary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary);
}

/* Grid and Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(255, 204, 0, 0.15);
}

.card-img-holder {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-holder img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.card-tag.tag-update {
    background: rgba(255, 204, 0, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.card-tag.tag-guide {
    background: rgba(145, 70, 255, 0.15);
    color: #a970ff;
    border: 1px solid #9146ff;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.3;
}

.card-body p.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Article View Page styling */
.article-container {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: var(--transition-speed);
}

.back-btn:hover {
    color: #fff;
    transform: translateX(-5px);
}

/* TikTok Feed Styling */
.tiktok-section {
    background: #000;
    padding: 4rem 1rem;
    border-top: 1px solid #fe2c55; /* TikTok Brand Red */
    box-shadow: inset 0 20px 20px -20px rgba(254, 44, 85, 0.2);
}

.tiktok-container {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    padding: 15px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* Legal Pages (Impressum / Datenschutz) */
.legal-container {
    max-width: 800px;
    margin: 3rem auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.legal-container h1 {
    color: var(--primary);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    font-size: 2.2rem;
}

.legal-container h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.legal-container p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.legal-container a {
    color: var(--primary);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.socials {
    margin-bottom: 2rem;
}

.socials a {
    font-size: 2.2rem;
    color: white;
    margin: 0 15px;
    transition: var(--transition-speed);
    display: inline-block;
}

.socials a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.legal-links {
    margin-top: 2rem;
    opacity: 0.6;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-speed);
}

.legal-links a:hover {
    color: var(--primary);
    opacity: 1;
}

.admin-link-nav {
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-size: 0.8rem !important;
    background: rgba(255, 204, 0, 0.04);
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

.admin-link-nav:hover {
    background: var(--primary) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--primary-glow);
}

.admin-link-nav::after {
    display: none !important; /* Hide hover underline */
}

/* Roter Button für Abmelden */
.nav-btn-danger {
    border-color: #ff4444 !important;
    color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.04) !important;
}

.nav-btn-danger:hover {
    background: #ff4444 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4) !important;
}

/* Grauer Button für Registrieren / Sekundär */
.nav-btn-secondary {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.nav-btn-secondary:hover {
    border-color: #fff !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2) !important;
}


/* Mobile Optimierung (Media Queries) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 2rem 1rem 0.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 1.8rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-container {
        padding: 1.5rem;
        border-radius: 15px;
        margin: 1rem auto;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .legal-container {
        padding: 1.5rem;
        border-radius: 15px;
        margin: 1.5rem 1rem;
    }
    
    .legal-container h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .card-img-holder {
        height: 150px;
    }

    .info-content {
        padding: 1.5rem 1rem;
    }
}

/* Frontend Form Controls (z.B. im Kommentarbereich) */
.form-control {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    background: #111 !important;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: var(--transition-speed);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

/* Kommentar-Spezifische Animationen */
.comment-card {
    transition: var(--transition-speed) ease-in-out;
}

.comment-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 204, 0, 0.2) !important;
}

/* Like-Herz-Animation */
.fa-heart {
    transition: transform var(--transition-speed) ease;
}

button:hover .fa-heart {
    transform: scale(1.15);
}

a:hover .fa-heart {
    transform: scale(1.15);
}

