:root {
    --primary-color: #8B4513;
    --secondary-color: #DAA520;
    --accent-color: #CD853F;
    --text-dark: #333;
    --text-light: #666;
    --bg-cream: #FFF8DC;
    --bg-white: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: var(--primary-color);
}

/* Online Bestellen Button */
.online-order-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
}

.online-order-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.online-order-btn::before {
    content: '🛒';
    font-size: 1.1rem;
}

/* Mobile Navigation */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile ul {
    list-style: none;
}

.nav-mobile a {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s;
}

.nav-mobile a:hover {
    color: var(--primary-color);
}

.nav-mobile .online-order-mobile {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    text-align: center;
    font-weight: bold;
    border-bottom: none;
}

.nav-mobile .online-order-mobile:hover {
    background: var(--accent-color);
    color: white;
}

/* Hide desktop online order button on mobile */
@media (max-width: 767px) {
    .online-order-btn {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(139, 69, 19, 0.7), rgba(139, 69, 19, 0.7)), url('../image/hero-restaurant.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}


.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features {
    background: var(--bg-cream);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Contact */
.contact {
    background: var(--bg-cream);
}

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

.contact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 30px;
}

.contact-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-text a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
}

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

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Page-specific styles */
.page-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.main-content {
    padding: 2rem 0;
}

/* Catering Page Styles */
.catering-header {
    text-align: center;
    margin-bottom: 3rem;
}

.catering-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.catering-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: "✓";
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.menu-categories {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 4rem;
}

.menu-categories h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-item {
    padding: 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    text-align: center;
}

.category-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.category-item ul {
    list-style: none;
    color: var(--text-light);
}

.category-item li {
    padding: 0.25rem 0;
}

.contact-form-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 4rem;
}

.contact-form-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--accent-color);
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-box {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-box-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.info-box p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    color: var(--text-light);
}

.info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-box li:last-child {
    border-bottom: none;
}

.info-box li::before {
    content: "•";
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Gallery Page Styles */
.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.gallery-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.upload-info {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 3rem;
}

.upload-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.upload-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.upload-info-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.upload-detail {
    padding: 1rem;
    background: var(--bg-cream);
    border-radius: 8px;
}

.upload-detail h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.upload-detail p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
}

.gallery-item {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-info {
    padding: 1.5rem;
}

.gallery-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.gallery-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.gallery-item-date {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}


/* Menu Page Styles */
.menu-container {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.menu-header {
    background: linear-gradient(135deg, var(--secondary-color), #F4D03F);
    color: var(--text-dark);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.menu-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.menu-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    font-style: italic;
}

.menu-body {
    padding: 3rem;
}

.menu-instructions {
    background: var(--bg-cream);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.menu-instructions h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.menu-instructions p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.click-hint {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.menu-pages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.menu-page {
    position: relative;
    background: var(--bg-white);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.menu-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.15);
}

.menu-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--bg-cream);
}

.menu-image:hover,
.menu-image:active {
    transform: scale(1.02);
    border-color: var(--secondary-color);
}

.menu-image {
    -webkit-tap-highlight-color: transparent;
}

.page-label {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Bestellen Page Styles */
.order-info {
    text-align: center;
    margin-bottom: 3rem;
}

.order-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.order-info p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.order-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step p {
    color: var(--text-light);
}

.order-methods {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.order-methods h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.method-card {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.method-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.method-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.method-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.method-btn:hover {
    background: var(--accent-color);
}

.delivery-info {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.delivery-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.info-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.menu-link-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.menu-link-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.menu-link-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.menu-link-btn {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.menu-link-btn:hover {
    background: var(--accent-color);
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

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

    .menu-page {
        max-width: 85%;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Menu Modal - Perfekt zentriert und mobil-optimiert */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal.show,
.modal[style*="flex"] {
    display: flex !important;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.modal-image {
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002;
}

.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
}

/* Image Container mit Zoom */
.image-container {
    position: relative;
    overflow: hidden;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    cursor: default;
}

.image-container.zoomed {
    cursor: move;
}

.image-container.dragging {
    cursor: move !important;
}

.modal-image {
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.modal-image.no-transition {
    transition: none !important;
}

/* Page Indicator */
.page-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.zoom-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.zoom-level {
    color: white;
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.zoom-reset {
    font-size: 14px;
}

/* Mobile Optimierungen für Menu Modal */
@media (max-width: 768px) {
    .modal {
        padding: 15px;
    }
    
    .modal-content,
    .modal-image {
        max-width: 95vw;
        max-height: 70vh;
        border-radius: 8px;
    }
    
    .image-container {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .close {
        top: 8px;
        right: 8px;
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .nav-prev {
        left: 10px;
    }
    
    .nav-next {
        right: 10px;
    }
    
    .page-indicator {
        bottom: 70px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .zoom-controls {
        bottom: 15px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .zoom-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .zoom-level {
        font-size: 11px;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content,
    .modal-image {
        max-width: 98vw;
        max-height: 65vh;
    }
    
    .image-container {
        max-width: 98vw;
        max-height: 65vh;
    }
    
    .close {
        top: 5px;
        right: 5px;
        font-size: 22px;
        width: 36px;
        height: 36px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .nav-prev {
        left: 5px;
    }
    
    .nav-next {
        right: 5px;
    }
    
    .page-indicator {
        bottom: 60px;
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .zoom-controls {
        bottom: 10px;
        padding: 5px 10px;
        gap: 6px;
    }
    
    .zoom-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .zoom-level {
        font-size: 10px;
        min-width: 30px;
    }
}

/* Extra kleine Smartphones */
@media (max-width: 360px) {
    .modal {
        padding: 8px;
    }
    
    .modal-content,
    .modal-image {
        max-width: 99vw;
        max-height: 60vh;
    }
    
    .image-container {
        max-width: 99vw;
        max-height: 60vh;
    }
    
    .close {
        top: 3px;
        right: 3px;
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .nav-prev {
        left: 3px;
    }
    
    .nav-next {
        right: 3px;
    }
    
    .page-indicator {
        bottom: 55px;
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .zoom-controls {
        bottom: 8px;
        padding: 4px 8px;
        gap: 5px;
    }
    
    .zoom-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .zoom-level {
        font-size: 9px;
        min-width: 25px;
    }
}

/* IMAGE PERFORMANCE OPTIMIZATIONS */
.menu-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.progressive-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.menu-image {
    transition: opacity 0.3s ease, transform 0.2s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.menu-image:hover {
    transform: scale(1.02);
}

/* Critical Image Preloading */
.menu-image[fetchpriority="high"] {
    content-visibility: visible;
}

.menu-image[loading="lazy"] {
    content-visibility: auto;
    contain-intrinsic-size: 400px 300px;
}

/* iOS & Mobile Safari Fixes */
body {
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* iOS Safari Modal Fix */
.modal {
    -webkit-overflow-scrolling: touch;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* iOS Touch Action Fix */
.modal-content,
.modal-image,
.image-container {
    touch-action: manipulation;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* iOS Zoom Prevention */
input, textarea, select {
    font-size: 16px; /* Verhindert Auto-Zoom auf iOS */
}

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    .modal {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Android Chrome Fix */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .modal-image {
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}