* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    zoom: 0.8;
}

/* 
==========================================
   SCROLL ANIMATIONS - Basis Klassen
==========================================
*/

.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: all 0.3s;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 5px 30px rgba(212, 175, 55, 0.2);
}

nav .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav .logo img {
    height: 50px;
    transition: transform 0.3s;
}

nav.scrolled .logo img {
    transform: scale(0.9);
}

nav .logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: #dd8500;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dd8500;
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: #dd8500;
}

/* Header */
.page-header {
    padding: 150px 2rem 80px;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920') center center / cover no-repeat fixed;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #000, transparent);
    z-index: 1;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    animation: headerTitleIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes headerTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header h1 span {
    color: #dd8500;
    position: relative;
}

.page-header h1 span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 4px;
    background: #dd8500;
    animation: underlineIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes underlineIn {
    to {
        width: 100%;
    }
}

.page-header p {
    font-size: 1.3rem;
    color: #aaa;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: headerPIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes headerPIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rules Section */
.rules-section {
    background: #000;
    padding: 4rem 2rem 8rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Rules Container für dynamisch geladene Regeln */
#rules-container {
    min-height: 200px;
}

/* Loading Spinner für Regeln */
.rules-loading {
    text-align: center;
    padding: 4rem;
    color: #dd8500;
}

.rules-loading .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #1a1a1a;
    border-top-color: #dd8500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.rules-error {
    text-align: center;
    padding: 4rem;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    margin: 2rem 0;
}

.rule-box {
    background: #0a0a0a;
    border-left: 5px solid #dd8500;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.rule-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s;
}

.rule-box:hover::before {
    opacity: 1;
}

.rule-box:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
    border-left-width: 8px;
}

.rule-box h3 {
    font-size: 1.8rem;
    color: #dd8500;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.rule {
    display: flex;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.rule:hover {
    padding-left: 10px;
    background: rgba(212, 175, 55, 0.03);
}

.rule:last-child {
    border-bottom: none;
}

.rule-num {
    color: #dd8500;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 50px;
    transition: transform 0.3s;
}

.rule:hover .rule-num {
    transform: scale(1.1);
}

.rule-text {
    color: #ccc;
    line-height: 1.7;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #dd8500;
    color: #dd8500;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #dd8500;
    transition: left 0.3s;
    z-index: -1;
}

.back-btn:hover::before {
    left: 0;
}

.back-btn:hover {
    color: #000;
    transform: translateX(-5px);
}

.back-btn .arrow {
    transition: transform 0.3s;
}

.back-btn:hover .arrow {
    transform: translateX(-5px);
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

footer img {
    height: 80px;
    opacity: 0.6;
    margin-bottom: 1.5rem;
    transition: all 0.5s;
}

footer img:hover {
    opacity: 1;
    transform: scale(1.1);
}

footer p {
    color: #666;
    font-size: 0.95rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #dd8500;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #dd8500;
    z-index: 99999;
    transition: width 0.1s;
}

/* Responsive */
@media (max-width: 968px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header {
        background-attachment: scroll;
    }

    nav ul {
        display: none;
    }

    .rule-box {
        padding: 1.5rem;
    }

    .rule-box h3 {
        font-size: 1.4rem;
    }

    .rule {
        flex-direction: column;
        gap: 0.5rem;
    }

    .rule-num {
        min-width: auto;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #dd8500;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    animation: loaderPulse 1.5s infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}