/* ==========================================================================
   1. BASE STYLES & LAYOUT
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* ==========================================================================
   2. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: #2a2b2b;
    border-bottom: 1px solid #383939;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #a84232;
}

/* Navigation Toggle (Mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. HERO SECTION & BUTTONS
   ========================================================================== */
.hero {
    min-height: calc(100vh - 80px);
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../assets/csarda_img/1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #ddd;
}

.btn {
    display: inline-block;
    background-color: #a84232;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #8b3426;
}

/* ==========================================================================
   4. MEALS SECTION (SPEISEKARTE)
   ========================================================================== */
.menu-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2a2b2b;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* Flexbox Layout für Hauptspalten (Links / Rechts) */
.menu-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.menu-column {
    flex: 1;
    min-width: 320px;
}

.menu-category h3 {
    font-size: 1.5rem;
    color: #a84232;
    margin-bottom: 25px;
    border-bottom: 2px solid #a84232;
    padding-bottom: 8px;
}

/* CSS Grid für die Karten innerhalb einer Kategorie */
.menu-category {
    display: grid;
    gap: 20px;
}

/* Gericht Kasten (Gleich hoch innerhalb der Kategorie) */
.menu-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0; /* Abstand regelt das gap von .menu-category */
    
    /* Inhalt ordentlich verteilen */
    display: flex;
    flex-direction: column;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 8px;
}

.dish-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2a2b2b;
}

.dish-price {
    font-weight: 700;
    color: #a84232;
    font-size: 1.1rem;
    white-space: nowrap;
}

.dish-description {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.dish-allergens {
    color: #777777;
    font-size: 0.85rem;
    margin-top: auto; /* Zieht die Allergen-Zeile sanft nach unten */
    padding-top: 4px;
}

.allergens {
    font-weight: 400;
    font-size: 0.85rem;
    color: #888;
    margin-left: 4px;
}

/* Allergen Legende */
.allergen-info {
    margin-top: 50px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.allergen-info h4 {
    font-size: 1.1rem;
    color: #a84232;
    margin-bottom: 15px;
    text-align: center;
}

.allergen-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    font-size: 0.85rem;
    color: #555;
}

.allergen-grid span strong {
    color: #2a2b2b;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
}

/* ==========================================================================
   5. RESPONSIVE STYLES (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2a2b2b;
        border-bottom: 1px solid #383939;
        display: none;
        padding: 20px 0;
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}