.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    background-color: #ffffff;
    color: #333;
}

.menu-navigation {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    padding: 1.5rem 0;
    margin-top: 5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-radius: 12px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;  
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.5rem;
    padding: 0 1rem;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.category-nav {
    padding: 0.75rem 1.5rem;
    background-color: #f8f8f8;
    border-radius: 30px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.category-nav:hover {
    background-color: #333;
    color: #fff;
}

.category-nav.active {
    background-color: #333;
    color: #fff;
}

.menu-category {
    margin-bottom: 4rem;
    scroll-margin-top: 150px;
    break-inside: avoid-column;
    page-break-inside: avoid;
    display: block;
}

.category-title {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #333;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-item {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #eaeaea;
    transition: background-color 0.2s ease;
    margin-bottom: 0.5rem;
    break-inside: avoid;
    page-break-inside: avoid;
    display: block;
}

.menu-item:hover {
    background-color: #f9f9f9;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    gap: 1rem;
}

.item-info {
    flex: 1;
    padding-right: 1rem;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    margin-bottom: 0rem;
    flex: 1;
    min-width: 0;
}

.item-price {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.item-prices {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #666;
    text-align: right;
    min-width: 120px;
}

.price-size {
    white-space: nowrap;
}

.item-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
    padding-right: 1rem;
}

.item-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.allergen-tag {
    font-size: 0.75rem;
    padding: 0.1rem 0.3rem;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
}

.allergen-superscript {
    font-size: 0.7rem;
    vertical-align: super;
    color: #999;
    font-weight: bold;
    padding-left: 2px;
}

.allergen-legend {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.allergen-title {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.allergen-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.allergen-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.allergen-code {
    font-weight: bold;
    color: #333;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.2s ease;
}

#back-to-top:hover {
    background-color: #555;
}

#back-to-top.visible {
    display: flex;
}

@media screen and (max-width: 768px) {
    #back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Navigation Dropdown */
.mobile-nav {
    display: none; /* Hidden by default */
    width: calc(100% - 2rem);
    margin: 1rem auto;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

/* Media Queries - make them more specific */
@media screen and (max-width: 768px) {
    .menu-navigation {
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .nav-container {
        display: none !important;
    }
    
    .mobile-nav {
        margin-top: 100px;
        display: block !important;
    }
}

@media (min-width: 992px) {
    .menu-content {
        column-count: 2;
        column-gap: 3rem;
    }
    
    .menu-category {
        break-inside: avoid;
        page-break-inside: avoid;
        display: block;
    }
}

.diet-indicator {
    display: inline-block;
    width:  2rem;
    height: 2rem;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    vertical-align: middle;
}

.vegan-indicator {
    filter: brightness(0.9);
}

.vegetarian-indicator {
    filter: brightness(0.9);
}

/* Alternative Version mit "V" in Kreis */
.vegetarian-indicator-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    margin-left: 0.5rem;
    background-color: #2e7d32;
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    vertical-align: middle;
    cursor: help;
}

.category-description-container {
    margin: 0.5rem 0 1.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eaeaea;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}