/* Modernes, dunkles Farbschema mit grünen Akzenten */
:root {
    --dark-1: #0a0a0a;
    --dark-2: #121212;
    --dark-3: #1a1a1a;
    --dark-4: #222222;
    --accent: #27ae27;
    --accent-dark: #21841e;
    --accent-light: #30af2b;
    --text: #f5f5f5;
    --text-secondary: #b3b3b3;
    --gradient: linear-gradient(135deg, var(--accent), var(--accent-light));
    --transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    --glass: rgba(15, 15, 15, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Globale Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 100%; /* Base font size for better rem calculations */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-1);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh; /* Ensure footer stays at bottom */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* Makes sure footer stays at bottom */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents unwanted spacing */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px in rem */
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Preloader - Modern und schnell */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.preloader-logo {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    animation: spin 1.2s linear infinite;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeIn 0.8s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Fix for preloader styles on different pages */
.loader {
    display: flex;
    flex-wrap: wrap;
    width: 80px;
    height: 80px;
    justify-content: space-between;
    align-items: center;
}

.loader-square {
    width: 20px;
    height: 20px;
    margin: 4px;
    border-radius: 4px;
    background: var(--accent);
    animation: loader-animation 1.2s infinite ease-in-out;
}

.loader-square:nth-child(1) {
    animation-delay: 0s;
}
.loader-square:nth-child(2) {
    animation-delay: 0.1s;
}
.loader-square:nth-child(3) {
    animation-delay: 0.2s;
}
.loader-square:nth-child(4) {
    animation-delay: 0.3s;
}
.loader-square:nth-child(5) {
    animation-delay: 0.4s;
}
.loader-square:nth-child(6) {
    animation-delay: 0.5s;
}
.loader-square:nth-child(7) {
    animation-delay: 0.6s;
}

@keyframes loader-animation {
    0%, 70%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    35% { 
        transform: scale(1.5);
        opacity: 0.7;
        background: var(--accent-light);
    }
}

/* Navigation - Modern mit Glas-Effekt */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 10, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper .logo {
    height: 50px;
    transition: var(--transition);
}

.nav-scrolled .logo-wrapper .logo {
    height: 40px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

/* If you specifically want to adjust just the link text position */
.nav-link {
    position: relative;
    margin: 0 0.9375rem;
    font-weight: 500;
    padding: 0.2rem 0;
    overflow: hidden;
    display: inline-block; /* Ensures proper vertical alignment */
    margin-top: 5px; /* Additional top margin to move text down */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.connect-btn {
    margin-left: 1.25rem; /* 20px in rem */
    padding: 0.625rem 1.5625rem; /* 10px 25px in rem */
    border-radius: 30px;
    font-weight: 600;
    background: var(--gradient);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    transition: var(--transition);
    color: white !important; /* Ensure text is always visible */
    display: inline-block;
    text-align: center;
}

.connect-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hamburger {
    display: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin-left: 20px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section - Modern mit Partikel-Hintergrund */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(39, 174, 96, 0.1) 0%, transparent 50%);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding-top: 6.25rem;
    padding-bottom: 3rem; /* Added padding to ensure space for the scroll arrow */
    display: flex;
    flex-direction: column;
    height: 100%; /* This ensures the content takes the full height */
    justify-content: center; /* Centers the content vertically */
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px in rem */
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    color: var(--accent);  /* Einfache Farbe statt Gradient */
    display: block !important;
    width: 100% !important;
    text-align: center;
}

.title-word {
    display: inline-block !important;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    visibility: visible !important;
}

.title-word-1 { animation-delay: 0.3s; }
.title-word-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem; /* 40px in rem */
    opacity: 0;
    animation: fadeIn 0.8s 0.9s forwards;
}

.typing-animation {
    position: relative;
}

.typing-animation::after {
    content: '|';
    position: absolute;
    right: -10px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 3rem; /* Add space below buttons to separate from scroll arrow */
    opacity: 0;
    animation: fadeIn 0.8s 1.2s forwards;
}

.btn-gradient {
    display: inline-block;
    padding: 0.9375rem 2.1875rem; /* 15px 35px in rem */
    border-radius: 30px;
    font-weight: 600;
    color: white;
    background: var(--gradient);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 0.9375rem 2.1875rem; /* 15px 35px in rem */
    border-radius: 30px;
    font-weight: 600;
    color: var(--accent);
    border: 2px solid var(--accent);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px);
}

.scroll-down {
    position: absolute;
    bottom: 20px; /* Changed from 40px to 20px to move it lower */
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10; /* Added to ensure it appears above other elements */
    margin-top: 40px; /* Added spacing from the buttons */
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* About Section - Modern mit animiertem Grid */
.about {
    position: relative;
    padding: 7.5rem 0; /* 120px in rem */
    background-color: var(--dark-2);
    overflow: hidden;
}

.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0.05;
}

.grid-line {
    width: 1px;
    height: 100%;
    background: var(--text);
    position: relative;
}

.grid-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: gridLine 8s linear infinite;
}

.grid-line:nth-child(2)::after { animation-delay: 2s; }
.grid-line:nth-child(3)::after { animation-delay: 4s; }
.grid-line:nth-child(4)::after { animation-delay: 6s; }

@keyframes gridLine {
    0% { top: -100px; }
    100% { top: 100%; }
}

.section-header {
    text-align: center;
    margin-bottom: 3.75rem; /* 60px in rem */
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.9375rem; /* 15px in rem */
    position: relative;
    display: inline-block;
}

.section-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto 1.25rem; /* 20px in rem */
    border-radius: 2px;
    transform-origin: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3.125rem; /* 50px in rem */
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.5625rem; /* 25px in rem */
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin: 1.875rem 0; /* 30px in rem */
}

.feature-list li {
    margin-bottom: 0.9375rem; /* 15px in rem */
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--accent);
    margin-right: 0.625rem; /* 10px in rem */
    font-size: 1.2rem;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem; /* 40px in rem */
    flex-wrap: wrap;
    gap: 1.25rem; /* 20px in rem */
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.3125rem; /* 5px in rem */
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.floating-card {
    position: relative;
    height: 400px;
    background: var(--dark-3);
    border-radius: 15px;
    overflow: hidden;
}

.server-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: -30px;
    right: -30px;
    animation: float 8s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: -20px;
    animation: float 6s ease-in-out infinite reverse;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: -20px;
    right: 40px;
    animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features Section - 3D Karten Effekt */
.features {
    padding: 7.5rem 0; /* 120px in rem */
    background-color: var(--dark-1);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--dark-2), transparent);
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.875rem; /* 30px in rem */
    margin-top: 3.125rem; /* 50px in rem */
}

.feature-card {
    perspective: 1000px;
    height: 250px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.feature-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 1.875rem; /* 30px in rem */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 15px;
}

.card-front {
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-back {
    background: var(--dark-4);
    transform: rotateY(180deg);
    border: 1px solid var(--accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem; /* 20px in rem */
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.9375rem; /* 15px in rem */
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem; /* 20px in rem */
}

.btn-small {
    display: inline-block;
    padding: 0.5rem 1.25rem; /* 8px 20px in rem */
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--gradient);
    color: white;
    transition: var(--transition);
}

.btn-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* CTA Section - Modern mit Parallax */
.cta {
    position: relative;
    padding: 7.5rem 0; /* 120px in rem */
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)), url('../images/cta-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(39, 174, 96, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem; /* 20px in rem */
    line-height: 1.2;
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem; /* 40px in rem */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem; /* 20px in rem */
}

/* Footer - Modern mit Glas-Effekt */
.footer {
    position: relative;
    background-color: var(--dark-2);
    color: var(--text);
}

.footer-top {
    padding: 5rem 0 3.125rem; /* 80px 50px in rem */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem; /* 40px in rem */
}

.footer-col {
    margin-bottom: 1.875rem; /* 30px in rem */
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.25rem; /* 20px in rem */
}

.footer-col p {
    margin-bottom: 1.25rem; /* 20px in rem */
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 0.9375rem; /* 15px in rem */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-3);
    color: var(--text);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px);
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5625rem; /* 25px in rem */
    position: relative;
    padding-bottom: 0.625rem; /* 10px in rem */
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem; /* 12px in rem */
}

.footer-col ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 0.9375rem; /* 15px in rem */
}

.contact-info i {
    margin-right: 0.625rem; /* 10px in rem */
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    padding: 1.25rem 0; /* 20px in rem */
    background-color: var(--dark-3);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 0.625rem; /* 10px in rem */
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0.625rem; /* 0 10px in rem */
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Regelwerk page styles */
.parallax-header {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-header {
    height: 40vh;
    min-height: 300px;
}

.rules-section {
    padding: 5rem 0;
    background-color: var(--dark-2);
}

.rules-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    gap: 2.5rem;
}

.rules-sidebar {
    flex: 0 0 250px;
}

.rules-categories {
    position: sticky;
    top: 100px;
    background: var(--dark-3);
    border-radius: 15px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.category {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.category:hover, .category.active {
    background: var(--dark-4);
    color: var(--accent);
}

.rules-content {
    flex: 1;
}

.rules-group {
    display: none;
}

.rules-group.active {
    display: block;
}

.rule {
    background: var(--dark-3);
    border-radius: 15px;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.rule h3 {
    color: var(--accent);
    margin-bottom: 0.9375rem;
}

.rules-disclaimer {
    margin-top: 3.125rem;
    padding: 1.5rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-left: 4px solid var(--accent);
}

/* Team page styles */
.team-section {
    padding: 5rem 0;
    background-color: var(--dark-2);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.875rem;
    margin-bottom: 3.75rem;
}

.team-member {
    background: var(--dark-3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--dark-4), var(--dark-3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 5rem;
    opacity: 0.7;
}

.placeholder-image::after {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-role {
    color: var(--accent);
    margin-bottom: 0.9375rem;
    font-weight: 500;
}

.member-bio {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 0.9375rem;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--dark-4);
    color: var(--text-secondary);
    transition: var(--transition);
}

.member-social a:hover {
    background: var(--accent);
    color: white;
}

.join-team {
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)), url('../images/cta-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 5rem 0;
    text-align: center;
}

.join-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.join-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.875rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.9375rem 2.1875rem;
    border-radius: 30px;
    font-weight: 600;
    color: white;
    background: var(--gradient);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.4);
}

/* Animationen */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fix for burger menu */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 95%; /* Slightly reduce font size on tablets */
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
    
    .about-image {
        margin-top: 3.125rem; /* 50px in rem */
    }
    
    .rules-container {
        flex-direction: column;
    }
    
    .rules-sidebar {
        flex: none;
        width: 100%;
    }
    
    .rules-categories {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category {
        flex: 1 1 auto;
        margin-bottom: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 90%; /* Further reduce font size on mobile */
    }
    
    .hamburger, .burger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-3);
        flex-direction: column;
        padding: 5rem 1.875rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        margin: 0.9375rem 0; /* 15px in rem */
        font-size: 1.1rem;
    }
    
    .connect-btn {
        margin: 1.25rem 0 0; /* 20px in rem */
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.9375rem; /* 15px in rem */
    }
    
    .btn-gradient, .btn-outline {
        width: 100%;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 85%; /* Smallest font size for small mobile */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        height: 220px;
    }
    
    .card-front, .card-back {
        padding: 1.25rem; /* 20px in rem */
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .cta h2 {
        font-size: 2.2rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.9375rem; /* 15px in rem */
    }
    
    .rule {
        padding: 1.25rem; /* 20px in rem */
    }
    
    .rule h3 {
        font-size: 1.1rem;
    }
}


/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent-light);
}

/* Loaded state transitions */
body.loaded .reveal {
    transition-delay: 0.2s;
}

/* Improved form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: var(--dark-3);
    border: 1px solid var(--dark-4);
    border-radius: 8px;
    color: var(--text);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark-3);
    padding: 1.25rem;
    z-index: 9998;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    flex: 1;
    margin-right: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cookie-buttons {
    display: flex;
    gap: 0.625rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.accept-cookies {
    background: var(--accent);
    color: white;
    border: none;
}

.accept-cookies:hover {
    background: var(--accent-light);
}

.decline-cookies {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.decline-cookies:hover {
    border-color: var(--text);
    color: var(--text);
}


/* Fix für Microsoft Edge Hero-Title Darstellungsproblem */
@supports (-ms-ime-align:auto) {
    .hero-title {
        font-size: 5rem;
        font-weight: 800;
        margin-bottom: 1.25rem;
        line-height: 1.1;
        color: var(--accent) !important; /* Direkte Farbe statt Gradient für Edge */
        display: inline-block !important;
        visibility: visible !important;
    }
    
    .title-word {
        display: inline-block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
        animation: none !important;
        color: var(--accent) !important; /* Direkte Farbe statt Gradient für Edge */
        background: none !important;
    }
}

/* Für neuere Versionen von Edge (Chromium-basiert) */
@supports ((-ms-accelerator: true) or (overflow: -ms-autohiding-scrollbar)) {
    .hero-title {
        color: var(--accent) !important;
        background: none !important;
    }
    
    .title-word {
        color: var(--accent) !important;
        background: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.team-profile-image {
    margin-top: 15px; /* erhöht für mehr Abstand nach oben, damit das Bild weiter unten ist */
    width: 230px; /* von 120px auf 150px vergrößert */
    height: 230px; /* von 120px auf 150px vergrößert */
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-left: auto; /* Teil der Zentrierung */
    margin-right: auto; /* Teil der Zentrierung */
    box-shadow: 0 4px 11px rgba(0, 0, 0, 0.4); /* leichter Schatten für Style */
}

.corner-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    background-color: black;
    border-radius: 50%;
    z-index: 9999;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.corner-button:hover {
    opacity: 1;
}