/* 
 * Kaisergarten Restaurant - Responsive Stile
 * Enthält alle Media-Queries für responsive Design
 */

/* ===== Large Tablets (< 1024px) ===== */
@media screen and (max-width: 1024px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        height: 400px;
    }
    
    /* Intro Section Large Tablet */
    .intro-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .intro-feature {
        max-width: 100%;
    }
    
    /* Buffet cards optimization for tablets */
    .buffet-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Events section tablet fixes */
    .events-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .events-text {
        order: 1;
    }
    
    .events-visual {
        order: 2;
    }
}

/* ===== Medium Tablets (< 900px) ===== */
@media screen and (max-width: 900px) {
    /* Intro Section Medium Tablet */
    .intro-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .intro-content h2 {
        font-size: 2.5rem;
    }
}

/* ===== Tablets (< 768px) ===== */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Hero Section Mobile Fixes */
    .hero-badges {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        margin-top: 2rem;
    }
    
    .hero-badges .badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }    /* Intro Section Mobile Fixes */
    .intro-section {
        padding: 4rem 0;
    }
    
    .intro-decoration {
        display: none; /* Hide decorative elements on mobile for cleaner look */
    }
    
    .intro-content h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .intro-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .intro-feature {
        text-align: center;
        padding: 2rem 1rem;
        max-width: 100%;
    }
    
    .intro-feature .feature-icon {
        margin: 0 auto 1.5rem;
    }
    
    /* Buffet Section Mobile Fixes */
    .buffet-highlights {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .buffet-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .buffet-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .buffet-card p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .buffet-price {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    /* Gallery Section Mobile Fixes */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item {
        border-radius: 8px;
        overflow: hidden;
    }
    
    .gallery-item img {
        aspect-ratio: 1/1;
        object-fit: cover;
    }
    
    .gallery-caption {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    /* Location Section Mobile Fixes */
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-info {
        order: 1;
    }
    
    .location-map {
        order: 2;
        height: 300px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .location-map iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }
    
    .location-details {
        gap: 1.5rem;
    }
    
    .location-detail {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    /* Chinese Testimonials Transition Mobile Fixes */
    .chinese-symbols-float {
        display: none; /* Hide floating symbols on mobile */
    }
    
    .chinese-lanterns {
        display: none; /* Hide decorative lanterns on mobile */
    }
    
    .chinese-transition-title .title-chinese {
        font-size: 1.5rem;
    }
    
    .chinese-transition-title .title-german {
        font-size: 1.8rem;
    }
    
    .chinese-rating-elements {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .rating-element {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    /* About Content */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-text .section-title, 
    .about-text .section-title:after {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Mobile Navigation ===== */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-light);
        box-shadow: var(--box-shadow);
        flex-direction: column;
        padding: 20px 0;
        z-index: 100;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-content {
        position: relative;
    }
}

/* ===== Small Mobile (< 480px) ===== */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero {
        height: 450px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Hero Section Small Mobile Fixes */
    .hero-tagline {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .hero-badges .badge {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-badges .badge i {
        font-size: 0.9rem;
        margin-right: 0.4rem;
    }
      /* Intro Section Small Mobile */
    .intro-section {
        padding: 3rem 0;
    }
    
    .intro-content {
        padding: 0 1rem;
    }
    
    .intro-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .intro-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .intro-eyebrow {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .intro-features {
        margin-top: 2rem;
        gap: 1.5rem;
    }
    
    .intro-feature {
        padding: 1.5rem 0.8rem;
    }
    
    .intro-feature h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .intro-feature p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    /* Buffet Section Small Mobile */
    .buffet-card {
        padding: 1.5rem 1rem;
    }
    
    .buffet-card h3 {
        font-size: 1.3rem;
    }
    
    .buffet-price {
        font-size: 1.5rem;
    }
    
    /* Gallery Section Small Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        aspect-ratio: 16/10;
    }
    
    /* Events Section Small Mobile */
    .events-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .events-cta .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Chinese Transition Small Mobile */
    .chinese-frame {
        margin: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .chinese-transition-title .title-chinese {
        font-size: 1.2rem;
    }
    
    .chinese-transition-title .title-german {
        font-size: 1.5rem;
    }
    
    .chinese-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Location Section Small Mobile */
    .location-detail {
        padding: 0.8rem;
    }
    
    .location-detail h4 {
        font-size: 1.1rem;
    }
    
    .location-detail p {
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-copyright {
        margin-bottom: 10px;
    }
    
    .cookie-notice .container {
        flex-direction: column;
    }
    
    .cookie-notice .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-notice p {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .opening-hours-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .opening-hours-card .day {
        margin-bottom: 5px;
    }
}

/* ===== Extra Small Mobile (< 360px) ===== */
@media screen and (max-width: 360px) {
    .hero-content h1 .hero-accent {
        font-size: 1.8rem;
    }
    
    .hero-content h1 .hero-tagline {
        font-size: 0.9rem;
    }
    
    /* Intro Section Extra Small Mobile */
    .intro-section {
        padding: 2rem 0;
    }
    
    .intro-content {
        padding: 0 0.5rem;
    }
    
    .intro-content h2 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .intro-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .intro-eyebrow {
        font-size: 0.8rem;
        letter-spacing: 1px;
        margin-bottom: 0.8rem;
    }
    
    .intro-features {
        margin-top: 1.5rem;
        gap: 1rem;
    }
    
    .intro-feature {
        padding: 1rem 0.5rem;
    }
    
    .intro-feature h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .intro-feature p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
    
    .buffet-card {
        padding: 1rem 0.8rem;
    }
    
    .chinese-frame {
        margin: 0.5rem;
        padding: 1rem 0.8rem;
    }
    
    .intro-feature {
        padding: 1rem 0.5rem;
    }
}

/* ===== Landscape Mobile Optimization ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero-badges .badge {
        width: auto;
        min-width: 150px;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.8rem 1.5rem;
    }
    
    .gallery-item {
        cursor: default;
    }
    
    .gallery-item:hover .gallery-overlay {
        opacity: 0;
    }
    
    .gallery-item .gallery-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.3);
    }
    
    /* Ensure touch targets are large enough */
    a, button, input, select, textarea {
        min-height: 44px;
    }
    
    .location-detail a {
        display: inline-block;
        padding: 0.2rem;
        margin: -0.2rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    header, footer, .hero, .cta, .cookie-notice, .mobile-menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }
    
    .highlights-grid, .about-content, .opening-hours-content, .contact-content {
        display: block;
    }
    
    .highlight-card, .about-text, .about-image, .opening-hours-card, .contact-card {
        margin-bottom: 15pt;
    }
    
    .contact-map {
        display: none;
    }
}

/* ===== Accessibility Improvements ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .gallery-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}