:root {
    --primary-color: #e53935; /* Red */
    --secondary-color: #4CAF50; /* Green */
    --accent-color: #8BC34A; /* Light Green */
    --dark-bg: #1e1e1e;
    --darker-bg: #121212;
    --light-text: #ffffff;
    --light-gray: #cccccc;
    --card-bg: rgba(40, 40, 40, 0.8);
    --header-bg: rgba(30, 30, 30, 0.95);
    --rebirth-red: #e53935; /* Red for "The Rebirth" */
    --network-green: #4CAF50; /* Green for "Network" */
    --nav-width: 58px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--darker-bg);
    background-image: url('/images/Serenity.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    overflow-x: hidden;
    padding-left: var(--nav-width); /* Raum für die seitliche Navigation */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Höher als die Seitennavigation */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo h1 .rebirth {
    color: var(--rebirth-red);
    text-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
}

.logo h1 .network {
    color: var(--network-green);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 10px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    background: rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(30, 30, 46, 0.9));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/Serenity.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 30px;
    border-radius: 15px;
    background-color: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-text);
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

.hero h3 { 
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero h3 .rebirth { 
    color: var(--rebirth-red);
    text-shadow: 0 0 15px rgba(229, 57, 53, 0.7);
}

.hero h3 .network { 
    color: var(--network-green);
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.7);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--light-gray);
}

.server-address {
    margin: 30px 0;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e74c3c;
}

.server-address h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.ip {
    color: var(--accent-color);
    font-weight: bold;
    letter-spacing: 1px;
}

.server-status-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 5px;
}

.status-label {
    font-weight: 600;
    color: var(--light-gray);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #f39c12; /* Yellow for loading */
}

.status-dot.online {
    background-color: #2ecc71; /* Green for online */
    box-shadow: 0 0 8px #2ecc71;
}

.status-dot.offline {
    background-color: #e74c3c; /* Red for offline */
    box-shadow: 0 0 8px #e74c3c;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--rebirth-red);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: #f44336;
}

.btn:nth-of-type(even) {
    background-color: var(--network-green);
}

.btn:nth-of-type(even):hover {
    background-color: #5cb85c;
}

.btn.discord {
    background-color: #5865F2;
}

.btn.discord:hover {
    background-color: #7289da;
}

.copy-button {
    background-color: var(--network-green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.copy-button:hover {
    background-color: #5cb85c;
    transform: translateY(-2px);
}

/* Server Info Section */
.server-info, .features, .team-section, .community {
    padding: 100px 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.server-info::before, .features::before, .team-section::before, .community::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.05;
    pointer-events: none;
}

.server-info h2, .features h2, .team-section h2, .community h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--rebirth-red);
    position: relative;
    padding-bottom: 15px;
}

.server-info h2::after, .features h2::after, .team-section h2::after, .community h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--rebirth-red), var(--network-green));
}

.server-info p, .features p, .team-section p, .community p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--light-gray);
    font-size: 1.2rem;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.server-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.server-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--rebirth-red);
}

.server-card:nth-child(even) .server-icon {
    color: var(--network-green);
}

.server-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.server-card p {
    color: var(--light-gray);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Features Section */
.features {
    background-color: var(--darker-bg);
}

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

.feature {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--network-green);
}

.feature:nth-child(odd) .feature-icon {
    color: var(--rebirth-red);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.feature p {
    color: var(--light-gray);
    font-size: 1rem;
    margin-bottom: 0;
    text-align: center;
}

/* Community Section */
.community {
    background-color: var(--dark-bg);
}

.community-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.community-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.community-card.discord {
    border-color: #5865F2;
}

.community-card.teamspeak {
    border-color: #2980b9;
}

.community-card.discord:hover {
    background-color: rgba(88, 101, 242, 0.2);
}

.community-card.teamspeak:hover {
    background-color: rgba(41, 128, 185, 0.2);
}

.community-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.community-card.discord .community-icon {
    color: #5865F2;
}

.community-card.teamspeak .community-icon {
    color: #2980b9;
}

.community-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

.community-card p {
    color: var(--light-gray);
    margin-bottom: 15px;
    font-size: 1rem;
}

.community-card .link {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--light-text);
    font-family: monospace;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Team Section */
.team-section {
    background-color: var(--darker-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.member-avatar.admin {
    background-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

.member-avatar.mod {
    background-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.member-avatar.dev {
    background-color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.member-avatar::before {
    content: "\f007";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
}

.member-avatar.admin::before {
    content: "\f509";
}

.member-avatar.mod::before {
    content: "\f3ed";
}

.member-avatar.dev::before {
    content: "\f121";
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

.team-member p {
    color: var(--light-gray);
    font-size: 1rem;
    margin-bottom: 0;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--light-gray);
    margin-bottom: 0;
}

.footer-links h3, .footer-social h3, .footer-pages h3 {
    color: var(--light-text);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-social h3::after, .footer-pages h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul, .footer-pages ul {
    list-style: none;
}

.footer-links ul li, .footer-pages ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-pages ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover, .footer-pages ul li a:hover {
    color: var(--primary-color);
}

.footer-pages ul li a {
    position: relative;
    padding-left: 18px;
}

.footer-pages ul li a::before {
    content: '\f15c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    font-size: 0.9rem;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons a:nth-child(1):hover {
    background-color: #5865F2;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.social-icons a:nth-child(2):hover {
    background-color: #2980b9;
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    left: 0;
    top: 80px; /* Platz für den Header lassen */
    height: calc(100% - 80px); /* Höhe anpassen, um Header zu berücksichtigen */
    width: var(--nav-width);
    background-color: var(--header-bg); /* Gleiche Farbe wie Header */
    z-index: 999; /* Niedriger als Header (1000) */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transition: width 0.3s ease;
    backdrop-filter: blur(10px); /* Wie beim Header */
}

.side-nav:hover {
    width: 210px;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.side-nav li {
    width: 100%;
    position: relative;
    margin: 8px 0;
}

.side-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
}

.side-nav a:hover {
    background-color: rgba(229, 57, 53, 0.4);
    color: white;
    border-left: 3px solid var(--rebirth-red);
}

.side-nav a::before {
    content: '•';
    display: inline-block;
    margin-right: 28px;
    font-size: 30px;
    color: var(--rebirth-red);
    transition: all 0.3s;
}

.side-nav a:hover::before {
    color: var(--network-green);
    transform: scale(1.2);
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .server-grid, .features-grid, .team-grid, .community-links {
        grid-template-columns: 1fr;
    }
    
    .server-info, .features, .team-section, .community {
        padding: 60px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.server-icon, .feature-icon, .community-icon {
    animation: float 3s ease-in-out infinite;
}

/* Tooltip for copied text */
.tooltip {
    position: fixed;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
}