/* ===== RESPONSIVE DESIGN - REFERENZ-BASIERT ===== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title,
    .section-title-white {
        font-size: 3rem;
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Tablet (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .competencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experience-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-md);
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    /* Sections */
    .section-title,
    .section-title-white {
        font-size: 2.25rem;
    }
    
    .competencies-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .experience-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    /* New Sections - Tablet */
    .market-entry-content,
    .supply-chain-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-sm);
    }
    
    /* Header */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .btn-hero {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }
    
    /* Sections */
    :root {
        --spacing-3xl: 4rem;
    }
    
    .section-title,
    .section-title-white {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .section-subtitle-white {
        font-size: 1.125rem;
    }
    
    /* Competencies */
    .competencies-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .competency-card {
        padding: var(--spacing-lg);
    }
    
    .competency-icon {
        font-size: 2.5rem;
    }
    
    .competency-card h3 {
        font-size: 1.25rem;
    }
    
    /* Experience Stats */
    .experience-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* New Sections - Mobile Large */
    .market-entry-content,
    .supply-chain-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .section-image {
        height: 300px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 3rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header */
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    .language-btn {
        padding: var(--spacing-xs);
        font-size: 0.875rem;
    }
    
    .hamburger span {
        width: 20px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: var(--spacing-md);
    }
    
    .btn-hero {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Mobile Menu */
    .mobile-link {
        font-size: 1.25rem;
    }
    
    /* Sections */
    .section-title,
    .section-title-white {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .section-subtitle-white {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Competencies */
    .competency-card {
        padding: var(--spacing-md);
    }
    
    .competency-icon {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .competency-card h3 {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .competency-card p {
        font-size: 0.9rem;
    }
    
    /* Experience Stats */
    .experience-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat-item {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-logo img {
        height: 30px;
    }
    
    .footer-contact h4 {
        font-size: 1.125rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    /* New Sections - Mobile Small */
    .section-title-center {
        font-size: 1.75rem;
    }
    
    .section-subtitle-center {
        font-size: 1rem;
    }
    
    .market-entry-text h2,
    .supply-chain-text h2,
    .contact-info h2 {
        font-size: 1.75rem;
    }
    
    .market-entry-text .section-subtitle,
    .supply-chain-text .section-subtitle,
    .contact-intro {
        font-size: 1rem;
    }
    
    .market-entry-text p,
    .supply-chain-text p,
    .contact-description {
        font-size: 0.95rem;
    }
    
    .section-image {
        height: 250px;
    }
    
    .why-choose-item {
        padding: var(--spacing-md);
    }
    
    .why-choose-icon {
        font-size: 2rem;
    }
    
    .why-choose-item h3 {
        font-size: 1.125rem;
    }
    
    .why-choose-item p {
        font-size: 0.9rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .contact-icon {
        font-size: 1rem;
    }
    
    .btn-submit {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title,
    .section-title-white {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .competency-card {
        padding: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* New Sections - Extra Small Mobile */
    .section-title-center,
    .market-entry-text h2,
    .supply-chain-text h2,
    .contact-info h2 {
        font-size: 1.5rem;
    }
    
    .why-choose-item {
        padding: var(--spacing-sm);
    }
    
    .project-image {
        height: 180px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-fullscreen {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-cta {
        margin-top: var(--spacing-sm);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .hamburger,
    .language-selector,
    .mobile-menu,
    .btn-hero,
    .btn-cta-primary,
    .btn-cta-secondary,
    .footer {
        display: none !important;
    }
    
    .hero-fullscreen,
    .competencies-section,
    .contact-cta-section {
        background: none !important;
        color: var(--primary-dark) !important;
        padding: var(--spacing-md) 0 !important;
    }
    
    .hero-title,
    .section-title-white,
    .cta-title {
        color: var(--primary-dark) !important;
    }
    
    .competency-card {
        border: 1px solid #ccc;
        background: white !important;
        color: var(--primary-dark) !important;
        break-inside: avoid;
    }
    
    .competency-card h3,
    .competency-card p {
        color: var(--primary-dark) !important;
    }
    
    /* Print Styles for New Sections */
    .market-entry-section,
    .supply-chain-section,
    .why-choose-section,
    .projects-section,
    .contact-section {
        background: none !important;
        color: var(--primary-dark) !important;
        padding: var(--spacing-md) 0 !important;
    }
    
    .why-choose-item {
        border: 1px solid #ccc;
        background: white !important;
        color: var(--primary-dark) !important;
        break-inside: avoid;
    }
    
    .contact-form {
        display: none !important;
    }
}

/* Accessibility - Reduced Motion */
@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;
    }
    
    .hero-background,
    .competencies-background,
    .cta-background {
        background-attachment: scroll !important;
    }
}

/* Dark Mode Support (for systems that prefer dark mode) */
@media (prefers-color-scheme: dark) {
    .about-section,
    .experience-section {
        background-color: #1a1a1a;
        color: var(--text-white);
    }
    
    .section-title {
        color: var(--text-white);
    }
    
    .about-text {
        color: var(--text-light);
    }
    
    .stat-label {
        color: var(--text-light);
    }
    
    /* Dark Mode for New Sections */
    .market-entry-section,
    .why-choose-section,
    .contact-section {
        background-color: #1a1a1a;
        color: var(--text-white);
    }
    
    .supply-chain-section,
    .projects-section {
        background-color: #111;
    }
    
    .section-title-center,
    .market-entry-text h2,
    .supply-chain-text h2,
    .contact-info h2 {
        color: var(--text-white);
    }
    
    .section-subtitle-center,
    .market-entry-text .section-subtitle,
    .supply-chain-text .section-subtitle,
    .contact-intro,
    .market-entry-text p,
    .supply-chain-text p,
    .contact-description {
        color: var(--text-light);
    }
    
    .why-choose-item {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--text-white);
    }
    
    .why-choose-item h3 {
        color: var(--text-white);
    }
    
    .why-choose-item p {
        color: var(--text-light);
    }
    
    .contact-form {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .form-group input,
    .form-group textarea {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
        color: var(--text-white);
    }
    
    .form-group label {
        color: var(--text-white);
    }
}

/* Focus Styles for Accessibility */
.nav-logo:focus,
.language-btn:focus,
.hamburger:focus,
.mobile-link:focus,
.btn-hero:focus,
.btn-cta-primary:focus,
.btn-cta-secondary:focus,
.footer-links a:focus,
.btn-secondary:focus,
.competency-link:focus,
.contact-item a:focus,
.btn-submit:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-overlay: rgba(0, 0, 0, 0.9);
        --accent-gold: #ffff00;
    }
    
    .competency-card {
        border: 2px solid var(--text-white);
    }
    
    .btn-hero,
    .btn-cta-primary {
        border: 2px solid var(--text-white);
    }
    
    .why-choose-item,
    .contact-form {
        border: 2px solid var(--text-white);
    }
    
    .btn-secondary,
    .btn-submit {
        border: 2px solid var(--text-white);
    }
}

/* Smooth scrolling for supported browsers */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* Backdrop filter support */
@supports (backdrop-filter: blur(10px)) {
    .header.scrolled {
        backdrop-filter: blur(10px);
    }
    
    .language-dropdown {
        backdrop-filter: blur(10px);
    }
    
    .mobile-menu {
        backdrop-filter: blur(20px);
    }
    
    .competency-card {
        backdrop-filter: blur(10px);
    }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .header.scrolled {
        background-color: rgba(0, 0, 0, 0.98);
    }
    
    .language-dropdown {
        background-color: rgba(0, 0, 0, 0.98);
    }
    
    .mobile-menu {
        background-color: rgba(0, 0, 0, 0.99);
    }
    
    .competency-card {
        background-color: rgba(255, 255, 255, 0.2);
    }
}