/* Azure Crest Reisen - Responsive Styles */

/* Large Desktop: 1200px+ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Desktop: 992px - 1199px */
@media (max-width: 1199px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* Tablet Landscape: 768px - 991px */
@media (max-width: 991px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: 60vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Blog Featured Card */
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    /* Article Header */
    .article-header h1 {
        font-size: 2.2rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Tablet Portrait: 576px - 767px */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    /* Spacing */
    .hero {
        padding: 90px 0 50px;
    }
    
    .services,
    .about,
    .newsletter,
    .testimonials,
    .contact,
    .blog-articles {
        padding: 60px 0;
    }
    
    .legal-page,
    .article-content,
    .thank-you-page {
        padding: 100px 0 60px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Stats Grid */
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Newsletter Form */
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form button {
        align-self: stretch;
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-card.featured {
        grid-column: auto;
    }
    
    /* Blog Meta */
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Related Links */
    .related-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Related Grid */
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Thank You Page */
    .thank-you-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .tours-preview {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Route/Ski Info */
    .route-details,
    .ski-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Featured Image */
    .featured-image {
        height: 250px;
    }
    
    /* Blog Image */
    .blog-image {
        height: 200px;
    }
}

/* Mobile Large: 480px - 575px */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-logo .logo {
        width: 30px;
        height: 30px;
    }
    
    /* Typography */
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-header-content h1 {
        font-size: 2.2rem;
    }
    
    /* Spacing */
    .hero {
        padding: 80px 0 40px;
    }
    
    .services,
    .about,
    .newsletter,
    .testimonials,
    .contact,
    .blog-articles {
        padding: 50px 0;
    }
    
    .legal-page,
    .article-content,
    .thank-you-page {
        padding: 80px 0 50px;
    }
    
    /* Service Cards */
    .service-card {
        padding: 30px 20px;
    }
    
    /* Newsletter */
    .newsletter {
        padding: 60px 0;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    /* Testimonial Cards */
    .testimonial-card {
        padding: 25px 20px;
    }
    
    /* Modal */
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Blog Tags */
    .blog-tags {
        gap: 5px;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    /* Article Tags */
    .article-tags .tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        padding: 10px 16px;
    }
    
    /* Social Icons */
    .social-icons {
        justify-content: center;
    }
    
    /* Blog Newsletter */
    .blog-newsletter .newsletter-form input {
        margin-bottom: 10px;
    }
    
    .blog-newsletter .newsletter-form button {
        width: 100%;
    }
}

/* Mobile Small: 320px - 479px */
@media (max-width: 479px) {
    /* Typography */
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .article-header h1 {
        font-size: 1.6rem;
    }
    
    .blog-header-content h1 {
        font-size: 2rem;
    }
    
    .newsletter-content h2 {
        font-size: 1.8rem;
    }
    
    /* Hero Text */
    .hero-text p {
        font-size: 1rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 25px 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon img {
        width: 30px;
        height: 30px;
    }
    
    /* About Icons */
    .about-icon,
    .contact-icon,
    .testimonial-icon {
        width: 50px;
        height: 50px;
    }
    
    .about-icon img,
    .contact-icon img,
    .testimonial-icon img {
        width: 25px;
        height: 25px;
    }
    
    /* Stats */
    .stat {
        padding: 15px 10px;
    }
    
    .stat h3 {
        font-size: 1.6rem;
    }
    
    /* Testimonial Cards */
    .testimonial-card {
        padding: 20px 15px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 25px 15px;
    }
    
    /* Form Elements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Newsletter Form */
    .newsletter-form input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    /* Blog Content */
    .blog-content {
        padding: 25px 20px;
    }
    
    .blog-content h2 {
        font-size: 1.3rem;
    }
    
    /* Article Content */
    .article-text h2 {
        font-size: 1.5rem;
    }
    
    .article-text .lead {
        font-size: 1.1rem;
    }
    
    /* Featured Image */
    .featured-image {
        height: 200px;
    }
    
    /* Blog Image */
    .blog-image {
        height: 180px;
    }
    
    /* Thank You Page */
    .success-icon {
        font-size: 3rem;
    }
    
    .info-card .fas {
        font-size: 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    /* Modal */
    .modal-content {
        padding: 15px;
        width: 98%;
    }
    
    /* Legal Content */
    .legal-content {
        padding: 0 10px;
    }
    
    /* Tip Boxes */
    .tip-box {
        padding: 15px;
        margin: 20px 0;
    }
    
    /* Route Info */
    .route-info,
    .ski-area-info {
        padding: 20px 15px;
    }
    
    /* Article CTA */
    .article-cta {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    /* Related Cards */
    .related-card {
        padding: 20px 15px;
    }
    
    .tour-card {
        padding: 20px 15px;
    }
}

/* Ultra Small Mobile: Below 320px */
@media (max-width: 319px) {
    .container {
        padding: 0 5px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .service-card,
    .testimonial-card,
    .contact-form {
        padding: 20px 10px;
    }
    
    .modal-content {
        padding: 10px;
        width: 100%;
        margin: 10px;
    }
    
    .cookie-banner {
        padding: 10px;
    }
    
    .featured-image,
    .blog-image {
        height: 150px;
    }
}

/* Landscape Mobile Phones */
@media (max-height: 480px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
        padding: 70px 0 30px;
    }
    
    .nav-menu {
        padding-top: 20px;
        gap: 15px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
}

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

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero,
    .service-card,
    .testimonial-card,
    .blog-card,
    .tour-card {
        transform: none !important;
    }
}

/* Dark Mode Support (if user prefers) */
@media (prefers-color-scheme: dark) {
    /* This can be expanded if dark mode is desired */
    .modal-content {
        background: #fff; /* Keep modal light for readability */
    }
}

/* Print Responsive */
@media print {
    .container {
        max-width: none;
        padding: 0;
    }
    
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
