/**
 * Component Styles: Header, Buttons, Cards, Modals, Footers, Form Controls
 */

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-small);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-terracotta);
    color: var(--color-surface);
    border-color: var(--color-terracotta);
}
.btn-primary:hover {
    background-color: var(--color-red);
    border-color: var(--color-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(158, 63, 50, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}
.btn-secondary:hover {
    background-color: var(--color-text);
    color: var(--color-surface);
    transform: translateY(-2px);
}

.btn-secondary-light {
    background-color: transparent;
    color: var(--color-text-light);
    border-color: rgba(247, 242, 233, 0.4);
}
.btn-secondary-light:hover {
    background-color: var(--color-surface);
    color: var(--color-dark);
    border-color: var(--color-surface);
    transform: translateY(-2px);
}

.btn-green {
    background-color: var(--color-green);
    color: var(--color-text-light);
    border-color: var(--color-green);
}
.btn-green:hover {
    background-color: #24352a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(49, 72, 58, 0.3);
}

.btn-block {
    width: 100%;
}

/* Link Underline Animation */
.link-accent {
    color: var(--color-terracotta);
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.link-accent::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: width 0.3s ease;
}
.link-accent:hover::after {
    width: 100%;
}

/* ==========================================================================
   Header & Topbar Navigation
   ========================================================================== */
.site-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(23, 22, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

/* Topbar Info */
.header-topbar {
    background-color: rgba(15, 14, 12, 0.6);
    color: rgba(247, 242, 233, 0.85);
    font-size: 0.825rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-info {
    display: flex;
    gap: 2rem;
}
.topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Main Nav Header */
.site-header {
    padding: 1.1rem 0;
    transition: padding 0.3s ease;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
    margin-right: auto;
    padding-right: 2rem;
}
.site-logo span.logo-sub {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 1.1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-link {
    color: var(--color-text-light);
    font-size: 0.825rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding: 0.4rem 0;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--color-gold);
    font-weight: 600;
}

/* Header Scroll State (Solid Background) */
.site-header-wrapper.scrolled {
    background-color: #171614;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.site-header-wrapper.scrolled .header-topbar {
    display: none; /* Auto collapse topbar on scroll */
}
.site-header-wrapper.scrolled .site-header {
    padding: 0.8rem 0;
}

/* Mobile Menu Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-light);
    z-index: 1002;
}
.mobile-nav-toggle svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Mobile Curtain Overlay Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-color: var(--color-dark);
    color: var(--color-text-light);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6rem 2rem 3rem 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease, visibility 0.4s;
    overflow-y: auto;
}
.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}
.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--color-gold);
}
.mobile-menu-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}
.mobile-menu-footer p {
    color: rgba(247, 242, 233, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Prevent body scroll when menu or modal open */
body.menu-open, body.modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Menu Cards & Listings
   ========================================================================== */
.menu-category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}
.tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-muted);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}
.tab-btn.active, .tab-btn:hover {
    color: var(--color-dark);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--color-terracotta);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
}

.menu-item-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.menu-item-img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-medium);
    object-fit: cover;
    flex-shrink: 0;
}
.menu-item-content {
    flex-grow: 1;
}
.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.4rem;
    position: relative;
}
.menu-item-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
}
.menu-item-dots {
    flex-grow: 1;
    border-bottom: 1px dashed var(--color-border);
    margin: 0 0.5rem;
}
.menu-item-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-terracotta);
}
.menu-item-desc {
    font-size: 0.925rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}
.dietary-tag {
    display: inline-block;
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background-color: rgba(49, 72, 58, 0.1);
    color: var(--color-green);
    font-weight: 600;
}

/* ==========================================================================
   Recommendation / Dish Highlight Cards
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.card-highlight {
    background-color: var(--color-surface);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.card-highlight:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
}
.card-image-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
}
.card-image-wrap picture, .card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}
.card-highlight:hover .card-image-wrap img, .card-highlight:hover .card-image-wrap picture {
    transform: scale(1.06);
}
.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.card-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-terracotta);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Gallery Grid & Lightbox
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-medium);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}
.gallery-item picture, .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 22, 20, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Alternating Grid Sizes */
.gallery-item.col-span-8 { grid-column: span 8; aspect-ratio: 16 / 9; }
.gallery-item.col-span-4 { grid-column: span 4; }
.gallery-item.col-span-6 { grid-column: span 6; aspect-ratio: 4 / 3; }

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
}
.lightbox-modal.is-active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-small);
}
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   Form Controls & Reservation Section
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
}
.form-control {
    width: 100%;
    min-height: 50px;
    padding: 0.8rem 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-small);
    color: var(--color-text-light);
    transition: border-color 0.3s ease;
}
.section-light .form-control, .section-surface .form-control {
    background-color: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-terracotta);
    background-color: rgba(255, 255, 255, 0.12);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(247, 242, 233, 0.8);
    cursor: pointer;
}
.checkbox-label input {
    margin-top: 0.2rem;
}

/* Reservation Modal / Drawer */
.modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.5rem;
}
.modal-wrapper.is-active {
    opacity: 1;
    visibility: visible;
}
.modal-card {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    border-radius: var(--radius-medium);
    padding: 2.5rem;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-elevated);
}
.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   Footer & Sticky Mobile Bar
   ========================================================================== */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-brand .site-logo {
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-links a {
    color: rgba(247, 242, 233, 0.7);
    font-size: 0.925rem;
}
.footer-links a:hover {
    color: var(--color-gold);
}

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

/* Mobile Sticky Bottom Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(23, 22, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
}
.mobile-action-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.mobile-action-bar .btn {
    min-height: 44px;
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Michelin-Star Luxury Cookie Consent Banner
   ========================================================================== */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 10000;
    max-width: 480px;
    width: calc(100% - 4rem);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.96);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner-wrapper.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.cookie-banner-card {
    background: rgba(23, 22, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-medium, 8px);
    padding: 1.8rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
    color: var(--color-sand-light, #f7f2e9);
}
.cookie-banner-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .cookie-banner-wrapper {
        bottom: 4.5rem;
        left: 1rem;
        width: calc(100% - 2rem);
        max-width: 100%;
    }
    .cookie-banner-card {
        padding: 1.2rem;
    }
}

/* =========================================
   Speisekarte: Gericht-Karten & Preis-Badge
   (klare Zuordnung Gericht -> Preis)
   ========================================= */
.menu-card {
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: 1.35rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}
.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(173, 90, 60, 0.35);
}
.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.menu-card-header .menu-item-title {
    line-height: 1.25;
}
.menu-price-badge {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--color-terracotta);
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(173, 90, 60, 0.35);
}
.menu-price-badge.on-request {
    font-size: 0.8rem;
    background: var(--color-green);
    box-shadow: 0 2px 8px rgba(49, 72, 58, 0.35);
}
.menu-category-section {
    scroll-margin-top: 130px;
}
@media (max-width: 640px) {
    .menu-card {
        padding: 1.1rem;
    }
    .menu-price-badge {
        font-size: 0.95rem;
        padding: 0.3rem 0.8rem;
    }
}

/* =========================================
   USP- / Vertrauens-Leiste unter dem Hero
   ========================================= */
.usp-bar {
    background: var(--color-dark);
    border-top: 1px solid rgba(247, 242, 233, 0.08);
    border-bottom: 3px solid var(--color-terracotta);
    padding: 0.9rem 0;
}
.usp-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.usp-item {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .usp-bar-inner {
        gap: 0.6rem 1.4rem;
    }
    .usp-item {
        font-size: 0.8rem;
    }
}

/* =========================================
   Zitat innerhalb der Story-Sektion
   ========================================= */
.story-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-terracotta);
    border-left: 3px solid var(--color-gold);
    margin: 0 0 2rem 0;
    padding: 0.4rem 0 0.4rem 1.25rem;
}

/* =========================================
   Schwebender Reservieren-Button (nur Mobil)
   ========================================= */
.floating-reserve-btn {
    display: none;
    position: fixed;
    bottom: 1.1rem;
    right: 1.1rem;
    z-index: 950;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-terracotta);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.floating-reserve-btn:active {
    transform: scale(0.97);
}
@media (max-width: 768px) {
    .floating-reserve-btn {
        display: inline-flex;
    }
}

/* Picture-Elemente in News-Karten füllen ihren Container */
.card-luxury picture {
    display: block;
    width: 100%;
    height: 100%;
}
