/* ============================================
   HANDHAB - Responsive Stylesheet
   ============================================ */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero - Bildschirmfüllend auf Tablets */
    .hero {
        height: 100vh;
        max-height: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid-large {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
        z-index: 2001;
        position: relative;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Mobile Menu Overlay - wird durch JavaScript erstellt */
    /* Overlay deckt den Hintergrund ab, aber NICHT das Menü (z-index niedriger) */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.4);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1998 !important;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        pointer-events: all;
        z-index: 1998 !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background-color: #FFFFFF !important;
        flex-direction: column;
        align-items: stretch;
        padding: 3rem 0 2rem;
        gap: 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 40px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
        z-index: 3000 !important;
        /* Stelle sicher, dass das Menü immer hell bleibt - KEINE Verdunkelung */
        filter: none !important;
        opacity: 1 !important;
        mix-blend-mode: normal !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        isolation: isolate;
        transform: translateZ(0);
        will-change: right;
        /* Stelle sicher, dass das Menü über dem Overlay liegt */
        position: fixed !important;
    }
    
    .nav-menu.active {
        right: 0;
        left: auto;
        background-color: #FFFFFF !important;
        filter: none !important;
        opacity: 1 !important;
        transform: translateZ(0);
        z-index: 3000 !important;
    }
    
    /* Stelle sicher, dass das Menü IMMER über dem Overlay liegt */
    .nav-menu,
    .nav-menu.active {
        z-index: 3000 !important;
    }
    
    .mobile-menu-overlay {
        z-index: 1998 !important;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
        background-color: transparent !important;
        opacity: 1 !important;
        filter: none !important;
    }
    
    .nav-menu li:first-child {
        border-top: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1.5rem 2rem;
        width: 100%;
        font-size: 1.05rem;
        font-weight: 400;
        color: #2C2C2C !important;
        transition: all 0.25s ease;
        text-align: left;
        background-color: transparent !important;
        position: relative;
        opacity: 1 !important;
        filter: none !important;
        mix-blend-mode: normal !important;
    }
    
    .nav-menu a:hover {
        background-color: rgba(122, 107, 79, 0.06);
        color: var(--color-primary);
        padding-left: 2.25rem;
    }
    
    .nav-menu a.active {
        background-color: rgba(122, 107, 79, 0.1);
        color: var(--color-primary);
        font-weight: 500;
        border-left: 4px solid var(--color-primary);
        padding-left: calc(2rem - 4px);
    }
    
    .nav-menu .cart-icon-wrapper {
        border-bottom: none;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 2px solid var(--color-border);
    }
    
    .nav-menu .cart-icon-wrapper a {
        padding: 1.5rem 2rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1.05rem;
        color: var(--color-text);
    }
    
    .nav-menu .cart-icon-wrapper a:hover {
        background-color: rgba(122, 107, 79, 0.06);
        color: var(--color-primary);
        padding-left: 2.25rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    /* Hero - Bildschirmfüllend auf mobilen Geräten */
    .hero {
        height: 100vh;
        max-height: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-motto {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Sections - Bessere Trennung */
    section {
        padding: var(--spacing-xl) 0;
        margin-bottom: 0;
    }
    
    /* Visuelle Trennung zwischen Sektionen */
    .welcome-section,
    .products-preview,
    .philosophy-section {
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }
    
    .welcome-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .products-preview {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .philosophy-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-card img {
        height: 280px;
    }
    
    .product-card-content {
        padding: 1.5rem 1.5rem;
        min-height: 150px;
    }
    
    .product-card-content h3 {
        font-size: 1.375rem;
        min-height: 2em;
        margin-bottom: 0.625rem;
    }
    
    .product-card-content p {
        font-size: 0.9375rem;
        min-height: 3em;
        margin-bottom: 1rem;
    }
    
    .product-card .product-price {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
    
    .product-card .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .products-grid-large {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .shop-item-image {
        height: 280px;
    }
    
    .shop-item-content {
        padding: 1.5rem 1.5rem;
        min-height: 150px;
    }
    
    .shop-item-title {
        font-size: 1.375rem;
        min-height: 2em;
        margin-bottom: 0.625rem;
    }
    
    .shop-item-description {
        font-size: 0.9375rem;
        min-height: 3em;
        margin-bottom: 1rem;
    }
    
    /* Philosophy Grid */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .philosophy-item {
        padding: 2rem 1rem;
        border-bottom: 1px solid var(--color-border);
    }
    
    .philosophy-item:last-child {
        border-bottom: none;
    }
    
    /* Philosophy Icons - Größer auf mobilen Geräten */
    .philosophy-icon img,
    .philosophy-card .philosophy-icon img {
        width: 320px;
        max-width: 90%;
        max-height: 320px;
        margin-bottom: 1.5rem;
    }
    
    .philosophy-item h3 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .philosophy-item p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .wir-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .wir-images-grid img {
        height: 200px;
    }
    
    /* Story Section */
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-image {
        margin-bottom: 2rem;
    }
    
    .story-text {
        padding: 0 1rem;
    }
    
    .location-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--color-border);
    }
    
    .contact-form-wrapper {
        padding-top: 2rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer {
        padding: 3rem 0 2rem;
        margin-top: 4rem;
        border-top: 2px solid var(--color-border);
    }
    
    .footer-col {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--color-border);
    }
    
    .footer-col:last-child {
        border-bottom: none;
    }
    
    /* Page Header */
    .page-header {
        padding: 3rem 0;
        margin-bottom: 0;
    }
    
    /* Product Cards */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
        gap: 2rem;
        padding: 0 0.5rem;
        justify-content: center;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
        margin-bottom: 0;
        border-radius: 12px;
    }
    
    .product-card img {
        height: 300px;
    }
    
    .product-card-content {
        padding: 1.5rem 1.75rem;
        min-height: 160px;
    }
    
    .product-card-content h3 {
        font-size: 1.5rem;
        min-height: 2em;
    }
    
    .product-card-content p {
        font-size: 1rem;
        min-height: 3.2em;
    }
    
    .product-card .product-price {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-card .btn {
        padding: 0.875rem 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--color-border);
    }
    
    /* Legal */
    .legal-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .legal-nav-link {
        text-align: center;
    }
    
    /* Filters */
    .products-filter,
    .shop-filters,
    .gallery-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        padding: var(--spacing-md);
    }
    
    /* Lightbox */
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: var(--spacing-xs);
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    :root {
        --spacing-xl: 3.5rem;
        --spacing-lg: 2.5rem;
    }
    
    .products-grid {
        padding: 0 0.75rem;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-card img {
        height: 260px;
    }
    
    .product-card-content {
        padding: 1.25rem 1.25rem;
        min-height: 140px;
    }
    
    .product-card-content h3 {
        font-size: 1.25rem;
        min-height: 2em;
        margin-bottom: 0.5rem;
    }
    
    .product-card-content p {
        font-size: 0.9375rem;
        margin-bottom: 0.875rem;
        min-height: 2.8em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .product-card .product-price {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }
    
    .product-card .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-motto {
        font-size: 1.1rem;
    }
    
    .hero-location {
        font-size: 1rem;
    }
    
    /* Sections noch mehr Abstand */
    section {
        padding: 3.5rem 0;
    }
    
    .welcome-section,
    .products-preview,
    .philosophy-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .shop-item {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .shop-item-image {
        height: 260px;
    }
    
    .shop-item-content {
        padding: 1.25rem 1.25rem;
        min-height: 140px;
    }
    
    .shop-item-title {
        font-size: 1.25rem;
        min-height: 2em;
        margin-bottom: 0.5rem;
    }
    
    .shop-item-description {
        font-size: 0.9375rem;
        margin-bottom: 0.875rem;
        min-height: 2.8em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .wir-images-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wir-images-grid img {
        height: 250px;
    }
    
    /* Philosophy Icons - Noch größer auf kleinen mobilen Geräten */
    .philosophy-icon img,
    .philosophy-card .philosophy-icon img {
        width: 350px;
        max-width: 95%;
        max-height: 350px;
    }
    
    .philosophy-grid {
        gap: 2.5rem;
    }
    
    .philosophy-item {
        padding: 2rem 0.5rem;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
    
    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
        margin-top: 0.75rem;
    }
    
    .cart-item-quantity {
        justify-content: flex-start;
    }
    
    .cart-item-total {
        text-align: left;
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    /* Bessere Trennung für kleine Bildschirme */
    .welcome-content,
    .story-text,
    .location-content {
        padding: 0 0.5rem;
    }
    
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hero-indicators,
    .btn,
    .cart-section,
    .modal {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .page-header {
        background: none;
        color: black;
    }
}
