/* ============================================
   KLEINES CAFÉ - Responsive Stylesheet
   Mobile-First Responsive Design
   ============================================ */

/* ============================================
   Large Tablets & Small Desktops (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

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

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

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

    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1.5rem;
    }

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

/* ============================================
   Tablets (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.3rem; }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Navigation - Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: var(--bg-white);
        padding: 2rem;
        gap: 0;
        transition: var(--transition-normal);
        box-shadow: 0 4px 20px var(--shadow-medium);
    }

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

    .nav-menu li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    /* Hero */
    .hero {
        min-height: 500px;
        background-attachment: scroll;
    }

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

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

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

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

    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Menu Grid */
    .menu-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* Location */
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container iframe {
        height: 350px;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Lightbox */
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }
}

/* ============================================
   Mobile Devices (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Typography */
    html {
        font-size: 14px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.2rem; }

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }

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

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

    /* Hero */
    .hero {
        min-height: 400px;
    }

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

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

    .hero-content {
        padding: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Sections */
    section {
        padding: var(--spacing-md) 0;
    }

    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    /* Feature Items */
    .feature-item {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    /* Menu */
    .menu-category {
        padding: 1.5rem;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* Gallery */
    .gallery-item {
        aspect-ratio: 1;
    }

    /* Review Cards */
    .review-card {
        padding: 1.5rem;
    }

    /* Location & Contact */
    .info-item,
    .contact-item {
        margin-bottom: 1.5rem;
    }

    .map-container iframe {
        height: 300px;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    /* Lightbox */
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* ============================================
   Small Mobile Devices (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

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

    .section-title {
        font-size: 1.6rem;
    }

    .feature-item,
    .menu-category,
    .review-card,
    .contact-form-wrapper {
        padding: 1rem;
    }

    .nav-menu {
        padding: 1.5rem 1rem;
    }
}

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

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

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

    .section-title {
        font-size: 3rem;
    }

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

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

/* ============================================
   Extra Large Screens (min-width: 1920px)
   ============================================ */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    html {
        font-size: 18px;
    }

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

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .hamburger,
    .back-to-top,
    .contact-form-wrapper,
    .lightbox {
        display: none !important;
    }

    .hero {
        height: auto;
        min-height: 0;
        page-break-after: always;
    }

    section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    .gallery-overlay {
        opacity: 1;
    }
}

/* ============================================
   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-attachment: scroll;
    }
}

/* ============================================
   High Contrast Mode
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #5D2E0F;
        --text-dark: #000000;
        --text-light: #2C1810;
        --border-color: #2C1810;
    }

    .btn {
        border-width: 3px;
    }

    .form-group input,
    .form-group textarea {
        border-width: 3px;
    }
}

/* ============================================
   Dark Mode Support
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #F5F5F5;
        --text-light: #D0D0D0;
        --bg-white: #1A1A1A;
        --bg-light: #2A2A2A;
        --border-color: #404040;
    }

    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }

    .menu-category,
    .review-card,
    .contact-form-wrapper,
    .google-rating {
        background: var(--bg-light);
    }

    .form-group input,
    .form-group textarea {
        background: var(--bg-white);
        color: var(--text-dark);
    }
}
