/* --- Fonts --- */
@font-face {
    font-family: 'Sneak';
    src: url('assets/fonts/Sneak-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'StoliWol';
    src: url('assets/fonts/StoliWol-Normal.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Global Base --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #245030;
    color: #9ab2a0;
    font-family: 'Sneak', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 960px;
    /* Default wide width for header */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container-narrow {
    max-width: 760px !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'StoliWol', sans-serif;
    font-size: 36px;
    font-weight: 400;
    /* No bold */
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.section-header div,
.section-header p {
    font-family: 'Sneak', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
    color: #9ab2a0;
}

/* Subgroups (if used) */
.subgroup h3 {
    font-family: 'Sneak', sans-serif;
    font-size: 16px;
    font-weight: 400;
    /* No bold */
    line-height: 1.4em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    /* Add spacing below header */
}

.subgroup-desc {
    font-family: 'Sneak', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
    color: #9ab2a0;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: -1rem;
    /* Visual adjustment close to header */
}

/* --- Universal Dish Card --- */
.dishes-grid.grid-universal {
    display: grid;
    grid-template-columns: 1fr;
    /* Force 1 column stack based on image */
    gap: 10px;
}

/* ... media query removed to force stack as per image? Or keep responsive?
   The image shows a stack. Let's keep responsive behavior but maybe at 760px container 1 column is safer.
   Actually, the user image is narrow. Let's stick to 1 column for the 760px container always. */

.dish-card-universal {
    background-color: #356542;
    background-color: #356542;
    padding: 0;
    /* Removed padding to allow full width image */
    border-radius: 12px;
    border: 1px solid #51775b;
    position: relative;
    /* Anchor for absolute icon */
    box-shadow: none;
    /* User didn't ask for shadow, removing default */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    display: flex;
    flex-direction: column;
    /* height: 100%; removed to let grid gap handle spacing naturally if content is short */
    /* transition removed */
}

/* Hover removed */

/* Image Wrapper */
.dish-image-wrapper {
    position: relative;
    /* height: 200px; removed for aspect-ratio */
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0;
    /* reset margin handling in expanded state */
    aspect-ratio: 1;
}

.dish-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Interactive Toggle Logic --- */
.dish-card-universal.has-image {
    cursor: pointer;
}

/* Removed specific padding:0 rule as it is now global */
.dish-card-universal.has-image.expanded {
    height: auto;
}

/* Default state: Image hidden via max-height for transition */
.dish-card-universal.has-image .dish-image-wrapper {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-in, margin-bottom 0.4s ease;
}

.dish-card-universal.has-image.expanded .dish-image-wrapper {
    max-height: 600px;
    /* Large enough to fit aspect ratio 1 */
    opacity: 1;
    margin-bottom: 0;
    /* Remove margin as padding is now inside content */
    border-radius: 0;
    /* Clear radius to flush with card edges */
}

/* Removed specific padding rule as it is now global default */



.dish-toggle-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 20;
    width: 18px;
    height: 18px;
    pointer-events: none;
    /* Let click pass to card */
}

.dish-card-universal.has-image.expanded .dish-toggle-icon {
    display: none;
}

/* Badges */
.badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 10;
}

.badges-inline {
    display: inline-flex;
    gap: 5px;
    margin-left: 10px;
    vertical-align: middle;
}

.badge {
    font-family: 'Sneak', sans-serif;
    font-size: 12px;
    font-weight: 400;
    /* No bold */
    text-transform: capitalize;
    padding: 0 8px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    color: #ffffff;
    line-height: 1;
    border: 1px solid #577C61;
}

/* Badge new */
.badge-new {
    background-color: #e74c3c;
    border-color: #C65937;
}

/* Badge wege */
.badge-wege {
    background-color: #27ae60;
    border-color: #577C61;
}

/* Header */
.ml-auto header {
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    padding: 110px 12px 30px 12px;
    background-color: transparent;
    /* Or match body/header if needed */
    margin-top: auto;
}

.footer-logo-container {
    width: 760px;
    max-width: 100%;
    margin: 0 auto;
}

.footer-logo-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Menu Section Scroll Offset */
.menu-section {
    scroll-margin-top: 150px;
}

/* --- Location Start Page Slider --- */
.promo-slider-wrapper {
    /* Hide scrollbar but keep functionality */
    overflow: hidden;
}

.promo-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 20px;
    /* Space for shadow */
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.promo-slider::-webkit-scrollbar {
    display: none;
}

.promo-card {
    position: relative;
    flex: 0 0 338px;
    width: 338px;
    height: 520px;
    border-radius: 12px;
    box-shadow: 10px 10px 10px -8px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}

.promo-image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 34/28;
    overflow: hidden;
}

.promo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.promo-content {
    padding: 0 20px;
    flex-grow: 1;
}

.promo-title {
    font-family: 'StoliWol', sans-serif;
    font-size: 36px;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 12px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 400;
}

.promo-desc {
    font-family: 'Sneak', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
    color: rgba(245, 245, 245, 0.8);
    /* #F5F5F5CC */
}

.promo-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Column 4/12 */
.ml-auto h3 {
    margin-bottom: 12px;
    margin-top: 12px;
}

/* Subgroup desc */
.subgroup-desc {
    margin-bottom: 12px;
    margin-top: 0px;
}

.badge-promo {
    background-color: #f39c12;
}

/* Content */
.dish-content {
    padding: 12px;
    /* Content padding moved here */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dish-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align top in case of wrapping */
    margin-bottom: 8px;
}

.dish-title {
    font-family: 'Sneak', sans-serif;
    font-size: 20px;
    line-height: 1.2em;
    font-weight: 400;
    /* No bold */
    color: #ffffff;
    /* White title based on image */
    margin: 0;
}

.dish-price {
    font-family: 'Sneak', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
    color: #9ab2a0;
    white-space: nowrap;
    margin-left: 15px;
}

.dish-desc {
    font-family: 'Sneak', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
    color: #9ab2a0;
    margin-bottom: 10px;
    flex-grow: 1;
}

.dish-allergens {
    font-family: 'Sneak', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4em;
    color: #9ab2a0;
    color: #9ab2a0;
    /* border-top: 1px solid #51775b; removed */
    padding-top: 8px;
    margin-top: auto;
}

/* --- Scroll To Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;

    /* Default Hidden State */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- Bottom Content --- */
.promo-bottom-header {
    font-family: 'StoliWol', sans-serif;
    font-size: 36px;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 12px;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 400;
    text-align: center;
}

.promo-bottom-text {
    font-family: 'Sneak', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: #9ab2a0;
    text-align: center;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.promo-bottom-text p {
    margin-bottom: 1em;
}

/* Active Filter State for Tags */
.badge.dish-tag.active {
    padding-right: 24px;
    /* Space for absolute icon */
    position: relative;
    background-color: #51775b !important;
    /* Forces darker state when active? Or let JS handle it? */
    /* Let's keep original color but maybe darken/highlight */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.dish-tag .close-icon {
    display: none;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    pointer-events: none;
    /* Click passes to tag */
}

.badge.dish-tag.active .close-icon {
    display: block;
}

/* Tag Hover Effect */
.dish-tag {
    transition: filter 0.2s ease, padding 0.2s ease;
}

.dish-tag:hover {
    filter: brightness(1.15);
}