/**
 * RESPONSIVE.CSS - Media Queries
 */

/* TABLET & SMALL DESKTOP (1024px) */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(67, 221, 255, 0.15);
        border-radius: 20px;
        flex-direction: column;
        padding: 2rem;
        margin-top: 1rem;
        gap: 0;
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        margin: 0.5rem 0;
        border-radius: 15px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* TABLET (768px) */
@media (max-width: 768px) {
    nav {
        height: 70px;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .logo-img {
        height: 36px;
        max-width: 150px;
    }
    
    .hero {
        min-height: 80vh;
        padding: 5rem 1rem 3rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-visual {
        width: 300px;
        height: 300px;
        opacity: 0.05;
    }
    
    .simple-logo {
        font-size: 6rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-graphic {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .references-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .particles-container {
        opacity: 0.5;
    }
    
    .particle.large,
    .glowing-orb.orb-2 {
        display: none;
    }
}

/* MOBILE (480px) */
@media (max-width: 480px) {
    nav {
        height: 65px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 32px;
        max-width: 120px;
    }
    
    .hero {
        padding: 4.5rem 0.5rem 2rem;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .hero-visual {
        width: 250px;
        height: 250px;
    }
    
    .simple-logo {
        font-size: 5rem;
    }
    
    .btn {
        max-width: 250px;
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .section {
        padding: 3rem 0.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-graphic {
        width: 70px;
        height: 70px;
    }
    
    .stats-dashboard {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 1.2rem;
        font-size: 0.95rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .glowing-orbs {
        display: none;
    }
}

/* EXTRA SMALL (360px) */
@media (max-width: 360px) {
    .hero {
        padding: 4rem 0.5rem 2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-visual {
        width: 200px;
        height: 200px;
    }
    
    .simple-logo {
        font-size: 4rem;
    }
    
    .btn {
        max-width: 220px;
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .service-card,
    .reference-card {
        padding: 1.5rem 1rem;
    }
}

/* SCROLLBAR (Desktop) */
@media (min-width: 1025px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #0a0a0f;
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #43ddff 0%, #988cfd 100%);
        border-radius: 4px;
    }
}

/* TOUCH DEVICES */
@media (hover: none) {
    .service-card:hover,
    .reference-card:hover,
    .tech-category:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* In responsive.css ERSETZEN oder ERGÄNZEN */

/* TABLET (768px) */
@media (max-width: 768px) {
    .process-timeline {
        padding: 1rem 0;
        max-width: 100%;
        overflow-x: hidden; /* Verhindert horizontales Scrollen */
    }
    
    .timeline-line {
        left: 35px; /* Angepasst an kleinere Step-Number */
        top: 100px; /* Startet nach erstem Step-Icon */
        bottom: 100px;
    }
    
    .process-step {
        flex-direction: row; /* Behält Horizontal-Layout */
        gap: 1.5rem;
        margin-bottom: 3rem;
        align-items: flex-start; /* Wichtig für Alignment */
    }
    
    .step-number {
        flex-shrink: 0; /* Verhindert Schrumpfen */
        margin-top: 0.5rem; /* Besseres Alignment mit Content */
    }
    
    .step-number > span {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
    }
    
    .step-icon {
        font-size: 1.5rem; /* Kleineres Icon */
    }
    
    .step-content {
        padding: 2rem 1.5rem;
        width: 100%; /* Verhindert Overflow */
    }
    
    .step-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start; /* Links ausrichten */
    }
    
    .step-duration {
        align-self: flex-start; /* Nicht stretched */
    }
    
    .step-features {
        grid-template-columns: 1fr; /* Single Column auf Tablet */
        gap: 0.6rem;
    }
    
    /* Hover-Effekt anpassen */
    .process-step:hover .step-content {
        transform: translateX(0) translateY(-5px); /* Nur nach oben */
    }
    
    .process-cta {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }
    
    .process-cta h3 {
        font-size: 1.5rem;
    }
    
    .process-cta p {
        font-size: 1rem;
    }
}

/* MOBILE (480px) - KRITISCHE FIXES */
@media (max-width: 480px) {
    .process {
        padding: 3rem 1rem; /* Reduziertes Padding */
    }
    
    .process-timeline {
        padding: 0.5rem 0;
    }
    
    /* Timeline komplett links verschieben */
    .timeline-line {
        left: 30px; /* Zentriert unter Step-Number */
        top: 80px;
        bottom: 80px;
        width: 2px;
    }
    
    .process-step {
        flex-direction: column; /* Vertical Stack auf Mobile */
        gap: 1rem;
        margin-bottom: 2.5rem;
        padding-left: 0; /* Kein Extra-Padding */
    }
    
    .step-number {
        align-self: flex-start; /* Links ausrichten */
        margin-left: 0;
    }
    
    .step-number > span {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
        border-width: 2px; /* Dünnerer Border */
    }
    
    .step-icon {
        font-size: 1.2rem;
    }
    
    .step-content {
        padding: 1.5rem 1rem;
        margin-left: 0; /* Kein Offset */
        width: calc(100% - 0rem); /* Volle Breite minus Padding */
    }
    
    .step-content h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .step-header {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .step-duration {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
    }
    
    .step-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .step-features {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .step-features li {
        font-size: 0.85rem;
    }
    
    /* Hover-Effekte deaktivieren auf Mobile */
    .process-step:hover .step-content {
        transform: none;
    }
    
    .process-step:hover .step-number > span {
        transform: none;
    }
    
    /* Process CTA kompakter */
    .process-cta {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }
    
    .process-cta h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .process-cta p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .process-cta .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* EXTRA SMALL (360px) - Zusätzliche Fixes */
@media (max-width: 360px) {
    .process {
        padding: 2.5rem 0.5rem;
    }
    
    .timeline-line {
        left: 25px; /* Noch weiter links */
    }
    
    .step-number > span {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .step-icon {
        font-size: 1rem;
    }
    
    .step-content {
        padding: 1.2rem 0.8rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .step-description {
        font-size: 0.85rem;
    }
    
    .step-features li {
        font-size: 0.8rem;
    }
    
    .process-cta h3 {
        font-size: 1.2rem;
    }
}