/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════
   723709c4 (P2, architecture §6): layout variants of the shop menu – option A of ADR ff-adr-branding-tiefe.
   A variant only arranges the menu; colours, font, radius and images are parameters of the theme. The class on the
   root of the menu comes from LayoutVarianten.CssKlasse, the head from Components/Shop/SpeisekartenKopf.
   - Static and the same for every host (BuildAsset): no value of a restaurant, var() only, no colour values, no url(),
     no @import, no !important (selectors with two classes beat the inline rules of the menu) – LayoutSourceTests.
   - Klassisch has no rule: today's menu stays as it is.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── Kacheln: the dishes of a category as a grid, 1/2/3 columns ── */
.menu-page.ff-layout-kacheln {
    max-width: 1080px;
}

.ff-layout-kacheln .category-chips {
    max-width: 1080px;
}

.ff-layout-kacheln .dish-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0 4px;
}

@media (min-width: 480px) {
    .ff-layout-kacheln .dish-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .ff-layout-kacheln .dish-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ff-layout-kacheln .dish-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    border-color: var(--mud-palette-lines-default);
}

.ff-layout-kacheln .dish-info {
    flex: 1 1 auto;
}

.ff-layout-kacheln .dish-desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.ff-layout-kacheln .dish-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* ── Bildstark: the list as in Klassisch with more room ── */
.ff-layout-bildstark .menu-header {
    margin-bottom: 24px;
}

.ff-layout-bildstark .category-section {
    margin-top: 40px;
}

.ff-layout-bildstark .dish-list .dish-card {
    margin-bottom: 12px;
}

/* ── Bildstark: head as image area (Titelbild) or, without one, as surface in the primary colour ── */
.menu-header.ff-kopf-bild,
.menu-header.ff-kopf-flaeche {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
}

.menu-header.ff-kopf-bild::before,
.menu-header.ff-kopf-flaeche::before {
    content: none;
}

/* dark behind the image while it loads or when it fails – white text stays readable */
.menu-header.ff-kopf-bild {
    background: var(--mud-palette-black);
    color: var(--mud-palette-white);
}

.menu-header.ff-kopf-flaeche {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

/* the darkening is 1 - LayoutVarianten.MinAbdunklung: white text keeps 4.5:1 on any photo */
.ff-kopf-titelbild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.ff-kopf-inhalt {
    position: relative;
}

.ff-kopf-logo {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    box-sizing: border-box;
    padding: 6px;
    margin-bottom: 12px;
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
}

.menu-header.ff-kopf-bild .menu-header-name,
.menu-header.ff-kopf-bild .menu-header-address,
.menu-header.ff-kopf-bild .menu-header-hours,
.menu-header.ff-kopf-flaeche .menu-header-name,
.menu-header.ff-kopf-flaeche .menu-header-address,
.menu-header.ff-kopf-flaeche .menu-header-hours {
    color: inherit;
}

.menu-header.ff-kopf-bild .menu-header-name,
.menu-header.ff-kopf-flaeche .menu-header-name {
    font-size: clamp(1.4rem, 1rem + 2vw, 2rem);
}

/* the status as a chip of the theme surface – readable on any photo and colour */
.menu-header.ff-kopf-bild .status-badge,
.menu-header.ff-kopf-flaeche .status-badge {
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
}

@media (max-width: 600px) {
    .menu-header.ff-kopf-bild,
    .menu-header.ff-kopf-flaeche {
        min-height: 180px;
    }
}
