/* ==========================================================================
   1. LOKALE FONTS 
   ========================================================================== */

/* Montserrat Regular (400) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
}

/* Montserrat Medium (500) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/Montserrat-Medium.ttf') format('truetype');
}

/* Montserrat Bold (700) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
}


/* ==========================================================================
   2. BASIS-STYLING & RESETS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D9C2AE; 
    --dark-color: #624F4C;    
    --light-color: #F5EFEB;   
    --white-cream: #FBF9F6;   
    --font-main: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--dark-color);
    background-color: var(--white-cream);
    line-height: 1.6;
}

/* GLOBALE LINK-STYLINGS gegen Standard-Blau und Standard-Lila */
a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:visited {
    color: var(--dark-color);
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}


/* ==========================================================================
   3. HEADER & NAVIGATION (MOBILE FIRST)
   ========================================================================== */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: url('assets/theke.jpg') center/cover no-repeat !important;
    overflow: hidden;
}

.hero-video {
    display: none; /* Auf Mobile standardmäßig aus */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(98, 79, 76, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1rem;
}

/* --- HEADER NAVIGATION & LOGO ZENTRIERUNG --- */
.main-nav {
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 100%;
    max-width: 295px;        
    margin: 0 auto;          
    
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(12px);           
    -webkit-backdrop-filter: blur(12px);   
    
    padding: 1.2rem;
    border-radius: 24px;     
    border: 1px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 0 8px 32px rgba(98, 79, 76, 0.15); 
}

.main-nav .logo img {
    width: 100%;             
    max-width: 255px;        
    height: auto;
    display: block;
}

/* --- EIGENSTÄNDIGE UNTERMENÜ-LINKS --- */
.sub-nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem auto 0 auto;
}

.sub-nav-links a,
.sub-nav-links a:visited {
    color: #fff !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.sub-nav-links a:hover {
    color: var(--primary-color) !important;
}

.hero-text h1 {
    font-weight: 700;
    font-size: 2.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #fff;
}

.hero-text p {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--white-cream);
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn, .btn:visited {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background-color: var(--primary-color);
    color: var(--dark-color) !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    background-color: #c9b19b;
}

.btn-secondary, .btn-secondary:visited {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff !important;
}
.btn-secondary:hover {
    background-color: #fff;
    color: var(--dark-color) !important;
}

/* Sub-Header Design für die Sortiment- und Caféseite */
.sub-hero {
    background-color: var(--dark-color);
    padding: 2rem 0 4rem 0;
    color: #fff;
    text-align: center;
}
.sub-hero .nav-links a {
    color: #fff;
}
.sub-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}


/* ==========================================================================
   4. SEKTIONEN & INHALTE
   ========================================================================== */
.section {
    padding: 5.5rem 0;
    text-align: center;
}

.about-section {
    background-color: var(--light-color);
}
.about-section h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lead h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Specials (Rindsgulasch) */
.specials-section {
    background-color: var(--dark-color);
    color: #fff;
}
.specials-section h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.special-card {
    max-width: 750px;
    margin: 2rem auto 0 auto;
    border: 2px dashed var(--primary-color);
    padding: 2.5rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
}
.special-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.special-content .price {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-top: 1rem;
}

/* Café-Sektion */
.inner-cafe {
    background-color: var(--white-cream);
}
.inner-cafe h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* --- CAFÉ BILDERGRID (MOBILE FIRST) --- */
.cafe-images {
    display: grid;
    grid-template-columns: 1fr; /* 1 Spalte untereinander auf Mobile */
    gap: 1.5rem;
    margin-top: 3rem;
}
.cafe-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(98, 79, 76, 0.05);
}

/* Speisekarte mit transparentem Frühstücks-Hintergrundbild */
.menu-section {
    position: relative; 
    background-color: var(--light-color);
    overflow: hidden;
}
.menu-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/fruehstueck_bg.jpg') center/cover no-repeat;
    opacity: 0.05; 
    z-index: 0; 
    pointer-events: none; 
}
.menu-section .container {
    position: relative;
    z-index: 1;
}
.menu-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
    margin-top: 3rem;
}
.menu-category h3 {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.menu-item {
    margin-bottom: 1.5rem;
}
.menu-title-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
}


/* ==========================================================================
   5. GRIDS & GALERIEN
   ========================================================================== */
.grid-section {
    padding: 0;
}
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
}
.grid-item {
    position: relative;
    height: 380px;
    overflow: hidden;
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.grid-item:hover img {
    transform: scale(1.04);
}
.grid-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    background: linear-gradient(transparent, rgba(98, 79, 76, 0.9));
    color: #fff;
    text-align: left;
}
.grid-caption h3 {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

/* --- SORTIMENT-GALERIE --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 0;
}
.gallery-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(98, 79, 76, 0.08);
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
}
.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.gallery-desc {
    padding: 2rem;
    text-align: left;
    background-color: #fff;
}
.gallery-desc h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark-color);
}
.gallery-desc p {
    color: var(--dark-color);
    opacity: 0.9;
    font-size: 0.95rem;
}


/* ==========================================================================
   6. FINALES SPECIAL-BANNER (DESKTOP STANDARD)
   ========================================================================== */
.special-card.has-image {
    max-width: 900px;
    margin: 2rem auto 0 auto;
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: row; 
    text-align: left;
    height: 480px; 
}
.special-image {
    width: 40%; 
    height: 100%;
    flex-shrink: 0; 
}
.special-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: rgba(0, 0, 0, 0.2); 
}
.special-content {
    width: 60%; 
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}
.special-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.special-content p {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1rem;
}
.special-content .price {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
}
.special-content .price-sub {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
}
.special-content .price-sub strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* MOBILE ANPASSUNG FÜR GULASCH-CARD */
@media (max-width: 767px) {
    .special-card.has-image {
        flex-direction: column;
        height: auto;
    }
    .special-image {
        width: 100%;
        height: 350px;
    }
    .special-content {
        width: 100%;
        padding: 2rem;
    }
}


/* ==========================================================================
   7. FOOTER (STANDARD MOBILE FIRST)
   ========================================================================== */
.main-footer {
    background-color: var(--dark-color) !important; /* Fix gegen weißes Durchbrechen beim Sortiment */
    color: var(--primary-color);
    font-size: 0.85rem;
    padding: 4rem 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}
.footer-info p {
    color: rgba(255, 255, 255, 0.8) !important;
}
.footer-address {
    margin-top: 0.5rem;
    display: inline-block;
}

/* --- GOOGLE MAPS LINK LESBARKEIT-FIX --- */
.footer-info a.footer-address,
.footer-info a.footer-address:link,
.footer-info a.footer-address:visited {
    color: var(--primary-color) !important; /* Erzwingt das edle Sand-Beige */
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline-block !important;
    margin-top: 0.5rem !important;
    transition: color 0.3s ease;
}

.footer-info a.footer-address:hover,
.footer-info a.footer-address:active {
    color: #ffffff !important; /* Wird beim Drüberfahren strahlend weiß */
    text-decoration: underline !important;
}

/* --- FOOTER LINK-FIX (GEGEN BROWSER-STANDARDS WIE LILA ODER BLAU) --- */
.footer-nav a, 
.footer-nav a:link, 
.footer-nav a:visited,
.footer-contact-details a,
.footer-contact-details a:link,
.footer-contact-details a:visited {
    color: var(--primary-color) !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.footer-nav a:hover, 
.footer-contact-details a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.footer-contact-details p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Copyright-Zeile ganz unten am Handy */
.footer-copyright {
    width: 100%;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.8rem;
    margin-top: 2rem;
}
.footer-copyright a,
.footer-copyright a:link,
.footer-copyright a:visited {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    margin: 0 0.4rem;
    transition: color 0.3s ease;
}
.footer-copyright a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}


/* ==========================================================================
   8. DESKTOP OPTIMIERUNGEN & RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- SPEZIELLER HELL-KONTRAST FÜR LOGO AUF MOBILE --- */
@media (max-width: 1023px) {
    .main-nav {
        background: rgba(255, 255, 255, 0.65) !important; 
        backdrop-filter: blur(30px) !important;           
        -webkit-backdrop-filter: blur(30px) !important;   
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        filter: none !important;
        box-shadow: 0 10px 30px rgba(98, 79, 76, 0.25) !important;
    }
}

/* --- GROSSE BILDSCHIRME (DESKTOP AB 1024PX) --- */
@media (min-width: 1024px) {
    .hero {
        height: 100vh;
        background: none;
    }
    .hero-video {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        z-index: 0;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }
    .hero-text h1 {
        font-size: 4.2rem;
        line-height: 1.2;
    }
    .hero-text p {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-item {
        height: 550px;
    }
    .gallery-grid,
    .menu-wrapper {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    /* --- FIX: CAFÉ BILDERGRID 3-SPALTIG IM DESKTOP --- */
    .cafe-images {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* --- SPLIT-LAYOUT FÜR DEN DESKTOP-FOOTER --- */
    .footer-content {
        flex-direction: row;         
        flex-wrap: wrap;             
        justify-content: space-between; 
        align-items: flex-start;
        text-align: left;
    }
    .footer-info {
        width: auto;                 
        text-align: left !important; 
    }
    .footer-nav {
        width: auto;                 
        text-align: right;
        margin: 0;
    }
    /* Das Copyright bricht am Desktop zentriert nach unten aus über die volle Breite */
    .footer-copyright {
        width: 100%;                 
        text-align: center !important; 
        margin-top: 3.5rem;            
    }
}