* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --card-bg: #2a2a2a;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --accent: #3498db;
}

/* Accessibility helpers */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1001;
}
.skip-link:focus {
    left: 20px;
    top: 20px;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Focus outlines for keyboard users */
a:focus, button:focus, .cta-button:focus, .copy-btn:focus, .nav-links a:focus {
    outline: 3px solid #FFD47A;
    outline-offset: 3px;
}

/* Improve contrast for primary color on dark backgrounds */
.info-card h3, .feature-card h3, .team-card .role {
    color: #1ef07b;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, sans-serif;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    height: 40px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.sky-text {
    background: linear-gradient(90deg, #FFD700, #FFC107, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s linear infinite;
}

.vance-text {
    background: linear-gradient(90deg, #FF8C00, #FF6B35, #FF8C00);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s linear infinite reverse;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.80) 100%), url('banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 20px 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    display: none;
}

@keyframes scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.server-ip {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: both;
}

.server-ip .label {
    font-size: 1rem;
    color: var(--text-gray);
    margin-right: 0.5rem;
}

.server-ip .ip {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 1rem;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5), 0 0 30px rgba(46, 204, 113, 0.2);
}

.server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease 0.6s;
    animation-fill-mode: both;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background-color: #e74c3c;
    box-shadow: 0 0 10px #e74c3c;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Info Section */
.info-section {
    padding: 110px 20px 80px;
    background-color: var(--dark-bg);
    position: relative;
    z-index: 2;
    scroll-margin-top: 80px;
    clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
    margin-top: -30px;
}

.info-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.info-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-card p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    padding: 110px 20px 80px;
    background-color: var(--darker-bg);
    scroll-margin-top: 80px;
    clip-path: polygon(0 0, 100% 30px, 100% 100%, 0 100%);
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-gray);
}

/* Team Section */
.team-section {
    padding: 80px 20px;
    background-color: var(--dark-bg);
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Team Page */
.team-page {
    padding: 100px 20px 80px;
    background-color: var(--darker-bg);
    min-height: 80vh;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 4rem;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.team-grid .team-card {
    width: 280px;
    max-width: 100%;
}

.team-card {
    background: linear-gradient(145deg, var(--card-bg), rgba(42, 42, 42, 0.8));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.5s ease;
    border: 1px solid rgba(46, 204, 113, 0.1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.4);
    border-color: rgba(46, 204, 113, 0.3);
}

.team-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 3D Minecraft Skin */
.team-avatar-3d {
    margin-bottom: 1.5rem;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.mc-skin-3d {
    height: 160px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: all 0.5s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.team-card:hover .mc-skin-3d {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 15px 40px rgba(46, 204, 113, 0.6));
}

.team-avatar .mc-skin {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.team-card:hover .mc-skin {
    transform: scale(1.1);
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.team-card:hover h3 {
    color: var(--primary-color);
}

.team-card .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.team-card:hover .role {
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.role-admin {
    color: #8B0000 !important;
}

.team-card:hover .role-admin {
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.team-card .description {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.team-card:hover .description {
    color: var(--text-light);
}

.team-since {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 0.8rem;
    font-style: italic;
    font-weight: 500;
}

.join-team {
    text-align: center;
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.join-team h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.join-team p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0.5rem;
    min-width: 280px;
    vertical-align: middle;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4), 0 0 20px rgba(46, 204, 113, 0.2);
}

.discord-button {
    background-color: #5865F2;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.discord-button:hover {
    background-color: #4752C4;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.5), 0 0 30px rgba(88, 101, 242, 0.2);
}

.discord-icon {
    width: 24px;
    height: 24px;
}

.secondary-button {
    background-color: var(--card-bg);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Discord Section */
.discord-section {
    padding: 110px 20px 80px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    text-align: center;
    clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
    margin-top: -30px;
    position: relative;
    z-index: 3;
}

.discord-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.discord-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.discord-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: white;
    color: #5865F2;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.discord-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 25px rgba(88, 101, 242, 0.4);
    background-color: #f0f0f0;
}

.discord-cta .discord-icon {
    width: 28px;
    height: 28px;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 2rem 20px;
    text-align: center;
    border-top: 1px solid var(--card-bg);
}

footer p {
    color: var(--text-gray);
    margin: 0.5rem 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Legal Pages */
.legal-page {
    padding: 100px 20px 80px;
    background-color: var(--darker-bg);
    min-height: 80vh;
}

.legal-content {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.legal-content h4 {
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.legal-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--text-gray);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Rules Page */
.rules-page {
    padding: 100px 20px 80px;
    background-color: var(--darker-bg);
    min-height: 80vh;
}

.rules-intro {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 2rem auto 3rem;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.rules-intro p {
    color: white;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.rules-section {
    max-width: 1100px;
    margin: 0 auto;
}

.rule-category {
    background: linear-gradient(145deg, var(--card-bg), rgba(42, 42, 42, 0.8));
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(46, 204, 113, 0.2);
    position: relative;
    overflow: hidden;
}

.rule-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent));
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    background: rgba(46, 204, 113, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin: -1rem -1rem 2rem -1rem;
}

.category-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.5));
}

.category-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(46, 204, 113, 0.3);
}

.rule-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 2px solid rgba(46, 204, 113, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-item:hover {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    transform: translateX(10px) translateY(-2px);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.2);
}

.rule-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 60px;
    text-align: center;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    flex-shrink: 0;
}

.rule-content h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.rule-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}

.rules-footer {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.rules-footer h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.rules-footer ul {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.rules-footer ul li {
    margin-bottom: 0.5rem;
}

.rules-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-color);
}

.rules-cta p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Scroll Animationen */
.scroll-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Aktiver Nav-Link */
.nav-links a {
    position: relative;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after,
.nav-links a:not(.active):hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.nav-links a.active::after {
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-bg);
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .server-ip .ip {
        font-size: 1.2rem;
    }

    .info-grid,
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}
