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

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

#card-element {
    width: 100%;
    min-height: 40px;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(255, 0, 35, 0.1);
}

.nav-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    padding-right: 10vw;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff0023;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 10px #ff0023;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ff0023;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff0023;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff0023, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #cccccc;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #ff0023, #ff4757);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 35, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ff0023;
    border: 2px solid #ff0023;
}

.btn-secondary:hover {
    background: #ff0023;
    color: white;
    transform: translateY(-2px);
}

/* Server IP Box */
.server-ip {
    background: rgba(255, 0, 35, 0.1);
    border: 2px solid #ff0023;
    border-radius: 10px;
    padding: 1rem 2rem;
    margin: 2rem auto;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.server-ip h3 {
    color: #ff0023;
    margin-bottom: 0.5rem;
}

.server-ip p {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

/* Sections */
section {
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ff0023;
}

/* Server Cards */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.server-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 35, 0.2);
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 35, 0.2);
    border-color: #ff0023;
}

.server-card h3 {
    color: #ff0023;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.server-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status.infos {
    margin-left: 10px;
    color: #ff0023;
    border: 1px solid #ff0023;
}

.status.infos a {
    color: #ff0023;
    text-decoration: none;
}

.status.online {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid #2ed573;
}

.status.coming-soon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

/* Rules Section - Verbesserte Responsive Darstellung */
.rules-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rules-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 0, 35, 0.2);
    min-height: 400px;
}

.rules-column h3 {
    color: #ff0023;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0;
    border-radius: 10px;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    background: rgba(255, 255, 255, 0.03);
    margin: 0.6rem 0;
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 3px solid #ff0023;
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.rules-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.rules-list.basic li {
    border-left-color: #ff0023;
}

.rules-list.allowed li {
    border-left-color: #2ed573;
}

.rules-list.forbidden li {
    border-left-color: #ff4757;
}

.allowed-icon {
    color: #2ed573;
    margin-right: 0.5rem;
    font-weight: bold;
}

.forbidden-icon {
    color: #ff4757;
    margin-right: 0.5rem;
    font-weight: bold;
}

.rules-note {
    background: rgba(255, 0, 35, 0.1);
    border: 1px solid #ff0023;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    grid-column: 1 / -1;
}

.rules-note a {
    color: #ff0023;
    text-decoration: none;
    font-weight: 600;
}

.rules-note a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(255, 0, 35, 0.5);
}

/* Impressum Section */
.impressum {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.impressum-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 0, 35, 0.2);
}

.impressum h3 {
    color: #ff0023;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.impressum p {
    margin-bottom: 0.8rem;
    color: #cccccc;
}

.impressum strong {
    color: #ffffff;
}

.impressum a {
    color: #ff0023;
    text-decoration: none;
}

.impressum a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 0, 35, 0.2);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ff0023;
}

/* Registrierungsformular */
.registration-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 0, 35, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.registration-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.registration-form label {
    display: block;
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.registration-form input[type="text"],
.registration-form input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 35, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.registration-form input[type="text"]:focus,
.registration-form input[type="email"]:focus {
    outline: none;
    border-color: #ff0023;
    box-shadow: 0 0 10px rgba(255, 0, 35, 0.3);
}

.registration-form .payment-placeholder {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 0, 35, 0.4);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #aaaaaa;
}

.registration-form .payment-placeholder p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}


.registration-form .checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.registration-form .checkbox input[type="checkbox"] {
    width: auto;
    accent-color: #ff0023;
}

.registration-form .checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.registration-form .checkbox a {
    color: #ff0023;
    text-decoration: none;
}

.registration-form .checkbox a:hover {
    text-decoration: underline;
}

.registration-form button[type="submit"] {
    width: 100%;
}

/* NEU: Auth Section Styles */
.auth-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto; /* Verschiebt es nach rechts vor das mobile Menü-Icon */
}

.user-info { /* Für den Fall, dass du später dynamisch umschaltest */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e0e0e0;
}

.avatar { /* Für den Fall, dass du später dynamisch umschaltest */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ff0023;
}

.username { /* Für den Fall, dass du später dynamisch umschaltest */
  font-weight: 500;
  font-size: 0.9rem;
}

.btn-logout { /* Für den Fall, dass du später dynamisch umschaltest */
  background-color: transparent;
  color: #ff4757;
  border: 1px solid #ff4757;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background-color: #ff4757;
  color: white;
}

.btn-discord-login {
  background-color: #5865F2;
  color: white;
  padding: 8px 15px;
  font-size: 0.9rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-discord-login img {
  margin-right: 8px;
}

.btn-discord-login:hover {
  background-color: #4752C4;
}
/* ENDE NEU: Auth Section Styles */


/* Logout Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Higher than navbar */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s; /* Delay visibility transition */
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal-content {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #cccccc;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}
/* END Logout Confirmation Modal */


/* Cookie Banner */
/* Cookie Banner Overlay & Blockierung */
.cookie-banner {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    background: none;
    opacity: 1;
    transition: opacity 0.3s;
}
.cookie-banner a {
    color: #c82333;
}
.cookie-banner.hide {
    opacity: 0;
    pointer-events: none;
}
.cookie-banner-overlay {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20,20,20,0.85);
    z-index: 1;
    pointer-events: all;
    transition: background 0.3s;
}
.cookie-banner-center {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}
.cookie-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2.2rem 2.5rem 2rem 2.5rem;
    background: rgba(40,40,40,0.98);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(255,0,35,0.18);
    border: 2px solid #ff0023;
    min-width: 320px;
    max-width: 90vw;
    animation: cookieBannerIn 0.7s cubic-bezier(.4,2,.6,1);
}
.cookie-banner-text {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 0.5rem;
}
.cookie-banner-btn {
    background: linear-gradient(45deg, #ff0023, #ff4757);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 12px 38px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255,0,35,0.10);
    transition: background 0.2s, transform 0.2s;
    outline: none;
    margin-top: 0.5rem;
}
.cookie-banner-btn:hover {
    background: #ff0023;
    transform: translateY(-2px) scale(1.04);
}
@keyframes cookieBannerIn {
    0% { opacity: 0; transform: scale(0.9); }
    80% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}
.cookies-blocked *:not(.cookie-banner):not(.cookie-banner *) {
    pointer-events: none !important;
    user-select: none !important;
    filter: none !important;
}
.cookies-blocked {
    overflow: hidden !important;
}
/* Overlay für Cookie-Blockierung */
#cookieBlockerOverlay {
    display: block;
}
.cookies-blocked.hide #cookieBlockerOverlay {
    display: none !important;
}
.cookies-blocked.hide {
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.cookies-blocked.show {
    overflow: hidden !important;
    pointer-events: all !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

@media (max-width: 600px) {
    .cookie-banner-content {
        min-width: 0;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .cookie-banner-text {
        font-size: 1rem;
    }
    .cookie-banner-center {
        align-items: flex-end;
        height: 100vh;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */
@media (min-width: 1200px) {
    .rules-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rules-column:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 968px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1400px) {
    .nav-links {
        /* display: none; MODIFIED BELOW */
        display: flex; /* Ensure it's a flex container for children */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        /* padding: 1rem 0; MODIFIED BELOW for animation */
        text-align: center;
        gap: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);

        /* --- Animation Properties: Initial (closed) state --- */
        max-height: 0;
        opacity: 0;
        overflow: hidden; /* Crucial for max-height transition */
        padding-top: 0;   /* No vertical padding when closed */
        padding-bottom: 0;/* No vertical padding when closed */
        /* Apply transitions */
        transition: max-height 0.35s ease-in-out,
                    opacity 0.3s ease-in-out,
                    padding-top 0.35s ease-in-out,
                    padding-bottom 0.35s ease-in-out;
    }

    .nav-links.open {
        /* display: flex; -- This is now default for .nav-links in this media query */
        /* --- Animation Properties: Target (open) state --- */
        max-height: 400px; /* Adjusted for content: 7 links * ~2.5rem + 2rem padding = ~19.5rem = ~312px. 400px is safe. */
        opacity: 1;
        padding-top: 1rem;   /* Restore vertical padding when open */
        padding-bottom: 1rem;/* Restore vertical padding when open */
    }

    .mobile-menu {
        display: flex;
        order: 2; /* Mobile menu icon to the very right */
    }

    /* Anpassung für Auth Section auf Mobile */
    .auth-section {
        order: 1; /* Auth section before mobile menu icon */
        /* margin-left: auto; already there, good */
        padding-right: 10px; /* Abstand zum mobilen Menü-Icon */
    }
}

@media (max-width: 480px) {
    .rules-container {
        padding: 0 1rem;
    }

    .rules-column {
        padding: 1rem;
    }

    .rules-column h3 {
        font-size: 1.1rem;
    }

    .rules-list li {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* --- Profil Dropdown Menü --- */
.profile-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 170px;
    background: rgba(30,30,30,0.98);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(255,0,35,0.18);
    border: 1.5px solid #ff0023;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.25s cubic-bezier(.4,2,.6,1), transform 0.25s cubic-bezier(.4,2,.6,1);
    z-index: 1200;
}
.profile-dropdown.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}
.profile-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}
.profile-dropdown li {
    padding: 0.9rem 1.5rem;
    color: #fff;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.18s, color 0.18s;
    border: none;
    text-align: left;
    border-radius: 8px;
    margin: 0 0.3rem;
}
.profile-dropdown li:hover {
    background: #ff0023;
    color: #fff;
}
.profile-dropdown .logout-link {
    color: #ff4757;
    font-weight: 600;
}
.profile-dropdown .logout-link:hover {
    background: #ff4757;
    color: #fff;
}
.user-info {
    position: relative;
}
@media (max-width: 600px) {
    .profile-dropdown {
        right: auto;
        left: 0;
        min-width: 140px;
    }
}
/* --- Ende Profil Dropdown Menü --- */
