@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Verhindert, dass Padding das Layout sprengt */
    scroll-behavior: smooth;
}

:root {
    --primary-text-color: #f5f0e8;
    --hero-bg-color: #0d0d0d;
    --accent-color: #2d4a3e;
    --gold-color: #d4af37;
    --font-heading: "Cormorant Garamond", serif;
    --font-body: "DM Sans", sans-serif;
}

html {
    color: var(--primary-text-color);
    background-color: var(--hero-bg-color);
    overflow-x: hidden; /* Verhindert unschöne horizontale Scroller auf Handys */
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ==========================================================================
   Navigation (Responsive Fix)
   ========================================================================== */
nav {
    padding: 16px 5%; /* Prozentualer Abstand statt fester Pixel */
    font-family: var(--font-body);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--hero-bg-color);
    color: var(--primary-text-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    color: var(--gold-color);
    font-size: clamp(28px, 5vw, 40px); /* Skaliert sauber auf Mobilgeräten */
    font-weight: 500;
}

a {
    text-decoration: none;
    color: var(--primary-text-color);
}

.cta-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.cta-container a {
    margin: 0 15px;
    font-size: clamp(14px, 1.5vw, 16px);
}

.divider {
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.289);
}

.order {
    border-bottom: 2px solid var(--primary-text-color);
}

/* ==========================================================================
   Hero Section (Hintergrundbild-Sicherheit)
   ========================================================================== */
.hero-container {
    height: 100vh;
    background: url('assets/glenov-brankovic-DOMlFhM5dEY-unsplash.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-bottom: 15px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65); /* Sorgt für perfekten Textkontrast */
    z-index: 1;
}

.hero-container h1, 
.hero-container p {
    position: relative;
    z-index: 2; /* Über das Overlay legen */
}

.hero-container h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 8rem); /* Dynamisch: Verhindert Riesen-Text-Umbruch auf Handys */
    letter-spacing: 0.1em;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero-container p {
    font-family: var(--font-body);
    color: var(--gold-color);
    font-size: clamp(16px, 3vw, 20px);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   About Us Section (Versetzt Bild-Layout fixen)
   ========================================================================== */
.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 8%;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.img-container {
    position: relative;
    height: 500px;
    flex: 1;
    min-width: 400px;
}

.aram {
    position: absolute;
    width: 260px;
    left: 0;
    top: 0;
    transform: rotate(5deg);
    border: 5px solid var(--gold-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    z-index: 2;
}

.lala {
    position: absolute;
    width: 260px;
    right: 5%;
    top: 15%;
    transform: rotate(-7deg);
    border: 5px solid var(--gold-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    z-index: 1;
}

.text-container {
    flex: 1.2;
}

.about-us {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
    display: inline-block;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 5px;
    letter-spacing: 0.1em;
}

.text-container > p {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.6;
}

/* ==========================================================================
   Marquee (Laufschrift)
   ========================================================================== */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--gold-color);
    color: #0d0d0d;
    padding: 12px 0;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.1em;
}

.marquee-inner {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

.marquee-inner span {
    display: inline-block;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Menu Section Styles
   ========================================================================== */
.menu-section {
    background-color: var(--accent-color);
    padding: 100px 10%;
}

.menu-section .menu-container {
    max-width: 900px;
    margin: 0 auto;
}

.menu-section .menu-title {
    font-family: var(--font-heading);
    text-align: center;
    color: var(--gold-color);
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 50px;
    font-size: clamp(2rem, 5vw, 3rem);
}

.menu-category {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin: 20px 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 18px;
    background: rgba(13, 13, 13, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.category-header:hover {
    background: var(--hero-bg-color);
}

.category-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--gold-color);
}

.category-toggle {
    color: var(--gold-color);
    font-weight: 300;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.category-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: rgba(0, 0, 0, 0.3);
    padding: 0 15px;
    border-radius: 0 0 8px 8px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

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

.category-header.active + .category-items {
    max-height: 1000px; /* Klappt das Menü auf, wenn JS aktiv ist */
    padding: 10px 15px;
}

.category-header.active .category-toggle {
    transform: rotate(45deg);
}

.menu-item .item-name,
.menu-item .item-price {
    font-family: var(--font-heading);
    color: var(--primary-text-color);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
}

.menu-item .item-dots {
    flex: 1;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    margin: 0 15px;
    align-self: flex-end;
    margin-bottom: 7px;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
footer {
    background-color: var(--hero-bg-color);
    color: var(--primary-text-color);
    padding: 80px 8% 30px 8%;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    color: var(--gold-color);
    font-size: 2.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--gold-color);
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.footer-section p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links a {
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-color);
}

/* ==========================================================================
   Responsive Media Queries (KORRIGIERT)
   ========================================================================== */

/* Für Tablets und kleinere Notebooks */
@media (max-width: 1024px) {
    .about-container {
        gap: 3rem;
        padding: 60px 5%;
    }
    
    .img-container {
        min-width: 320px;
        height: 420px;
    }
    
    .aram, .lala {
        width: 200px;
    }
}

/* Für Smartphones und kleine Tablets (Hier lag der Fehler!) */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    
    .cta-container {
        margin-right: 0;
    }
    
    /* Ändert die Reihenfolge: Erst Bilder, dann Text */
    .about-container {
        flex-direction: column; 
        text-align: center;
        gap: 20px; /* Weniger Abstand, damit es kompakt bleibt */
        padding: 40px 20px;
    }
    
    /* Entfernt die starre Höhe, damit der Text nicht überschnitten wird */
    .img-container {
        min-width: 100%;
        height: auto; /* Dynamische Höhe aktivieren! */
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 40px 0; /* Schafft Platz für die rotierten Ecken */
        margin-top: 0;
    }
    
    /* Macht die Bilder flexibel und verhindert das Überlappen auf dem Text */
    .aram {
        position: relative; /* Schaltet die absolute Positionierung stufenweise aus */
        left: auto;
        top: auto;
        width: 45%; /* Nutzt den Platz auf dem Handy-Bildschirm perfekt aus */
        max-width: 180px;
        transform: rotate(4deg);
        z-index: 2;
        margin-right: -20px; /* Lässt sie leicht und elegant überlappen */
    }
    
    .lala {
        position: relative;
        left: auto;
        top: auto;
        width: 45%;
        max-width: 180px;
        transform: rotate(-4deg);
        z-index: 1;
        margin-left: -20px;
    }

    .text-container {
        width: 100%;
        margin-top: 20px;
    }

    .about-us {
        margin-bottom: 20px; /* Verringert den gigantischen Abstand */
    }

    .menu-section {
        padding: 60px 20px;
    }
    
    .footer-container {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}

/* Für sehr kleine Smartphones */
@media (max-width: 400px) {
    .aram, .lala {
        width: 48%;
    }
}