/* =========================================
   Casa'D Chemnitz - Stylesheet
   ========================================= */

:root {
    /* Color Palette */
    --bg-color: #F9F7F2;      /* Warmes Off-White/Creme */
    --primary-color: #1B3022; /* Tiefes Waldgrün */
    --accent-color: #D4AF37;  /* Mattes Gold */
    --accent-hover: #b5952f;
    --text-main: #2D2D2D;     /* Dunkelgrau */
    --text-light: #5A5A5A;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Variables */
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   Reset & Basics
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 6rem 0;
}

.bg-secondary {
    background-color: #f1efea; /* Slightly darker cream for contrast */
}

.text-center {
    text-align: center;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-text {
    color: var(--accent-color);
    font-weight: 500;
    padding: 0;
    font-size: 1rem;
}
.btn-text i {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}
.btn-text:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--primary-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* Local hero image generated for Casa'D */
    background: linear-gradient(rgba(27, 48, 34, 0.6), rgba(27, 48, 34, 0.6)), url('../assets/images/casad_hero_background_restaurant_interior.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(27,48,34,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.headline {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.subline {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   Menu Section
   ========================================= */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.menu-scroller-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.menu-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    padding: 1.5rem 0.5rem;
    flex-grow: 1; /* Nimmt den restlichen Platz zwischen den Pfeilen ein */
}

.menu-grid::-webkit-scrollbar {
    display: none; /* Chrome */
}

.menu-nav-btn {
    background: var(--white);
    border: 1px solid #ddd;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
    transition: var(--transition);
    flex-shrink: 0;
}

.menu-nav-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.menu-item {
    flex: 0 0 calc(33.333% - 1.35rem); /* Exakt 3 Karten pro Viewport-Breite des Grids */
    min-width: 280px; /* Verhindert zu schmale Karten auf kleineren Screens */
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1.35;
    box-shadow: 0 10px 30px rgba(13, 22, 16, 0.08);
    background-color: var(--white);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 22, 16, 0.12);
}

@media (max-width: 1100px) {
    .menu-item {
        flex: 0 0 calc(50% - 1rem); /* 2 Karten sichtbar */
    }
}

@media (max-width: 768px) {
    .menu-scroller-container {
        gap: 0;
    }
    .menu-nav-btn {
        display: none; /* Auf Mobile nur Swipe */
    }
    .menu-item {
        flex: 0 0 85%; /* Fokus auf eine Karte mit Anschnitt der nächsten */
    }
}

.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Vergrößert das Bild, füllt die Karte aus */
    padding: 0; /* Kein Padding, damit das Bild die Karte füllt */
    transition: var(--transition);
}

.menu-item:hover img {
    transform: scale(1.05);
}

.menu-item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(27, 48, 34, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.menu-item:hover .menu-item-overlay {
    opacity: 1;
}

.menu-item-overlay i {
    color: var(--white);
    width: 32px;
    height: 32px;
}

/* =========================================
   Lightbox
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    display: block;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(27, 48, 34, 0.95);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.lightbox-content {
    position: relative;
    z-index: 2001;
    width: 90%;
    max-width: 1200px;
    margin: 5vh auto; /* Zentriert horizontal, lässt oben/unten platz */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.lightbox button {
    position: absolute;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox button:hover {
    background: var(--accent-color);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* =========================================
   Reviews Section
   ========================================= */
.google-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--white);
    padding: 0.6rem 1.4rem;
    border-radius: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.google-pill-icon {
    width: 20px;
    height: 20px;
    margin-right: 2px;
}

.rating-score {
    font-weight: 700;
    font-size: 1.2rem;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 0.3rem;
    font-weight: 500;
}

.stars {
    display: flex;
    color: #FFB400; /* Google Star Yellow */
    gap: 2px;
}

.stars i {
    width: 21px;
    height: 21px;
}

/* Force Fill for all stars */
.stars i.filled, 
.stars svg.filled,
.google-rating .stars i.filled,
.google-rating .stars svg.filled {
    fill: #FFB400 !important;
    stroke: #FFB400 !important;
    color: #FFB400 !important;
}

.stars i.half {
    fill: url(#half-grad); /* Fallback */
}

.stars.small i {
    width: 16px;
    height: 16px;
}

.rating-source {
    font-size: 0.9rem;
    color: var(--text-light);
}

.reviews-scroller-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.reviews-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 3rem 0; /* Vertical padding for shadows */
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
    flex-grow: 1;
    align-items: stretch;
}

.reviews-slider::-webkit-scrollbar {
    display: none; /* Chrome */
}

.review-card {
    flex: 0 0 calc((100% - 3rem) / 3); /* Exactly 3 cards + 2 gaps of 1.5rem each */
    min-width: 0; /* Remove min-width to ensure they stay 3-up on desktop */
    height: 480px; /* Increased height */
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(13, 22, 16, 0.05);
    scroll-snap-align: start;
    border-top: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(13, 22, 16, 0.1);
}

.review-header {
    display: flex;
    flex-direction: column; /* Stack vertically for symmetry */
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    margin-bottom: 2rem; /* Increased margin */
}

.review-meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center children */
    gap: 0.5rem;
}

.name-stars-row {
    display: flex;
    flex-direction: column; /* Stack name and stars for symmetry */
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.stars-row {
    display: flex;
    justify-content: center; /* Center stars horizontal row */
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.google-logo-small {
    height: 10px; /* Even smaller as requested */
    width: auto;
    opacity: 0.7;
    margin-left: 2px;
}

.reviewer-initial {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.review-header h4 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
}

.google-logo {
    height: 20px;
    width: auto;
    align-self: flex-start;
    opacity: 0.9;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

.review-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: auto;
    align-self: flex-start;
    transition: var(--transition);
}

/* Review Lightbox Spezifisch */
.review-modal-content {
    background: var(--white);
    max-width: 650px;
    height: auto;
    min-height: auto;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    margin: 80px auto; /* Deutlicher Abstand von oben */
    display: block; /* Kein Flex-Zentrieren mehr hier */
}

.review-modal-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.review-modal-inner {
    flex-grow: 1;
}

.review-modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.reviewer-initial-large {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.reviewer-name {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
}

.review-modal-text {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
}

.review-nav-btn {
    position: static;
    background: #f8f8f8;
    color: var(--primary-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.review-nav-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

@media (max-width: 1100px) {
    .review-card {
        flex: 0 0 calc(50% - 1rem); /* 2 Karten sichtbar */
    }
}

@media (max-width: 768px) {
    .reviews-scroller-container {
        gap: 0;
    }
    .reviews-scroller-container .menu-nav-btn {
        display: none; /* Auf Mobile nur Swipe */
    }
    .review-card {
        flex: 0 0 85%; /* Fokus auf eine Karte mit Anschnitt der nächsten */
        min-width: 260px;
    }
    .review-modal-body {
        flex-direction: column;
    }
    .review-nav-btn {
        display: none; /* Swipe auf Mobile */
    }
    .review-modal-content {
        width: 95%;
        padding: 2.5rem 1.5rem;
    }
}

/* =========================================
   Footer & Contact
   ========================================= */
.footer-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 5rem;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.brand-desc {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

.contact-list i {
    color: var(--accent-color);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-list a:hover {
    color: var(--accent-color);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.hours-list li:last-child {
    border-bottom: none;
}

.closed {
    color: #ff6b6b;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

/* =========================================
   Animations
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Mobile Sticky Button
   ========================================= */
.mobile-sticky-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.mobile-sticky-btn i {
    width: 20px;
    height: 20px;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .headline {
        font-size: 3.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-map {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .navbar {
        background-color: var(--primary-color);
        padding: 1rem 0;
    }
    .navbar.scrolled .logo,
    .navbar.scrolled .nav-links a:not(.btn) {
        color: var(--primary-color);
    }
    .nav-links {
        display: none; /* Simplification for prototype without hamburger */
    }
    
    .headline {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Mobile Sticky Button Display */
    .mobile-sticky-btn {
        display: flex;
    }
    
    /* Extra padding at bottom for sticky button */
    .section:last-child {
        padding-bottom: 8rem;
    }
}
