/* Modern Welcome Page CSS - Tennis Booking System */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    color: #2c3e50;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #16a34a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.nav-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero-container {
    margin-top: 70px;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    overflow: hidden;
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tennis" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23tennis)"/></svg>');
    animation: float 20s infinite linear;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    width: 100%;
    height: 100vh;
    display: flex;
    position: relative;
    z-index: 10;
}

.hero-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    transition: all 0.5s ease;
}

.hero-left {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.9), rgba(34, 197, 94, 0.9));
}

.hero-right {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-side:hover .hero-overlay {
    background: rgba(0, 0, 0, 0.05);
}

.hero-content-wrapper {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
    color: white;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.hero-side:hover .hero-content-wrapper {
    transform: translateY(-10px);
}

.hero-icon {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

.icon-circle {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-side:hover .icon-circle {
    transform: rotate(360deg) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.member-icon {
    background: rgba(255, 255, 255, 0.25);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 400;
}

.hero-features {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.hero-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.hero-button:hover .btn-icon {
    transform: translateX(4px);
}

.coming-soon-badge {
    margin-top: 20px;
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.login-link {
    margin-top: 20px;
}

.quick-login {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.quick-login:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Hero Divider */
.hero-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Desktop: Divider richtig positionieren */
@media (min-width: 769px) {
    .hero-divider {
        position: absolute !important;
        left: 50% !important;
        top: 55% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 50 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-content {
        position: relative !important;
    }
    
    .hero-divider .divider-line {
        width: 2px !important;
        height: 200px !important;
        background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent) !important;
        margin: 0 auto !important;
    }
    
    .hero-divider .divider-logo {
        margin-top: -40px !important;
        width: 80px !important;
        height: 80px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 50% !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    }
}

.divider-line {
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
    position: relative;
}

.divider-logo {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: -40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    position: relative;
}

.divider-icon {
    font-size: 2rem;
    animation: spin 10s linear infinite;
    z-index: 10001;
    position: relative;
    display: block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}





/* Info Section */
.info-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.info-card:hover::before {
    transform: translateX(0);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.info-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

/* Quick Access Section */
.quick-access-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.quick-access-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
}

.quick-access-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.quick-access-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.quick-access-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: white;
    color: #2c3e50;
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f8fafc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #22c55e;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

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

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.spinner-text {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        gap: 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        display: flex;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 30px;
        width: 80%;
        text-align: center;
        border-radius: 10px;
        background: rgba(34, 197, 94, 0.1);
        transition: all 0.3s ease;
        border: 1px solid rgba(34, 197, 94, 0.2);
    }
    
    .nav-link:hover {
        background: rgba(34, 197, 94, 0.9);
        color: white;
        transform: translateY(-2px);
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    /* Container Layout forcieren */
    .hero-container {
        display: block !important;
        height: auto !important;
    }
    
    .hero-content {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .hero-side {
        display: block !important;
        width: 100% !important;
        min-height: auto !important;
        float: none !important;
        flex: none !important;
        position: relative !important;
    }
    
    .hero-content-wrapper {
        display: block !important;
        width: 100% !important;
        padding: 60px 20px !important;
        text-align: center !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .hero-left .hero-content-wrapper {
        padding-bottom: 50px !important;
    }

    .hero-right .hero-content-wrapper {
        padding-top: 50px !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        text-align: center !important;
    }
    
    .hero-description {
        font-size: 1.1rem !important;
        margin-bottom: 40px !important;
        text-align: center !important;
    }
    
    .hero-features {
        margin-bottom: 50px !important;
        width: 100% !important;
    }
    
    .feature-item {
        padding: 16px 24px !important;
        font-size: 1.1rem !important;
        margin: 0 auto 16px auto !important;
        max-width: 300px !important;
    }
    
    .hero-button {
        padding: 20px 40px !important;
        font-size: 1.2rem !important;
        margin: 20px auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-divider {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        clear: both !important;
        margin: 0 !important;
        top: 0 !important;
        z-index: 1000 !important;
        min-height: unset !important;
        height: auto !important;
    }
    
    .divider-line {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
    }
    
    .divider-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        line-height: normal !important;
    }
    
    .divider-icon {
        font-size: 1.5rem !important;
        display: block !important;
        z-index: 1003 !important;
        position: relative !important;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .quick-access-content {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-access-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* Zusätzliche Mobile-Fixes für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .hero-content {
        display: block !important;
    }
    
    .hero-side {
        display: block !important;
        width: 100% !important;
        min-height: auto !important;
        text-align: center !important;
    }
    
    .hero-content-wrapper {
        display: block !important;
        padding: 40px 15px !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .hero-left .hero-content-wrapper {
        padding-bottom: 35px !important;
    }

    .hero-right .hero-content-wrapper {
        padding-top: 35px !important;
    }

    .hero-right .hero-content-wrapper {
        padding-top: 30px !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin-bottom: 24px !important;
    }
    
    .hero-description {
        text-align: center !important;
        margin-bottom: 32px !important;
    }
    
    .hero-features {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .feature-item {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto 12px auto !important;
        text-align: center !important;
    }
    
    .icon-circle {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto !important;
    }
    
    .hero-button {
        padding: 14px 28px !important;
        font-size: 1rem !important;
        margin: 20px auto !important;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-divider {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        top: 0 !important;
        min-height: unset !important;
        height: auto !important;
    }
    
    .divider-line {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
    }

    .divider-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        line-height: normal !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
