﻿:root {
    --bg: #08090b;
    --bg-2: #0c0d10;
    --bg-3: #121318;
    --surface: rgba(20, 21, 25, 0.72);
    --surface-solid: #14151a;
    --border: #23252b;
    --border-strong: #2e3038;

    --text: #f4f5f7;
    --muted: #a0a3ab;
    --muted-2: #6f727a;

    --accent: #e03a44;
    --accent-strong: #c6202b;
    --accent-soft: rgba(224, 58, 68, 0.12);
    --green: #34d17a;
    --red: #e33434;

    --discord: #5865f2;
    --discord-soft: rgba(88, 101, 242, 0.12);

    --radius: 14px;
    --radius-lg: 20px;

    --font-body: "Inter", Arial, Helvetica, sans-serif;
    --font-display: "Space Grotesk", "Inter", sans-serif;

    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    margin: 0;
}

p {
    margin: 0;
}

/* -------------------------------------------------- Navbar */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px clamp(16px, 5vw, 56px);

    background: rgba(8, 9, 11, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 30px;
    height: 30px;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    font-family: var(--font-display);
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 22px);
}

nav a {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.2px;

    padding: 6px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;

    transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-button {
    display: none;
    flex-direction: column;
    gap: 5px;

    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.mobile-button .bar {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar.open .mobile-button .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar.open .mobile-button .bar:nth-child(2) {
    opacity: 0;
}

.navbar.open .mobile-button .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------- Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 20px;

    border: 1px solid var(--border-strong);
    border-radius: 10px;

    background: var(--surface-solid);
    color: var(--text);

    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;

    cursor: pointer;
    white-space: nowrap;

    transition: transform 0.18s ease, box-shadow 0.18s ease,
        background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    border-color: #3a3d45;
}

.btn-lg {
    padding: 15px 24px;
    font-size: 14px;
    border-radius: 12px;
}

.btn-sm {
    padding: 9px 15px;
    font-size: 12px;
    border-radius: 9px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: transparent;
    color: #fff;
}

.btn-primary:hover {
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(224, 58, 68, 0.35);
}

.btn-discord {
    background: var(--discord);
    border-color: transparent;
    color: #fff;
}

.btn-discord:hover {
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(88, 101, 242, 0.35);
}

/* -------------------------------------------------- Hero */

.hero {
    position: relative;

    padding: clamp(56px, 8vw, 110px) clamp(16px, 6vw, 72px);

    display: grid;
    grid-template-columns: 1.5fr 0.55fr;
    align-items: center;
    gap: clamp(32px, 5vw, 64px);

    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(ellipse at 78% 18%, rgba(190, 25, 38, 0.2), transparent 45%),
        radial-gradient(ellipse at 8% 88%, rgba(120, 14, 24, 0.12), transparent 50%),
        linear-gradient(to bottom, rgba(8, 9, 11, 0.5), var(--bg) 92%);

    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;

    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 75%);

    pointer-events: none;
}

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

.hero-brand {
    margin-bottom: 26px;
}

.hero-logo {
    width: clamp(96px, 12vw, 150px);
    height: auto;

    filter: drop-shadow(0 18px 40px rgba(224, 58, 68, 0.45));

    animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 14px;

    border: 1px solid rgba(224, 58, 68, 0.35);
    border-radius: 50px;

    background: var(--accent-soft);

    color: #ff7a82;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
    margin: clamp(18px, 3vw, 30px) 0 clamp(12px, 2vw, 18px);

    font-size: clamp(54px, 9vw, 128px);
    line-height: 0.88;
    letter-spacing: -6px;
    font-weight: 700;
}

.hero h1 span {
    background: linear-gradient(135deg, #ff6a70, var(--accent-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 26px);
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
}

.hero-sub {
    max-width: 620px;
    margin-top: 18px;

    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

/* -------------------------------------------------- Server card */

.server-card {
    position: relative;
    z-index: 1;

    padding: clamp(22px, 3vw, 34px);

    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);

    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow: var(--shadow);
}

.server-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.server-title {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted-2);
}

.status-dot.online {
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(52, 209, 122, 0.5);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: var(--red);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 209, 122, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(52, 209, 122, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 209, 122, 0);
    }
}

.status-banner {
    padding: 14px 16px;
    border-radius: 12px;

    text-align: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
}

.status-banner.online {
    background: rgba(52, 209, 122, 0.12);
    color: var(--green);
    border: 1px solid rgba(52, 209, 122, 0.3);
}

.status-banner.offline {
    background: rgba(227, 52, 52, 0.1);
    color: var(--red);
    border: 1px solid rgba(227, 52, 52, 0.3);
}

.server-stats {
    margin-top: 22px;

    display: grid;
    gap: 16px;
}

.stat {
    display: grid;
    gap: 5px;
}

.stat-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.stat-label {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.stat-value {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

/* -------------------------------------------------- Sections */

.section {
    padding: clamp(60px, 8vw, 104px) clamp(16px, 6vw, 72px);
}

.section.dark {
    background: var(--bg-2);
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(32px, 5vw, 48px);
    text-align: center;
}

.section-head small {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.section-head h2 {
    margin: 14px 0 16px;
    font-size: clamp(30px, 4.5vw, 52px);
    letter-spacing: -1px;
    line-height: 1.1;
}

.section-head p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

/* -------------------------------------------------- Page shell */

.page-main {
    min-height: 60vh;
}

.page-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(44px, 8vw, 88px) clamp(16px, 6vw, 40px);
}

.page-head small {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.page-head h1 {
    margin: 14px 0 16px;
    font-size: clamp(34px, 6vw, 56px);
    letter-spacing: -1.5px;
    line-height: 1.05;
}

.page-head p {
    max-width: 680px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.lead-text {
    max-width: 780px;
    margin: 34px 0 44px;

    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

/* -------------------------------------------------- Hub (Startseite) */

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

.hub-card {
    padding: 26px 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: linear-gradient(180deg, var(--bg-3), rgba(18, 19, 24, 0.4));

    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hub-card:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 58, 68, 0.4);
}

.hub-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    margin-bottom: 16px;

    border-radius: 11px;

    background: var(--accent-soft);
    color: var(--accent);
}

.hub-icon svg {
    width: 20px;
    height: 20px;
}

.hub-card h3 {
    font-size: 17px;
}

.hub-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

/* -------------------------------------------------- Features */

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

.feature {
    padding: 28px 26px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: linear-gradient(180deg, var(--bg-3), rgba(18, 19, 24, 0.4));

    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 58, 68, 0.4);
}

.feature-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--accent-soft);
    color: var(--accent);
}

.feature-icon svg {
    width: 21px;
    height: 21px;
}

.feature h3 {
    margin-top: 16px;
    font-size: 17px;
}

.feature p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

/* -------------------------------------------------- Cards */

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

.card {
    padding: 26px 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--bg-3);

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card .card-ref {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.card h3 {
    font-size: 17px;
    line-height: 1.3;
}

.card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.card .card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.chip {
    padding: 4px 10px;
    border-radius: 50px;

    background: var(--accent-soft);
    color: #ff7a82;

    font-size: 11px;
    font-weight: 700;
}

.chip.alt {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.card .card-status {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.card .card-status.open {
    background: rgba(52, 209, 122, 0.12);
    color: var(--green);
}

.card .card-status.planning {
    background: rgba(255, 170, 60, 0.12);
    color: #ffb04d;
}

.card .card-status.closed {
    background: rgba(255, 80, 80, 0.12);
    color: var(--red);
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--border-strong);
}

.team-role {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* -------------------------------------------------- News */

.news-list {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.news-entry {
    padding: 26px 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--bg-3);
}

.news-entry .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-entry h3 {
    font-size: 20px;
}

.news-entry p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
}

/* -------------------------------------------------- Regelwerk */

.rule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin: 36px 0 30px;

    position: sticky;
    top: 76px;
    z-index: 5;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: rgba(8, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.rule-tab {
    padding: 11px 18px;

    border: 1px solid var(--border-strong);
    border-radius: 10px;

    background: var(--bg-3);
    color: var(--muted);

    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: color 0.18s ease, background-color 0.18s ease,
        border-color 0.18s ease;
}

.rule-tab:hover {
    color: var(--text);
    border-color: rgba(224, 58, 68, 0.4);
}

.rule-tab.active {
    background: var(--accent-soft);
    border-color: rgba(224, 58, 68, 0.5);
    color: #ff8a90;
}

.rule-panel {
    display: none;
}

.rule-panel.active {
    display: block;

    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rule-intro {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;

    margin-bottom: 28px;
}

.rule-note {
    margin-top: 28px;
    padding: 14px 18px;

    border: 1px solid rgba(255, 170, 60, 0.3);
    border-radius: 12px;

    background: rgba(255, 170, 60, 0.07);
    color: #ffcf8a;

    font-size: 13.5px;
    line-height: 1.7;
}

.rule-item {
    display: flex;
    gap: 18px;

    padding: 24px 0;

    border-bottom: 1px solid var(--border);
}

.rule-item:first-of-type {
    padding-top: 6px;
}

.rule-ref {
    flex: 0 0 auto;

    min-width: 44px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border-radius: 9px;

    background: var(--accent-soft);
    color: #ff7a82;

    font-size: 12px;
    font-weight: 800;
}

.rule-body h3 {
    font-size: 18px;
}

.rule-body > p {
    margin-top: 8px;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.rule-ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;

    display: grid;
    gap: 8px;
}

.rule-point {
    display: flex;
    gap: 10px;

    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.rule-point strong {
    flex: 0 0 auto;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.rule-point.allow strong {
    color: var(--green);
}

.rule-point.deny strong {
    color: var(--red);
}

.rule-example {
    display: flex;
    gap: 10px;

    margin-top: 6px;

    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.rule-example strong {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 12px;
}

/* -------------------------------------------------- Tabellen */

.law-group {
    margin: 30px 0 12px;
    font-size: 17px;
    color: var(--text);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 13px 16px;
    text-align: left;
    vertical-align: top;
}

.data-table thead th {
    background: var(--bg-3);
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    border-bottom: 1px solid var(--border);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:last-child {
    border-bottom: 0;
}

.data-table th[scope="row"] {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

.data-table td {
    color: var(--muted);
}

.data-table td.penalty {
    color: #ff9aa0;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

/* -------------------------------------------------- Discord CTA */

.discord-panel {
    margin-top: 52px;

    padding: clamp(28px, 4vw, 44px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;

    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: var(--radius-lg);

    background:
        radial-gradient(ellipse at 90% 10%, rgba(88, 101, 242, 0.16), transparent 55%),
        var(--bg-3);
}

.discord-text small {
    color: var(--discord);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.discord-text h2 {
    margin: 12px 0 12px;
    font-size: clamp(24px, 3.4vw, 34px);
    letter-spacing: -0.5px;
}

.discord-text p {
    max-width: 540px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

/* -------------------------------------------------- Whitelist form */

.whitelist-form {
    margin-top: 8px;

    padding: clamp(24px, 4vw, 38px);

    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);

    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

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

.form-field-full {
    grid-column: 1 / -1;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

input,
textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid var(--border-strong);
    border-radius: 10px;

    background: var(--bg-3);
    color: var(--text);

    font-family: var(--font-body);
    font-size: 14px;

    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
}

textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 58, 68, 0.18);
}

input.invalid,
textarea.invalid {
    border-color: var(--red);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.form-message {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
}

.form-message.success {
    color: var(--green);
}

.form-message.error {
    color: var(--red);
}

/* -------------------------------------------------- Statusseite */

.status-panel {
    max-width: 720px;
    display: grid;
    gap: 28px;
}

.status-wide .status-banner {
    font-size: clamp(20px, 3vw, 26px);
    padding: 18px;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.status-hint {
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.7;
    max-width: 620px;
}

/* -------------------------------------------------- Prosa (Rechtliches) */

.prose h2 {
    margin: 36px 0 14px;
    font-size: clamp(20px, 3vw, 26px);
}

.prose p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
    max-width: 780px;
}

.prose a {
    color: var(--accent);
}

.legal-note {
    margin-top: 40px;
    padding: 16px 18px;

    border: 1px solid rgba(224, 58, 68, 0.35);
    border-radius: 12px;

    background: var(--accent-soft);
    color: #ffb6ba;
    font-size: 13.5px;
    line-height: 1.7;
}

/* -------------------------------------------------- Empty state */

.empty-state {
    margin-top: 40px;
    padding: clamp(30px, 5vw, 54px);

    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);

    text-align: center;

    background: var(--bg-3);
}

.empty-icon {
    font-size: 44px;
    color: var(--accent);
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 22px;
}

.empty-state p {
    max-width: 460px;
    margin: 12px auto 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* -------------------------------------------------- Footer */

.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 52px clamp(16px, 6vw, 40px);

    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand .logo {
    font-size: 20px;
}

.footer-brand p {
    margin-top: 12px;
    color: var(--muted-2);
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: var(--text);
}

.footer-col a {
    display: block;
    margin-bottom: 10px;

    color: var(--muted);
    font-size: 14px;

    transition: color 0.18s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 22px clamp(16px, 6vw, 40px);

    border-top: 1px solid var(--border);

    color: var(--muted-2);
    font-size: 13px;
}

/* -------------------------------------------------- Toast */

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;

    max-width: min(360px, calc(100vw - 40px));

    padding: 13px 18px;

    border-radius: 12px;

    background: var(--surface-solid);
    border: 1px solid var(--border-strong);

    color: var(--text);
    font-size: 14px;
    font-weight: 600;

    box-shadow: var(--shadow);

    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;

    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-color: rgba(52, 209, 122, 0.5);
}

.toast.error {
    border-color: rgba(227, 52, 52, 0.5);
}

/* -------------------------------------------------- 404 */

.error-page .error-code {
    font-size: clamp(72px, 14vw, 150px);
    font-weight: 700;
    letter-spacing: -6px;
    line-height: 1;

    background: linear-gradient(135deg, #ff6a70, var(--accent-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-page h1 {
    margin: 16px 0 12px;
    font-size: clamp(26px, 4vw, 38px);
}

.error-page p {
    color: var(--muted);
    margin-bottom: 28px;
}

/* -------------------------------------------------- Responsive */

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .server-card {
        max-width: 560px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    nav,
    .nav-actions {
        display: none;
    }

    .navbar {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .mobile-button {
        display: flex;
    }

    .navbar.open nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        padding: 18px clamp(16px, 5vw, 56px) 24px;

        background: rgba(8, 9, 11, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);

        border-bottom: 1px solid var(--border);
    }

    .navbar.open nav a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .rule-tabs {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero-actions .btn-lg,
    .status-actions .btn-lg {
        flex: 1 1 100%;
    }

    .discord-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-pair {
        gap: 12px;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .form-footer .btn {
        width: 100%;
    }

    .rule-item {
        flex-direction: column;
        gap: 10px;
    }

    .data-table td.penalty {
        white-space: normal;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* -------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-logo {
        animation: none;
    }

    .rule-panel.active {
        animation: none;
    }

    .status-dot.online {
        animation: none;
    }

    .btn,
    .hub-card,
    .feature {
        transition: none;
    }
}

/* -------------------------------------------------- Auth (Phase 3) */

.auth-page {
    max-width: 720px;
    margin-inline: auto;
}

.auth-form {
    margin-top: 12px;
}

.field-hint {
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.5;
    margin: -2px 0 0;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    grid-column: 1 / -1;

    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.checkbox-field input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 2px 0 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-field a {
    color: var(--accent);
    text-decoration: underline;
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13.5px;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 700;
}

/* Benutzerbereich in der Kopfzeile */
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 2px;

    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.user-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

@media (max-width: 1080px) {
    .nav-actions {
        gap: 8px;
    }

    .user-chip {
        display: none;
    }
}

/* -------------------------------------------------- Whitelist-Status & Admin (Phase 4) */

.chip-open {
    background: rgba(52, 209, 122, 0.12);
    color: var(--green);
}

.chip-planning {
    background: rgba(255, 170, 60, 0.12);
    color: #ffb04d;
}

.chip-inreview {
    background: rgba(224, 58, 68, 0.12);
    color: #ff7a82;
}

.whitelist-status .page-head {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 34px) !important;
    background: var(--surface-solid);
}

.status-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

select {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid var(--border-strong);
    border-radius: 10px;

    background: var(--bg-3);
    color: var(--text);

    font-family: var(--font-body);
    font-size: 14px;
}

select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 58, 68, 0.18);
}

.section-title {
    margin: 34px 0 12px;
    font-size: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;

    padding: clamp(20px, 3vw, 28px);

    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);

    background: var(--surface-solid);
}

.detail-field p {
    margin: 4px 0 0;
    color: var(--text);
    word-break: break-word;
}

.notes-list {
    display: grid;
    gap: 12px;
}

.note-item {
    padding: 14px 16px;

    border: 1px solid var(--border-strong);
    border-radius: 12px;

    background: var(--surface-solid);
}

.note-item p {
    margin: 8px 0 0;
    color: var(--text);
    line-height: 1.6;
}

.table-empty {
    text-align: center;
    color: var(--muted-2);
    padding: 22px !important;
}

/* ------------------------------------------------ Forum */

.forum-categories {
    display: grid;
    gap: 14px;
}

.forum-category {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;

    padding: 20px 22px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: var(--bg-3);
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.forum-category:hover {
    border-color: var(--accent);
}

.forum-category.team {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong));
}

.forum-category-main h3 {
    margin: 0;
    font-size: 18px;
}

.forum-category-main p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.forum-category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    font-size: 13px;
    color: var(--muted-2);
}

.forum-team-note {
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--bg-3);
    color: var(--muted);
    font-size: 14px;
}

.forum-team-note a {
    color: var(--accent);
}

.forum-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.thread-list {
    display: grid;
    gap: 10px;
}

.thread-row {
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--bg-3);
    transition: border-color 0.18s ease;
}

.thread-row:hover {
    border-color: var(--accent);
}

.thread-row.pinned {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong));
}

.thread-link {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    color: var(--text);
}

.thread-main h3 {
    margin: 0;
    font-size: 16px;
}

.thread-meta,
.thread-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    font-size: 13px;
    color: var(--muted-2);
}

.thread-main .thread-meta {
    margin-top: 6px;
}

.thread-stats {
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.forum-login-hint {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-strong);
    color: var(--muted);
    font-size: 14px;
}

.forum-login-hint a {
    color: var(--accent);
}

.thread-replies {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.thread-post {
    padding: 20px 22px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: var(--bg-3);
}

.thread-post.op {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border-strong));
}

.thread-post.solution {
    border-color: color-mix(in srgb, var(--green) 45%, var(--border-strong));
}

.thread-post-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-strong);
}

.post-author {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: baseline;
}

.post-author strong {
    font-size: 15px;
}

.post-badges {
    display: flex;
    gap: 8px;
}

.thread-content.prose p {
    margin: 0 0 12px;
    color: var(--text);
}

.thread-content.prose p:last-child {
    margin-bottom: 0;
}

.thread-post-foot {
    display: grid;
    gap: 12px;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-strong);
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface-solid);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.like-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.like-icon {
    font-size: 14px;
    line-height: 1;
}

.like-label {
    font-size: 13px;
    color: var(--muted-2);
}

.btn-slim {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface-solid);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.btn-slim:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-slim.danger:hover {
    border-color: #e5484d;
    color: #e5484d;
}

.mod-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
}

.report-box {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface-solid);
}

.report-desc {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--muted);
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.deleted-note {
    color: var(--muted-2);
    font-style: italic;
}

/* ------------------------------------------- Benachrichtigungen & Admin */

.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--muted);
    transition: color 0.18s ease;
}

.notif-bell:hover {
    color: var(--accent);
}

.notif-icon {
    width: 20px;
    height: 20px;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.notif-head {
    margin-bottom: 8px;
}

.notif-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.notif-count {
    font-size: 13px;
    color: var(--muted);
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notif-item {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-solid);
}

.notif-unread {
    border-color: var(--accent);
}

.notif-type {
    align-self: flex-start;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-3);
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.notif-body {
    flex: 1 1 260px;
    min-width: 0;
}

.notif-title {
    margin: 0 0 4px;
    font-weight: 700;
}

.notif-text {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--muted);
}

.notif-link {
    font-size: 13px;
}

.notif-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.notif-date {
    font-size: 12px;
    color: var(--muted-2);
}

.maintenance-banner {
    padding: 10px 16px;
    background: color-mix(in srgb, var(--red) 18%, var(--bg-2));
    color: var(--text);
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid color-mix(in srgb, var(--red) 40%, var(--border-strong));
}

.user-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.user-search input[type="search"] {
    flex: 1 1 220px;
    min-width: 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.filter-tab {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.filter-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-tab.active {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, var(--bg-2));
    color: var(--accent);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 10px max(16px, calc((100% - 1200px) / 2));
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border);
}

.admin-tabs a {
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.admin-tabs a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.admin-tabs a.active {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, var(--bg-2));
    color: var(--accent);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
}

.admin-table thead th {
    background: var(--bg-3);
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:last-child {
    border-bottom: 0;
}

.admin-table td a {
    font-weight: 600;
}

.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: color-mix(in srgb, var(--green) 16%, var(--bg-2));
    color: var(--green);
}

.status-pending {
    background: color-mix(in srgb, var(--accent) 16%, var(--bg-2));
    color: var(--accent);
}

.status-banned {
    background: color-mix(in srgb, var(--red) 16%, var(--bg-2));
    color: var(--red);
}

.admin-detail {
    display: grid;
    gap: 20px;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form {
    max-width: 640px;
    padding: 18px 20px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface-solid);
}

.admin-form h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.admin-form .form-field select {
    width: 100%;
}

.notice-block {
    width: 100%;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    font-size: 13px;
}

.notice-block ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.btn-danger {
    background: linear-gradient(135deg, #c9363c, #a3242a);
    border-color: transparent;
    color: #fff;
}

.btn-danger:hover {
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(197, 48, 56, 0.35);
}

.cat-name {
    font-weight: 600;
}

.cat-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.checkbox-field input {
    width: auto;
}
