/* ============ 1. CSS RESET & BASICS ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

input, select, textarea {
    font-size: 16px;
    width: 100%;
}

/* ============ 2. CSS VARIABLEN ============ */
:root {
    --primary-teal: #4A9B9B;
    --accent-gold: #F5B041;
    --bg-dark: #0A0A0A;
    --bg-card: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
}

/* ============ 3. TYPOGRAFIE & GRUNDELEMENTE ============ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

/* ============ 4. BUTTONS ============ */
.btn-primary {
    background: var(--primary-teal);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #3D8282;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 155, 155, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--text-secondary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
}

/* ============ 5. HEADER & NAVIGATION ============ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 155, 155, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo svg {
    width: 40px;
    height: 40px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.nav-links a.active {
    font-weight: bold;
}

/* Mobile Menu Button (hidden on desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ============ 6. HERO SECTION ============ */
.hero {
    margin-top: 80px;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 26, 0.8)),
                url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 155, 155, 0.15);
    border: 1px solid var(--primary-teal);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* ============ 7. CONTENT SECTIONS ============ */
.info-section,
.how-it-works,
.features-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section {
    background: var(--bg-dark);
}

/* ============ 8. GRID & CARDS ============ */
.steps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.step-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    flex: 1 1 calc(25% - 2rem);
    min-width: 280px;
    position: relative;
    border: 1px solid rgba(74, 155, 155, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-teal);
    box-shadow: 0 10px 30px rgba(74, 155, 155, 0.1);
}

.step-number {
    font-size: 2.5rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-label {
    color: var(--primary-teal);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* ============ 9. TEAM SECTION ============ */
.team-section {
    padding: 5rem 2rem;
    scroll-margin-top: 80px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.team-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    flex: 0 1 calc(33.333% - 2rem);
    min-width: 280px;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-teal);
}

.team-img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-teal);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.role {
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============ 10. REGISTRATION CTA ============ */
.registration {
    padding: 6rem 2rem;
    background: transparent;
}
.registration-cta {
    padding: 8rem 2rem;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
}

.cta-container {
    max-width: 800px;
    width: 100%;
    background: var(--bg-card);
    padding: 4rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(74, 155, 155, 0.2);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.fundoo-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(74, 155, 155, 0.2);
    margin: 2rem 0;
}

.fundoo-box p {
    margin-bottom: 1.5rem;
}

.sub-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============ 11. LEGAL PAGES ============ */
.legal-container {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid rgba(74, 155, 155, 0.1);
}

.legal-container h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-teal);
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-teal);
    border-left: 4px solid var(--primary-teal);
    padding-left: 15px;
}

.legal-container p,
.legal-container li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-container ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-container a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-container a:hover {
    color: var(--accent-gold);
}

.highlight-box {
    background: rgba(245, 176, 65, 0.1);
    border: 1px solid var(--accent-gold);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

/* ============ 12. FOOTER ============ */
footer {
    background: var(--bg-card);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(74, 155, 155, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 155, 155, 0.2);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-teal);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-side {
    flex: 1;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-center {
    flex: 0 0 auto;
    text-align: center;
}

.footer-center img {
    height: 50px;
    display: block;
}

.footer-right p {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============ 13. MOBILE MENU ============ */
.mobile-overlay {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-overlay.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

.mobile-nav-links a {
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    font-weight: bold;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: var(--primary-teal);
    font-size: 3rem;
    cursor: pointer;
}

/* ============ 14. RESPONSIVE DESIGN ============ */

/* Tablet & kleinere Desktops (bis 1100px) */
@media (max-width: 1100px) {
    .step-card {
        flex: 1 1 calc(50% - 2rem);
    }
}

/* Mobile (bis 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 1.5rem 4rem 1.5rem;
        min-height: 600px;
        background-position: center center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Kleine Mobile Geräte (bis 700px) */
@media (max-width: 700px) {
    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Cards */
    .step-card {
        flex: 1 1 100%;
    }

    /* Team */
    .team-card {
        flex: 0 1 100%;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
        padding: 3rem 1rem;
    }

    .footer-section {
        width: 100%;
        max-width: 300px;
    }

    .footer-section h4 {
        margin-bottom: 1.5rem;
        font-size: 1.3rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-right p {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}