/* =========================================
   RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    /* WICHTIG: Platz für den festen Header schaffen */
    padding-top: 75px; 
}
a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================
   CONTAINER
   ========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   HEADER / NAV (FEST OBEN)
   ========================================= */
header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 15px 0;
    
    /* Header bleibt oben festgeklebt */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: #f0f6fc; letter-spacing: 1px; }
.logo span { color: #f78166; }
nav a { margin-left: 25px; color: #8b949e; font-weight: 500; }
nav a:hover { color: #f0f6fc; text-decoration: none; }

/* =========================================
   HERO
   ========================================= */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
}
.hero h1 { font-size: 3rem; color: #f0f6fc; margin-bottom: 20px; }
.hero h1 span { color: #f78166; }
.hero p { font-size: 1.25rem; color: #8b949e; max-width: 700px; margin: 0 auto 40px; }

/* =========================================
   BUTTONS (Allgemein)
   ========================================= */
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block; padding: 14px 32px; border-radius: 8px;
    font-weight: 600; font-size: 1rem; transition: all 0.2s;
}
.btn-primary { background: #f78166; color: #0d1117; }
.btn-primary:hover { background: #ff9b85; text-decoration: none; }
.btn-secondary { background: transparent; border: 1px solid #30363d; color: #c9d1d9; }
.btn-secondary:hover { border-color: #8b949e; text-decoration: none; }

/* =========================================
   FEATURES / CARDS (Startseite)
   ========================================= */
.features { padding: 80px 0; }
.features h2 { text-align: center; font-size: 2rem; color: #f0f6fc; margin-bottom: 15px; }
.features .subtitle { text-align: center; color: #8b949e; margin-bottom: 50px; font-size: 1.1rem; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 35px 30px;
    transition: border-color 0.2s;
}
.card:hover { border-color: #f78166; }
.card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.card h3 { color: #f0f6fc; font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: #8b949e; font-size: 0.95rem; }

/* =========================================
   SEO CONTENT SECTION
   ========================================= */
.seo-content {
    padding: 60px 0;
    background: #161b22;
    border-top: 1px solid #30363d;
    border-bottom: 1px solid #30363d;
}
.seo-content h2 { color: #f0f6fc; margin-bottom: 20px; font-size: 1.6rem; }
.seo-content p { color: #8b949e; margin-bottom: 15px; max-width: 900px; }
.seo-content ul { color: #8b949e; margin-left: 20px; margin-bottom: 15px; }
.seo-content ul li { margin-bottom: 8px; }

/* =========================================
   LEGAL PAGES (Privacy, Imprint, Terms, About)
   ========================================= */
.legal-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}
.legal-container h1 {
    color: #f0f6fc;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.legal-container .last-updated {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 40px;
    display: block;
}
.legal-container h2 {
    color: #f0f6fc;
    font-size: 1.4rem;
    margin: 40px 0 15px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
}
.legal-container p, 
.legal-container ul {
    color: #c9d1d9;
    margin-bottom: 15px;
    line-height: 1.7;
}
.legal-container ul { padding-left: 20px; }
.legal-container li { margin-bottom: 8px; }
.legal-container strong { color: #f0f6fc; }

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 40px 0;
    color: #6e7681;
    font-size: 0.9rem;
    background: #161b22;
    border-top: 1px solid #30363d;
    margin-top: 40px;
}
footer a { color: #58a6ff; }

.footer-bottom { padding: 20px 0; }
.desktop-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.footer-bottom-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.footer-col { display: flex; flex-direction: column; gap: 15px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.logo-image { height: 32px; width: auto; display: block; }
.footer-col-title {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: #f0f6fc;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col-title:hover { color: #f78166; text-decoration: none; }
.verified-icon { width: 16px; height: 16px; margin-left: 5px; vertical-align: text-bottom; }

.footer-nav-links { display: flex; flex-direction: column; gap: 8px; }
.footer-nav-links a {
    color: #8b949e;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav-links a:hover { color: #f78166; }

.footer-partner-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: #8b949e;
    margin-top: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-partner-badge:hover { color: #f0f6fc; text-decoration: none; }

.footer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #30363d;
    font-size: 0.8rem;
    color: #6e7681;
}
.footer-info-left { display: flex; gap: 15px; }
.footer-legal-links { display: flex; gap: 15px; }
.footer-legal-links a { color: #8b949e; font-size: 0.8rem; text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: #f0f6fc; }

/* =========================================
   PLUGINS / MAPS / SKINS (Grid & Karten)
   ========================================= */
.plugins-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}
.plugins-header {
    text-align: center;
    margin-bottom: 50px;
}
.plugins-header h1 { font-size: 2.5rem; color: #f0f6fc; margin-bottom: 10px; }
.plugins-header p { color: #8b949e; font-size: 1.1rem; }
.back-link {
    display: inline-block;
    color: #58a6ff;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-decoration: none;
    font-weight: 600;
}
.back-link:hover { color: #f0f6fc; text-decoration: underline; }

.plugins-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.plugin-card {
    background-color: #161b22;
    background-size: cover;
    background-position: center;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
    min-height: 140px;
}
.plugin-card:hover { border-color: #f78166; transform: translateY(-2px); text-decoration: none; }

.plugin-card[style*="background-image"]::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0.85) 60%, rgba(13, 17, 23, 0.4) 100%);
    z-index: 1;
}

.plugin-content { position: relative; z-index: 2; flex-grow: 1; }
.plugin-content h3 { color: #f0f6fc; font-size: 1.4rem; margin-bottom: 8px; }
.plugin-content p { color: #c9d1d9; font-size: 0.95rem; margin-bottom: 15px; line-height: 1.5; }

.plugin-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #8b949e;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 15px;
}
.plugin-version { background: rgba(33, 38, 45, 0.8); padding: 4px 10px; border-radius: 4px; color: #c9d1d9; }
.plugin-game { color: #58a6ff; font-weight: 600; }
.plugin-author { margin-left: auto; color: #8b949e; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.author-link { display: inline-flex; align-items: center; color: #58a6ff; font-weight: 600; text-decoration: none; }
.author-link:hover { color: #f78166; text-decoration: underline; }
.author-logo { height: 16px; width: auto; border-radius: 3px; display: block; }

.plugin-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 160px;
    position: relative;
    z-index: 2;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    width: auto;
    padding: 12px 30px;
    margin-top: 0;
}

.btn-view {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 15px;
    font-size: 0.95rem;
    cursor: pointer;
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid #30363d;
    color: #f0f6fc;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-view:hover { background: #30363d; border-color: #8b949e; text-decoration: none; }

.plugin-icon { font-size: 1.5rem; font-weight: bold; color: #f78166; margin-bottom: 15px; position: relative; z-index: 2; }

/* =========================================
   SEARCH BAR & PAGINATION
   ========================================= */
.search-container { margin-top: 30px; display: flex; justify-content: center; }
.search-container form { display: flex; gap: 10px; width: 100%; max-width: 600px; }
.search-container input[type="text"] {
    flex-grow: 1;
    padding: 12px 20px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #c9d1d9;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.search-container input[type="text"]:focus { border-color: #f78166; }
.search-container button { padding: 12px 25px; white-space: nowrap; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; margin-bottom: 20px; }
.page-link {
    display: inline-block;
    padding: 10px 16px;
    background: #161b22;
    border: 1px solid #30363d;
    color: #c9d1d9;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.page-link:hover { border-color: #8b949e; color: #f0f6fc; text-decoration: none; }
.page-link.active { background: #f78166; border-color: #f78166; color: #0d1117; }

/* =========================================
   GLOBAL MOBILE OPTIMIZATIONS (ALLE SEITEN)
   ========================================= */
@media (max-width: 768px) {
    /* Abstand nach oben anpassen (weil Header auf dem Handy höher ist) */
    body { padding-top: 140px; }

    /* Header / Nav */
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    nav a {
        margin: 0;
        font-size: 0.95rem;
    }

    /* Hero & Startseite */
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .cta-buttons { flex-direction: column; width: 100%; padding: 0 20px; }
    .cta-buttons .btn { width: 100%; }

    /* Suche */
    .search-container form { flex-direction: column; }
    .search-container input, .search-container button, .search-container .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    /* Plugin/Maps/Skins Karten */
    .plugins-container { margin: 30px auto; }
    .plugins-header h1 { font-size: 2rem; }
    .plugin-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
    }
    .plugin-actions {
        width: 100%;
        flex-direction: row;
        margin-top: 10px;
    }
    .plugin-actions .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    .plugin-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    .plugin-author {
        margin-left: 0;
        width: 100%;
    }

    /* Footer */
    .footer-bottom-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-logo { justify-content: center; }
    .footer-info-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-info-left { flex-direction: column; gap: 5px; }
}