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

:root {
    --primary-color: #ff4d4d;
    --secondary-color: #333;
    --accent-color: #ffd700;
    --text-color: #333;
    --light-bg: #f8f8f8;
    --dark-bg: #222;
    --gradient: linear-gradient(135deg, #ff4d4d, #ff6b6b);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}


header {
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.discord-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #7289da;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 0;
}

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

.connect-button {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.connect-button:hover {
    background-color: #ff3333;
    transform: translateY(-2px);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0;
    line-height: 0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .main-nav {
        padding: 0.5rem 2%;
    }
    
    #home {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 80px;
    }
    
    .hero-content {
        padding: 0 1rem;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    #features h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .server-stats {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    #features h2,
    #team h2,
    .join-steps h2 {
        font-size: 1.8rem;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .social-links a {
        font-size: 1.5rem;
    }
}

@media (max-width: 412px) {
    #home {
        padding-top: 60px;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        padding: 0 0.5rem;
    }
}

#home {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content h1, .hero-content p {
    color: #fff;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.5s backwards;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 1s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.6);
}

.server-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease 1.5s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1rem;
    color: #fff;
    opacity: 0.8;
}


#features {
    padding: 8rem 2rem;
    background-color: #fff;
    position: relative;
}

#features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    z-index: 0;
}

#features h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

#features h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 3.5rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}


#rules {
    padding: 8rem 2rem;
    background-color: var(--light-bg);
}

#rules h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

#rules h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.rule-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rule-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.rule-card p {
    color: #666;
    line-height: 1.8;
}


#team {
    padding: 8rem 2rem;
    background-color: #fff;
}

#team h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

#team h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

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

.team-member {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    margin: 1rem 0 0.5rem;
    color: var(--secondary-color);
}

.team-member p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}


footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 5rem 2rem 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.8rem;
    transition: all 0.3s ease;
    color: #fff;
}

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

.social-links a:hover .fa-discord {
    color: #7289da;
    text-shadow: 0 0 10px rgba(114, 137, 218, 0.5);
}

.social-links a:hover .fa-youtube {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.author-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.author-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.author-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

.author-link:hover::after {
    width: 100%;
}

.footer-bottom a {
    color: #7289da;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-bottom a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom a i {
    font-size: 1.2rem;
    color: #fff;
    padding: (214, 11, 11)5rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(114, 137, 218, 0.3);
}

.footer-bottom a:hover i {
    color: #7289da;
    box-shadow: 0 4px 12px rgba(114, 137, 218, 0.5);
}

.footer-bottom a:active i {
    transform: scale(0.95) rotate(-8deg);
    box-shadow: 0 2px 4px rgba(114, 137, 218, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.join-steps {
    padding: 8rem 2rem;
    background-color: var(--light-bg);
    position: relative;
}


.join-steps h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.join-steps h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-card p {
    color: #666;
    margin-bottom: 2rem;
}

.step-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
}

.animate {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card.animate {
    transition-delay: calc(0.2s * var(--order, 1));
}

.team-member.animate {
    transition-delay: calc(0.2s * var(--order, 1));
}

.step-card.animate {
    transition-delay: calc(0.2s * var(--order, 1));
}

.hero-content.animate {
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content.show {
    transform: translateY(0) scale(1);
}

.server-stats.animate {
    transform: translateY(30px);
    transition-delay: 0.5s;
}

.feature-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-member {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.team-member:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.step-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-button,
.discord-button,
.step-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.cta-button:hover,
.discord-button:hover,
.step-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 77, 77, 0.4);
}

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

.hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.feature-card,
.team-member,
.step-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

header {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
    background-color: rgba(0, 0, 0, 0.98);
}


.online-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff4444;
    position: relative;
}

.status-indicator.online {
    background-color: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.status-indicator.offline {
    background-color: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.online-label {
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.online-count {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.dysenic-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
  gap: 16px;
  margin-top: 60px;
}

.letter {
  background: #222;
  color: #fff;
  font-size: 7vw;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  border-radius: 24px;
  width: 8vw;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
  box-shadow: 0 2px 16px #0004;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.8);
}

.letter.special {
  background: linear-gradient(135deg, #ff006a 0%, #ffb86c 100%);
  color: #fff;
  box-shadow: 0 0 40px #ff006a88;
}

.letter[data-bg] {
  background-image: url(''); 
}

.letter:hover {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 0 40px #fff3;
  filter: grayscale(0) brightness(1);
  z-index: 2;
}

.letter .start-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #ff006a;
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: bold;
  font-size: 1.2vw;
  cursor: pointer;
  box-shadow: 0 2px 12px #ff006a55;
  transition: background 0.2s, color 0.2s;
}
.letter .start-btn:hover {
  background: #ff006a;
  color: #fff;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 180%;
    height: 180%;
    background-image: url('/bilder/hintergrund.png');
    background-size: contain;
    background-position: center;
    size: 100px;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
    transform: translate(-50%, -50%);
    animation: fadeIn 1s ease-in-out;
    animation-fill-mode: forwards;
    animation-duration: 1s;
}