/* ============================================
   PADEL CHALLENGERS — Design System
   Aesthetic: Premium Sports / Dark Green + Blue Court
   ============================================ */

/* --- Custom Properties --- */
:root {
    --green-dark: #0A2E14;
    --green-deep: #0D3B1E;
    --green-mid: #1B5E20;
    --green-main: #2E7D32;
    --green-light: #4CAF50;
    --green-bright: #66BB6A;
    --green-pale: #A5D6A7;
    --green-glow: rgba(76, 175, 80, 0.15);
    --green-glow-strong: rgba(76, 175, 80, 0.3);

    --court-blue: #1565C0;
    --court-blue-light: #2196F3;
    --court-blue-deep: #0D47A1;

    --black: #050A07;
    --dark-1: #0B1610;
    --dark-2: #111E16;
    --dark-3: #1A2B20;

    --text-primary: #E8F5E9;
    --text-secondary: #A5D6A7;
    --text-muted: #6B8F72;
    --text-white: #FAFFF9;

    --font-heading: 'Montserrat', 'Arial Black', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --max-width: 900px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-green: 0 8px 40px rgba(76, 175, 80, 0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Subtle grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 1rem; }

p { margin-bottom: 1rem; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

/* ==========================================
   SPLASH SCREEN
   ========================================== */
.splash {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash.exit {
    opacity: 0;
    visibility: hidden;
}

.splash-logo-wrap {
    width: 180px;
    height: 180px;
    animation: splashLogoIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.splash-logo-wrap img,
.splash-logo-wrap svg {
    width: 100%;
    height: 100%;
}

.splash-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-top: 1.5rem;
    opacity: 0;
    animation: splashTextIn 0.8s ease 1.5s forwards;
}

.splash-text span {
    color: var(--text-white);
}

.splash-line {
    width: 60px;
    height: 2px;
    background: var(--green-main);
    margin-top: 1rem;
    transform: scaleX(0);
    animation: lineIn 0.6s ease 2s forwards;
}

@keyframes splashLogoIn {
    0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
    50% { opacity: 1; transform: scale(1.05) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

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

@keyframes lineIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(5, 10, 7, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    transition: var(--transition);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-white);
}

.nav-logo img {
    width: 2.25rem;
    height: 2.25rem;
}

.nav-logo span {
    color: var(--green-light);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-light);
    transition: width var(--transition);
}

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

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

.nav-cta {
    background: var(--green-main);
    color: var(--text-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background: var(--green-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-green);
}

.nav-cta::after { display: none !important; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(76, 175, 80, 0.08);
}

.nav-mobile a:hover {
    color: var(--green-light);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        #050A07 0%,
        #0A2E14 30%,
        #0D3B1E 50%,
        #0A1F10 70%,
        #050A07 100%
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    max-width: 700px;
}

.hero-logo {
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6)) brightness(1.1);
    animation: heroLogoFloat 4s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
    stroke: var(--green-light);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-green {
    background: var(--green-main);
    color: var(--text-white);
}

.btn-green:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-outline {
    background: transparent;
    color: var(--green-light);
    border: 1.5px solid rgba(76, 175, 80, 0.4);
}

.btn-outline:hover {
    border-color: var(--green-light);
    background: rgba(76, 175, 80, 0.08);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 0.9375rem;
}

/* ==========================================
   SECTION DIVIDER
   ========================================== */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--green-main), var(--green-light));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ==========================================
   LEGAL SECTIONS (AGB, IMPRESSUM, DATENSCHUTZ)
   ========================================== */
.legal-section {
    padding: 5rem 0;
    position: relative;
}

.legal-section:nth-child(even) {
    background: var(--dark-1);
}

.legal-section:nth-child(odd) {
    background: var(--black);
}

/* Subtle side accent */
.legal-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--green-main), transparent);
    opacity: 0.4;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header .label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-light);
    background: var(--green-glow);
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(76, 175, 80, 0.15);
}

.legal-header h2 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.legal-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.legal-content h3 {
    color: var(--green-pale);
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.12);
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content strong {
    color: var(--text-white);
    font-weight: 600;
}

.legal-content a {
    color: var(--green-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: var(--green-bright);
}

/* Company info card */
.company-info {
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
    border: 1px solid rgba(76, 175, 80, 0.12);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.company-info p {
    margin-bottom: 0.5rem;
}

/* AGB accordion */
.agb-section {
    background: var(--dark-2);
    border: 1px solid rgba(76, 175, 80, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--transition);
}

.agb-section:hover {
    border-color: rgba(76, 175, 80, 0.2);
}

.agb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    transition: all var(--transition);
}

.agb-section-header:hover {
    color: var(--green-light);
}

.agb-section-header .icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition);
    color: var(--green-light);
    flex-shrink: 0;
}

.agb-section.open .agb-section-header .icon {
    transform: rotate(180deg);
}

.agb-section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.agb-section.open .agb-section-body {
    max-height: 2000px;
}

.agb-section-body-inner {
    padding: 0 1.5rem 1.5rem;
}

.agb-section-body-inner p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.85;
    margin-bottom: 0.75rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-1);
    border-top: 1px solid rgba(76, 175, 80, 0.1);
    padding: 3rem 0 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 2.5rem;
    height: 2.5rem;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-white);
}

.footer-logo .green {
    color: var(--green-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    transition: color var(--transition);
    letter-spacing: 0.03em;
}

.footer-links a:hover {
    color: var(--green-light);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.15);
    color: var(--green-light);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--green-main);
    color: var(--text-white);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(76, 175, 80, 0.08);
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--green-light);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .hero-logo {
        width: 160px;
        height: 160px;
    }

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

    .hero-subtitle {
        font-size: 0.875rem;
        letter-spacing: 0.1em;
    }

    .section { padding: 3.5rem 0; }
    .legal-section { padding: 3.5rem 0; }

    .agb-section-header {
        font-size: 0.9375rem;
        padding: 1rem 1.25rem;
    }

    .company-info {
        padding: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 130px;
        height: 130px;
    }

    h2 { font-size: 1.5rem; }

    .legal-content h3 { font-size: 1rem; }

    .agb-section-header { font-size: 0.875rem; }
    .agb-section-body-inner p { font-size: 0.8125rem; }
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-main);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    box-shadow: var(--shadow-green);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--green-light);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   TOC (Table of Contents)
   ========================================== */
.toc {
    background: var(--dark-2);
    border: 1px solid rgba(76, 175, 80, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.toc h4 {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 1rem;
}

.toc ol {
    list-style: none;
    counter-reset: toc;
}

.toc ol li {
    counter-increment: toc;
    margin-bottom: 0.5rem;
}

.toc ol li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition);
    padding: 0.25rem 0;
}

.toc ol li a::before {
    content: '§ ' counter(toc);
    font-weight: 700;
    color: var(--green-main);
    font-size: 0.8125rem;
    min-width: 2rem;
}

.toc ol li a:hover {
    color: var(--green-light);
}
