/* =========================================
   BASE STYLES & VARIABLES (aus index.html)
   ========================================= */
:root {
    --bg-dark: #07090C;
    --bg-card: #11151A;
    --primary-cyan: #00D9FF;
    --primary-cyan-hover: #00AFCF;
    --text-light: #FFFFFF;
    --text-gray: #AAB3BC;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --status-open: #2ecc71;
    --status-closed: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   NAVIGATION & HEADER
   ========================================= */
header {
    background-color: rgba(26, 31, 38, 0.95);
    border-bottom: 2px solid var(--primary-cyan);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    height: 58px;
    width: 58px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.18));
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
}

.logo-text span {
    color: var(--primary-cyan);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul a {
    font-weight: 500;
    transition: color 0.3s;
}

nav ul a:hover, nav ul a.active {
    color: var(--primary-cyan);
}

.btn-discord {
    background-color: var(--primary-cyan);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn-discord:hover {
    background-color: var(--primary-cyan-hover);
    transform: translateY(-2px);
}

nav .btn-discord {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-light);
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary-cyan);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary-cyan);
}

/* =========================================
   INDEX: HERO & FEATURES
   ========================================= */
.hero {
    padding: 180px 20px 100px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(18, 22, 26, 0.6) 0%, rgba(18, 22, 26, 1) 100%), 
                url('neustetten-logo.webp') no-repeat center center/cover;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 217, 255, 0.16);
}

.hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.12) 0%, rgba(0, 217, 255, 0) 68%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero h1 span {
    color: var(--primary-cyan);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.features {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.section-title span {
    color: var(--primary-cyan);
}

.subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
    margin-top: -30px;
}

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

.card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-cyan);
    border-top: 1px solid rgba(192, 200, 208, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-light); }
.card p { color: var(--text-gray); }

/* =========================================
   FRAKTIONEN
   ========================================= */
.faction-container { max-width: 1200px; margin: 140px auto 80px auto; padding: 0 20px; }
.faction-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.faction-card { background-color: var(--bg-card); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; border-bottom: 3px solid transparent; transition: transform 0.3s, box-shadow 0.3s; }
.faction-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }

.card-header { padding: 25px; position: relative; }
.lspd-card { border-bottom-color: #2980b9; }
.ems-card { border-bottom-color: #e74c3c; }
.mechanic-card { border-bottom-color: #f1c40f; }
.mafia-card { border-bottom-color: #2c3e50; }

.faction-badge { position: absolute; top: 25px; right: 25px; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }
.badge-open { background-color: rgba(46, 204, 113, 0.2); color: var(--status-open); border: 1px solid var(--status-open); }
.badge-closed { background-color: rgba(231, 76, 60, 0.2); color: var(--status-closed); border: 1px solid var(--status-closed); }

.faction-name { font-size: 1.6rem; font-weight: bold; margin-bottom: 5px; }
.faction-type { font-size: 0.85rem; color: var(--primary-cyan); text-transform: uppercase; letter-spacing: 1px; }

.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.faction-desc { color: var(--text-gray); margin-bottom: 20px; font-size: 0.95rem; }
.faction-details { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; margin-bottom: 20px; }
.detail-item { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; }
.detail-label { color: var(--text-gray); }
.detail-value { font-weight: 500; }

.btn-apply { display: block; text-align: center; padding: 12px; border-radius: 5px; font-weight: bold; transition: 0.2s; background-color: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.btn-apply.active-btn { background-color: var(--primary-cyan); color: white; border: none; }
.btn-apply.active-btn:hover { background-color: var(--primary-cyan-hover); }
.btn-apply.disabled-btn { color: #555; cursor: not-allowed; }

/* =========================================
   IMPRESSUM
   ========================================= */
.legal-container { max-width: 800px; margin: 140px auto 80px auto; padding: 0 20px; }
.legal-card { background-color: var(--bg-card); padding: 40px; border-radius: 8px; border-top: 4px solid var(--primary-cyan); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.legal-section { margin-bottom: 30px; }
.legal-section h2 { font-size: 1.3rem; color: var(--primary-cyan); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.legal-section p { color: var(--text-gray); margin-bottom: 10px; }
.legal-section p strong { color: var(--text-light); }
.disclaimer-box { background-color: rgba(0, 217, 255, 0.05); border: 1px solid rgba(0, 217, 255, 0.2); padding: 20px; border-radius: 6px; margin-top: 40px; }
.disclaimer-box h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-light); }

/* =========================================
   REGELWERK
   ========================================= */
.rules-container { max-width: 900px; margin: 140px auto 40px auto; padding: 0 20px; }
.praambel-box { background-color: var(--bg-card); border: 1px dashed rgba(0, 217, 255, 0.3); padding: 20px; border-radius: 6px; margin-bottom: 40px; text-align: center; color: var(--text-gray); font-style: italic; }
.section-divider { color: var(--primary-cyan); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin: 30px 0 15px 5px; font-weight: bold; }
.accordion-item { background-color: var(--bg-card); margin-bottom: 15px; border-radius: 6px; overflow: hidden; border-left: 4px solid var(--primary-cyan); }
.accordion-header { padding: 20px; font-size: 1.1rem; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; transition: background 0.2s; }
.accordion-header:hover { background-color: rgba(0, 217, 255, 0.05); }
.accordion-icon { font-size: 1.4rem; transition: transform 0.3s; color: var(--primary-cyan); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: rgba(0, 0, 0, 0.15); }
.accordion-body { padding: 20px; color: var(--text-gray); border-top: 1px solid rgba(255,255,255,0.05); }
.accordion-body ul { list-style-type: none; }
.accordion-body li { margin-bottom: 15px; }
.accordion-body li:last-child { margin-bottom: 0; }
.accordion-body li strong { color: var(--text-light); display: block; margin-bottom: 3px; }
.alert-text { color: #e74c3c !important; font-weight: bold; }
.sub-list { margin-top: 5px; padding-left: 20px; list-style-type: square !important; }
.sub-list li { margin-bottom: 5px !important; color: var(--text-gray); }
.accordion-item.active .accordion-content { max-height: 2000px; transition: max-height 0.5s ease-in; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.schlusswort { text-align: center; margin: 60px 0; padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.schlusswort h3 { color: var(--primary-cyan); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 10px; }

/* =========================================
   FOOTER & RESPONSIVE (MOBILE)
   ========================================= */
footer {
    background-color: #0B0E11;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 74px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 74px);
        background-color: var(--bg-card);
        transition: 0.3s ease-in-out;
        padding: 40px 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
        z-index: 999;
    }
    nav.mobile-open { left: 0; }
    nav ul { flex-direction: column; align-items: center; gap: 30px; }
    nav ul a { font-size: 1.3rem; }
    nav .btn-discord { display: block; text-align: center; margin-top: 40px; width: 100%; }
    .nav-container > .btn-discord { display: none; }
    .menu-toggle { display: flex !important; }

    /* Datei-spezifische Mobile-Anpassungen */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .faction-container, .legal-container, .rules-container { margin-top: 110px; }
    .section-title { font-size: 2rem; }
}