/* ==========================================
   MOBILE RESPONSIVE FIXES
   Füge diese Regeln am Ende deiner style.css hinzu
   ========================================== */

/* Basis Mobile Fixes */
@media (max-width: 968px) {
    /* Container & Padding */
    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    /* Typography Mobile */
    h1 { 
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    h2 { 
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    h3 { 
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 140px 0 80px !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
        letter-spacing: -1px !important;
        line-height: 1.1 !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
    }

    .hero-badge {
        font-size: 13px !important;
        padding: 10px 20px !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        width: 100% !important;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px !important;
        text-align: center;
    }

    .stat-number {
        font-size: 3rem !important;
    }

    .stat-label {
        font-size: 0.95rem !important;
    }

    /* Navigation Mobile */
    .nav-links {
        position: fixed;
        top: 89px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 20px !important;
        gap: 24px;
        box-shadow: 0 12px 32px rgba(1, 22, 39, 0.12);
        transform: translateY(-200%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid #e5e7eb;
        max-height: calc(100vh - 89px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 0 !important;
        font-size: 16px !important;
    }

    .btn-nav {
        width: 100% !important;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex !important;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

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

    /* Sections Padding */
    section {
        padding: 80px 0 !important;
    }

    .section-header {
        margin-bottom: 48px !important;
    }

    .section-header h2 {
        font-size: 2rem !important;
    }

    .section-header p {
        font-size: 1rem !important;
    }

    /* Workshop Cards */
    .workshop-cards {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .workshop-card {
        padding: 32px 24px !important;
    }

    .workshop-card h3 {
        font-size: 1.4rem !important;
    }

    .workshop-topics {
        grid-template-columns: 1fr !important;
    }

    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .benefit-card {
        padding: 32px 24px !important;
    }

    /* Process Steps */
    .process-step {
        flex-direction: column !important;
        gap: 24px !important;
        text-align: center !important;
    }

    .process-step::after {
        display: none !important;
    }

    .step-number {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
        margin: 0 auto !important;
    }

    .step-content h3 {
        font-size: 1.3rem !important;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .cta-content p {
        font-size: 1rem !important;
    }

    .cta-buttons {
        flex-direction: column !important;
        width: 100%;
    }

    .cta-buttons .btn,
    .cta-buttons .btn-outline {
        width: 100% !important;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: left;
    }

    .footer-column h3 {
        font-size: 1.3rem !important;
    }

    .footer-column h4 {
        font-size: 1.1rem !important;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* Extra Small Mobile (max-width: 640px) */
@media (max-width: 640px) {
    /* Container */
    .container {
        padding: 0 16px;
    }

    /* Typography */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.1rem !important; }

    body {
        font-size: 15px !important;
    }

    /* Hero */
    .hero {
        padding: 120px 0 60px !important;
    }

    .hero-title {
        font-size: 2rem !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 20px !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 32px !important;
    }

    .hero-badge {
        font-size: 12px !important;
        padding: 8px 16px !important;
        margin-bottom: 24px !important;
    }

    .stat-number {
        font-size: 2.5rem !important;
    }

    .stat-label {
        font-size: 0.9rem !important;
    }

    /* Buttons */
    .btn, .btn-outline, .btn-nav {
        padding: 14px 24px !important;
        font-size: 15px !important;
    }

    /* Sections */
    section {
        padding: 60px 0 !important;
    }

    .section-header {
        margin-bottom: 40px !important;
    }

    .section-header h2 {
        font-size: 1.75rem !important;
        margin-bottom: 16px !important;
    }

    .section-header p {
        font-size: 0.95rem !important;
    }

    /* Cards */
    .workshop-card,
    .benefit-card {
        padding: 24px 20px !important;
    }

    .workshop-icon,
    .benefit-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
    }

    .workshop-duration {
        font-size: 0.85rem !important;
    }

    /* Process Steps */
    .step-number {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.75rem !important;
    }

    /* Logo */
    .logo {
        font-size: 24px !important;
    }

    /* Footer */
    .footer {
        padding: 60px 0 32px !important;
    }

    .footer-column {
        margin-bottom: 32px;
    }

    .social-links a {
        width: 44px !important;
        height: 44px !important;
    }
}

/* Vision Section Mobile - Füge das zu index.html styles hinzu */
@media (max-width: 968px) {
    .vision-content {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
    }

    .vision-text h2 {
        font-size: 2rem !important;
    }

    .vision-text p {
        font-size: 1rem !important;
    }

    .vision-image {
        height: 300px !important;
    }

    .image-placeholder {
        font-size: 3rem !important;
    }
}

/* Förderung Section Mobile */
@media (max-width: 968px) {
    .foerderung-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .foerderung-card {
        padding: 40px 24px !important;
    }

    .foerderung-card h2 {
        font-size: 3rem !important;
    }

    .foerderung-card h3 {
        font-size: 1.75rem !important;
    }

    .foerderung-card p {
        font-size: 1rem !important;
    }
}

@media (max-width: 640px) {
    .foerderung-card {
        padding: 32px 20px !important;
    }

    .foerderung-card h2 {
        font-size: 2.5rem !important;
    }

    .foerderung-card h3 {
        font-size: 1.5rem !important;
    }
}

/* Stats Counter Section Mobile */
@media (max-width: 968px) {
    .stats-counter-section {
        padding: 80px 0 !important;
    }

    .counter-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .counter-card {
        padding: 32px 24px !important;
    }

    .counter-number {
        font-size: 3rem !important;
    }
}

@media (max-width: 640px) {
    .counter-grid {
        gap: 24px !important;
    }

    .counter-card {
        padding: 24px 20px !important;
    }

    .counter-number {
        font-size: 2.5rem !important;
    }

    .counter-label {
        font-size: 0.9rem !important;
    }
}

/* Contact Form Mobile */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
    }

    .contact-info-cards {
        grid-template-columns: 1fr !important;
    }

    .contact-form {
        padding: 40px 24px !important;
    }

    .form-group input,
    .form-group textarea {
        font-size: 15px !important;
    }
}

@media (max-width: 640px) {
    .contact-form {
        padding: 32px 20px !important;
    }

    .form-row {
        flex-direction: column !important;
    }
}

/* Problem Cards Mobile */
@media (max-width: 968px) {
    .problem-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .problem-card {
        padding: 32px 24px !important;
    }
}

@media (max-width: 640px) {
    .problem-card {
        padding: 24px 20px !important;
    }

    .problem-icon {
        font-size: 2rem !important;
    }
}

/* FAQ Mobile */
@media (max-width: 968px) {
    .faq-container {
        padding: 0 !important;
    }

    .faq-item {
        padding: 24px 20px !important;
    }

    .faq-question {
        font-size: 1.1rem !important;
    }

    .faq-answer {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 640px) {
    .faq-item {
        padding: 20px 16px !important;
    }

    .faq-question {
        font-size: 1rem !important;
    }
}

/* Legal Pages Mobile */
@media (max-width: 968px) {
    .legal-hero {
        padding: 120px 0 60px !important;
    }

    .legal-hero h1 {
        font-size: 2.5rem !important;
    }

    .legal-content {
        padding: 60px 0 !important;
    }

    .legal-container {
        padding: 0 20px !important;
    }

    .legal-section h2 {
        font-size: 1.75rem !important;
    }

    .legal-section h3 {
        font-size: 1.3rem !important;
    }

    .legal-info-box {
        padding: 20px !important;
    }
}

@media (max-width: 640px) {
    .legal-hero {
        padding: 100px 0 50px !important;
    }

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

    .legal-container {
        padding: 0 16px !important;
    }

    .legal-section {
        margin-bottom: 36px !important;
    }

    .legal-section h2 {
        font-size: 1.5rem !important;
    }

    .legal-section h3 {
        font-size: 1.2rem !important;
    }
}

/* Cookie Banner Mobile - Bereits vorhanden aber hier zur Sicherheit */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 28px 20px !important;
    }

    .cookie-banner-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-header h3 {
        font-size: 1.2rem !important;
    }

    .cookie-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .cookie-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .cookie-banner-text {
        font-size: 14px !important;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100% !important;
        min-width: auto !important;
        padding: 12px 24px !important;
    }

    .cookie-category {
        padding: 16px !important;
    }

    .cookie-category-title {
        font-size: 1rem !important;
    }
}

/* Overflow Fix - WICHTIG! */
* {
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    position: relative;
}

.container {
    overflow-x: hidden;
}

/* Bilder responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Tabellen responsive */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Verhindere horizontales Scrollen */
.hero::before,
.hero::after {
    max-width: 100vw;
}

/* Navigation Fix für sehr kleine Bildschirme */
@media (max-width: 380px) {
    .logo {
        font-size: 20px !important;
    }

    .mobile-menu-btn span {
        width: 24px !important;
    }

    .nav-content {
        padding: 16px 0 !important;
    }
}

/* Zusätzliche Touch-Optimierungen */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .btn-outline,
    .btn-nav,
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* ==========================================
   MOBILE MENU FIX - Hamburger-Menü klickbar machen
   ========================================== */

/* WICHTIG: Stelle sicher, dass das Mobile-Menü immer klickbar ist */
.mobile-menu-btn {
    position: relative;
    z-index: 10001 !important;
    cursor: pointer;
    pointer-events: auto !important;
}

/* Navigation sollte über anderen Elementen sein */
.navbar {
    position: fixed;
    z-index: 10000 !important;
}

/* Stelle sicher dass Navigation-Elemente nicht blockiert werden */
.nav-content {
    position: relative;
    z-index: 10001;
}

/* Verhindere dass Hero-Sections das Menü überlagern */
.workshops-hero,
.hero,
.legal-hero,
.contact-hero {
    position: relative;
    z-index: 1 !important;
}

/* Mobile Navigation muss über allem sein */
.nav-links {
    z-index: 10002 !important;
}

/* Cookie-Banner sollte unter Navigation sein */
.cookie-banner,
.cookie-banner-overlay {
    z-index: 9999 !important;
}

/* Zusätzlicher Fix: Stelle sicher, dass Menü-Button Touch-Events erhält */
@media (max-width: 968px) {
    .mobile-menu-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Vergrößere den klickbaren Bereich */
    .mobile-menu-btn {
        padding: 12px !important;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Stelle sicher, dass nichts das Menü überlappt */
    .navbar {
        isolation: isolate;
    }
}
