/* =============================================
   MOBILE RESPONSIVE CSS - Header & Footer Focus
   Optimiert für Smartphones und Tablets
   ============================================= */

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

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--light-gray);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--dark);
    margin: 5px auto;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* =============================================
   TABLET STYLES (769px - 1024px)
   ============================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Header */
    .header-top .container {
        gap: 20px;
        padding: 12px 20px;
    }

    .logo-icon svg {
        width: 42px;
        height: 42px;
    }

    .logo-name {
        font-size: 1.1rem;
    }

    .search-bar {
        max-width: 350px;
    }

    .search-bar input {
        font-size: 0.85rem;
    }

    .search-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* Navigation */
    .nav-list {
        gap: 3px;
    }

    .nav-list li a {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* =============================================
   MOBILE STYLES (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
    /* Header - Mobile */
    .header {
        position: relative;
        z-index: 100;
    }

    .header-top {
        padding: 10px 0;
        background: white;
        position: relative;
        z-index: 101;
    }

    .header-top .container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 15px;
    }

    /* Logo - Mobile */
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
    }

    .logo-icon svg {
        width: 40px;
        height: 40px;
    }

    .logo-name {
        font-size: 1.05rem;
        white-space: nowrap;
        font-weight: 800;
    }

    .logo-tagline {
        font-size: 0.65rem;
    }

    /* Header Actions + Menu - all in row */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .action-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--primary);
        color: white;
    }

    .action-btn svg {
        width: 18px;
        height: 18px;
    }

    .phone-btn {
        background: var(--primary);
        color: white;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        margin-left: 0;
        background: var(--light-gray);
        border-radius: 8px;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2.5px;
        margin: 3px auto;
        background: var(--dark);
        border-radius: 2px;
    }

    .mobile-menu-toggle.active {
        background: var(--dark);
    }

    .mobile-menu-toggle.active span {
        background: white;
    }

    /* Search Bar - Hidden */
    .search-bar {
        display: none !important;
    }

    /* =============================================
       HERO SLIDER - MOBILE (Komplett neu)
       ============================================= */
    .hero-slider {
        height: 280px;
        position: relative;
    }

    .slide-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
    }

    .slide-content {
        padding: 25px 20px;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding-top: 20px;
    }

    .slide-content h1 {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .slide-content h1 br {
        display: none;
    }

    .slide-content h1 .highlight {
        color: #E53935;
        display: inline;
        font-size: inherit;
    }

    .slide-content p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
        opacity: 0.95;
        max-width: 280px;
    }

    .slide-content p br {
        display: none;
    }

    .slide-content .btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px !important;
        font-size: 0.85rem !important;
        width: fit-content;
        border-radius: 6px;
        background: #E53935 !important;
    }

    .slider-nav {
        bottom: 12px;
        left: 20px;
        right: auto;
        transform: none;
        gap: 10px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        border-width: 1px;
        border-color: rgba(255,255,255,0.4);
    }

    .slider-arrow svg {
        width: 16px;
        height: 16px;
    }

    .slider-dots {
        gap: 5px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    /* =============================================
       FEATURES TAGS - MOBILE
       ============================================= */
    .features-tags {
        padding: 12px 0;
        background: var(--dark);
    }

    .tags-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
    }

    .tag {
        font-size: 0.7rem;
        gap: 4px;
        padding: 4px 0;
        white-space: nowrap;
    }

    .tag svg {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

    /* =============================================
       FORM HERO - MOBILE (Unterseiten)
       ============================================= */
    .form-hero {
        min-height: 280px;
        padding: 30px 15px;
    }

    .form-hero-content {
        text-align: center;
    }

    .service-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    .form-hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .form-hero-content h1 span {
        display: block;
        font-size: 1.3rem;
    }

    .form-hero-content p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .trust-chips {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .trust-chip {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    /* =============================================
       INTRO SECTION - MOBILE
       ============================================= */
    .intro-section {
        padding: 40px 15px !important;
    }

    .intro-section h2 {
        font-size: 1.4rem !important;
    }

    .intro-section p {
        font-size: 0.9rem !important;
    }

    /* Navigation - Mobile (Dropdown under Header) */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--dark);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .nav.active {
        max-height: 400px;
    }

    .nav .container {
        padding: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list li a {
        display: block;
        padding: 14px 20px;
        font-size: 0.95rem;
        font-weight: 500;
        text-align: left;
        transition: all 0.2s ease;
    }

    .nav-list li a:hover,
    .nav-list li a:active {
        background: rgba(229, 57, 53, 0.15);
        color: var(--primary);
    }

    /* Mobile Nav Close Button - Hidden (use toggle) */
    .nav-close {
        display: none;
    }

    /* Overlay for mobile menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.3);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    /* =============================================
       MOBILE FOOTER STYLES
       ============================================= */
    .footer-main {
        padding: 50px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    /* Footer Brand - Mobile */
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand .logo {
        justify-content: center;
        margin-bottom: 15px;
    }

    .footer-desc {
        max-width: 320px;
        font-size: 0.9rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        gap: 15px;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }

    /* Footer Links - Mobile Accordion */
    .footer-links {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 20px;
    }

    .footer-links h4 {
        font-size: 1rem;
        margin-bottom: 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .footer-links h4::after {
        content: '+';
        font-size: 1.2rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }

    .footer-links.open h4::after {
        content: '−';
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-links ul li a {
        font-size: 0.95rem;
        padding: 8px 0;
        display: inline-block;
    }

    /* Footer Contact - Mobile */
    .footer-contact {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 20px;
    }

    .footer-contact h4 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .contact-item {
        justify-content: center;
        margin-bottom: 18px;
    }

    .contact-item svg {
        width: 22px;
        height: 22px;
    }

    .contact-item div {
        text-align: left;
    }

    .contact-item a,
    .contact-item p {
        font-size: 0.95rem;
    }

    /* Footer Bottom - Mobile */
    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        order: 2;
    }

    .footer-legal {
        order: 1;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 25px;
    }

    .footer-legal a {
        font-size: 0.85rem;
        padding: 8px 0;
    }
}

/* =============================================
   SMALL MOBILE STYLES (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
    /* Header - smaller screens */
    .header-top .container {
        padding: 0 12px;
        gap: 8px;
    }

    .logo-icon svg {
        width: 36px;
        height: 36px;
    }

    .logo-name {
        font-size: 0.95rem;
    }

    .logo-tagline {
        font-size: 0.55rem;
    }

    .action-btn {
        width: 36px;
        height: 36px;
    }

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }

    /* Nav items smaller */
    .nav-list li a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    /* Hero - smaller screens */
    .hero-slider {
        height: 250px;
    }

    .slide-content {
        padding: 20px 15px;
    }

    .slide-content h1 {
        font-size: 1.25rem;
    }

    .slide-content p {
        font-size: 0.8rem;
        max-width: 240px;
    }

    .slide-content .btn-primary {
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
    }

    .slider-nav {
        bottom: 10px;
        left: 15px;
    }

    /* Features Tags - smaller */
    .tags-wrapper {
        gap: 4px 8px;
    }

    .tag {
        font-size: 0.65rem;
    }

    .tag svg {
        width: 10px;
        height: 10px;
    }

    /* Form Hero - smaller */
    .form-hero {
        min-height: 220px;
        padding: 20px 12px;
    }

    .form-hero-content h1 {
        font-size: 1.2rem;
    }

    .form-hero-content h1 span {
        font-size: 1rem;
    }

    .form-hero-content p {
        font-size: 0.8rem;
    }

    .trust-chip {
        font-size: 0.6rem;
        padding: 4px 6px;
    }

    /* Navigation */
    .nav {
        width: 100%;
        right: -100%;
    }

    /* Footer */
    .footer-main {
        padding: 40px 0 25px;
    }

    .footer-grid {
        gap: 25px;
    }

    .footer-desc {
        font-size: 0.85rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 0.95rem;
    }

    .footer-links ul li a,
    .contact-item a,
    .contact-item p {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .footer-legal a {
        font-size: 0.8rem;
    }
}

/* =============================================
   MOBILE FORM STYLES - GRÖSSERE ELEMENTE
   ============================================= */
@media (max-width: 768px) {
    /* Form Wrapper */
    .form-wrapper {
        padding: 15px !important;
        margin: 0 10px !important;
    }

    /* Form Card */
    .form-card {
        padding: 20px 15px !important;
    }

    /* Progress Bar */
    .progress-wrap {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .progress-header {
        font-size: 0.9rem !important;
    }

    .progress-count {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }

    .step-dots {
        gap: 8px !important;
    }

    .step-dot-circle {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    .step-dot-label {
        font-size: 0.7rem !important;
    }

    /* Step Heading */
    .step-heading {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
        margin-bottom: 25px !important;
    }

    .step-heading-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .step-heading-icon svg {
        width: 30px !important;
        height: 30px !important;
    }

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

    .step-heading-text p {
        font-size: 0.9rem !important;
    }

    /* FORM INPUTS - GRÖSSER */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px !important; /* Verhindert Zoom auf iOS */
        padding: 16px 18px !important;
        min-height: 56px !important;
        border-radius: 12px !important;
        border-width: 2px !important;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: #E53935 !important;
        box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.15) !important;
    }

    .form-textarea {
        min-height: 120px !important;
    }

    /* Form Labels */
    .form-group label {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        margin-bottom: 10px !important;
        display: block !important;
    }

    .form-group {
        margin-bottom: 20px !important;
    }

    /* Form Row - Untereinander auf Mobile */
    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .form-row .form-group {
        width: 100% !important;
        flex: none !important;
    }

    /* Option Cards (Checkboxes/Radios) - GRÖSSER */
    .option-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .option-card {
        min-height: 70px !important;
    }

    .option-card-inner {
        padding: 18px 16px !important;
        font-size: 1rem !important;
        gap: 12px !important;
    }

    .oc-icon {
        font-size: 1.5rem !important;
    }

    .option-card-check {
        width: 26px !important;
        height: 26px !important;
    }

    /* Toggle Switch - GRÖSSER */
    .toggle-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        padding: 20px !important;
    }

    .toggle-group-info strong {
        font-size: 1rem !important;
    }

    .toggle-group-info span {
        font-size: 0.85rem !important;
    }

    .toggle-switch {
        width: 60px !important;
        height: 34px !important;
    }

    .toggle-slider::before {
        width: 28px !important;
        height: 28px !important;
    }

    /* Summary Bar */
    .summary-bar {
        padding: 20px 15px !important;
        margin: 20px 0 !important;
    }

    .summary-items {
        flex-wrap: wrap !important;
        gap: 20px !important;
    }

    .summary-item {
        flex: 1 1 40% !important;
        min-width: 100px !important;
    }

    .summary-icon {
        font-size: 1.8rem !important;
    }

    .summary-value {
        font-size: 1.3rem !important;
    }

    .summary-label {
        font-size: 0.8rem !important;
    }

    /* Form Navigation Buttons - GRÖSSER */
    .form-nav {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 20px 0 !important;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        width: 100% !important;
        min-height: 60px !important;
        font-size: 1.1rem !important;
        padding: 18px 24px !important;
        border-radius: 12px !important;
        justify-content: center !important;
    }

    .btn-submit {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
    }

    /* Inventory Categories - GRÖSSER */
    .inventory-category {
        margin-bottom: 15px !important;
    }

    .category-header {
        padding: 18px 16px !important;
        min-height: 70px !important;
    }

    .category-icon {
        font-size: 1.8rem !important;
        width: 50px !important;
        height: 50px !important;
    }

    .category-title h4 {
        font-size: 1.05rem !important;
    }

    .category-title span {
        font-size: 0.8rem !important;
    }

    .count-badge {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
    }

    /* Inventory Items - GRÖSSER */
    .item-grid {
        gap: 10px !important;
    }

    .inventory-item {
        padding: 16px !important;
        min-height: 70px !important;
    }

    .item-emoji {
        font-size: 1.6rem !important;
    }

    .item-details h5 {
        font-size: 0.95rem !important;
    }

    .item-details span {
        font-size: 0.8rem !important;
    }

    /* Quantity Selector - GRÖSSER */
    .quantity-selector {
        gap: 8px !important;
    }

    .qty-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.4rem !important;
        border-radius: 10px !important;
    }

    .qty-value {
        font-size: 1.2rem !important;
        min-width: 36px !important;
    }

    /* Step Description */
    .step-description {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .step-description p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }
}

/* =============================================
   KLEINE HANDYS (max-width: 400px)
   ============================================= */
@media (max-width: 400px) {
    .form-wrapper {
        padding: 10px !important;
        margin: 0 5px !important;
    }

    .form-card {
        padding: 15px 12px !important;
    }

    .form-input,
    .form-select {
        padding: 14px 14px !important;
        min-height: 52px !important;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        min-height: 56px !important;
        font-size: 1rem !important;
        padding: 16px 20px !important;
    }

    .qty-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .option-card-inner {
        padding: 14px 12px !important;
        font-size: 0.9rem !important;
    }
}

/* =============================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ============================================= */
@media (max-width: 768px) {
    /* Ensure all clickable elements are touch-friendly */
    a, button, .action-btn, .nav-list li a, .footer-links ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-links ul li a {
        min-height: 44px;
        justify-content: center;
    }

    /* Better tap targets for contact items */
    .contact-item a {
        padding: 5px 0;
    }

    /* Improve scrolling on touch devices */
    html {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent text resize on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* Remove tap highlight on iOS */
    * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* =============================================
   LANDSCAPE MOBILE STYLES
   ============================================= */
@media (max-width: 768px) and (orientation: landscape) {
    .header-top .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        flex: 1;
    }

    .nav {
        width: 300px;
    }
}

/* =============================================
   ANIMATIONS FOR MOBILE MENU
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nav-overlay.active {
    animation: fadeIn 0.2s ease forwards;
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .nav-overlay,
    .cookie-banner {
        display: none !important;
    }
}
