/*
Theme Name: ForsaInGermany Child
Template: forsaingermany-theme
Version: 1.0.0
*/

/* ============================================
   MOBILE MENU - HAMBURGER
   ============================================ */

/* Hamburger button - hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2c5aa0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Desktop nav */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

/* ============================================
   GLOBAL - Prevent horizontal scroll
   ============================================ */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Break long German words */
h1, h2, h3, h4, h5, h6, p, span, a, li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* ============================================
   MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        position: relative;
    }
    
    /* Show hamburger */
    .menu-toggle {
        display: flex;
    }
    
    /* Nav container */
    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    /* Mobile menu - hidden by default */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 1rem;
        padding: 0;
        background: #fff;
        border-radius: 5px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    /* Show menu when active */
    .nav-links.active {
        display: flex;
    }
    
    /* Menu items */
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
        list-style: none;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        text-decoration: none;
        color: #555;
        font-size: 1rem;
        transition: all 0.3s;
    }
    
    .nav-links a:hover {
        background: #f0f4ff;
        color: #2c5aa0;
    }
    
    /* Hamburger animation when active */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero - smaller on mobile */
    .hero h1 {
        font-size: 1.6rem !important;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    .hero {
        padding: 3rem 1rem !important;
        overflow-wrap: break-word;
    }
    
    /* Grids - single column */
    .info-grid,
    .partners-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Form padding */
    .form-container,
    .event-details,
    .about-content {
        padding: 1.5rem !important;
    }
    
    /* Detail items - fix overflow */
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .detail-label {
        margin-bottom: 0.5rem;
        min-width: auto !important;
        width: 100%;
    }
    
    /* Program table - make it scrollable */
    .program-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.9rem;
    }
    
    .program-table th,
    .program-table td {
        padding: 0.5rem;
        white-space: normal;
        word-break: break-word;
    }
    
    /* Container fix */
    .container {
        padding: 1rem !important;
        overflow-x: hidden;
    }
    
    /* Section title fix */
    .section-title {
        font-size: 1.5rem !important;
        word-break: break-word;
    }
    
    /* Event status box */
    .event-status-box {
        word-break: break-word;
    }
}
