/* ============================================
   1. IMPORTS & ROOT VARIABLES
===============================================*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');
* {
    user-select: none;
}

:root {
    --primary-color: rgb(30, 136, 229);
    --primary-color-rgb: 30, 136, 229;
    --accent-color: rgb(0, 176, 255);
    --accent-color-rgb: 0, 176, 255;

    --dark-bg: rgba(10, 14, 25, 0.85);
    --dark-bgbody: rgb(10, 14, 25);
    --dark-bg2: rgba(25, 34, 59, 0.85);
    --dark-bg3: rgba(0, 0, 0, 0.2);
    --dark-card: rgba(16, 23, 41, 0.8);

    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);

    --glass-effect: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition-normal: all 0.3s ease;

    --admin-color: #ff5555;
    --developer-color: #55aaff;
    --moderator-color: #55ff7f;
    --helper-color: #ffaa55;

    --diamond-color: #55ddff;
    --gold-color: #ffcc44;
    --silver-color: #dddddd;

    --rules-muted: #9aa4b2;
    --rules-text: white;
    --rules-card: #1a1e26;

    --rules-pr: #c0c0c034;
    --rules-pr-low: #2ecc71;
    --rules-pr-medium: #f39c12;
    --rules-pr-high: #e74c3c;

    --rules-pr-gold: #E5B80B;
    --rules-pr-gold-bg: #e5b90b81;
    --rules-pr-gold-tit: #ffda48;
    --rules-pr-gold-dcr: #ccb143;
    --rules-pr-gold-txt: #c49e0785;

    --rules-star-active: #55aaff;
    --rules-star-hovered: #55aaff;
}

/* ============================================
   2. GLOBAL BASE STYLES
===============================================*/
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    color: white;
    cursor: default;
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bgbody);
}

/* Custom Scrollbar */
body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb {
    background-color: rgba(var(--primary-color-rgb), 0.3);
    border-radius: 6px;
}

/* ============================================
   3. HEADER
===============================================*/
header {
    text-align: center;
    padding: 50px;
    font-family: 'Rajdhani', sans-serif;
}

header span { color: var(--developer-color); }
header p { font-size: 1rem; }

/* ============================================
   4. FOOTER
===============================================*/
footer {
    display: flex;
    text-align: center;
    font-size: 14px;
    padding: 1rem 0;
    color: #92929294;
    margin-top: auto;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-links {
    margin: 10px 0;
    text-decoration: underline;
}

.footer-links a {
    margin: 0 15px;
    font-size: 13px;
    color: #bbbbbb9c;
    text-decoration: none;
}

.footer-links a:hover { color: #ffffffb2; }

/* ============================================
   5. LOADING SCREEN
===============================================*/
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-bg);
}

.loader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 8px solid var(--dark-bg2);
    border-top: 8px solid var(--silver-color);
    animation: spin 1.5s linear infinite;
}

.loader-wrapper p {
    margin-top: 20px;
    font-size: 1.2rem;
    color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   6. CATEGORY TABS
===============================================*/
.categories-tabs {
    background-color: var(--dark-bg);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-effect);
    backdrop-filter: blur(8px);
}

.tabs-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.tab {
    flex: 1;
    gap: 0.5rem;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;

    transition: var(--transition-normal);
    background-color: rgba(0, 0, 0, 0.2);
}

.tab:not(.active):hover {
    transform: translateY(-2px);
    background-color: rgba(var(--primary-color-rgb), 0.15);
}

.tab.active {
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
    background: linear-gradient(
        135deg,
        rgba(var(--primary-color-rgb), 0.8),
        rgba(var(--accent-color-rgb), 0.8)
    );
}

.tab.active::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0.15),
        transparent
    );
}

.tab i { font-size: 1rem; }
.tab span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   7. TAB CONTENT
===============================================*/
.tab-content-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    min-height: 0;
    margin-bottom: -1.5rem;
}

.tab-content {
    width: 100%;
    height: 100%;
    display: none;

    padding-right: 5px;
    overflow-y: auto;

    animation: fadeIn 0.5s ease-out forwards;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   8. CONTAINER BASE LAYOUT
===============================================*/
.container {
    flex: 1;
    padding: 40px 20px;
    text-align: center;
}

.impressum {
    width: 40%;
    margin: 0 auto;
    color: #ddd;
    text-align: left;
}

/* ============================================
   9. CONTACT FORM
===============================================*/
.contact-box {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;

    text-align: left;
    border-radius: 10px;

    background-color: var(--dark-card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

.contact-box h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.input-group { margin-bottom: 20px; }

.input-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    resize: none;

    border: none;
    border-radius: 5px;
    box-sizing: border-box;

    background-color: rgba(255,255,255,0.767);
}

.input-group textarea { height: 150px; }

button {
    width: 100%;
    padding: 15px;
    cursor: pointer;

    font-size: 1.1rem;
    color: white;

    border: none;
    border-radius: 5px;

    background-color: var(--developer-color);
}

button:hover { background-color: var(--diamond-color); }

/* ============================================
   10. SERVER INFO PANELS
===============================================*/
.server-info-panel {
    display: flex;
    flex-direction: column;

    margin-bottom: 1rem;
    padding: 1.5rem;

    height: auto;
    min-height: min-content;

    position: relative;

    border-radius: 12px;
    border: 1px solid var(--border-color);

    background-color: var(--dark-bg);
    backdrop-filter: blur(8px);
    box-shadow: var(--glass-effect);
}

.info-header {
    gap: .75rem;
    margin-bottom: 1.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-header h2 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Rajdhani', sans-serif;
}

.info-header span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
}

.line-decoration {
    width: 80px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--primary-color-rgb), 1),
        transparent
    );
}

/* ============================================
   RULES SECTION
===============================================*/
.rules-header {
    gap: .15rem;
    margin-bottom: 1.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.rules-header h1 {
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Rajdhani', sans-serif;
}

.rules-header span {
    font-size: 2.5rem;
    color: var(--developer-color);
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
}

.rules-header p {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
}

.rules-header a {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
}

.rules-section {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1rem;
    color: var(--rules-muted);
}

.rules-section::before,
.rules-section::after {
    content: "";
    flex: 1;
    border-top: 1px solid #333;
}

.rules-section span {
    margin: 0 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ============================================
   RULES CARD
===============================================*/
.rules-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem
}

.rule-card {
    display: flex;
    border-left: 5px solid var(--rules-muted);
    background: var(--rules-card);
    border-radius: 6px;
    padding: 1rem;
    gap: 1rem;
    font-family: 'Rajdhani', sans-serif;
    word-wrap: break-word;
    opacity: 0;              /* unsichtbar */
    transform: translateY(20px); /* leicht nach unten verschoben */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rule-card.show {
    opacity: 1;
    transform: translateY(0);
}

.rule-card:hover {
    transform: translateY(-5px);
    transition: 0.2s ease;
}

.rule-card.low {
    border-left-color: var(--rules-pr-low);
}

.rule-card.medium {
    border-left-color: var(--rules-pr-medium);
}

.rule-card.high {
    border-left-color: var(--rules-pr-high);
}

.rule-card.gold {
    border-left-color: var(--rules-pr-gold);
    background: var(--rules-pr-gold-bg);
}

.rule-card.gold h3 {
    color: var(--rules-pr-gold-tit);
}

.rule-card.gold p {
    color: var(--rules-pr-gold-dcr);
}

.rule-card.gold span {
    color: var(--rules-pr-gold-txt);
}

.rule-number {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.rule-body {
    flex: 1 1 auto;
    min-width: 0;
}

.rule-body h3 {
    margin: 0;
    font-size: 1.5rem;
    word-wrap: break-word;
}

.rule-body p {
    margin: 0.3rem 0;
    color: var(--rules-muted);
    word-wrap: break-word;
    white-space: normal;
}

.rule-body span {
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--rules-pr);
}

/* Allgemeine Basisstyles für jedes Modul */
.rating-module {
    text-align: center;
    margin-bottom: 20px;
}

.rating-module .stars {
    display: inline-flex;
    gap: 6px;
    cursor: pointer;
}

.rating-module .star {
    font-size: 32px;
    color: #bbbbbb;
    transition: color .15s, transform .15s;
}

.rating-module .rating-text {
    margin-top: 30px;
    font-size: 1rem;
    white-space: pre-line;
    font-family: 'Rajdhani', sans-serif;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rating-module .rating-text.visible {
    opacity: 1;
}
/* --- Spezifische Module (falls du später unterschiedliche Farben willst) --- */

/* ÜBERFÄLLE */
.ueberfaelle-module .star.active {
    color: var(--rules-star-active);
}

.ueberfaelle-module .star:hover {
    transform: scale(1.2);
}

.ueberfaelle-module .star.hovered {
    color: var(--rules-star-hovered);
}

/* GEGEN POLIZEI AGGIEREN */
.polizeiagg-module .star.active {
    color: #d9534f; /* rot/orange für Gefahr */
}

/* ============================================
   11. LOADING & TIP SECTIONS
===============================================*/
.loading-section {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tip-container {
    display: flex;
    align-items: center;

    padding: 1.25rem;
    border-radius: 12px;

    border: 1px solid var(--border-color);
    background-color: var(--dark-bg);

    box-shadow: var(--glass-effect);
}

.tip-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background-color: rgba(255,193,7,0.2);
    color: #ffc107;

    margin-right: 1rem;
}

.tip-content { flex: 1; }

.tip-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
    color: #ffc107;
}

.tip-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: opacity 0.5s ease;
}

/* ============================================
   12. STATS GRID
===============================================*/
.stats-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    position: relative;

    display: flex;
    align-items: center;

    padding: 1.25rem;
    border-radius: 10px;

    border: 1px solid var(--border-color);
    background-color: var(--dark-card);

    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition-normal);

    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-color-rgb), 0.3);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.2);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;

    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 10px;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        rgb(115 183 243),
        rgb(25 89 189)
    );
}

.stat-icon::after {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 10px;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0.2),
        transparent
    );
}

.stat-icon i {
    color: white;
    font-size: 1.5rem;
    z-index: 2;
}

.stat-content { flex: 1; }

.stat-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ============================================
   13. SERVER FEATURES (Chips)
===============================================*/
.server-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;

    gap: 0.5rem;
    padding: 0.75rem 1.25rem;

    font-size: 0.9rem;
    font-weight: 500;

    border-radius: 20px;
    transition: var(--transition-normal);

    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.feature:hover {
    transform: translateY(-2px);
    background-color: rgba(var(--primary-color-rgb), 0.2);
}

.feature i {
    color: rgba(var(--accent-color-rgb), 1);
}

/* ============================================
   14. SERVER HIGHLIGHTS
===============================================*/
.server-highlights {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.highlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 1.5rem;
    text-align: center;

    border-radius: 10px;
    transition: all 0.3s ease;

    background-color: var(--dark-card);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);

    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-color-rgb), 0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.highlight-icon {
    width: 60px;
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    margin-bottom: 1rem;

    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.highlight-icon i {
    color: rgba(var(--accent-color-rgb), 1);
    font-size: 1.8rem;
}

.highlight-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.highlight-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   15. SCRIPT GALLERY — CARD GRID
===============================================*/
.script-gallery {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 1.25rem;
    margin-bottom: 1.5rem;

    /* redundant grid-template removed */
}

.script-item {
    position: relative;

    display: flex;
    align-items: center;

    padding: 1.25rem;
    border-radius: 10px;

    overflow: hidden;

    border: 1px solid var(--border-color);
    background-color: var(--dark-card);

    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.script-item:hover img {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-color-rgb), 0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.script-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;

    z-index: 1;
    pointer-events:none;

    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

.script-item img {
    width: 100%;
    height: 250px;

    object-fit: fill;
    border-radius: 2%;

    margin-bottom: 0.75rem;

    border: 2px solid rgba(var(--primary-color-rgb), 0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);

    transition: var(--transition-normal);
}

/* TITLE OVER IMAGE */
.script-title {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;

    z-index: 2;

    font-size: 1.6rem;
    font-weight: bold;

    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
}

/* FREE / PAID LABELS */
.script-label {
    position: absolute;
    bottom: 20px;
    left: 15px;

    z-index: 3;

    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: bold;

    border-radius: 5px;
}

.free { background-color: #4CAF50; color: white; }
.paid { background-color: #007BFF; color: white; }

/* ============================================
   16. SCRIPT DETAIL — POPUP / MODAL
===============================================*/
.script-detail {
    position: fixed; /* bleibt immer im Viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* genau zentrieren */
    
    display: flex;
    width: auto;
    max-width: 1800px;
    max-height: 90vh; /* damit es nicht größer als Bildschirm wird */

    border-radius: 12px;
    z-index: 1000;

    background-color: var(--dark-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);

    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease; /* smooth fade & scale */
    transform: translate(-50%, -50%) scale(0.95);
}

.script-detail.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* pop-in Effekt */
}


.script-content {
    display: flex;
    width: 100%;
}

/* IMAGE SIDE */
.script-image-container {
    width: 45%;
    flex-shrink: 0;
}

.script-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 12px 0 0 12px;
}

/* ============================================
   17. SCRIPT DETAIL — INFO SIDE
===============================================*/
.script-info {
    width: 800px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.script-info h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

/* ============================================
   18. DESCRIPTION BOX
===============================================*/
.description-box {
    padding: 20px;
    margin-bottom: 20px;

    border-radius: 8px;

    background-color: var(--dark-card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);

    font-size: 1.2rem;
    text-align: center;
    line-height: 1.6;
}

/* ============================================
   19. COMPATIBILITY TABLE
===============================================*/
.compatibility {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    text-align: center;
}

.compatibility td {
    padding: 10px 18px;
    border: 1px solid #444;

    font-size: 1rem;
}

.true  { color: var(--moderator-color); font-weight: bold; }
.false { color: var(--admin-color);     font-weight: bold; }
.future { color: var(--gold-color);    font-weight: bold; }

/* ============================================
   20. BUTTON GROUP
===============================================*/
.btn-group {
    display: flex;
    justify-content: center;

    gap: 20px;
    margin-top: 20px;
}

.btn {
    padding: 15px 35px;

    border-radius: 8px;
    text-decoration: none;

    background-color: var(--primary-color);
    color: white;

    font-size: 1rem;

    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    transition: var(--transition-normal);
}

.btn:hover {
    background-color: var(--developer-color);
}

/* ============================================
   21. CLOSE BUTTON
===============================================*/
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;

    font-size: 1.8rem;
    cursor: pointer;
    color: white;

    transition: var(--transition-normal);
}

.close-btn:hover {
    color: var(--developer-color);
}

/* ============================================
   22. SCRIPT STATUS LABEL (FREE / PAID)
===============================================*/
.script-status-label {
    position: absolute;
    top: 15px;
    left: 15px;

    padding: 10px 20px;
    border-radius: 5px;

    font-size: 1rem;
    font-weight: bold;

    z-index: 10;
}

.script-status-label.free {
    background-color: #4CAF50;
    color: white;
}

.script-status-label.paid {
    background-color: #007BFF;
    color: white;
}

/* ============================================
   23. PURCHASE HINT
===============================================*/
.purchase-hint {
    margin-top: 15px;

    color: var(--admin-color);
    font-weight: bold;
    text-align: center;
}

/* ============================================
   24. HIDDEN UTILITY CLASS
===============================================*/
.hidden {
    display: none;
}

/* ============================================
   25. COMPATIBILITY STATUS (Badges)
===============================================*/
.compatibility-status {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin: 20px 0;
}

.compatibility-label {
    padding: 10px 20px;

    border-radius: 5px;
    font-size: 1rem;

    font-weight: bold;
    text-transform: uppercase;
}

.compatible {
    background-color: var(--moderator-color);
    color: white;
}

.incompatible {
    background-color: var(--admin-color);
    color: white;
}

.pending {
    background-color: var(--gold-color);
    color: white;
}

/* ============================================
   26. TOOLTIP + QUESTION ICON
===============================================*/
.tooltip {
    position: absolute;
    top: 45px;
    right: 20px;

    padding: 10px 20px;

    border-radius: 8px;
    font-size: 1rem;

    z-index: 1100;
    display: none;

    background-color: #333;
    color: white;

    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}

.tooltip.active {
    display: block;
}

.question-icon {
    position: absolute;
    top: 15px;
    right: 60px;

    font-size: 1.5rem;
    cursor: pointer;
    color: white;

    transition: var(--transition-normal);
}

.question-icon:hover {
    color: var(--developer-color);
}

/* Notification Dot */
.notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;

    width: 12px;
    height: 12px;

    border-radius: 50%;
    background-color: var(--admin-color);
}

/* ============================================
   27. STAFF GRID
===============================================*/
.staff-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2.5rem;

    grid-template-columns: repeat(5, 1fr);
}

/* ============================================
   28. STAFF CARD
===============================================*/
.staff-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 1rem;
    height: 85%;

    border-radius: 12px;
    overflow: hidden;

    border: 1px solid var(--border-color);
    background-color: var(--dark-card);

    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.staff-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-color-rgb), 0.4);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3);
}

/* ============================================
   29. STAFF AVATAR
===============================================*/
.staff-avatar {
    position: relative;

    width: 90px;
    height: 90px;

    border-radius: 50%;
    margin-bottom: 0.75rem;

    border: 2px solid rgba(var(--primary-color-rgb), 0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.avatar-background {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    border-radius: 50%;
}

/* STATUS DOT */
.staff-status {
    position: absolute;
    bottom: 0;
    right: 0;

    width: 14px;
    height: 14px;

    border-radius: 50%;
    border: 2px solid var(--dark-card);
}

.staff-status.online  { background-color: #4CAF50; }
.staff-status.busy    { background-color: #ff0707; }
.staff-status.away    { background-color: #FFC107; }
.staff-status.offline { background-color: #9E9E9E; }

/* ============================================
   30. STAFF INFO (Name + Rolle)
===============================================*/
.staff-info {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}

.staff-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.staff-role {
    font-size: 0.8rem;
    font-weight: 500;

    padding: 0.2rem 0.6rem;
    border-radius: 20px;

    display: inline-block;
}

/* ROLE COLORS */
.staff-role.admin {
    background-color: rgba(255,85,85,0.2);
    color: var(--admin-color);
}

.staff-role.hadmin {
    background-color: rgba(255,0,0,0.2);
    color: var(--admin-color);
}

.staff-role.pl {
    background-color: rgba(85,170,255,0.2);
    color: var(--developer-color);
}

.staff-role.moderator {
    background-color: rgba(85,255,127,0.2);
    color: var(--moderator-color);
}

.staff-role.helper {
    background-color: rgba(255,170,85,0.2);
    color: var(--helper-color);
}

/* ============================================
   31. BADGES
===============================================*/
.staff-badges {
    display: flex;
    gap: 0.4rem;
}

.badge {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: var(--transition-normal);
}

.badge:hover {
    transform: scale(1.15);
}

.badge.founder {
    background-color: rgba(255,215,0,0.2);
    color: #FFD700;
}

.badge.pl {
    background-color: rgba(255,0,0,0.2);
    color: red;
}

.badge.dev {
    background-color: rgba(85,170,255,0.2);
    color: var(--developer-color);
}

.badge.support {
    background-color: rgba(85,255,127,0.2);
    color: var(--moderator-color);
}

.badge.events {
    background-color: rgba(255,170,85,0.2);
    color: var(--helper-color);
}

/* ============================================
   32. STAFF BOTTOM SECTION
===============================================*/
.staff-bottom {
    margin-top: 1rem;
    width: 100%;
    padding-bottom: 0.5rem;
}

/* ============================================
   33. STAFF POSITIONS (ICONS GRID)
===============================================*/
.staff-positions {
    display: flex;
    justify-content: space-around;

    text-align: center;

    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.position-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    transition: all 0.3s ease;
}

.position-item:hover {
    transform: translateY(-3px);
}

.position-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(var(--accent-color-rgb), 1);
}

.position-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.position-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ============================================
   34. FOOTER
===============================================*/
footer {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 1rem 0;
    margin-top: auto;

    font-size: 14px;
    color: #92929294;
}

.footer-container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin: 10px 0;
    text-decoration: underline;
}

.footer-links a {
    font-size: 13px;
    margin: 0 15px;

    color: #bbbbbb9c;
    text-decoration: none;

    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: #ffffffb2;
}

/* ============================================
   35. SOCIAL ICONS (vorgefertigt)
===============================================*/
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-socials a {
    font-size: 1.4rem;
    color: #bbbbbb;

    transition: var(--transition-normal);
}

.footer-socials a:hover {
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   36. MEDIA QUERIES
   — optimiert
   — zusammengefasst
   — keine Duplikate
===============================================*/

/* ---------- XL / 1400px ---------- */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .server-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .script-detail {
        max-width: 95%;
    }

    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- LG / 1100px ---------- */
@media (max-width: 1100px) {

    .script-content {
        flex-direction: column;
    }

    .script-image-container {
        width: 100%;
        height: 320px;
    }

    .script-image-container img {
        border-radius: 12px 12px 0 0;
    }

    .script-info {
        width: 100%;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- MD / 900px ---------- */
@media (max-width: 900px) {

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .server-highlights {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tab span {
        display: none; /* text ausblenden, icons bleiben */
    }

    .tab i {
        font-size: 1.2rem;
    }

    .rules-grid {
        gap: 0.75rem;
    }
}

/* ---------- SM / 768px ---------- */
@media (max-width: 768px) {

    header {
        padding: 35px;
    }

    .server-features {
        flex-direction: column;
        align-items: center;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
    }

    .script-item img {
        height: 200px;
    }

    .rule-card {
        flex-direction: column;
        padding: 0.75rem;
    }

    .rule-number {
        font-size: 1.25rem;
    }
}

/* ---------- XS / 500px ---------- */
@media (max-width: 500px) {

    .tab {
        padding: 0.5rem;
    }

    .script-title {
        font-size: 1.2rem;
    }

    .script-label {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .description-box {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .rule-body h3 {
        font-size: 0.9rem;
    }

    .rule-body p {
        font-size: 0.75rem;
    }

    .rule-body span {
        font-size: 0.7rem;
    }
}
