/**
 * LEVERAGE STRATEGIES - Global Responsive Styles
 * Version 1.0 - Alle Endgeräte optimal unterstützt
 * 
 * Breakpoints:
 * - Mobile S: 320px
 * - Mobile M: 375px
 * - Mobile L: 425px
 * - Tablet: 768px
 * - Laptop: 1024px
 * - Desktop: 1440px
 * - 4K: 2560px
 */

/* ═══════════════════════════════════════════════════════════════
   BASE RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════════════════ */

/* Container max-widths */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP LARGE (1440px+)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1441px) {
    .container {
        max-width: 1600px;
    }
    
    html {
        font-size: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LAPTOP / DESKTOP (1024px - 1440px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLET LANDSCAPE / SMALL LAPTOP (768px - 1024px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .nav-links {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Grids zu 2 Spalten */
    .projects-grid,
    .verticals-grid,
    .transformation-grid,
    .services-grid,
    .team-grid,
    .partners-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* Hero Sections */
    .hero-title,
    .section-title {
        font-size: clamp(2rem, 5vw, 3.5rem) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2vw, 1.25rem) !important;
    }
    
    /* Spacing reduzieren */
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLET PORTRAIT (768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    /* Grids zu 1-2 Spalten */
    .projects-grid,
    .verticals-grid,
    .transformation-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
    
    .footer-brand {
        grid-column: 1 / -1 !important;
    }
    
    /* Hero */
    .hero {
        min-height: 80vh !important;
        padding: 6rem 0 4rem !important;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Cards */
    .project-card,
    .service-card,
    .vertical-card {
        padding: 1.5rem !important;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Newsletter */
    .newsletter-input-group {
        flex-direction: column !important;
    }
    
    .newsletter-input-enhanced,
    .newsletter-submit-enhanced {
        width: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE LARGE (425px - 767px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Alles 1 Spalte */
    .services-grid,
    .features-grid,
    .team-grid,
    .partners-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center;
    }
    
    /* Hero - mehr Platz oben für Navigation + Badge */
    .hero {
        min-height: auto !important;
        padding: 7rem 0 3rem !important;
    }
    
    .hero-content {
        padding-top: 0.5rem;
    }
    
    /* Hero Badge - verhindert Abschneiden */
    .hero-badge {
        font-size: 0.7rem !important;
        padding: 6px 10px !important;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .badge-text {
        font-size: 0.7rem !important;
    }
    
    .badge-pulse {
        width: 6px;
        height: 6px;
        flex-shrink: 0;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Section Headers */
    .section-header {
        text-align: center;
        margin-bottom: 2rem !important;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
    
    /* Buttons Touch-optimiert */
    .btn {
        min-height: 48px !important;
        padding: 0.875rem 1.25rem !important;
    }
    
    /* Cards */
    .project-card,
    .service-card {
        padding: 1.25rem !important;
    }
    
    .project-stats {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    /* CTA Section */
    .cta-card {
        padding: 2rem 1.5rem !important;
    }
    
    .cta-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .cta-actions .btn {
        width: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE MEDIUM (375px - 424px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 424px) {
    .container {
        padding: 0 0.875rem;
    }
    
    .hero {
        padding: 6.5rem 0 2.5rem !important;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .section-title {
        font-size: 1.375rem !important;
    }
    
    /* Badges - kleiner für enge Bildschirme */
    .hero-badge,
    .section-badge {
        font-size: 0.625rem !important;
        padding: 5px 8px !important;
        gap: 4px !important;
    }
    
    .badge-text {
        font-size: 0.625rem !important;
    }
    
    /* Project Cards compact */
    .project-card .project-content {
        padding: 1rem !important;
    }
    
    .project-title {
        font-size: 1.125rem !important;
    }
    
    .project-description {
        font-size: 0.875rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SMALL (320px - 374px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 374px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 6rem 0 2rem !important;
    }
    
    .hero-title {
        font-size: 1.375rem !important;
    }
    
    /* Badges - minimale Größe */
    .hero-badge,
    .section-badge {
        font-size: 0.6rem !important;
        padding: 4px 6px !important;
        gap: 3px !important;
    }
    
    .badge-text {
        font-size: 0.6rem !important;
    }
    
    .badge-pulse {
        width: 5px !important;
        height: 5px !important;
    }
    
    .btn {
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Footer kompakt */
    .footer-newsletter {
        padding: 2rem 1rem !important;
    }
    
    .newsletter-title {
        font-size: 1.25rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LANDSCAPE MODE MOBILE
   ═══════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto !important;
        padding: 3rem 0 !important;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .mobile-menu-overlay {
        padding: 1rem !important;
    }
    
    .mobile-nav-links {
        gap: 0.5rem !important;
    }
    
    .mobile-nav-link {
        padding: 0.5rem 0 !important;
        font-size: 1rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TOUCH DEVICE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets */
    a, button, .btn, .clickable {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Keine Hover-Effekte */
    .project-card:hover,
    .service-card:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* Cursor-Effekt ausblenden */
    #cursorGlow,
    #laserDot {
        display: none !important;
    }
    
    /* Footer Links größer */
    .footer-link {
        padding: 0.5rem 0 !important;
        display: inline-block;
    }
    
    /* Mobile Menu Touch-optimiert */
    .mobile-nav-link {
        padding: 1rem 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HIGH DPI / RETINA DISPLAYS
   ═══════════════════════════════════════════════════════════════ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Schärfere Borders */
    .project-card,
    .service-card,
    .btn {
        border-width: 0.5px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */
@media print {
    .navigation,
    .mobile-menu-overlay,
    .canvas,
    #cursorGlow,
    #laserDot,
    .footer-newsletter,
    .cta-section {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    section {
        page-break-inside: avoid;
    }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION (Accessibility)
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .gradient-orb {
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE PREFERENCE (falls benötigt)
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: light) {
    /* Website ist bereits dark - keine Änderung nötig */
    /* Falls Light Mode gewünscht: hier Styles hinzufügen */
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #00C896;
}

.mobile-menu-cta {
    margin-top: 2rem;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.mobile-menu-close:hover {
    color: #00C896;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE FILTER/TAB NAVIGATION - DROPDOWN ALTERNATIVE
   Ersetzt horizontale Tabs durch elegantes Dropdown auf Mobile
   ═══════════════════════════════════════════════════════════════ */

/* Desktop: Dropdown verstecken */
.mobile-filter-select {
    display: none;
}

/* Mobile: Tabs verstecken, Dropdown zeigen */
@media (max-width: 768px) {
    /* --- Service Navigation (services-premium.html) --- */
    .service-nav-inner {
        display: none !important;
    }
    
    .service-nav .mobile-filter-wrapper {
        display: block;
    }
    
    /* --- Filter Tabs (showroom.html) --- */
    .filter-tabs {
        display: none !important;
    }
    
    .filter-tabs + .mobile-filter-select {
        display: block;
        margin-bottom: 1.5rem;
    }
    
    /* --- Insights Filters (insights.html) --- */
    .filters-container > .filter-btn,
    .filters-container > .filter-label,
    .filters-container > .search-results-info {
        display: none !important;
    }
    
    .filters-container .mobile-filter-select {
        display: block;
        width: 100%;
    }
    
    /* Search box bleibt sichtbar */
    .filters-container .search-box {
        display: flex !important;
        width: 100%;
        margin-bottom: 12px;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 12px;
    }
    
    /* --- Position Filters (careers.html) --- */
    .positions-filters {
        display: none !important;
    }
    
    .positions-filters ~ .mobile-filter-select {
        display: block;
        margin-bottom: 2rem;
    }
}

/* Dropdown Styling - Premium Glassmorphism Look */
.mobile-filter-select {
    width: 100%;
    max-width: 100%;
    padding: 12px 44px 12px 16px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #F8F9FB;
    background: rgba(20, 25, 41, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300C896' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.mobile-filter-select:hover,
.mobile-filter-select:focus {
    border-color: rgba(0, 200, 150, 0.5);
    background: rgba(20, 25, 41, 0.85);
    box-shadow: 0 4px 24px rgba(0, 200, 150, 0.15);
    outline: none;
}

/* iOS/Safari Glassmorphism für Dropdown-Optionen */
.mobile-filter-select option {
    background: #141929;
    color: #F8F9FB;
    padding: 14px 16px;
}

/* Custom Select Wrapper für besseres Glassmorphism-Styling */
@supports (-webkit-touch-callout: none) {
    /* iOS-spezifisches Styling */
    .mobile-filter-select {
        background: rgba(20, 25, 41, 0.85);
    }
}

/* Wrapper für bessere Positionierung */
.mobile-filter-wrapper {
    display: none; /* Versteckt auf Desktop */
    position: relative;
    width: 100%;
    margin: 0 auto 12px;
}

/* ═══════════════════════════════════════════════════════════════
   INSIGHTS PAGE - FILTER SECTION COMPACT MOBILE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Insights Filter Section - kompakter */
    .filters {
        padding: 10px 0 !important;
    }
    
    .filters-container {
        padding: 0 1rem !important;
        gap: 8px !important;
    }
    
    /* Search Box abgerundet */
    .filters-container .search-box {
        margin-bottom: 8px !important;
    }
    
    .search-input {
        padding: 10px 38px 10px 40px !important;
        border-radius: 12px !important;
    }
    
    /* Mobile Filter Select innerhalb Filters kompakter */
    .filters-container .mobile-filter-select {
        padding: 10px 42px 10px 14px !important;
        border-radius: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES PAGE - MOBILE DROPDOWN FIX
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Services Nav - Dropdown auf Mobile zeigen */
    .service-nav {
        padding: 10px 0 !important;
        margin-bottom: 2rem !important;
    }
    
    .service-nav-inner {
        display: none !important;
    }
    
    .service-nav .mobile-filter-wrapper {
        display: block !important;
        padding: 0 1rem !important;
        margin: 0 !important;
    }
    
    .service-nav .mobile-filter-select {
        display: block !important;
        width: 100% !important;
    }
    
    /* Hero Buttons sichtbar halten */
    .hero-actions {
        position: relative;
        z-index: 10;
    }
    
    /* Services Hero mehr Abstand nach unten */
    .services-premium .hero,
    section.hero {
        padding-bottom: 2rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DEMO-SPECIFIC RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Hotel Demo */
@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: 1fr !important;
    }
    
    .dining-grid {
        grid-template-columns: 1fr !important;
    }
    
    .event-grid {
        grid-template-columns: 1fr !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .booking-form {
        flex-direction: column !important;
    }
    
    .booking-form input,
    .booking-form select,
    .booking-form button {
        width: 100% !important;
    }
}

/* Medical Demo */
@media (max-width: 768px) {
    .treatment-grid {
        grid-template-columns: 1fr !important;
    }
    
    .doctor-grid {
        grid-template-columns: 1fr !important;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Commerce/HypeDrop Demo */
@media (max-width: 768px) {
    .drops-grid {
        grid-template-columns: 1fr !important;
    }
    
    .creator-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .trust-bar {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .trust-item {
        flex: 0 0 45% !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .creator-grid {
        grid-template-columns: 1fr !important;
    }
    
    .trust-item {
        flex: 0 0 100% !important;
    }
}

/* AI/Meta/Discord Demos */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .channel-list {
        max-height: 300px !important;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }
}

