/* Tablet Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        padding-top: 2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 60px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Page Header */
    .page-header {
        padding: 100px 0 40px;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
    }

    /* Grids */
    .features-grid,
    .courses-grid,
    .values-grid,
    .team-grid,
    .benefits-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Legal Content */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc {
        position: static;
        order: -1;
    }

    /* Course Cards */
    .course-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .course-footer .btn {
        width: 100%;
    }

    /* Filter Buttons */
    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        flex: 1;
        min-width: 120px;
    }

    /* Tables */
    .cookie-table {
        overflow-x: auto;
    }

    .cookie-table table {
        min-width: 600px;
    }

    /* Forms */
    .hero-buttons,
    .cookie-buttons {
        flex-wrap: wrap;
    }

    /* Map */
    .map-placeholder {
        padding: 2rem;
        min-height: 250px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Sections */
    .features,
    .courses-preview,
    .courses-main,
    .about-main,
    .values,
    .team,
    .contact-main,
    .legal-content,
    .cta,
    .stats,
    .course-benefits,
    .faq-section,
    .map-section {
        padding: 60px 0;
    }

    .page-header {
        padding: 80px 0 30px;
    }

    /* Navigation */
    .logo {
        font-size: 1.25rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Cards */
    .feature-card,
    .value-card,
    .benefit-item {
        padding: 1.5rem;
    }

    .course-card .course-content {
        padding: 1rem;
    }

    .team-member .member-info {
        padding: 1rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Contact */
    .contact-form {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-icon {
        font-size: 1.25rem;
    }

    .social-buttons {
        flex-direction: column;
    }

    .social-btn {
        text-align: center;
    }

    /* Forms */
    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .checkbox-label {
        font-size: 0.8rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Legal Content */
    .toc {
        padding: 1rem;
    }

    .toc h3 {
        font-size: 1rem;
    }

    .toc a {
        font-size: 0.8rem;
    }

    .legal-text h2 {
        font-size: 1.5rem;
    }

    .legal-text h3 {
        font-size: 1.25rem;
    }

    /* Tables */
    .cookie-table table {
        font-size: 0.8rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }

    /* Cookie Settings */
    .cookie-settings {
        padding: 1rem;
    }

    .cookie-toggle label {
        font-size: 0.9rem;
    }

    /* Course Details */
    .course-details,
    .course-program {
        margin: 1rem 0;
    }

    .detail-item {
        font-size: 0.8rem;
    }

    .course-program li {
        font-size: 0.9rem;
    }

    /* Map */
    .map-placeholder {
        padding: 1.5rem;
        min-height: 200px;
    }

    .map-info h3 {
        font-size: 1rem;
    }

    .map-info p,
    .map-info li {
        font-size: 0.9rem;
    }

    /* Filter */
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: 100px;
    }

    /* Course Meta */
    .course-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .course-price {
        font-size: 1.1rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .features-grid,
    .values-grid,
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .page-header {
        padding: 80px 0 20px;
    }

    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

/* Print Responsive */
@media print {
    .hero {
        flex-direction: column;
        padding: 20px 0;
    }

    .hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .features-grid,
    .courses-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .legal-content .content-wrapper {
        grid-template-columns: 1fr;
    }

    .cookie-table table {
        font-size: 10pt;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hamburger span,
    .btn,
    .nav-link,
    .feature-card,
    .course-card,
    .team-member {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .map-placeholder {
        background-color: #343a40;
        border-color: #6c757d;
        color: #f8f9fa;
    }

    .cookie-table th {
        background-color: #343a40;
        color: #f8f9fa;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding: 12px 16px;
    }

    .filter-btn {
        min-height: 40px;
        padding: 8px 16px;
    }

    .checkbox-label {
        min-height: 44px;
        align-items: center;
    }

    .social-btn {
        min-height: 44px;
    }
}

/* Focus Visible for Keyboard Navigation */
@media (hover: hover) and (pointer: fine) {
    .feature-card:hover,
    .course-card:hover,
    .value-card:hover,
    .team-member:hover,
    .benefit-item:hover {
        transform: translateY(-5px);
    }
}
