/* ============================================================
   HOHENLOHE AKTIVTOURS — Mobile Responsive CSS
   Eingebunden via head.phtml, greift ab 768px
   ============================================================ */

/* --- Hamburger Button (immer vorhanden, auf Desktop versteckt) --- */
#mob-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    background: #308d91;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
#mob-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
#mob-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#mob-menu-toggle.open span:nth-child(2) { opacity: 0; }
#mob-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile Nav Overlay --- */
#mob-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 8888;
}
#mob-nav-overlay.open { display: block; }

/* --- Mobile Nav Drawer --- */
#mob-nav-drawer {
    display: none;
    position: fixed;
    top: 0; right: -280px;
    width: 260px;
    height: 100%;
    background: #1a3a2a;
    z-index: 9990;
    padding: 60px 0 20px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
}
#mob-nav-drawer.open { right: 0; display: block; }
#mob-nav-drawer a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
}
#mob-nav-drawer a:hover { background: rgba(255,255,255,0.1); }
#mob-nav-drawer a.mob-cta {
    margin: 16px 16px 0;
    background: #308d91;
    border-radius: 6px;
    text-align: center;
    border: none;
}

@media (max-width: 768px) {

    /* === GRUNDLAYOUT === */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .wrapper {
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        background-size: cover !important;
    }

    /* === HEADER === */
    .header-container,
    .header {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    /* Slider auf Startseite ausblenden, nur Logo zeigen */
    #topSlide_ch,
    #tourButton,
    #arrow_left,
    #arrow_right,
    div[id^="miniImage"] {
        display: none !important;
    }

    .header h1.logo,
    .header a.logo {
        position: static !important;
        display: block !important;
        text-align: center !important;
        padding: 12px 0 8px !important;
        width: 100% !important;
    }

    .header h1.logo img,
    .header a.logo img {
        max-width: 180px !important;
        height: auto !important;
    }

    /* Header-Bild auf Unterseiten */
    #header-picture {
        display: none !important;
    }

    /* Quick-Access (Suche, Login) minimieren */
    .quick-access-wrapper {
        display: none !important;
    }

    /* === NAVIGATION === */
    .nav-container {
        display: none !important;
    }

    /* Hamburger anzeigen */
    #mob-menu-toggle {
        display: flex !important;
    }

    /* === MAIN CONTENT === */
    .main-container,
    .main,
    .col-main,
    .col1-layout .col-main,
    .col2-left-layout .col-main,
    .col2-right-layout .col-main {
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px 12px !important;
        margin: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    .col-left, .col-right {
        width: 100% !important;
        float: none !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    /* === BILDER === */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* === TEXTE & BREITEN === */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Inline-Styles mit fester Breite überschreiben */
    [style*="width: 1000px"],
    [style*="width:1000px"] {
        width: 100% !important;
    }

    /* === PRODUKT-GRID === */
    .products-grid .item,
    ul.products-grid li.item {
        width: 48% !important;
        margin: 1% !important;
    }

    /* === FOOTER === */
    .footer-container {
        width: 100% !important;
    }

    .footer .col {
        width: 100% !important;
        float: none !important;
        padding: 0 12px 16px !important;
        box-sizing: border-box !important;
    }

    /* === SEITENLEISTE Rechts (Wetter, Warenkorb) === */
    .right-bar,
    .sidebar-right,
    #weather-widget,
    .block-cart {
        display: none !important;
    }

    /* === FORMULARE === */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        width: 100% !important;
        font-size: 16px !important; /* verhindert Auto-Zoom auf iOS */
        box-sizing: border-box !important;
    }

    /* === BUTTONS === */
    .btn-cart,
    button.button,
    .button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
    }

    /* === TABELLEN === */
    table {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
    }

    /* === GALERIE (Impressionen) === */
    .gal-grid {
        grid-template-columns: repeat(2,1fr) !important;
    }
    .gal-item.wide {
        grid-column: span 1 !important;
    }

    /* === CMS-SEITEN Inhalte === */
    .std table,
    .std img {
        max-width: 100% !important;
    }

    /* === FIRMENEVENTS / HERO-BANNER === */
    .fe-hero {
        padding: 24px 16px !important;
        border-radius: 8px !important;
    }
    .fe-hero h1 { font-size: 20px !important; }
    .fe-cards {
        flex-direction: column !important;
    }
    .fe-card {
        width: 100% !important;
        margin-bottom: 12px !important;
    }
    .fe-price-box {
        flex-direction: column !important;
    }

}
