/* ========================================
   Responsive Styles
   ======================================== */

/* Tablets and Below (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stats-grid {
        gap: 30px;
    }
    
    .membership-grid {
        gap: 25px;
    }
    
    .membership-card.featured {
        transform: scale(1);
    }
    
    .membership-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .gallery-grid {
        gap: 15px;
    }
    
    .contact-wrapper {
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Landscape and Below (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Navigation - Verbessertes Burger-Menü */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 100px 0 30px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
        z-index: -1;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    .hamburger span {
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Mobile Menu Overlay */
    .nav-menu::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        background: rgba(0, 0, 0, 0);
        pointer-events: none;
        transition: background 0.4s ease;
        z-index: -1;
    }
    
    .nav-menu.active::after {
        background: rgba(0, 0, 0, 0.7);
        pointer-events: all;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 18px 30px;
        position: relative;
        opacity: 0;
        transition: opacity 0.3s ease, background 0.3s ease;
    }
    
    .nav-menu.active .nav-link {
        opacity: 1;
    }
    
    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(6) { transition-delay: 0.35s; }
    
    .nav-link::after,
    .nav-menu .nav-link::after,
    .nav-menu.active .nav-link::after {
        display: none !important;
        content: none !important;
    }
    
    .nav-link:hover {
        background: rgba(16, 185, 129, 0.1);
        padding-left: 40px;
    }
    
    .nav-link.active {
        background: rgba(16, 185, 129, 0.2);
        color: var(--primary-color);
    }
    
    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    /* About */
    .about {
        padding-top: 80px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text h3 {
        font-size: 26px;
    }
    
    .about-features {
        gap: 15px;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-item i {
        font-size: 24px;
        min-width: 30px;
    }
    
    .feature-item h4 {
        font-size: 16px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .service-card h3 {
        font-size: 22px;
    }
    
    /* Stats */
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-item i {
        font-size: 40px;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .stat-item p {
        font-size: 14px;
    }
    
    /* Membership */
    .membership-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .membership-card {
        padding: 30px 25px;
    }
    
    .membership-header i {
        font-size: 40px;
    }
    
    .membership-header h3 {
        font-size: 24px;
    }
    
    .amount {
        font-size: 48px;
    }
    
    .membership-info {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-overlay i {
        font-size: 30px;
    }
    
    .gallery-overlay p {
        font-size: 14px;
    }
    
    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        margin-bottom: 20px;
    }
    
    .event-header {
        padding: 20px;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .event-body {
        padding: 20px;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .event-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        min-width: 50px;
    }
    
    .info-text h4 {
        font-size: 16px;
    }
    
    .info-text p {
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .legal-notice {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* Sections */
    .section {
        padding: 50px 0;
    }
    
    .about {
        padding-top: 70px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    /* About */
    .about-badge {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .about-text h3 {
        font-size: 22px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* Services */
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin: 0 auto 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .service-card > p {
        font-size: 14px;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    /* Membership */
    .popular-badge {
        top: -12px;
        right: 20px;
        padding: 6px 15px;
        font-size: 10px;
    }
    
    .membership-header h3 {
        font-size: 22px;
    }
    
    .amount {
        font-size: 40px;
    }
    
    .currency {
        font-size: 20px;
    }
    
    .period {
        font-size: 16px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-type-badge {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    /* Contact */
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 40px 12px 15px;
        font-size: 14px;
    }
    
    .form-group label {
        left: 15px;
        font-size: 14px;
    }
    
    .form-group i {
        right: 15px;
        font-size: 16px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Footer */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        height: 45px;
        border-radius: 10px;
    }
}

/* Landscape Orientation on Small Devices */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: auto;
        padding: 100px 0 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* High Resolution Displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 80px;
    }
    
    .section-title {
        font-size: 56px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .back-to-top,
    .contact-form,
    .footer {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        background: white;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-line::after {
        animation: none;
    }
    
    .loader {
        animation: none;
    }
}

/* Dark Mode Support (if system preference) */
@media (prefers-color-scheme: dark) {
    /* Keep the current dark sections as they are */
    /* Light sections could be adjusted if needed */
}

/* Hover Effects Disabled on Touch Devices */
@media (hover: none) {
    .service-card:hover,
    .membership-card:hover,
    .gallery-item:hover,
    .feature-item:hover {
        transform: none;
    }
}
