/* Design System & Variables - Flyer Redesign */
:root {
    --bg-color: #f4f1e1; /* Helles Creme/Beige vom Flyer */
    --text-color: #1a3c28; /* Dunkles Olivgrün für normalen Text */
    --primary: #d96c27; /* Kräftiges Flyer-Orange/Rostrot */
    --primary-hover: #b8551b;
    --highlight: #f2a93b; /* Gelb-Orange für Mittagsangebote */
    --glass-border: rgba(26, 60, 40, 0.1);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Bebas Neue', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Tropische Blatt-Dekorationen via CSS (vereinfacht) */
body::after {
    content: '';
    position: fixed;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at top right, rgba(26, 60, 40, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at bottom left, rgba(217, 108, 39, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* ── Scroll Animations ── */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ── Section Divider ── */
.section-divider {
    height: 2px;
    background: var(--text-color);
    opacity: 0.1;
    margin: 0 5%;
}

/* ── Typography ── */
h1, h2, h3, h4, .menu-title, .category-title {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400; /* Bebas Neue is already bold */
    line-height: 1;
    margin-bottom: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
}

p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ── Navbar ── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Hintergrundbild einfügen */
    background-image: url('../img/image.png');
    background-size: cover;
    background-position: center;
    border-bottom: none;
    transition: var(--transition);
    /* Dauerhaft abdunkeln, damit die Schrift lesbar bleibt */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0,0,0,0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

.nav-links a {
    text-decoration: none;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.nav-links a:hover:not(.btn-primary) {
    color: var(--primary);
}

/* ── Buttons ── */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.8rem;
    border-radius: 4px; /* Eckiger, passend zum Flyer */
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(217, 108, 39, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 108, 39, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color) !important;
    border: 2px solid var(--text-color);
}

.btn-secondary:hover {
    background: var(--text-color);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 5.5rem;
    position: relative;
    overflow: hidden;
}

.hero-slider-wrapper {
    position: relative;
    flex: 1;
    min-height: 60vh;
    overflow: hidden;
    margin: 0 5% 2rem 5%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 60, 40, 0.8) 0%, rgba(26, 60, 40, 0.2) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active { opacity: 1; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.9);
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-left  { left: 1rem; }
.slider-btn-right { right: 1rem; }

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.hero-text-overlay {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    z-index: 2;
    max-width: 600px;
    padding: 1.5rem 2rem;
}

.hero-text-overlay h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
    margin-bottom: 0.5rem;
}

.hero-text-overlay p {
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    padding: 0 5% 3rem 5%;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Section Titles ── */
.section-title, .menu-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;
    border: none;
    box-shadow: none;
}

.menu-title span {
    font-family: var(--font-main);
    color: var(--text-color) !important;
    font-weight: 600;
}

/* ── Reviews Section ── */
.reviews-section {
    padding: 5rem 5%;
    background: #fff;
}

.reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 3rem;
}

.reviews-rating-big {
    font-size: 4.5rem;
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1;
}

.reviews-stars-big {
    font-size: 1.8rem;
    color: var(--highlight);
    letter-spacing: 3px;
}

.reviews-count {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.6;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: rgba(217, 108, 39, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-author {
    font-weight: 700;
    color: var(--text-color);
}

.review-date {
    color: var(--text-color);
    opacity: 0.5;
    font-size: 0.8rem;
}

.review-stars {
    color: var(--highlight);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Location Section ── */
.location-section {
    padding: 5rem 5%;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: stretch;
}

.location-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.location-info {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.location-info h3 {
    color: var(--text-color);
    font-size: 2.2rem;
}

.location-info p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ── Menu Section (Speisen & Getränke) ── */
.menu-section {
    padding: 5rem 5%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.menu-container {
    width: 100%;
    max-width: 900px;
}

.menu-category {
    margin-bottom: 3.5rem;
}

.category-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--text-color);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: baseline;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(26, 60, 40, 0.2);
}

.menu-item.price-two-cols {
    grid-template-columns: 40px 1fr 80px 80px;
}

.item-number {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.item-name {
    color: var(--text-color);
    font-weight: 800;
}

.item-name-group {
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    line-height: 1.3;
}

.item-name-group span:first-child {
    font-weight: 800;
}

.item-volume {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.95rem;
    text-align: right;
}

.item-price {
    color: var(--primary);
    text-align: right;
    min-width: 70px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

/* Highlight Box (Mittagsangebote / Torten) */
.highlight-box {
    background: var(--highlight) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 2.5rem !important;
    box-shadow: 0 10px 25px rgba(242, 169, 59, 0.3);
    color: var(--text-color) !important;
}

.highlight-box .menu-title,
.highlight-box h2,
.highlight-box p {
    color: var(--text-color) !important;
    text-shadow: none !important;
}

.highlight-box .menu-title {
    font-size: 3rem !important;
}

/* ── Mobile Menu Toggle ── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.8);
    border-radius: 3px;
    transition: var(--transition);
}

/* ── Footer ── */
.main-footer {
    background: var(--text-color);
    color: #fff;
    padding: 5rem 5% 2rem;
    position: relative;
}

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

.footer-info h3, .footer-hours h3 {
    color: var(--highlight);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
}

.phone-number {
    color: var(--primary) !important;
    font-size: 1.3rem !important;
    margin-top: 1rem !important;
    font-weight: bold;
}

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

.phone-number a:hover {
    color: #fff;
}

.footer-hours ul {
    list-style: none;
}

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

.footer-hours li.closed {
    color: var(--primary);
}

.promo-box, .service-box {
    padding: 1.8rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    margin-bottom: 1.5rem;
}

.promo-box p, .service-box p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ── Utility Classes ── */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero {
        padding-top: 5rem;
    }

    .hero-slider-wrapper {
        margin: 0 0 2rem 0;
        border-radius: 0;
        height: 50vh;
        min-height: 350px;
    }

    .hero-text-overlay {
        left: 1.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .hero-text-overlay h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-toggle { display: flex; }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        gap: 2.5rem;
    }

    .nav-links.active { right: 0; }

    .nav-links a { 
        font-size: 2rem; 
        color: #222; 
        text-shadow: none;
    }

    .mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .location-grid { grid-template-columns: 1fr; }
    .location-map  { min-height: 300px; }

    .menu-item {
        grid-template-columns: 30px 1fr auto;
        font-size: 1rem;
    }
    .menu-item.price-two-cols {
        grid-template-columns: 30px 1fr 60px 60px;
    }
    .item-name, .item-name-group { grid-column: 2 / 3; }
    .item-volume {
        grid-column: 2 / 3;
        grid-row: 2;
        text-align: left;
    }
    .item-price {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
        align-self: center;
        font-size: 1.4rem;
    }
    .menu-item.price-two-cols .item-price:nth-child(3) {
        grid-column: 3 / 4;
    }
    .menu-item.price-two-cols .item-price:nth-child(4) {
        grid-column: 4 / 5;
    }

    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }
}
/* -- Sub-Navigation (Kategorien) -- */
.sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1rem 0;
    position: sticky;
    top: 75px;
    background: rgba(244, 241, 225, 0.98);
    z-index: 100;
    border-bottom: 1px dashed rgba(26, 60, 40, 0.2);
}

.sub-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: var(--transition);
    background: #fff;
    text-transform: uppercase;
}

.sub-nav a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* -- Pizza Layout -- */
.menu-item.price-three-cols {
    grid-template-columns: 1fr 60px 60px 70px;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .menu-item.price-three-cols {
        grid-template-columns: 1fr 50px 50px 55px;
        font-size: 0.9rem;
    }
    .menu-item.price-three-cols .item-price {
        font-size: 1.1rem;
    }
    .sub-nav {
        top: 60px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 5%;
        padding-right: 5%;
    }
    .sub-nav::-webkit-scrollbar {
        display: none;
    }
}
/* -- Tabs (Hauptkategorien) -- */
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.menu-tab-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.menu-tab-btn.active, .menu-tab-btn:hover {
    background: var(--primary);
    color: #fff;
}
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -- Scroll to Top Button -- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover {
    transform: translateY(-3px);
    background: #b55a20;
}

/* -- Mobile Pizza Price Fix -- */
@media (max-width: 768px) {
    .menu-item.price-three-cols {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .menu-item.price-three-cols .item-name-group {
        width: 100%;
        border-bottom: 1px dashed rgba(26, 60, 40, 0.2);
        padding-bottom: 0.5rem;
    }
    .price-three-cols-wrapper {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }
    .price-three-cols-wrapper .item-price {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 1.1rem;
    }
    .price-three-cols-wrapper .item-price::before {
        content: attr(data-label);
        font-size: 0.7rem;
        color: var(--text-color);
        font-weight: normal;
        margin-bottom: 2px;
    }
}
