/* Responsive Styles для Akademie Lernen Online */

/* Планшеты и меньше (до 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

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

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

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

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Header и навигация */
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        display: none;
    }

    nav ul.mobile-open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    /* Hero */
    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

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

    /* Features */
    .features {
        padding: 60px 0;
    }

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

    /* Content */
    .content-section {
        padding: 60px 0;
    }

    .content-image {
        height: 300px;
    }

    /* Statistics */
    .statistics {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    /* CTA */
    .cta {
        padding: 60px 0;
    }

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

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

    /* Courses */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Article */
    .article-image {
        height: 300px;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }

    /* Logo */
    .logo h1 {
        font-size: 1.2rem;
    }

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

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

    /* Map */
    .map-container {
        height: 300px;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero {
        padding: 60px 0 40px;
    }

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

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    .disclaimer {
        padding: 15px;
    }

    .disclaimer-title {
        font-size: 1rem;
    }

    .disclaimer-text {
        font-size: 0.85rem;
    }
}

/* Landscape режим на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

/* Большие экраны (больше 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

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

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

/* Анимации для мобильных - упрощенные */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
