@import url('https://fonts.cdnfonts.com/css/akrobat');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

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

:root {
    --primary-color: #00A8FF;
    --primary-dark: #0077FF;
    --primary-light: #4CC2FF;
    --secondary-color: #C44CFF;
    --accent-color: #FF2D9A;
    --bg-dark: #0B0B0F;
    --bg-darker: #05070D;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.78);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(0, 168, 255, 0.45);
    --primary-rgb: 0, 168, 255;
    --secondary-rgb: 196, 76, 255;
    --accent-rgb: 255, 45, 154;
}

body {
    background: radial-gradient(circle at top, rgba(var(--secondary-rgb), 0.08), transparent 35%), linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: 'Rajdhani', 'Akrobat', sans-serif;
    color: var(--text-primary);
}

::selection {
    background: rgba(var(--accent-rgb), 0.35);
    color: var(--text-primary);
}

/* Animated Background */
#animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0.4;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Advanced Particle Shapes */
.advanced-particle {
    position: absolute;
    background: rgba(var(--primary-rgb), 0.2);
    animation: advancedFloat linear infinite;
    opacity: 0.3;
}

.particle-circle {
    border-radius: 50%;
}

.particle-square {
    border-radius: 2px;
    transform: rotate(45deg);
}

.particle-triangle {
    width: 0;
    height: 0;
    background: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 8px solid var(--particle-color, var(--primary-color));
    box-shadow: none;
}

.particle-star {
    background: none;
    position: relative;
}

.particle-star::before,
.particle-star::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 6px solid var(--particle-color, var(--primary-color));
}

.particle-star::before {
    transform: rotate(35deg);
    left: -3px;
}

.particle-star::after {
    transform: rotate(-35deg);
    right: -3px;
}

@keyframes advancedFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) translateX(calc(var(--rotation, 0deg) * 0.1)) rotate(180deg) scale(1.2);
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) translateX(calc(var(--rotation, 0deg) * 0.2)) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Morphing Blobs */
.morphing-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: radial-gradient(circle, 
        rgba(var(--primary-rgb), 0.2), 
        rgba(var(--secondary-rgb), 0.18), 
        transparent);
    filter: blur(40px);
    opacity: 0.4;
    animation: morphBlob 20s ease-in-out infinite;
    animation-delay: calc(var(--blob-index, 0) * 6s);
    z-index: 1;
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0) scale(1);
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: translate(20px, 20px) scale(1.05);
    }
}


/* Glitch Effect */
.glitch-active {
    animation: glitch 0.3s;
    position: relative;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        text-shadow: 0 0 30px var(--glow-color);
    }
    10% {
        transform: translate(-2px, 2px);
        text-shadow: -2px 2px 0 rgba(var(--accent-rgb), 0.8), 2px -2px 0 rgba(var(--secondary-rgb), 0.8);
        clip-path: inset(20% 0 60% 0);
    }
    20% {
        transform: translate(2px, -2px);
        text-shadow: 2px -2px 0 rgba(var(--accent-rgb), 0.8), -2px 2px 0 rgba(var(--secondary-rgb), 0.8);
        clip-path: inset(60% 0 20% 0);
    }
    30% {
        transform: translate(-2px, -2px);
        text-shadow: -2px -2px 0 rgba(var(--accent-rgb), 0.8), 2px 2px 0 rgba(var(--secondary-rgb), 0.8);
        clip-path: inset(40% 0 40% 0);
    }
    40% {
        transform: translate(2px, 2px);
        text-shadow: 2px 2px 0 rgba(var(--accent-rgb), 0.8), -2px -2px 0 rgba(var(--secondary-rgb), 0.8);
        clip-path: inset(10% 0 90% 0);
    }
    50% {
        transform: translate(-1px, 1px);
        text-shadow: -1px 1px 0 rgba(var(--accent-rgb), 0.8), 1px -1px 0 rgba(var(--secondary-rgb), 0.8);
    }
    60% {
        transform: translate(1px, -1px);
        text-shadow: 1px -1px 0 rgba(var(--accent-rgb), 0.8), -1px 1px 0 rgba(var(--secondary-rgb), 0.8);
    }
    70% {
        transform: translate(-1px, -1px);
        text-shadow: -1px -1px 0 rgba(var(--accent-rgb), 0.8), 1px 1px 0 rgba(var(--secondary-rgb), 0.8);
    }
    80% {
        transform: translate(1px, 1px);
        text-shadow: 1px 1px 0 rgba(var(--accent-rgb), 0.8), -1px -1px 0 rgba(var(--secondary-rgb), 0.8);
    }
    90% {
        transform: translate(0);
        text-shadow: 0 0 30px var(--glow-color);
    }
}

/* Text Morphing */
@keyframes textMorph {
    0%, 100% {
        transform: scale(1) skew(0deg);
        filter: blur(0px);
    }
    25% {
        transform: scale(1.05) skew(2deg);
        filter: blur(0.5px);
    }
    50% {
        transform: scale(0.98) skew(-2deg);
        filter: blur(0.3px);
    }
    75% {
        transform: scale(1.02) skew(1deg);
        filter: blur(0.2px);
    }
}

/* Scroll Particles */
.scroll-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--particle-color, var(--primary-color));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    box-shadow: 0 0 15px var(--particle-color, var(--primary-color));
    animation: scrollParticle 2s ease-out forwards;
}

@keyframes scrollParticle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(
            calc((var(--angle, 0) * 1px) * cos(var(--angle))),
            calc((var(--angle, 0) * 1px) * sin(var(--angle)))
        ) scale(0) rotate(720deg);
    }
}

/* Entrance Particles */
.entrance-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    box-shadow: 0 0 10px var(--primary-color);
    animation: entranceParticle 1.5s ease-out forwards;
}

@keyframes entranceParticle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(
            calc(cos(calc(var(--angle) * 1deg)) * 200px),
            calc(sin(calc(var(--angle) * 1deg)) * 200px)
        ) scale(0);
    }
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(var(--primary-rgb), 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Floating Orbs */
.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: 10%;
    left: 10%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    top: 60%;
    right: 10%;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    bottom: 20%;
    left: 50%;
}

@keyframes orbFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

@keyframes orbFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 40px) scale(1.15);
    }
}

@keyframes orbFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, 30px) scale(1.2);
    }
}

/* Header Styles */
#header {
    position: relative;
    width: 100%;
    z-index: 100;
    padding: 2vh 5vw;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#logo-container {
    display: flex;
    align-items: center;
    gap: 1.5vw;
    position: relative;
}

.logo-glow {
    display: none;
}

#logo {
    width: 4.198062432723359vh;
    height: 2.95625vw;
    transition: transform 0.3s ease;
}

#logo:hover {
    transform: scale(1.05);
}

#logotext {
    display: flex;
    flex-direction: column;
    gap: 0.2vh;
}

.logo-main {
    font-family: 'Orbitron', 'Akrobat Bold', sans-serif;
    font-size: 1.8vw;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-sub {
    font-family: 'Rajdhani', 'Akrobat', sans-serif;
    font-size: 0.9vw;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Navigation */
#nav {
    display: flex;
    gap: 1vw;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.8vh 1.2vw;
    font-family: 'Rajdhani', 'Akrobat', sans-serif;
    font-size: 1vw;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-icon {
    font-size: 1.2vw;
}

#header-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin-top: 1.5vh;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Main Content */
#main-content {
    position: relative;
    flex: 1;
    z-index: 10;
    padding: 4vh 5vw;
}

/* Hero Section (Index) */
#hero-section {
    margin-bottom: 6vh;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    align-items: center;
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.title-line-1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5vw;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.title-line-2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5vw;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: 1px;
}

.title-accent {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2vw;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.3vw;
    color: var(--text-secondary);
    margin-top: 1vh;
}

/* Server Status Widget */
#server-status {
    margin: 3vh 0;
    animation: statusSlideIn 0.8s ease 0.3s both;
}

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

.status-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2vh 2.5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2vw;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.status-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
    transition: left 0.5s;
}

.status-container:hover::before {
    left: 100%;
}

.status-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 25px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-3px);
}


.status-indicator {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.status-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

.status-dot.online {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.status-dot.online::before {
    background: var(--primary-color);
    animation: dotPulseOnline 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes dotPulseOnline {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.status-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1vw;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 3vw;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

.status-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9vw;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5vw;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--glow-color);
    min-width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.status-value:hover {
    transform: scale(1.2);
    text-shadow: 0 0 25px var(--glow-color);
}

.status-max,
.status-unit {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1vw;
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-badges {
    display: flex;
    gap: 1.5vw;
    margin-top: 2vh;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.8vh 1.2vw;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.badge:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
}

.badge-icon {
    font-size: 1.5vw;
}

.badge-text {
    font-size: 0.9vw;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-glow {
    display: none;
}

#lester {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

#lester:hover {
    transform: scale(1.02);
}

#lester_mobile {
    display: none;
}

/* Content Cards */
#content-section {
    margin-top: 4vh;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2vw;
}

.content-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5vw;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.content-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: cardSlideIn 0.6s ease forwards;
}

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

.content-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1vw;
    margin-bottom: 2vh;
}

.card-icon {
    font-size: 2.5vw;
    transition: transform 0.2s ease;
}

.content-card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6vw;
    font-weight: 600;
    color: var(--primary-color);
}

.card-content {
    margin-bottom: 2vh;
}

.card-text {
    font-size: 1.1vw;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

.card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.content-card:hover .card-footer {
    transform: scaleX(1);
}

/* Play Button */
.card-play {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4vw;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.12));
}

.play-button-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

#play {
    display: block;
    width: 100%;
    padding: 2.5vh 4vw;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.play-button-glow {
    display: none;
}

.play-button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vw;
}

.play-icon {
    font-size: 2vw;
    color: white;
}

.play-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2vw;
    font-weight: 900;
    color: white;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}


.play-button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

#play:hover .play-button-shine {
    left: 100%;
}

#play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    background: var(--primary-light);
}

#play:active {
    transform: translateY(0);
}

/* Regeln Page Styles */
body.regeln-page #main-content {
    padding: 2vh 5vw;
}

#regeln-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.regeln-hero {
    text-align: center;
    margin-bottom: 4vh;
    padding: 4vh 0;
}

#regeln-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5vh;
    margin-bottom: 2vh;
}

.title-glow {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5vw;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.title-main {
    font-family: 'Orbitron', sans-serif;
    font-size: 5vw;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 40px var(--glow-color);
    letter-spacing: 4px;
    animation: titlePulse 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

.title-main::before,
.title-main::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.title-main::before {
    color: var(--secondary-color);
    animation: titleScan 4s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.title-main::after {
    color: var(--accent-color);
    animation: titleScan 4s ease-in-out infinite 2s;
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

@keyframes titleScan {
    0%, 100% {
        opacity: 0;
        transform: translateX(-10px);
    }
    50% {
        opacity: 0.3;
        transform: translateX(10px);
    }
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 0 0 40px var(--glow-color);
    }
    50% {
        text-shadow: 0 0 60px var(--glow-color), 0 0 100px var(--glow-color);
    }
}

.regeln-subtitle {
    font-size: 1.3vw;
    color: var(--text-secondary);
    margin-top: 1vh;
}

/* Search Container */
#search-container {
    margin-bottom: 4vh;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: 1.5vh 2vw;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

#search-box:focus-within .search-glow {
    opacity: 1;
    animation: searchGlow 2s ease-in-out infinite;
}

@keyframes searchGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

#search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4);
    transform: scale(1.02);
    animation: searchFocus 0.5s ease;
}

@keyframes searchFocus {
    0%, 100% {
        transform: scale(1.02);
    }
    50% {
        transform: scale(1.05);
    }
}

#search-icon {
    width: 1.5vw;
    height: 1.5vw;
    color: var(--text-secondary);
    margin-right: 1vw;
    transition: color 0.3s;
}

#search-box:focus-within #search-icon {
    color: var(--primary-color);
}

#search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1vw;
    font-weight: 600;
}

#search-input::placeholder {
    color: var(--text-secondary);
}

#clear-search {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    font-size: 1.2vw;
    width: 2.5vw;
    height: 2.5vw;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 0.5vw;
}

#clear-search:hover {
    background: rgba(var(--primary-rgb), 0.3);
    color: var(--text-primary);
    transform: rotate(90deg);
}

#search-results-info {
    margin-top: 1.5vh;
    text-align: center;
    font-size: 0.9vw;
    color: var(--text-secondary);
    display: none;
}

#search-results-list {
    margin-top: 2vh;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5vw;
    border: 1px solid var(--glass-border);
}

.search-result-item {
    padding: 1vh 1.5vw;
    margin-bottom: 1vh;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1vw;
}

.search-result-item:hover {
    background: rgba(var(--primary-rgb), 0.15);
    transform: translateX(5px);
}

/* Regel Sections */
#regeln-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5vw;
}

.regel-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.regel-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3vw;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.section-card:hover::before {
    transform: scaleY(1);
}

.section-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.3);
    animation: sectionCardHover 0.6s ease;
}

@keyframes sectionCardHover {
    0%, 100% {
        transform: translateY(-5px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5vw;
    margin-bottom: 2.5vh;
    padding-bottom: 2vh;
    border-bottom: 1px solid var(--glass-border);
}

.section-icon {
    font-size: 3vw;
    filter: drop-shadow(0 0 15px var(--primary-color));
    animation: sectionIconFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
    display: inline-block;
}

@keyframes sectionIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-8px) rotate(10deg) scale(1.15);
    }
}

.section-card:hover .section-icon {
    animation: sectionIconSpin 0.8s ease;
    filter: drop-shadow(0 0 25px var(--primary-color));
}

@keyframes sectionIconSpin {
    0% {
        transform: rotate(0deg) scale(1.15);
    }
    25% {
        transform: rotate(90deg) scale(1.3);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    75% {
        transform: rotate(270deg) scale(1.3);
    }
    100% {
        transform: rotate(360deg) scale(1.15);
    }
}

.regel-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8vw;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--glow-color);
    flex: 1;
}

.section-accent {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.regel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
}

.regel-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5vw;
    padding: 1.5vh 1.5vw;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.regel-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.2), transparent);
    transition: left 0.5s;
}

.regel-list li:hover::before {
    left: 100%;
}

.regel-list li:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-left-color: var(--primary-color);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.2);
}

.rule-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2vw;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 40px;
    text-shadow: 0 0 10px var(--glow-color);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.regel-list li:hover .rule-number {
    animation: numberPulse 0.5s ease;
    text-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
    transform: scale(1.2) rotate(5deg);
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1.2) rotate(5deg);
    }
    50% {
        transform: scale(1.4) rotate(-5deg);
    }
}

.rule-text {
    font-size: 1.1vw;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
}

.regel-list li.highlight {
    background: rgba(var(--primary-rgb), 0.2);
    border-left-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

/* Footer */
#footer {
    position: relative;
    width: 100%;
    padding: 3vh 5vw;
    z-index: 100;
    text-align: center;
    backdrop-filter: blur(10px);
}

#copyright {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1vw;
    color: var(--text-secondary);
}

/* Fixed Copyright Banner */
#fixed-copyright {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 15, 0.98)) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 2px solid var(--primary-color) !important;
    padding: 1.5vh 2vw !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 -5px 40px rgba(0, 0, 0, 0.5) !important;
    animation: slideUpCopyright 0.8s ease-out, copyrightPulse 3s ease-in-out infinite !important;
}

@keyframes slideUpCopyright {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes copyrightPulse {
    0%, 100% {
        border-top-color: var(--primary-color);
    }
    50% {
        border-top-color: var(--primary-light);
        box-shadow: 0 -5px 50px rgba(var(--primary-rgb), 0.4);
    }
}

#copyright-content {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1vw;
}

#made-by {
    color: var(--text-secondary);
    font-weight: 400;
}

#copyright-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 0.3vh 0.8vw;
    border-radius: 8px;
    position: relative;
}

#copyright-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

#copyright-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--primary-color);
    transform: scale(1.1);
}

#copyright-link:hover::before {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1000px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4vh;
    }

    .title-line-2 {
        font-size: 8vw;
    }

    .title-accent {
        font-size: 4vw;
    }

    .hero-subtitle {
        font-size: 3vw;
    }

    /* Mobile Server Status */
    #server-status {
        margin: 2vh 0;
    }

    .status-container {
        flex-direction: column;
        gap: 2vh;
        padding: 3vh 4vw;
    }

    .status-indicator {
        width: 100%;
        justify-content: center;
    }

    .status-text {
        font-size: 3vw;
    }

    .status-info {
        width: 100%;
        justify-content: space-around;
        gap: 2vw;
    }

    .status-label {
        font-size: 2.5vw;
    }

    .status-value {
        font-size: 4vw;
    }

    .status-max,
    .status-unit {
        font-size: 2.5vw;
    }

    .status-dot {
        width: 15px;
        height: 15px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card-play {
        grid-column: span 1;
    }

    .logo-main {
        font-size: 5vw;
    }

    .logo-sub {
        font-size: 2.5vw;
    }

    .nav-link {
        font-size: 2.5vw;
        padding: 1vh 2vw;
    }

    .nav-icon {
        font-size: 3vw;
    }

    #regeln-content {
        grid-template-columns: 1fr;
    }

    .title-main {
        font-size: 8vw;
    }

    .regeln-subtitle {
        font-size: 3vw;
    }

    #search-input {
        font-size: 3.5vw;
    }

    .regel-heading {
        font-size: 4vw;
    }

    .rule-number {
        font-size: 3vw;
    }

    .rule-text {
        font-size: 3vw;
    }

    #lester {
        display: none;
    }

    #lester_mobile {
        display: block;
        max-width: 100%;
        filter: drop-shadow(0 0 30px rgba(var(--primary-rgb), 0.5));
    }

    #fixed-copyright {
        padding: 2vh 4vw;
    }

    #copyright-content {
        font-size: 3vw;
    }
}
