/* ===== Variablen & Reset ===== */
:root {
    --bg: #0a0612;
    --bg-2: #120a1f;
    --panel: rgba(24, 14, 38, 0.6);
    --orange: #ff8a3c;
    --pink: #ff2d78;
    --magenta: #d6259c;
    --blue: #4d7cff;
    --purple: #8b3dff;
    --text: #f3e9ff;
    --text-dim: #b9a9d0;
    --border: rgba(255, 45, 120, 0.18);
    --grad: linear-gradient(100deg, var(--orange), var(--pink) 45%, var(--blue));
    --grad-soft: linear-gradient(135deg, rgba(255,138,60,0.15), rgba(255,45,120,0.12), rgba(77,124,255,0.15));
    --shadow-glow: 0 0 40px rgba(255, 45, 120, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Hintergrund ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(139, 61, 255, 0.25), transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(77, 124, 255, 0.18), transparent 50%),
        radial-gradient(ellipse at 0% 60%, rgba(255, 45, 120, 0.18), transparent 50%),
        var(--bg);
}

.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 45, 120, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 124, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 80%);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 0 55px rgba(255, 45, 120, 0.6); filter: brightness(1.1); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--pink); box-shadow: 0 0 25px rgba(255, 45, 120, 0.3); }

.btn-discord {
    background: #5865F2;
    color: #fff;
}
.btn-discord:hover { box-shadow: 0 0 30px rgba(88, 101, 242, 0.6); }

.btn-copy {
    background: var(--grad);
    color: #fff;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
    background: rgba(10, 6, 18, 0.85);
    backdrop-filter: blur(14px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 1px;
}
.nav-logo img { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 0 18px rgba(255, 45, 120, 0.5); }
.nav-logo strong {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 34px;
    margin-left: auto;
}
.nav-links a {
    font-weight: 600;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    position: relative;
    transition: color 0.2s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--grad);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 10px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
}
.hero-content { max-width: 820px; animation: fadeUp 1s ease both; }
.hero-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 28px;
    border-radius: 28px;
    box-shadow: 0 0 60px rgba(255, 45, 120, 0.55);
    animation: float 5s ease-in-out infinite;
}
.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: 2px;
}
.hero-title span {
    display: block;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 30px rgba(255, 45, 120, 0.5));
}
.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 600;
    color: var(--text);
    margin-top: 18px;
    letter-spacing: 1px;
}
.hero-text {
    color: var(--text-dim);
    font-size: 1.15rem;
    margin-top: 14px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 34px;
}
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--panel);
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-dim);
    backdrop-filter: blur(8px);
}
.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2fe07a;
    box-shadow: 0 0 12px #2fe07a;
    animation: pulse 2s infinite;
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid var(--border);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.scroll-indicator span {
    width: 5px;
    height: 8px;
    background: var(--pink);
    border-radius: 4px;
    animation: scrollDot 1.6s infinite;
}

/* ===== Statistiken ===== */
.stats {
    max-width: 1100px;
    margin: -40px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}
.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 18px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--pink); }
.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1.15;
    letter-spacing: 2px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 6px;
}

/* ===== Sektionen allgemein ===== */
section { padding: 90px 24px; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 55px; }
.section-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    color: var(--pink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.82rem;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.15;
}
.section-title span {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Über uns ===== */
.about-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}
.about-text p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 18px; }
.about-list { margin-top: 24px; display: grid; gap: 14px; }
.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.05rem;
}
.about-list li::before {
    content: '';
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--grad);
    box-shadow: 0 0 12px rgba(255, 45, 120, 0.4);
}
.about-card {
    position: relative;
    border-radius: 24px;
    padding: 40px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
}
.about-card img {
    width: 100%;
    max-width: 280px;
    border-radius: 24px;
    box-shadow: 0 0 50px rgba(255, 45, 120, 0.4);
    animation: float 6s ease-in-out infinite;
}

/* ===== Features ===== */
.features-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px 28px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--pink); box-shadow: 0 20px 50px rgba(255, 45, 120, 0.15); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 14px rgba(255, 45, 120, 0.5));
}
.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.feature-card p { color: var(--text-dim); }

/* ===== Galerie ===== */
.gallery-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
}
.gallery-item {
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.35s ease;
}
.gallery-item span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: 0.35s ease;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,6,18,0.85), transparent 60%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item:hover span { transform: translateY(0); opacity: 1; }
.gallery-item:hover::after { opacity: 1; }
.g1 { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, #ff2d78, #8b3dff); }
.g2 { background: linear-gradient(135deg, #4d7cff, #8b3dff); }
.g3 { background: linear-gradient(135deg, #ff8a3c, #ff2d78); }
.g4 { background: linear-gradient(135deg, #d6259c, #4d7cff); }
.g5 { grid-column: span 2; background: linear-gradient(135deg, #8b3dff, #ff2d78); }

/* ===== Beitreten ===== */
.join { position: relative; }
.join-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 60px 40px;
    backdrop-filter: blur(12px);
}
.join-sub { color: var(--text-dim); font-size: 1.1rem; margin-top: 14px; }
.join-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}
.step {
    text-align: center;
    padding: 28px 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-6px); border-color: var(--pink); }
.step-num {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.step h4 { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); }

.join-connect { display: grid; gap: 24px; }
.connect-box {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
}
.connect-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.connect-box code {
    font-family: 'Rajdhani', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1px;
}
.join-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px;
    background: rgba(10, 6, 18, 0.6);
}
.footer-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 0 18px rgba(255, 45, 120, 0.4); }
.footer-brand strong {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer-brand p { color: var(--text-dim); font-size: 0.95rem; }
.footer-links, .footer-social { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a, .footer-social a {
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}
.footer-links a:hover, .footer-social a:hover { color: var(--pink); }
.footer-bottom {
    max-width: 1140px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
}

/* ===== Animationen ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}
@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-card { order: -1; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 180px); }
    .g1 { grid-column: span 2; grid-row: span 1; }
    .g5 { grid-column: span 2; }
}
@media (max-width: 720px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 320px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        background: rgba(10, 6, 18, 0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        transition: right 0.4s ease;
        margin: 0;
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.3rem; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; z-index: 1100; }
    .join-steps { grid-template-columns: 1fr; }
    .join-inner { padding: 40px 22px; }
    section { padding: 70px 20px; }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr; }
    .connect-box { flex-direction: column; }
}

/* ===== Regelwerk / Fraktionsregelwerk ===== */
/* Eigene Seiten: Abstand unter der fixen Navigation. */
.rules-page { padding-top: 140px; min-height: 100vh; }
.rules-page-nav {
    max-width: 900px;
    margin: 32px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.rules-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 44px;
    backdrop-filter: blur(12px);
}
.rules-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin: 28px 0 14px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rules-content h3:first-child { margin-top: 0; }
.rules-content ul { display: grid; gap: 12px; padding-left: 4px; }
.rules-content li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dim);
    font-size: 1.05rem;
}
.rules-content li::before {
    content: '';
    width: 16px;
    height: 16px;
    margin-top: 5px;
    flex-shrink: 0;
    border-radius: 5px;
    background: var(--grad);
    box-shadow: 0 0 10px rgba(255, 45, 120, 0.4);
}
.rules-content p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 14px; }
.rules-content strong { color: var(--text); }
.rules-loading { text-align: center; color: var(--text-dim); }

/* Versteckter Admin-Zugang im Footer */
.admin-dot {
    display: inline-block;
    margin-left: 10px;
    color: var(--text-dim);
    opacity: 0.25;
    font-size: 1.3rem;
    line-height: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.admin-dot:hover { opacity: 1; color: var(--pink); }

/* ===== Admin / Login-Seite ===== */
.admin-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 40px;
}
.admin-back {
    position: fixed;
    top: 24px;
    left: 24px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    z-index: 10;
}
.admin-back:hover { color: var(--pink); }

.admin-login {
    width: 100%;
    max-width: 440px;
    padding: 0;
}
.admin-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 44px 36px;
    text-align: center;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.admin-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 45, 120, 0.5);
}
.admin-card h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7rem;
    margin-bottom: 8px;
}
.admin-sub { color: var(--text-dim); margin-bottom: 28px; }
.admin-full { width: 100%; }

.admin-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.admin-divider::before,
.admin-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.admin-form { display: grid; gap: 14px; }
.admin-form input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}
.admin-form input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 45, 120, 0.15); }
.admin-error {
    margin-top: 18px;
    color: #ff6b8a;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Editor */
.admin-editor {
    width: 100%;
    max-width: 1100px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(14px);
}
.admin-editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.admin-user { font-family: 'Orbitron', sans-serif; font-weight: 700; }
.admin-small { padding: 9px 18px; font-size: 0.85rem; }

.admin-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab {
    padding: 11px 22px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.admin-tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.admin-hint { color: var(--text-dim); font-size: 0.88rem; }

/* Visueller Regel-Baukasten */
.rule-builder { display: grid; gap: 18px; margin-bottom: 18px; }
.rule-cat {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}
.rule-cat-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.cat-title {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}
.cat-title:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 45, 120, 0.15); }

.rule-list { display: grid; gap: 10px; margin-bottom: 14px; }
.rule-row { display: flex; gap: 10px; align-items: center; }
.rule-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}
.rule-input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 45, 120, 0.15); }
.rule-del {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: rgba(255, 45, 120, 0.08);
    color: #ff6b8a;
    border-radius: 10px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rule-del:hover { background: var(--pink); color: #fff; border-color: transparent; }
.builder-add-rule { font-size: 0.82rem; }
.builder-add-cat { display: inline-block; }

.admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}
.admin-saved { color: #2fe07a; font-weight: 700; }

@media (max-width: 720px) {
    .rules-content { padding: 30px 22px; }
}
