/* =========================================
   SUNSET COAST OFFICIAL CSS
   Farbschema: Orange -> Violett Gradient
   ========================================= */

/* 1. VARIABLEN & RESET */
:root {
    --primary: #ff8c00;          /* Kräftiges Sonnen-Orange */
    --primary-glow: rgba(255, 140, 0, 0.4);
    --secondary: #d400ff;        /* Sunset Violett/Pink */
    --secondary-glow: rgba(212, 0, 255, 0.3);
    --accent: #ff0055;           /* Abendrot */
    --bg: #0a080d;               /* Sehr dunkles Nachtblau/Schwarz */
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-dim: #b0a8b9;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sunset-gradient: linear-gradient(135deg, #ff8c00 0%, #d400ff 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Diese beiden Zeilen sind wichtig gegen Balken: */
    margin: 0;
    padding: 0;
}

/* 2. NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: transparent; /* Kein Balken */
    position: relative; 
    z-index: 1000;
    height: 80px; /* Eine feste Höhe hilft gegen Verschiebungen */
}

.logo {
    color: #ffffff; /* Das Wort "Sunset" oder "Coast" bleibt weiß */
    font-weight: 900;
    text-transform: uppercase;
}

.logo span {
    /* Hier wird das Grau durch den Sunset-Verlauf ersetzt */
    background: linear-gradient(135deg, #ff8c00 0%, #d400ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
}

.nav-links { display: flex; list-style: none; height: 100%; }
.nav-links > li { position: relative; display: flex; align-items: center; }

.nav-links a {
    text-decoration: none;
    color: var(--text);
    padding: 0 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--primary); 
    text-shadow: 0 0 10px var(--primary-glow);
}

/* DROPDOWN */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    background: #15111a;
    min-width: 220px;
    border: 1px solid var(--glass-border);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    list-style: none; 
    margin: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.dropdown:hover .dropdown-menu { 
    display: block; 
    animation: fadeIn 0.3s ease; 
}

.dropdown-menu li a {
    padding: 12px 25px;
    display: block;
    text-transform: none;
    border: none;
    color: var(--text-dim);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: rgba(212, 0, 255, 0.1);
    color: var(--primary);
    padding-left: 30px;
}

.arrow {
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    margin-left: 8px;
    transition: var(--transition);
}

.dropdown:hover .arrow { 
    transform: rotate(-135deg); 
    border-color: var(--primary); 
}

/* 3. HERO & CONTAINER */
.hero {
    height: 70vh;
    width: 100%; /* Sicherstellen, dass er die volle Breite hat */
    margin-top: 0 !important; /* Entfernt jeden möglichen Abstand nach oben */
    
    /* Dein Hintergrund-Code */
    background: linear-gradient(rgba(10, 8, 13, 0.5), rgba(10, 8, 13, 0.7)), 
                url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=2073') center/cover;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    
    /* Wichtig: Falls ein H1 darin den Hero nach unten drückt */
    overflow: hidden; 
}

.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 30%;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-content { z-index: 2; }

/* Die Hauptüberschrift (Sunset) */
.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff; /* "SUNSET COAST" wird weiß */
    text-transform: uppercase;
}

/* Das Wort "ROLEPLAY" farbig machen */
.hero-content h1 span {
    background: linear-gradient(135deg, #ff8c00 0%, #d400ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    
    /* Glow-Effekt, damit es nicht dunkel wirkt */
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.4));
    margin-left: 10px;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto 80px; 
    padding: 0 20px; 
    /* margin-top: -50px;  <-- Diese Zeile entfernen oder auskommentieren */
    position: relative; 
    z-index: 10; 
}

/* 4. CARDS & GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.card:hover { 
    border-color: var(--secondary); 
    transform: translateY(-5px); 
    box-shadow: 0 10px 40px rgba(212, 0, 255, 0.2); 
}
.card h2 { color: var(--primary); margin-bottom: 15px; font-size: 1.2rem; }

.status-dot { height: 12px; width: 12px; background: #00ff88; border-radius: 50%; display: inline-block; margin-right: 10px; box-shadow: 0 0 10px #00ff88; }

/* 5. BACK BUTTON */
.btn-back-simple {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    margin-bottom: 30px;
}

.btn-back-simple .icon-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.btn-back-simple .arrow-left {
    border: solid var(--text-dim);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(135deg);
}

.btn-back-simple:hover { color: var(--primary); }
.btn-back-simple:hover .icon-circle {
    border-color: var(--primary);
    background: rgba(255, 140, 0, 0.1);
    transform: translateX(-5px);
}

/* 6. TEAM SEITE */
.rank-title {
    font-size: 1.5rem;
    margin: 40px 0 25px;
    padding-left: 15px;
    border-left: 4px solid var(--primary);
}
.rank-title.pl { border-color: var(--accent); }
.rank-title.admin { border-color: var(--primary); }
.rank-title.support { border-color: var(--secondary); }

.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 25px; 
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50% !important;
    margin: 0 auto 20px;
    border: 3px solid var(--glass-border);
    background-color: #1a1a1a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; 
    overflow: hidden;
    display: block;
    transition: all 0.4s ease-in-out;
}

.team-card:hover .member-image {
    background-size: 115%;
    transform: scale(1.05);
}

.team-card:has(.badge.pl) .member-image { border-color: var(--accent); }
.team-card:hover:has(.badge.pl) .member-image { box-shadow: 0 0 20px rgba(255, 0, 85, 0.5); }

.team-card:has(.badge.admin) .member-image { border-color: var(--primary); }
.team-card:hover:has(.badge.admin) .member-image { box-shadow: 0 0 20px var(--primary-glow); }

.team-card:has(.badge.support) .member-image { border-color: var(--secondary); }
.team-card:hover:has(.badge.support) .member-image { box-shadow: 0 0 20px var(--secondary-glow); }

.team-card h3 { margin: 10px 0 5px; font-size: 1.2rem; color: #fff; }
.team-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.4; margin-top: 5px; }

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.badge.pl { background: var(--accent); color: white; }
.badge.admin { background: var(--primary); color: black; }
.badge.support { background: var(--secondary); color: white; }

/* 7. PARTNER SEITE */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.partner-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.partner-logo {
    width: 120px; height: 120px;
    margin: 0 auto 20px;
    background-size: contain; background-repeat: no-repeat; background-position: center;
    filter: grayscale(0) brightness(1); 
    transition: var(--transition);
}

.partner-card:hover .partner-logo { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--primary-glow)); }

.partner-actions {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px;
    opacity: 0; transform: translateY(10px); transition: var(--transition);
}
.partner-card:hover .partner-actions { opacity: 1; transform: translateY(0); }

.partner-link, .partner-store, .partner-discord {
    padding: 8px 15px; border-radius: 5px; font-size: 0.7rem; font-weight: 800;
    text-decoration: none; text-transform: uppercase; transition: var(--transition);
}

.partner-link { border: 1px solid var(--glass-border); color: white; }
.partner-link:hover { background: white; color: black; }
.partner-store { border: 1px solid var(--primary); color: var(--primary); }
.partner-store:hover { background: var(--primary); color: black; }
.partner-discord { border: 1px solid #7289da; color: #7289da; }
.partner-discord:hover { background: #7289da; color: white; }

/* 8. RULES LAYOUT */
.rules-layout { display: flex; gap: 40px; }
.rules-sidebar { flex: 0 0 280px; }
.rules-sidebar ul { list-style: none; }

.rule-link {
    display: block; padding: 12px 15px; color: var(--text-dim); text-decoration: none;
    border-radius: 8px; margin-bottom: 8px; background: rgba(255,255,255,0.02); transition: var(--transition);
}
.rule-link.active, .rule-link:hover { 
    background: var(--sunset-gradient); 
    color: white; 
    font-weight: 800; 
    box-shadow: 0 4px 15px var(--secondary-glow);
}

.rule-section { display: none; }
.rule-section.active { display: block; animation: fadeIn 0.5s ease; }

/* 9. SEARCH & NEWS */
#ruleSearch {
    width: 100%; padding: 14px 20px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border); border-radius: 10px; color: white; outline: none;
}
#ruleSearch:focus { border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-top: 40px; }
.news-card {
    background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 15px;
    overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.news-image { height: 220px; width: 100%; background-size: cover; background-position: center; position: relative; border-bottom: 1px solid var(--glass-border); }
.news-tag { position: absolute; top: 15px; left: 15px; background: var(--primary); color: black; padding: 5px 12px; font-weight: 900; font-size: 0.7rem; text-transform: uppercase; border-radius: 4px; z-index: 5; }
.news-tag.event { background: var(--secondary); color: white; }

.btn-text { color: var(--primary); text-decoration: none; font-weight: 800; transition: var(--transition); }
.btn-text:hover { letter-spacing: 1px; text-shadow: 0 0 10px var(--primary-glow); }

/* 10. BUTTONS */
.hero-btns a { text-decoration: none !important; display: inline-block; }
.btn-primary {
    background: var(--sunset-gradient); color: white !important;
    padding: 15px 40px; border-radius: 4px; font-weight: 900; text-transform: uppercase;
    transition: var(--transition); border: none; box-shadow: 0 4px 15px var(--secondary-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--primary-glow); filter: brightness(1.1); }

.btn-secondary {
    border: 2px solid #ffffff; color: #ffffff !important;
    padding: 15px 40px; border-radius: 4px; font-weight: 900; text-transform: uppercase;
    transition: var(--transition); background: transparent;
}
.btn-secondary:hover { background: #ffffff; color: #000000 !important; }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--sunset-gradient); border-radius: 10px; }

/* FOOTER STYLE */
footer {
    text-align: center;
    padding: 60px 0 30px;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.2);
}

footer b {
    color: var(--primary); /* Das Jahr oder der Name in Orange */
}

/* Das Fenster standardmäßig verstecken */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dunkler Hintergrund außen */
    backdrop-filter: blur(5px); /* Macht den Hintergrund unscharf */
}

/* Der Inhalt des Fensters */
.modal-content {
    background: #110e16;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    width: 50%;
    max-width: 600px;
    color: white;
    position: relative;
    animation: dropIn 0.3s ease;
}

/* Das "X" oben rechts im Fenster */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
}

/* Animation für das Erscheinen */
@keyframes dropIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.btn-ucp {
    background: var(--sunset-gradient);
    padding: 8px 20px !important;
    border-radius: 5px;
    color: white !important;
    font-weight: 800;
    box-shadow: 0 4px 15px var(--secondary-glow);
    transition: var(--transition);
}

.btn-ucp:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Grundregeln für das Handy-Menü */
.mobile-nav-toggle {
    display: none; /* Auf Desktop unsichtbar */
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (max-width: 900px) {
    /* Navbar als Vollbild-Overlay */
    .navbar {
        display: none; /* Standardmäßig aus */
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 30px;
        z-index: 1000;
        overflow-y: auto; /* Erlaubt scrollen im Menü */
    }

    .navbar.active {
        display: flex !important;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 15px;
        font-size: 1.2rem;
    }

    /* Dropdown Mobil-Logik */
    .dropdown-menu {
        display: none; /* Versteckt */
        position: static; /* In den Fluss einbetten */
        background: rgba(255, 255, 255, 0.05);
        width: 100%;
        box-shadow: none;
    }

    /* Klasse die per JS geschaltet wird */
    .dropdown.mobile-open .dropdown-menu {
        display: block !important;
    }

    .mobile-nav-toggle {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        background: #0a0a0a;
        height: 60px;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1001;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}