/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FF8C00 0%, #FFD700 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #FB8404 0%, #FFF500 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    width: 120px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info {
    text-align: center;
    flex-grow: 1;
    margin-left: 20px;
}

.contact-info h1 {
    color: #D7081C;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.address, .phone, .email {
    margin-bottom: 10px;
}

.address p, .phone p, .email p {
    color: #D7081C;
    font-weight: 600;
    font-size: 1.1em;
}

/* Navigation Styles */
.navigation {
    background: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.nav-menu li {
    margin: 0 5px;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-menu a:hover {
    background: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-menu a.active {
    background: #D7081C;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 15px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

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

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

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

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 40px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero-banner {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Restaurant Info */
.restaurant-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(251, 132, 4, 0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 40px;
    align-items: start;
}

.restaurant-info h2 {
    color: #D7081C;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 3px solid #FF8C00;
    padding-bottom: 10px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.days {
    font-weight: bold;
    color: #D7081C;
}

.times {
    color: #333;
}

.delivery-note, .price-note, .disclaimer {
    margin-bottom: 15px;
    line-height: 1.6;
}

.price-note {
    font-size: 1.1em;
    color: #D7081C;
}

.disclaimer {
    font-size: 0.95em;
    color: #666;
}

.wok-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Menu Preview */
.menu-preview {
    margin-bottom: 50px;
}

.menu-preview h2 {
    text-align: center;
    color: #D7081C;
    font-size: 2.5em;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.category-card h3 {
    color: #D7081C;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.category-link {
    display: inline-block;
    background: #FF8C00;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #FF7700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.allergen-info h3 {
    color: #FF8C00;
    font-size: 1.2em;
    margin-bottom: 10px;
    margin-top: 20px;
}

.allergen-info h3:first-child {
    margin-top: 0;
}

.allergen-info p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #ccc;
}

/* Menu Sections */
.menu-section {
    display: block;
}

.menu-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(251, 132, 4, 0.3);
}

.menu-content h2 {
    color: #D7081C;
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #FF8C00;
    padding-bottom: 15px;
}

.menu-content h3 {
    color: #D7081C;
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 2px solid #FF8C00;
}

.menu-content h3:first-of-type {
    margin-top: 20px;
    border-top: none;
    padding-top: 0;
}

.menu-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.menu-items {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-items th {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #FF7700;
}

.menu-items td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.menu-items tr:nth-child(even) {
    background: #fafafa;
}

.menu-items tr:hover {
    background: rgba(255, 140, 0, 0.1);
}

.menu-items td:first-child {
    font-weight: bold;
    color: #D7081C;
    text-align: center;
    width: 50px;
}

.menu-items td:nth-child(3),
.menu-items td:nth-child(4) {
    font-weight: bold;
    color: #D7081C;
    text-align: right;
    white-space: nowrap;
}

/* Drinks table specific styling */
#getraenke-section .menu-items td:first-child {
    width: 70%;
    text-align: left;
    font-weight: normal;
    color: #333;
}

#getraenke-section .menu-items td:nth-child(2) {
    width: 30%;
    font-weight: bold;
    color: #D7081C;
    text-align: right;
    white-space: nowrap;
}

#getraenke-section .menu-items th:first-child {
    width: 70%;
}

#getraenke-section .menu-items th:nth-child(2) {
    width: 30%;
    text-align: right;
}

/* 3-column tables (kids menu, extras) specific styling */
#hauptspeisen-section .menu-items td:first-child {
    width: 10%;
    font-weight: bold;
    color: #D7081C;
    text-align: center;
}

#hauptspeisen-section .menu-items td:nth-child(2) {
    width: 60%;
    text-align: left;
    color: #333;
}

#hauptspeisen-section .menu-items td:nth-child(3),
#hauptspeisen-section .menu-items td:nth-child(4) {
    width: 15%;
    font-weight: bold;
    color: #D7081C;
    text-align: right;
    white-space: nowrap;
}

/* 3-column tables styling (kids menu, extras) */
.menu-items.three-column td:first-child {
    width: 60% !important;
    font-weight: normal !important;
    color: #333 !important;
    text-align: left !important;
}

.menu-items.three-column td:nth-child(2) {
    width: 20% !important;
    font-weight: bold !important;
    color: #D7081C !important;
    text-align: right !important;
}

.menu-items.three-column td:nth-child(3) {
    width: 20% !important;
    font-weight: bold !important;
    color: #D7081C !important;
    text-align: right !important;
}

.menu-items.three-column th:first-child {
    width: 60% !important;
}

.menu-items.three-column th:nth-child(2) {
    width: 20% !important;
    text-align: right;
}

.menu-items.three-column th:nth-child(3) {
    width: 20% !important;
    text-align: right;
}

/* Menu footer styling */
.menu-footer {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-footer h4 {
    color: #D7081C;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #FF8C00;
    padding-bottom: 5px;
}

.menu-footer h4:first-of-type {
    margin-top: 10px;
}

.menu-footer p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.menu-validity {
    text-align: center;
    font-size: 1.1em;
    color: #D7081C;
    background: rgba(255, 140, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.section-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.full-menu-link {
    display: inline-block;
    background: #FF8C00;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.full-menu-link:hover {
    background: #FF7700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

/* Navigation active state */
.nav-link.active {
    background: #FF8C00;
    color: white !important;
}

/* Make category cards clickable */
.category-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    text-decoration: none;
    color: inherit;
}

.category-card .category-link {
    cursor: pointer;
    user-select: none;
}

/* Impressum content styling */
.impressum-content {
    text-align: left;
}

.impressum-content h3 {
    color: #D7081C;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid #FF8C00;
    padding-bottom: 8px;
}

.impressum-content h3:first-child {
    margin-top: 0;
}

.impressum-content h4 {
    color: #FF8C00;
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.impressum-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .menu-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #333;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    
    .nav-menu.nav-menu-active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        padding: 20px;
        display: block;
        text-align: center;
        border-bottom: 1px solid #555;
    }
    
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .contact-info h1 {
        font-size: 2em;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .menu-categories {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .restaurant-info, .menu-content {
        padding: 25px;
    }
    
    .menu-content h3 {
        font-size: 1.4em;
        margin-top: 30px;
    }
    
    /* Mobile table styling - optimized layout */
    .menu-items {
        font-size: 0.85em;
    }
    
    .menu-items th,
    .menu-items td {
        padding: 8px 4px;
        font-size: 0.85em;
        word-wrap: break-word;
    }
    
    /* Make number column narrower on mobile */
    .menu-items td:first-child {
        width: 8% !important;
        font-size: 0.8em;
    }
    
    /* Make description column take more space */
    .menu-items td:nth-child(2) {
        width: 52% !important;
        font-size: 0.8em;
        line-height: 1.3;
    }
    
    /* Make price columns narrower */
    .menu-items td:nth-child(3),
    .menu-items td:nth-child(4) {
        width: 20% !important;
        font-size: 0.8em;
        padding: 8px 2px;
    }
    
    /* Three column tables mobile optimization */
    .menu-items.three-column td:first-child {
        width: 50% !important;
        font-size: 0.8em;
    }
    
    .menu-items.three-column td:nth-child(2),
    .menu-items.three-column td:nth-child(3) {
        width: 25% !important;
        font-size: 0.8em;
        padding: 8px 2px;
    }
    
    /* Drinks table mobile optimization */
    #getraenke-section .menu-items td:first-child {
        width: 60% !important;
        font-size: 0.8em;
    }
    
    #getraenke-section .menu-items td:nth-child(2) {
        width: 40% !important;
        font-size: 0.8em;
    }
    
    /* Vorspeisen section mobile optimization */
    #vorspeisen-section .menu-items td:first-child {
        width: 8% !important;
        font-size: 0.8em;
    }
    
    #vorspeisen-section .menu-items td:nth-child(2) {
        width: 52% !important;
        font-size: 0.8em;
        line-height: 1.3;
    }
    
    #vorspeisen-section .menu-items td:nth-child(3),
    #vorspeisen-section .menu-items td:nth-child(4) {
        width: 20% !important;
        font-size: 0.8em;
        padding: 8px 2px;
    }
    
    /* General table overflow protection */
    .menu-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .menu-items {
        min-width: 100%;
        width: 100%;
        table-layout: fixed;
    }
    
    .section-image {
        height: 200px;
    }
    
    /* Hide images on mobile for better space usage */
    .menu-image {
        display: none;
    }
    
    /* Impressum tablet styling */
    .impressum-content p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .contact-info h1 {
        font-size: 1.8em;
    }
    
    .menu-preview h2 {
        font-size: 2em;
    }
    
    .menu-content h2 {
        font-size: 1.6em;
    }
    
    .menu-content h3 {
        font-size: 1.2em;
        margin-top: 25px;
    }
    
    .restaurant-info {
        padding: 20px;
    }
    
    .menu-content {
        padding: 15px;
    }
    
    /* Extra small mobile optimization */
    .menu-items th,
    .menu-items td {
        padding: 6px 2px;
        font-size: 0.75em;
    }
    
    /* Even more compact on very small screens */
    .menu-items td:first-child {
        width: 6% !important;
        font-size: 0.7em;
    }
    
    .menu-items td:nth-child(2) {
        width: 54% !important;
        font-size: 0.75em;
    }
    
    .menu-items td:nth-child(3),
    .menu-items td:nth-child(4) {
        width: 20% !important;
        font-size: 0.7em;
        padding: 6px 1px;
    }
    
    /* Footer adjustments for small screens */
    .allergen-info {
        font-size: 0.9em;
    }
    
    .allergen-info h3 {
        font-size: 1.1em;
    }
    
    /* Impressum mobile styling */
    .impressum-content p {
        font-size: 0.8em;
        line-height: 1.5;
    }
    
    .impressum-content h3 {
        font-size: 1.1em;
    }
    
    .impressum-content h4 {
        font-size: 1.0em;
    }
}