/* ------------------------
   GLOBAL
------------------------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #191629 0, #050509 45%, #050509 100%);
    color: #f5f5ff;
    font-size: 16px;
}

a {
    color: inherit;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------
   HEADER
------------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(5, 5, 15, 0.88);
    border-bottom: 1px solid rgba(123, 47, 255, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 70px;
    flex-wrap: nowrap;
}

/* Logo mit animiertem Farbverlauf */
.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(120deg, #ffffff, #caa9ff, #7b2fff, #ffffff);
    background-size: 300%;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientFlow 4s ease-in-out infinite;
    text-decoration: none;
    white-space: nowrap;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* NAV DESKTOP */
nav.nav-links {
    display: flex;
    gap: 20px;
    font-size: 16px;
}

nav.nav-links a {
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    color: #f9f9ff;
    opacity: 0.92;
}

nav.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #7b2fff, #b58bff);
    border-radius: 999px;
    transition: width 0.22s ease-out;
}

nav.nav-links a:hover::after {
    width: 100%;
}

/* Burger Button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Burger Animation (X) */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* MOBILE HEADER */
@media (max-width: 720px) {
    .header-inner {
        height: auto;
        padding: 10px 0 12px;
        align-items: center;
        flex-wrap: wrap;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    /* Navigation zunächst VERSTECKEN */
    nav.nav-links {
        order: 3;              /* unter Logo + Burger */
        width: 100%;
        display: none;         /* wichtig */
        flex-direction: column;
        gap: 8px;
        padding-top: 6px;
    }

    /* Wenn .open dran ist, anzeigen */
    nav.nav-links.open {
        display: flex;
    }
}

/* ------------------------
   HERO
------------------------- */
.hero {
    padding: 80px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.7fr);
    gap: 40px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a89dff;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(34px, 4.3vw, 46px);
    font-weight: 800;
    margin: 0 0 10px;
}

.hero-subtitle {
    margin: 0 0 24px;
    max-width: 520px;
    color: #c4c2ff;
    font-size: 16px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.badge {
    font-size: 13px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(123, 47, 255, 0.16);
    border: 1px solid rgba(181, 139, 255, 0.5);
    color: #f4edff;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #7b2fff, #b58bff);
    color: #100b1d;
    box-shadow: 0 10px 30px rgba(123, 47, 255, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(123, 47, 255, 0.6);
}

.btn-ghost {
    background: rgba(15, 12, 30, 0.8);
    color: #f2ecff;
    border: 1px solid rgba(123, 47, 255, 0.4);
}
.btn-ghost:hover {
    background: rgba(25, 20, 55, 0.9);
    transform: translateY(-1px);
}

/* ------------------------
   SERVERSTATUS CARD
------------------------- */
.stats-card {
    background: radial-gradient(circle at top left, rgba(123, 47, 255, 0.2), rgba(6, 6, 16, 0.98));
    border-radius: 22px;
    padding: 22px 22px 18px;
    border: 1px solid rgba(146, 121, 255, 0.6);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
}

.stats-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stats-card-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #b9b4ff;
    opacity: 0.85;
}

.stats-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #f4f2ff;
}

.stats-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 14px;
}

.stat {
    background: radial-gradient(circle at top left, rgba(40, 18, 90, 0.9), rgba(6, 6, 16, 0.98));
    border-radius: 16px;
    padding: 12px 16px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #b1a7ff;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-value strong {
    font-weight: 700;
}

/* Einzeilige Subtexte */
.stat-sub {
    font-size: 13px;
    color: #9f93ff;
    white-space: nowrap;
}

.stats-footnote {
    font-size: 13px;
    color: #c2bcff;
    margin-top: 4px;
}

/* ------------------------
   SECTION BASE
------------------------- */
.section {
    padding: 45px 0;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 26px;
    margin: 0 0 8px;
}

.section-subtitle {
    margin: 0;
    color: #b9b4ff;
    font-size: 15px;
}

/* Cards / Panels */
.card {
    background: rgba(9, 8, 18, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(83, 69, 153, 0.8);
    padding: 20px 22px 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}

/* Grid helpers */
.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 880px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .grid-2, .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Text */
p {
    font-size: 15px;
    line-height: 1.75;
    color: #d9d6ff;
}

/* Lists */
ol, ul {
    padding-left: 22px;
    font-size: 15px;
    color: #dcd8ff;
}

/* ------------------------
   TEAM / PROJEKTLEITUNG
------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.team-card {
    background: rgba(10, 9, 21, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(123, 47, 255, 0.5);
    padding: 18px 20px 16px;
}

.team-name {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 18px;
}

.team-role {
    font-size: 13px;
    color: #c0b8ff;
    margin-bottom: 10px;
}

.team-text {
    font-size: 15px;
    color: #dcd7ff;
}

/* ------------------------
   FAQ
------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border-radius: 16px;
    border: 1px solid rgba(83, 69, 153, 0.9);
    background: radial-gradient(circle at top left, rgba(123, 47, 255, 0.12), rgba(9, 8, 18, 0.98));
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq-item.open {
    border-color: rgba(181, 139, 255, 0.95);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
    background: radial-gradient(circle at top left, rgba(123, 47, 255, 0.2), rgba(9, 8, 18, 0.98));
}

.faq-question {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
    width: 100%;
    border: none;
    background: transparent;
    color: #f5f2ff;
}

.faq-question:hover {
    background: rgba(24, 20, 60, 0.9);
}

.faq-question-text {
    max-width: 90%;
    text-align: left;
}

.faq-toggle {
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Icon per CSS */
.faq-toggle::before {
    content: "+";
}

.faq-item.open .faq-toggle::before {
    content: "×";
}

.faq-item.open .faq-toggle {
    opacity: 1;
}

.faq-answer {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding-top 0.25s ease, padding-bottom 0.25s ease;
    opacity: 0;
}

.faq-answer-inner {
    padding: 8px 0 12px;
    font-size: 14px;
    color: #dcd7ff;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    opacity: 1;
    padding-top: 4px;
    padding-bottom: 12px;
}

.faq-footnote {
    margin-top: 18px;
    font-size: 14px;
    color: #b9b4ff;
}

/* ------------------------
   BÜRGER-MENÜ (MOBILE, unten)
------------------------- */
.mobile-citizen-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 6, 16, 0.98);
    border-top: 1px solid rgba(123, 47, 255, 0.6);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    z-index: 90;
    display: none;
}

.mobile-citizen-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 12px 10px;
    display: flex;
    gap: 8px;
}

.mobile-citizen-btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 9px 10px;
    border-radius: 999px;
    border: 1px solid rgba(123, 47, 255, 0.5);
    background: radial-gradient(circle at top, rgba(123, 47, 255, 0.22), rgba(15, 10, 35, 0.98));
    color: #f5f3ff;
    text-decoration: none;
    font-weight: 600;
}

.mobile-citizen-btn.primary {
    background: linear-gradient(135deg, #7b2fff, #b58bff);
    color: #100b1d;
    border-color: transparent;
}

.mobile-citizen-btn:active {
    transform: translateY(1px);
}

@media (max-width: 720px) {
    .mobile-citizen-menu {
        display: block;
    }
    body {
        padding-bottom: 70px;
    }
}

/* ------------------------
   FOOTER
------------------------- */
footer {
    margin-top: 45px;
    padding: 16px 0 18px;
    border-top: 1px solid rgba(60, 50, 120, 0.8);
    background: rgba(5, 4, 12, 0.98);
    font-size: 13px;
    color: #9b95d0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.footer-inner a {
    color: #c7b8ff;
    text-decoration: none;
}

.footer-inner a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        font-size: 12px;
    }
}
main {
    /* sorgt dafür, dass der Inhalt immer höher ist als der Viewport */
    min-height: calc(100vh + 120px);
}

/* --- Serverstatus: mobiles Layout --- */
@media (max-width: 720px) {
    /* Karte selbst etwas kompakter */
    .stats-card {
        padding: 18px 14px 16px;
    }

    /* Spieler / Status untereinander statt nebeneinander */
    .stats-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat {
        border-radius: 14px;
    }

    /* Überschrift oben links statt weit auseinander */
    .stats-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Falls du irgendwo noch ein Offset/Transform drin hattest */
    .stats-main .stat:nth-child(2) {
        transform: none;
        margin-left: 0;
    }
}

