:root {
    --bg: #07130b;
    --bg-soft: #0d2113;
    --green-dark: #123b1f;
    --green: #2f8f3d;
    --green-bright: #8bd95a;
    --text: #f4ffe9;
    --muted: #b8d1ad;
    --line: rgba(139, 217, 90, 0.22);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(47, 143, 61, 0.22), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(139, 217, 90, 0.18), transparent 26%),
        linear-gradient(180deg, var(--bg), #0a190f 55%, #061009);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 19, 11, 0.88);
    backdrop-filter: blur(14px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(139, 217, 90, 0.14);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(18, 59, 31, 0.9);
    font-size: 22px;
}

.hero {
    display: grid;
    min-height: calc(100vh - 76px);
    place-items: center;
    padding: 72px 20px 86px;
    background:
        linear-gradient(90deg, rgba(7, 19, 11, 0.86), rgba(7, 19, 11, 0.58) 48%, rgba(7, 19, 11, 0.86)),
        linear-gradient(rgba(7, 19, 11, 0.38), rgba(7, 19, 11, 0.9)),
        url("assets/hero-spawn.png") center / cover no-repeat;
}

.hero-content,
.page-title,
.section,
.mode-list,
.team-grid,
.about-layout,
.legal-box {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-content {
    text-align: center;
}

.hero-logo {
    width: clamp(118px, 18vw, 190px);
    height: auto;
    border-radius: 50%;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45));
}

.eyebrow {
    margin: 18px 0 10px;
    color: var(--green-bright);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: 0;
    text-shadow: 0 5px 0 rgba(18, 59, 31, 0.85);
}

.hero-text {
    max-width: 720px;
    margin: 0 auto 30px;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.7;
}

.server-ip {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 33, 19, 0.9);
    box-shadow: var(--shadow);
}

.server-ip span {
    color: var(--muted);
    font-weight: 700;
}

.server-ip strong {
    color: var(--green-bright);
    font-size: 1.15rem;
}

.copy-button,
.legal-box a {
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    color: #061009;
    background: linear-gradient(135deg, var(--green-bright), #46b84f);
    font-weight: 800;
    cursor: pointer;
}

.section {
    padding: 76px 0 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.intro-grid article,
.card,
.mode,
.team-card,
.about-panel,
.stats div,
.legal-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 33, 19, 0.78);
    box-shadow: var(--shadow);
}

.intro-grid article {
    padding: 30px;
}

.intro-grid h2,
.mode h2,
.team-card h2,
.about-panel h2,
.legal-box h2 {
    color: var(--green-bright);
}

.intro-grid p,
.card p,
.mode p,
.team-card p,
.about-panel p,
.page-title p,
.legal-box p {
    color: var(--muted);
    line-height: 1.65;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 82px;
}

.image-band {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: center;
}

.image-band img,
.page-image img,
.about-image {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.image-band img {
    aspect-ratio: 16 / 9;
}

.image-band div {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 33, 19, 0.78);
}

.image-band h2 {
    color: var(--green-bright);
}

.image-band p {
    color: var(--muted);
    line-height: 1.65;
}

.card {
    padding: 28px;
}

.card-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #07130b;
    background: var(--green-bright);
    font-size: 1.4rem;
    font-weight: 900;
}

.page {
    padding: 74px 0 84px;
}

.page-title {
    margin-bottom: 38px;
}

.page-image {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 30px;
}

.page-image img {
    max-height: 430px;
}

.page-title h1 {
    font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.page-title p {
    max-width: 760px;
    font-size: 1.08rem;
}

.mode-list {
    display: grid;
    gap: 18px;
}

.mode {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: center;
    padding: 26px;
}

.mode span {
    color: var(--green-bright);
    font-weight: 900;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.team-card {
    padding: 24px;
}

.avatar {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #061009;
    background: linear-gradient(135deg, var(--green-bright), var(--green));
    font-size: 1.7rem;
    font-weight: 900;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 22px;
}

.about-panel {
    padding: 32px;
}

.about-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
}

.stats {
    display: grid;
    gap: 16px;
}

.stats div {
    padding: 24px;
}

.stats strong {
    display: block;
    color: var(--green-bright);
    font-size: 2rem;
}

.stats span {
    color: var(--muted);
}

.legal-box {
    padding: 34px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px max(20px, calc((100vw - 1120px) / 2));
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #050c07;
}

.site-footer p {
    margin: 0;
}

.site-footer div {
    display: flex;
    gap: 18px;
}

.site-footer a {
    color: var(--green-bright);
    font-weight: 700;
}

.text-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--green-bright);
    font-weight: 800;
}

.gamemode-showcase,
.team-roster,
.panel-layout,
.panel-card {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.gamemode-showcase {
    display: grid;
    gap: 22px;
}

.gamemode-row {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 33, 19, 0.82);
    box-shadow: var(--shadow);
}

.gamemode-row img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.gamemode-row div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 5vw, 46px);
}

.gamemode-row span {
    color: var(--green-bright);
    font-weight: 900;
}

.gamemode-row h2 {
    margin: 8px 0 12px;
    color: var(--green-bright);
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.gamemode-row p {
    color: var(--muted);
    line-height: 1.7;
}

.panel-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 33, 19, 0.82);
    box-shadow: var(--shadow);
}

.panel-card h2 {
    color: var(--green-bright);
}

.panel-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 20px;
}

.applications-panel {
    grid-column: 1 / -1;
}

.server-panel {
    grid-column: 1 / -1;
}

.panel-note {
    color: var(--muted);
    line-height: 1.6;
}

.panel-note code,
.server-card code {
    color: var(--green-bright);
}

.server-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.server-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 12, 7, 0.62);
}

.server-card h3 {
    margin: 8px 0;
    color: var(--text);
}

.server-card p,
.server-card small {
    color: var(--muted);
}

.server-card strong {
    display: block;
    margin: 10px 0 4px;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #b44;
}

.status-online .status-dot {
    background: var(--green-bright);
}

.server-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.server-actions button,
.inline-actions button {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    color: var(--text);
    background: rgba(18, 59, 31, 0.78);
    font-weight: 800;
    cursor: pointer;
}

.server-actions button:disabled,
.form-grid input:disabled,
.form-grid select:disabled,
.form-grid button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.server-tools {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.console-box,
.plugin-box {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 12, 7, 0.58);
}

.console-box h3,
.plugin-box h3 {
    color: var(--green-bright);
}

.console-box label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 800;
}

.console-box select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(5, 12, 7, 0.82);
    font: inherit;
}

.console-box pre {
    min-height: 260px;
    max-height: 420px;
    overflow: auto;
    margin: 14px 0 0;
    padding: 16px;
    border: 1px solid rgba(139, 217, 90, 0.14);
    border-radius: 8px;
    color: #d9ffd1;
    background: #030704;
    white-space: pre-wrap;
}

.check-group {
    display: grid;
    gap: 10px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.check-group legend {
    padding: 0 6px;
    color: var(--green-bright);
    font-weight: 900;
}

.check-group div {
    display: grid;
    gap: 8px;
}

.check-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-list-item.stacked {
    align-items: flex-start;
}

.panel-list-item small {
    color: var(--muted);
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid.compact {
    grid-template-columns: 1fr;
}

.form-grid label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 800;
}

.form-grid label span {
    color: var(--muted);
    font-weight: 600;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(5, 12, 7, 0.82);
    font: inherit;
}

.form-grid textarea {
    resize: vertical;
}

.form-grid button,
.form-status {
    grid-column: 1 / -1;
}

.form-status {
    margin: 0;
    color: var(--green-bright);
    font-weight: 700;
}

.ghost-button {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 14px;
    color: var(--text);
    background: rgba(5, 12, 7, 0.78);
    font-weight: 800;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.team-roster {
    display: grid;
    gap: 24px;
}

.rank-section {
    display: grid;
    gap: 14px;
}

.rank-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.35rem;
}

.rank-title::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.member-card,
.panel-list-item,
.application-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 33, 19, 0.78);
}

.member-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
}

.member-card img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    image-rendering: pixelated;
    background: #050c07;
}

.member-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.rank-badge {
    display: inline-block;
    border-radius: 8px;
    padding: 6px 9px;
    color: #050c07;
    font-size: 0.82rem;
    font-weight: 900;
}

.panel-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.panel-list-item,
.application-item {
    padding: 16px;
}

.panel-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.application-item h3 {
    margin-bottom: 8px;
    color: var(--green-bright);
}

.application-item dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 14px;
    margin: 0;
}

.application-item dt {
    color: var(--green-bright);
    font-weight: 800;
}

.application-item dd {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.empty-state {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(13, 33, 19, 0.62);
}

.rank-leitung { color: #8b0000; }
.rank-admin { color: #ff3333; }
.rank-discord-leitung,
.rank-sr-moderator,
.rank-moderator,
.rank-jr-moderator,
.rank-designer { color: #41c85a; }
.rank-managment { color: #ff9d2e; }
.rank-sr-developer,
.rank-developer,
.rank-jr-developer { color: #f0d84f; }
.rank-sr-builder,
.rank-builder,
.rank-jr-builder { color: #65d8ff; }
.rank-sr-supporter,
.rank-supporter,
.rank-jr-supporter { color: #c46dff; }

.rank-leitung .rank-badge { background: #8b0000; color: #fff; }
.rank-admin .rank-badge { background: #ff3333; }
.rank-discord-leitung .rank-badge,
.rank-sr-moderator .rank-badge,
.rank-moderator .rank-badge,
.rank-jr-moderator .rank-badge,
.rank-designer .rank-badge { background: #41c85a; }
.rank-managment .rank-badge { background: #ff9d2e; }
.rank-sr-developer .rank-badge,
.rank-developer .rank-badge,
.rank-jr-developer .rank-badge { background: #f0d84f; }
.rank-sr-builder .rank-badge,
.rank-builder .rank-badge,
.rank-jr-builder .rank-badge { background: #65d8ff; }
.rank-sr-supporter .rank-badge,
.rank-supporter .rank-badge,
.rank-jr-supporter .rank-badge { background: #c46dff; }

@media (max-width: 760px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 12px;
    }

    .nav.open .nav-links {
        display: flex;
    }

    .server-ip,
    .intro-grid,
    .cards,
    .image-band,
    .gamemode-row,
    .panel-layout,
    .server-dashboard,
    .server-tools,
    .form-grid,
    .member-grid,
    .application-item dl,
    .mode,
    .team-grid,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .server-ip {
        display: grid;
        width: min(100%, 360px);
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
