/**
 * Subpages.
 * Redesign 11/2026. Process: unslop by Damir Sokolovsky (@heydamir), CC BY 4.0, https://github.com/heydamir/unslop
 */

/* ==========================================================================
   pages-a
   ========================================================================== */
/**
 * pages-a: Speisekarte, Mittagstisch, Galerie, Blog (overview and post).
 * Markup: speisekarte.php, mittagstisch.php, galerie.php, blog.php, blog_post.php,
 * includes/blog_helpers.php. Page heads come from includes/components/page_hero.php
 * (.page-hero and .facts-card in base.css).
 * Every rule is scoped under the page's root class:
 *   .menu-page (Speisekarte) · .lunch-page (Mittagstisch) · .gallery-page (Galerie)
 *   .blog-index (Blog) · .post-hero, .post-page, .post-related (Blogbeitrag)
 * Breakpoints as in the redesign: 1100, 900, 560 (max-width).
 * Redesign 11/2026. Process: unslop by Damir Sokolovsky (@heydamir), CC BY 4.0,
 * https://github.com/heydamir/unslop
 */

/* ==========================================================================
   Speisekarte
   ========================================================================== */
.menu-page.section { padding-top: 64px; }

/* Search, filter chips, view switcher */
.menu-page .menu-controls {
    display: grid;
    grid-template-columns: minmax(0, 480px) auto;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
}

.menu-page .menu-search {
    position: relative;
    grid-column: 1;
}
.menu-page .menu-search-icon {
    position: absolute;
    top: 15px;
    left: 16px;
    color: var(--ink-3);
    pointer-events: none;
}
.menu-page .menu-search-input {
    padding-left: 44px;
    padding-right: 48px;
}
.menu-page .menu-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.menu-page .menu-search-clear {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    color: var(--ink-3);
    transition: color 160ms var(--ease), background-color 160ms var(--ease), transform 120ms var(--ease);
}
.menu-page .menu-search-clear:hover {
    color: var(--ink);
    background-color: var(--raised);
}
.menu-page .menu-search-clear:active { transform: scale(0.97); }

/* Card / table switch */
.menu-page .menu-view-switcher {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}
.menu-page .view-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    font: 500 14px/1 var(--sans);
    color: var(--ink-2);
    transition: color 160ms var(--ease), background-color 160ms var(--ease), transform 120ms var(--ease);
}
.menu-page .view-switch-btn:hover { color: var(--ink); }
.menu-page .view-switch-btn:active { transform: scale(0.97); }
.menu-page .view-switch-btn[aria-pressed="true"] {
    background-color: var(--ink);
    color: var(--paper);
}

/* Filter chips */
.menu-page .menu-quick-filters {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.menu-page .quick-filter-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font: 500 14px/1 var(--sans);
    color: var(--ink-2);
    transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}
.menu-page .quick-filter-chip:hover {
    border-color: var(--ink-3);
    color: var(--ink);
}
.menu-page .quick-filter-chip:active { transform: scale(0.97); }
.menu-page .quick-filter-chip[aria-pressed="true"] {
    border-color: var(--ink);
    background-color: var(--ink);
    color: var(--paper);
}

.menu-page .menu-search-count {
    grid-column: 1 / -1;
    font-size: 14px;
    line-height: 20px;
    color: var(--ink-2);
}
/* Empty, the live region takes no space but stays in the accessibility tree (as .sr-only),
   so its next text is announced */
.menu-page .menu-search-count:empty {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Sticky category navigation, directly under the sticky site header */
.menu-page .menu-sticky-wrapper {
    position: sticky;
    top: var(--site-header-height, var(--header-h));
    z-index: var(--z-sticky);
    margin-top: 32px;
    border-bottom: 1px solid var(--line);
    background-color: var(--paper);
}
/* 8 px of inline padding, taken back by the margin, keep the focus ring (2 px + 3 px offset)
   of the first and last pill inside the scroller */
.menu-page .menu-pills-scroll {
    position: relative;
    display: flex;
    gap: 4px;
    margin-inline: -8px;
    padding: 12px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.menu-page .menu-pills-scroll::-webkit-scrollbar { display: none; }
/* With a mouse the row would be unreachable without a scrollbar: show a thin one */
@media (hover: hover) and (pointer: fine) {
    .menu-page .menu-pills-scroll {
        padding-bottom: 8px;
        scrollbar-width: thin;
        scrollbar-color: var(--line-strong) transparent;
    }
}
.menu-page .category-pill {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    line-height: 1;
    color: var(--ink-2);
    white-space: nowrap;
    transition: color 160ms var(--ease), background-color 160ms var(--ease), transform 120ms var(--ease);
}
.menu-page .category-pill:hover { color: var(--ink); }
.menu-page .category-pill:active { transform: scale(0.97); }
.menu-page .category-pill.active {
    background-color: var(--raised);
    color: var(--ink);
}
.menu-page .pill-count {
    font-size: 13px;
    color: var(--ink-3);
}

/* Nothing found */
.menu-page .menu-no-results {
    max-width: 30rem;
    margin: 48px auto 0;
    text-align: center;
}
.menu-page .menu-no-results > .icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 16px;
    color: var(--ink-3);
}
.menu-page .menu-no-results p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 26px;
    color: var(--ink-2);
}
.menu-page .menu-no-results .btn { margin-top: 24px; }

/* The menu card: categories as sections, dishes as leader rows */
.menu-page .menu-sheet {
    position: relative;
    margin-top: 40px;
    padding: 72px 64px;
    border-radius: var(--radius-lg);
    background-color: var(--card);
    box-shadow: var(--shadow-soft);
}
.menu-page .menu-sheet::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    pointer-events: none;
}

.menu-page .menu-category-section {
    position: relative;
    scroll-margin-top: 64px;
}
.menu-page .menu-category-section + .menu-category-section { margin-top: 80px; }

.menu-page .category-header-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}
.menu-page .category-header-wrap::before,
.menu-page .category-header-wrap::after {
    content: "";
    flex: none;
    width: 48px;
    height: 1px;
    background-color: var(--line-strong);
}
.menu-page .category-title {
    font-size: 36px;
    line-height: 1.1;
    text-align: center;
}
.menu-page .category-toggle { display: none; }
.menu-page .category-desc {
    max-width: 36rem;
    margin: -24px auto 40px;
    font-size: 15px;
    line-height: 24px;
    text-align: center;
    color: var(--ink-2);
}

.menu-page .dishes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 56px;
}
.menu-page .dish .lead { color: var(--ink); }
.menu-page .dish-name {
    min-width: 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
    font-variant-numeric: lining-nums;
}
.menu-page .dish .val {
    font: 500 16px/1 var(--sans);
    color: var(--ink);
}
.menu-page .dish .val.is-daily { color: var(--ink-2); }
.menu-page .dish-desc {
    max-width: 44ch;
    margin-top: 8px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-2);
}
.menu-page .dish-tags {
    margin-top: 6px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-3);
}
.menu-page .dish-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Table view */
.menu-page.menu-view-mode-grid .menu-table-wrapper,
.menu-page.menu-view-mode-table .dishes { display: none; }

.menu-page .menu-category-table {
    width: 100%;
    font-size: 15px;
    line-height: 22px;
}
.menu-page .menu-category-table th,
.menu-page .menu-category-table td {
    padding: 14px 24px 14px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: baseline;
}
.menu-page .menu-category-table thead th {
    padding-top: 0;
    padding-bottom: 12px;
    border-bottom-color: var(--line-strong);
    font: 500 13px/20px var(--sans);
    color: var(--ink-3);
}
.menu-page .menu-category-table thead th:first-child { width: 32%; }
.menu-page .menu-category-table th:last-child,
.menu-page .menu-category-table td:last-child {
    padding-right: 0;
    text-align: right;
}
.menu-page .menu-table-dish {
    font: 500 20px/1.25 var(--serif);
    font-variant-numeric: lining-nums;
    color: var(--ink);
}
.menu-page .menu-table-tags {
    display: block;
    margin-top: 4px;
    font: 400 13px/20px var(--sans);
    color: var(--ink-3);
}
.menu-page .menu-table-desc { color: var(--ink-2); }
.menu-page .menu-table-price {
    font-weight: 500;
    white-space: nowrap;
    color: var(--ink);
}
.menu-page .menu-table-price.is-daily {
    font-weight: 400;
    color: var(--ink-2);
}

/* Back to top: page-level, under the mobile action bar's layer */
.menu-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: var(--z-sticky);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-d-strong);
    border-radius: var(--radius-sm);
    background-color: var(--night);
    color: var(--cream);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms, background-color 160ms var(--ease);
}
.menu-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.menu-back-to-top:hover { background-color: var(--night-raised); }
.menu-back-to-top.visible:active { transform: scale(0.97); }
/* Reduced motion: base.css limits what may transition, which would pair the list above
   anew. The fade, the delayed hiding and the hover colour keep their timing; the offset
   and the press scale switch at once */
@media (prefers-reduced-motion: reduce) {
    .menu-back-to-top {
        transition-property: opacity, background-color, visibility !important;
        transition-duration: 160ms, 160ms, 0s;
        transition-delay: 0s, 0s, 160ms;
    }
}

@media (max-width: 1100px) {
    .menu-page .menu-sheet { padding: 64px 48px; }
}

@media (max-width: 900px) {
    .menu-page.section { padding-top: 48px; }
    /* Touch targets of at least 44 px */
    .menu-page .quick-filter-chip,
    .menu-page .view-switch-btn,
    .menu-page .category-pill { min-height: 44px; }
    .menu-page .menu-sheet { padding: 40px 28px; }
    .menu-page .dishes {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    /* Categories become an accordion: name left, toggle right, a hairline below */
    .menu-page .menu-category-section + .menu-category-section { margin-top: 40px; }
    .menu-page .category-header-wrap {
        position: relative;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--line);
    }
    .menu-page .category-header-wrap::before,
    .menu-page .category-header-wrap::after { display: none; }
    .menu-page .category-title {
        font-size: 30px;
        text-align: left;
    }
    .menu-page .category-desc {
        margin: -8px 0 24px;
        text-align: left;
    }
    .menu-page .category-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        color: var(--ink-3);
    }
    /* the whole header row is the hit area */
    .menu-page .category-toggle::after {
        content: "";
        position: absolute;
        inset: 0;
    }
    /* A focused toggle stops below the sticky category bar, as the section anchors do */
    .menu-page .category-toggle { scroll-margin-top: 64px; }
    .menu-page .category-toggle .icon { transition: transform 200ms var(--ease); }
    .menu-page .is-collapsed .category-toggle .icon { transform: rotate(-90deg); }
    .menu-page .is-collapsed .category-header-wrap { margin-bottom: 0; }
    .menu-page .is-collapsed .category-items,
    .menu-page .is-collapsed .category-desc { display: none; }

    /* Back to top at the left edge: in one column the prices sit on the right */
    .menu-back-to-top {
        right: auto;
        left: 16px;
    }
    /* Keyboard focus stops above the button (24 + 44 + 16 px) */
    html:has(.menu-back-to-top) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Touch screens wider than 900 px (phones in landscape, tablets): the same 44 px targets */
@media (pointer: coarse) {
    .menu-page .quick-filter-chip,
    .menu-page .view-switch-btn,
    .menu-page .category-pill { min-height: 44px; }
}

@media (max-width: 560px) {
    .menu-page .menu-controls { grid-template-columns: minmax(0, 1fr); }
    .menu-page .menu-search,
    .menu-page .menu-view-switcher {
        grid-column: 1;
        justify-self: start;
    }
    .menu-page .menu-search { width: 100%; }
    .menu-page .menu-sheet { padding: 32px 24px; }
    .menu-page .menu-sheet::before {
        inset: 8px;
        border-radius: 8px;
    }
    .menu-page .dish-name {
        font-size: 22px;
        overflow-wrap: break-word;
    }

    /* Table view as stacked rows: dish and price on one line, description below */
    .menu-page .menu-category-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
    .menu-page .menu-category-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 16px;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }
    .menu-page .menu-category-table th,
    .menu-page .menu-category-table td {
        padding: 0;
        border: 0;
    }
    .menu-page .menu-table-dish { grid-column: 1; }
    .menu-page .menu-table-price { grid-column: 2; grid-row: 1; }
    .menu-page .menu-table-desc {
        grid-column: 1 / -1;
        margin-top: 4px;
        font-size: 14px;
    }
    .menu-page .menu-table-desc:empty { display: none; }

    /* Still at the left edge (see 900 px), 15 px above the action bar (69 px) */
    .menu-back-to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
    /* Keyboard focus stops above the button too (84 + 44 + 16 px), not only above the bar */
    html:has(.menu-back-to-top) { scroll-padding-bottom: calc(144px + env(safe-area-inset-bottom, 0px)); }
}

/* Below 360 px long names ("Trüffelgeschmack", "Schokoladensoufflé") break with a hyphen instead
   of running into the dots; short words are never hyphenated. From 360 px up every name fits. */
@media (max-width: 359px) {
    .menu-page .dish-name {
        -webkit-hyphens: auto;
        hyphens: auto;
        hyphenate-limit-chars: 10 4 4;
    }
}

/* ==========================================================================
   Mittagstisch
   ========================================================================== */
.lunch-page .lunch-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}
.lunch-page .lunch-menu.is-single { grid-template-columns: minmax(0, 1fr); }

/* The menu card, as on the homepage */
.lunch-page .lunch-card {
    position: relative;
    padding: 56px;
    border-radius: var(--radius-lg);
    background-color: var(--card);
    box-shadow: var(--shadow-soft);
}
.lunch-page .lunch-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    pointer-events: none;
}
.lunch-page .card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    font: 500 13px/20px var(--sans);
    text-align: center;
    color: var(--ink-3);
}
.lunch-page .card-title::before,
.lunch-page .card-title::after {
    content: "";
    flex: none;
    width: 48px;
    height: 1px;
    background-color: var(--line-strong);
}
.lunch-page .lunch-card h3 {
    font-size: 36px;
    line-height: 1.1;
    text-align: center;
}
.lunch-page .lunch-sub {
    max-width: 34rem;
    margin: 16px auto 0;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    color: var(--ink-2);
}
.lunch-page .lunch-dishes {
    margin-top: 32px;
    border-top: 1px solid var(--line);
}
.lunch-page .lunch-dishes li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    line-height: 28px;
    color: var(--ink-2);
}
.lunch-page .lunch-dishes strong {
    font: 500 22px/1.25 var(--serif);
    color: var(--ink);
}
.lunch-page .lunch-total {
    margin-top: 32px;
    font: 500 26px/1.2 var(--serif);
    color: var(--ink);
}
.lunch-page .lunch-total .val { font: 500 18px/1 var(--sans); }

/* The flyer opens full size in a new tab */
.lunch-page .lunch-flyer { margin: 0; }
.lunch-page .lunch-flyer a { display: block; }
.lunch-page .lunch-flyer picture {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--card);
}
.lunch-page .lunch-flyer img {
    width: 100%;
    transition: transform 250ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
    .lunch-page .lunch-flyer a:hover img { transform: scale(1.02); }
}
.lunch-page .lunch-flyer .link { margin-top: 16px; }

/* Single dishes */
.lunch-page .lunch-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 56px;
}
.lunch-page .dish .lead { color: var(--ink); }
.lunch-page .dish-name {
    min-width: 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
    font-variant-numeric: lining-nums;
}
.lunch-page .dish .val { font: 500 16px/1 var(--sans); }
.lunch-page .dish-desc {
    margin-top: 8px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-2);
}
.lunch-page .dish-note {
    margin-top: 8px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-3);
}

/* Quick service note with the two actions */
.lunch-page .lunch-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px 48px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--raised);
}
.lunch-page .lunch-options + .lunch-service { margin-top: 72px; }
.lunch-page .lunch-service h3 {
    font-size: 28px;
    line-height: 1.15;
}
.lunch-page .lunch-service p {
    max-width: 40rem;
    margin-top: 12px;
    font-size: 16px;
    line-height: 26px;
    color: var(--ink-2);
}
.lunch-page .lunch-service .actions {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 12px;
}

/* FAQ, as on the homepage: heading on the left, questions on the right */
.lunch-page .lunch-faq {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 96px;
}
.lunch-page .lunch-faq-aside {
    position: sticky;
    top: calc(var(--header-h) + 48px);
    align-self: start;
}
.lunch-page .lunch-faq-aside .more {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-2);
}
.lunch-page .lunch-faq-aside .more a {
    font-weight: 500;
    white-space: nowrap;
    color: var(--ink);
}
.lunch-page .lunch-faq-aside .more a:hover { color: var(--accent-ink); }

/* FAQ list: Mittagstisch and blog posts */
.lunch-page .faq-list details,
.post-page .faq-list details { border-bottom: 1px solid var(--line); }
.lunch-page .faq-list details:first-child,
.post-page .faq-list details:first-child { border-top: 1px solid var(--line); }
.lunch-page .faq-list summary,
.post-page .faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 16px 0;
    list-style: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: var(--ink);
    cursor: pointer;
}
.lunch-page .faq-list summary::-webkit-details-marker,
.post-page .faq-list summary::-webkit-details-marker { display: none; }
.lunch-page .faq-list summary .icon,
.post-page .faq-list summary .icon {
    color: var(--ink-3);
    transition: transform 200ms var(--ease);
}
.lunch-page .faq-list details[open] summary .icon,
.post-page .faq-list details[open] summary .icon { transform: rotate(45deg); }
.lunch-page .faq-answer,
.post-page .faq-answer {
    padding: 0 48px 24px 0;
    transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
/* The answer fades in with the icon as the item opens; closing stays instant.
   Not on the first paint: main.js sets .is-ready on <html> once the page is shown */
@starting-style {
    .is-ready .lunch-page .faq-answer,
    .is-ready .post-page .faq-answer {
        opacity: 0;
        transform: translateY(-4px);
    }
}
.lunch-page .faq-answer p,
.post-page .faq-answer p {
    max-width: 40rem;
    font-size: 16px;
    line-height: 26px;
    color: var(--ink-2);
}
.lunch-page .faq-answer .link,
.post-page .faq-answer .link { margin-top: 12px; }

@media (max-width: 1100px) {
    .lunch-page .lunch-menu { grid-template-columns: minmax(0, 1fr) 300px; }
    .lunch-page .lunch-options { gap: 40px 32px; }
    .lunch-page .lunch-faq { gap: 56px; }
}

@media (max-width: 900px) {
    .lunch-page .lunch-menu { grid-template-columns: minmax(0, 1fr); }
    .lunch-page .lunch-flyer { max-width: 360px; }
    .lunch-page .lunch-card { padding: 48px 32px; }
    .lunch-page .lunch-options {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .lunch-page .lunch-service {
        flex-direction: column;
        align-items: flex-start;
    }
    .lunch-page .lunch-options + .lunch-service { margin-top: 56px; }
    .lunch-page .lunch-faq {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .lunch-page .lunch-faq-aside { position: static; }
    .lunch-page .lunch-faq-aside .more { margin-top: 24px; }
    .lunch-page .faq-answer,
    .post-page .faq-answer { padding-right: 0; }
}

@media (max-width: 560px) {
    .lunch-page .lunch-card { padding: 40px 24px; }
    .lunch-page .lunch-card::before {
        inset: 8px;
        border-radius: 8px;
    }
    .lunch-page .lunch-card h3 { font-size: 30px; }
    .lunch-page .lunch-dishes strong { font-size: 20px; }
    .lunch-page .lunch-total { font-size: 24px; }
    .lunch-page .lunch-service { padding: 24px; }
    .lunch-page .lunch-service .actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
}

/* ==========================================================================
   Galerie
   ========================================================================== */
.gallery-page.section:not(.tight) { padding-top: 64px; }

/* Category filter (not sticky) */
.gallery-page .gallery-filter-nav { margin-bottom: 40px; }
.gallery-page .gallery-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gallery-page .gallery-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font: 500 14px/1 var(--sans);
    color: var(--ink-2);
    transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}
.gallery-page .gallery-filter-btn:hover {
    border-color: var(--ink-3);
    color: var(--ink);
}
.gallery-page .gallery-filter-btn:active { transform: scale(0.97); }
.gallery-page .gallery-filter-btn.active {
    border-color: var(--ink);
    background-color: var(--ink);
    color: var(--paper);
}
.gallery-page .gallery-filter-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-3);
}
.gallery-page .gallery-filter-btn.active .gallery-filter-count { color: var(--cream-2); }

/* Grid as on the homepage: 4:3 photos, caption below */
.gallery-page .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
}
.gallery-page .gallery-item {
    display: block;
    width: 100%;
    color: var(--ink);
    text-align: left;
    cursor: zoom-in;
    transition: opacity 160ms var(--ease);
}
.gallery-page .gallery-item.is-hidden { display: none; }
/* Items that a filter change brings back fade in, without movement.
   Not on the first paint: main.js sets .is-ready on <html> once the page is shown */
@starting-style {
    .is-ready .gallery-page .gallery-item { opacity: 0; }
}
.gallery-page .gallery-item:focus-visible {
    outline-offset: 4px;
    border-radius: var(--radius);
}
.gallery-page .ph {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background-color: var(--raised);
}
.gallery-page .ph picture {
    display: block;
    width: 100%;
    height: 100%;
}
.gallery-page .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
    .gallery-page .gallery-item:hover .ph img { transform: scale(1.02); }
}
.gallery-page .ph-zoom {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: var(--night);
    color: var(--cream);
    opacity: 0;
    transition: opacity 160ms var(--ease);
}
.gallery-page .gallery-item:hover .ph-zoom,
.gallery-page .gallery-item:focus-visible .ph-zoom { opacity: 1; }
.gallery-page .gallery-caption {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-2);
}

/* Empty category: main.js sets display to block */
.gallery-page .gallery-empty {
    display: none;
    padding: 48px 0;
    text-align: center;
}
.gallery-page .gallery-empty p {
    font-size: 16px;
    line-height: 26px;
    color: var(--ink-2);
}
.gallery-page .gallery-empty .btn { margin-top: 20px; }

/* Closing band: visit, menu, lunch, about */
.gallery-page .gallery-cta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px 64px;
}
.gallery-page .gallery-cta-side { flex: none; }
.gallery-page .gallery-cta .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.gallery-page .gallery-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .gallery-page.section:not(.tight) { padding-top: 48px; }
    .gallery-page .gallery-filter-btn { min-height: 44px; }   /* touch target (wider touch screens: below) */
    .gallery-page .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }
    .gallery-page .gallery-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .gallery-page .gallery-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery-page .gallery-cta-side { width: 100%; }
    .gallery-page .gallery-cta .actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Touch screens wider than 900 px (phones in landscape, tablets) */
@media (pointer: coarse) {
    .gallery-page .gallery-filter-btn { min-height: 44px; }
}

/* ==========================================================================
   Blog overview: magazine as on the homepage, then a grid
   ========================================================================== */
.blog-index.section { padding-top: 80px; }

.blog-index .blog-lead {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
}
.blog-index .blog-lead.is-single { grid-template-columns: minmax(0, 1fr); }

.blog-index .post-main,
.blog-index .post-side,
.blog-index .blog-card { color: var(--ink); }
.blog-index .post-main,
.blog-index .blog-card { display: block; }
.blog-index .post-main:focus-visible,
.blog-index .post-side:focus-visible,
.blog-index .blog-card:focus-visible { border-radius: var(--radius-sm); }

.blog-index .ph {
    overflow: hidden;
    background-color: var(--raised);
}
.blog-index .ph picture {
    display: block;
    width: 100%;
    height: 100%;
}
.blog-index .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
    .blog-index a:hover .ph img { transform: scale(1.02); }
}

.blog-index time {
    display: block;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-3);
}
.blog-index h2 { transition: color 160ms var(--ease); }
.blog-index a:hover h2 { color: var(--accent-ink); }

.blog-index .post-main .ph {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
}
.blog-index .post-main time { margin-top: 24px; }
.blog-index .post-main > time:first-child { margin-top: 0; }
.blog-index .post-main h2 {
    max-width: 22ch;
    margin-top: 8px;
    font-size: 32px;
    line-height: 1.15;
}
.blog-index .post-main p {
    max-width: 36rem;
    margin-top: 12px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-2);
}

.blog-index .post-side {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.blog-index .post-side:first-child { padding-top: 0; }
.blog-index .post-side:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.blog-index .post-side.no-img { grid-template-columns: minmax(0, 1fr); }
.blog-index .post-side .ph {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
}
.blog-index .post-side h2 {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.2;
}

.blog-index .read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--accent-ink);
}
.blog-index .read .icon { transition: transform 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .blog-index a:hover .read .icon { transform: translateX(2px); }
}

/* Grid of the other posts */
.blog-index .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 32px;
}
.blog-index .blog-grid.after-lead {
    margin-top: 80px;
    padding-top: 64px;
    border-top: 1px solid var(--line);
}
.blog-index .blog-card .ph {
    aspect-ratio: 3 / 2;
    border-radius: var(--radius);
}
.blog-index .blog-card time { margin-top: 20px; }
.blog-index .blog-card > time:first-child { margin-top: 0; }
.blog-index .blog-card h2 {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.2;
}
.blog-index .blog-card p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-2);
}

/* Pagination */
.blog-index .blog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.blog-index .blog-pages {
    display: flex;
    gap: 4px;
}
.blog-index .blog-pages a,
.blog-index .blog-pages .is-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--ink-2);
}
.blog-index .blog-pages a:hover { color: var(--ink); }
.blog-index .blog-pages .is-current {
    background-color: var(--raised);
    color: var(--ink);
}

@media (max-width: 1100px) {
    .blog-index .blog-grid { gap: 48px 24px; }
}

@media (max-width: 900px) {
    .blog-index.section { padding-top: 56px; }
    .blog-index .blog-lead {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }
    .blog-index .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-index .blog-grid.after-lead {
        margin-top: 56px;
        padding-top: 48px;
    }
}

@media (max-width: 560px) {
    .blog-index .post-main h2 { font-size: 28px; }
    .blog-index .post-side {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 16px;
    }
    .blog-index .post-side h2 { font-size: 20px; }
    .blog-index .blog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }
    .blog-index .blog-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    .blog-index .blog-pagination > span:empty { display: none; }
}

/* ==========================================================================
   Blog post
   ========================================================================== */
/* Reading progress: a 2 px line at the top edge, above the sticky header */
.reading-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    height: 2px;
    pointer-events: none;
}
.reading-progress-bar {
    width: 0;
    height: 100%;
    background-color: var(--accent);
}

/* Page head: long titles, a meta line under the excerpt */
.post-hero .page-hero h1 {
    max-width: 24ch;
    font-size: 48px;
    line-height: 1.08;
}
.post-hero .page-hero .sub { max-width: 40rem; }
.post-hero .post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 20px;
    color: var(--cream-2);
}
.post-hero .post-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.post-hero .post-meta .icon { color: var(--cream-3); }

/* Reading column and sidebar */
.post-page.section { padding-top: 64px; }
.post-page .post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 72px;
}
.post-page .post-figure {
    margin: 0 0 48px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background-color: var(--raised);
}
.post-page .post-figure picture {
    display: block;
    width: 100%;
    height: 100%;
}
.post-page .post-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Boxes stored in the post HTML (inline-styled "callouts" with a heading, text and a button) */
.post-page .prose > div[style] {
    margin: 40px 0 0 !important;
    padding: 28px !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    background: var(--raised) !important;
}
.post-page .prose > div[style] h4 {
    margin: 0 !important;
    font: 500 24px/1.2 var(--serif) !important;
    letter-spacing: -0.01em;
    color: var(--ink) !important;
}
.post-page .prose > div[style] p {
    margin: 8px 0 0 !important;
    line-height: 26px !important;
}
.post-page .prose > div[style] ul {
    margin: 16px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 16px !important;
    line-height: 26px !important;
}
.post-page .prose > div[style] li + li { margin-top: 4px; }
.post-page .prose > div[style] > .btn { margin-top: 20px; }
.post-page .prose > div[style] > div[style] {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px !important;
    margin-top: 20px !important;
}
.post-page .prose a[style]:not(.btn) {
    font-weight: 500 !important;
    color: var(--accent-ink) !important;
}
/* Buttons stored in the post text show as ghost buttons, so the reservation card in the
   sidebar keeps the only primary button next to the text (values of .btn-ghost in base.css) */
.post-page .prose .btn-primary {
    background-color: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
    box-shadow: none;
}
.post-page .prose .btn-primary:hover {
    background-color: rgba(27, 26, 24, 0.04);
    border-color: rgba(27, 26, 24, 0.32);
}

/* Tip from the kitchen */
.post-page .post-tip {
    margin-top: 56px;
    padding: 32px;
    border-radius: var(--radius);
    background-color: var(--raised);
}
.post-page .post-tip-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-3);
}
.post-page .post-tip h2 {
    margin-top: 12px;
    font-size: 28px;
    line-height: 1.15;
}
.post-page .post-tip blockquote {
    margin-top: 20px;
    padding-left: 24px;
    border-left: 1px solid var(--line-strong);
    font: 400 24px/1.35 var(--serif);
    color: var(--ink);
}
.post-page .post-tip-by {
    margin-top: 16px;
    padding-left: 24px;
    font-size: 14px;
    line-height: 20px;
    color: var(--ink-3);
}

.post-page .post-faq { margin-top: 64px; }
.post-page .post-faq h2 {
    margin-bottom: 24px;
    font-size: 32px;
    line-height: 1.15;
}

.post-page .post-author {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.post-page .post-author-name {
    font: 500 24px/1.2 var(--serif);
    color: var(--ink);
}
.post-page .post-author-role {
    margin-top: 4px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-3);
}
.post-page .post-author-text {
    max-width: 40rem;
    margin-top: 12px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-2);
}

/* Previous / next */
.post-page .post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 48px;
}
.post-page .post-nav a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.post-page .post-nav a:hover {
    border-color: var(--line-strong);
    background-color: var(--card);
}
.post-page .post-nav a.is-next {
    align-items: flex-end;
    text-align: right;
}
.post-page .post-nav-dir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-3);
}
.post-page .post-nav-title {
    font: 500 20px/1.25 var(--serif);
    transition: color 160ms var(--ease);
}
.post-page .post-nav a:hover .post-nav-title { color: var(--accent-ink); }

/* Sidebar: reservation and hours on night, dishes on card */
.post-page .post-aside-inner {
    display: grid;
    gap: 24px;
}
.post-page .post-reserve {
    padding: 28px;
    border: 1px solid var(--line-d);
    border-radius: var(--radius-lg);
    background-color: var(--night-card);
    color: var(--cream);
}
.post-page .post-reserve h2 {
    font-size: 28px;
    line-height: 1.15;
}
.post-page .post-reserve > p:not(.note) {
    margin-top: 12px;
    font-size: 15px;
    line-height: 24px;
    color: var(--cream-2);
}
.post-page .post-reserve .actions {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}
.post-page .post-reserve h3 {
    margin-top: 28px;
    font: 500 13px/20px var(--sans);
    letter-spacing: 0;
    color: var(--cream-3);
}
.post-page .post-reserve ul {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    font-size: 14px;
}
.post-page .post-reserve .nowrap { white-space: nowrap; }
.post-page .post-reserve .lead { color: var(--cream-2); }
.post-page .post-reserve .lead .val { color: var(--cream); }
.post-page .post-reserve .lead .dots { opacity: 0.3; }
.post-page .post-reserve .note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line-d);
    font-size: 14px;
    line-height: 22px;
    color: var(--cream-2);
}

.post-page .post-dishes {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background-color: var(--card);
}
.post-page .post-dishes h2 {
    font: 500 13px/20px var(--sans);
    letter-spacing: 0;
    color: var(--ink-3);
}
.post-page .post-dishes ul {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.post-page .post-dishes .lead {
    font: 500 20px/1.25 var(--serif);
    font-variant-numeric: lining-nums;
    color: var(--ink);
}
.post-page .post-dishes .lead .val { font: 500 15px/1 var(--sans); }
.post-page .post-dishes a.lead:hover .lbl { color: var(--accent-ink); }
.post-page .post-dishes .link { margin-top: 20px; }

/* Sticky below the header, only where the whole sidebar fits on screen */
@media (min-width: 901px) and (min-height: 860px) {
    .post-page .post-aside-inner {
        position: sticky;
        top: calc(var(--header-h) + 24px);
    }
}

/* More posts as small cards */
.post-related .related-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}
.post-related .related-card {
    display: block;
    color: var(--ink);
}
.post-related .related-card:focus-visible { border-radius: var(--radius-sm); }
.post-related .ph {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius);
    background-color: var(--raised);
}
.post-related .ph picture {
    display: block;
    width: 100%;
    height: 100%;
}
.post-related .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
    .post-related .related-card:hover .ph img { transform: scale(1.02); }
}
.post-related time {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-3);
}
.post-related h3 {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.2;
    transition: color 160ms var(--ease);
}
.post-related .related-card:hover h3 { color: var(--accent-ink); }

@media (max-width: 1100px) {
    .post-page .post-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 56px;
    }
    .post-hero .page-hero h1 { font-size: 44px; }
}

@media (max-width: 900px) {
    .post-hero .page-hero h1 { font-size: 38px; }
    .post-page.section { padding-top: 48px; }
    .post-page .post-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 64px;
    }
    .post-page .post-aside-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .post-related .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .post-hero .page-hero h1 { font-size: 32px; }
    .post-page .post-figure {
        margin-bottom: 32px;
        aspect-ratio: 4 / 3;
        border-radius: var(--radius);
    }
    .post-page .prose > div[style] { padding: 24px !important; }
    .post-page .post-tip { padding: 24px; }
    .post-page .post-tip blockquote { font-size: 22px; }
    .post-page .post-faq h2 { font-size: 28px; }
    .post-page .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-page .post-nav a.is-next {
        align-items: flex-start;
        text-align: left;
    }
    .post-page .post-aside-inner { grid-template-columns: minmax(0, 1fr); }
    .post-page .post-reserve,
    .post-page .post-dishes { padding: 24px; }
    .post-related .related-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

/* ==========================================================================
   pages-b
   ========================================================================== */
/* pages-b: Über uns, Reservierung, Kontakt, Impressum, Datenschutz, AGB, CMS pages (seite.php), 404.
   The page heads come from includes/components/page_hero.php (base.css); story, visit and the
   reservation form style themselves (home-b.css, home-c.css). Everything here is scoped to the
   section classes these pages print. */

/* ==========================================================================
   Facts cards in the page head (.facts-card from base.css plus .page-facts)
   ========================================================================== */
.page-facts .addr {
    margin-top: 16px;
    font-size: 15px;
    line-height: 24px;
    color: var(--cream);
}
.page-facts .addr strong { font-weight: 500; }

/* Every page-head facts card and the hours in the blog sidebar: short leaders let
   "Dienstag bis Sonntag ·· 12:00–23:00 Uhr" fit a 390 px phone. An overlong value
   moves under its label instead of running out of the card. */
.facts-card .lead,
.post-reserve .lead {
    flex-wrap: wrap;
    row-gap: 0;
}
.facts-card .lead .dots,
.post-reserve .lead .dots { min-width: 12px; }
.facts-card .lead .val,
.post-reserve .lead .val {
    margin-left: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
}
.page-facts .lead .val a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 160ms var(--ease);
}
.page-facts .lead .val a:hover { text-decoration-color: currentColor; }

/* ==========================================================================
   Feature lists: icon, serif title, short text (Über uns, Kontakt)
   ========================================================================== */
.about-philosophy .feature-grid,
.contact-directions .feature-grid {
    display: grid;
    gap: 40px 32px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.about-philosophy .feature-item,
.contact-directions .feature-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 16px;
}
.about-philosophy .feature-item > .icon,
.contact-directions .feature-item > .icon {
    margin-top: 5px;
    color: var(--ink-3);
}
.about-philosophy .feature-item h3,
.contact-directions .feature-item h3 {
    font-size: 24px;
    line-height: 1.2;
}
.about-philosophy .feature-item p,
.contact-directions .feature-item p,
.contact-directions .feature-item ul,
.contact-directions .feature-item dl {
    margin-top: 8px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-2);
}

/* ==========================================================================
   Über uns: philosophy
   ========================================================================== */
.about-philosophy .philosophy {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 96px;
    align-items: start;
}
.about-philosophy .philosophy-text .prose { max-width: 40rem; }
.about-philosophy .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 48px 0;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}
.about-philosophy .feature-grid:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/* ==========================================================================
   Kontakt: directions with the 2-click map
   ========================================================================== */
.contact-directions .map-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 48px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background-color: var(--card);
    text-align: center;
}
.contact-directions .map-consent > .icon { color: var(--ink-3); }
.contact-directions .map-consent h3 {
    margin-top: 16px;
    font-size: 28px;
    line-height: 1.15;
}
.contact-directions .map-consent p {
    margin-top: 12px;
    max-width: 34rem;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-2);
}
.contact-directions .map-consent p a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.contact-directions .map-consent p a:hover { color: var(--ink); }
.contact-directions .map-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 28px;
    margin-top: 28px;
}
.contact-directions .map-frame {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-color: var(--raised);
}
.contact-directions .map-frame iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.contact-directions .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 56px;
}
.contact-directions .feature-item ul {
    padding-left: 1.1em;
    list-style: disc;
}
.contact-directions .feature-item li + li { margin-top: 6px; }
.contact-directions .feature-item li::marker { color: var(--ink-3); }
.contact-directions .feature-item strong {
    font-weight: 500;
    color: var(--ink);
}
.contact-directions .feature-item dl {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.contact-directions .feature-item dt {
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-3);
}
.contact-directions .feature-item dd { margin-top: 2px; }

/* ==========================================================================
   Kontakt: message form
   ========================================================================== */
.contact-message .message-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 96px;
    align-items: start;
}
.contact-message .intro a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.contact-message .intro a:hover { color: var(--ink); }
.contact-message .message-notice { margin-bottom: 24px; }
.contact-message .notice-title { font-weight: 500; }
.contact-message .message-notice p + p { margin-top: 4px; }
.contact-message .form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 28px;
}
.contact-message .form-actions .form-hint { margin-top: 0; }

/* Honeypot: off screen for people, bots fill it in */
.contact-message .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Legal pages: Impressum, Datenschutz, AGB
   ========================================================================== */
/* Cormorant's default old-style "1" reads like "ı" in "§ 1" */
.legal-body .prose h2,
.legal-body .prose h3 { font-variant-numeric: lining-nums proportional-nums; }

.legal-body .prose .legal-leads {
    display: grid;
    gap: 12px;
    max-width: 32rem;
    padding-left: 0;
    list-style: none;
    font-size: 16px;
    line-height: 26px;
}
.legal-body .prose .legal-leads li + li { margin-top: 0; }
.legal-body .legal-leads .lead { flex-wrap: wrap; }
.legal-body .legal-leads .lbl { color: var(--ink-2); }
.legal-body .legal-leads .val {
    margin-left: auto;
    color: var(--ink);
}

.legal-body .legal-panel {
    padding: 28px 32px;
    border-radius: var(--radius);
    background-color: var(--raised);
}
.legal-body .prose > .legal-panel {
    margin-top: 28px;
    margin-bottom: 28px;
}
.legal-body .legal-panel > * + * { margin-top: 12px; }
.legal-body .prose .legal-panel h3 {
    margin-top: 0;
    font-size: 24px;
}

.legal-body .prose > .legal-actions,
.legal-body .prose > .legal-stand {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

/* ==========================================================================
   CMS pages (seite.php)
   ========================================================================== */
/* Admin preview of a draft: sticks under the sticky header (header height plus its 1 px border) */
.draft-bar {
    position: sticky;
    top: calc(var(--header-h) + 1px);
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--line-strong);
    background-color: var(--raised);
    color: var(--ink);
    font-size: 14px;
    line-height: 20px;
}
.draft-bar .wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.draft-bar .icon { color: var(--accent-ink); }
.draft-bar a {
    color: var(--accent-ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.draft-bar a:hover { color: var(--ink); }

.cms-body .cms-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    max-width: 44rem;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
@media (hover: hover) and (pointer: fine) {
    .cms-body .cms-foot .link:hover .icon { transform: translateX(-2px); }
}

/* ==========================================================================
   404: the main pages as a list of links
   ========================================================================== */
.error-help .link-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    border-top: 1px solid var(--line);
}
.error-help .link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: var(--ink);
}
.error-help .link-list .icon {
    color: var(--ink-3);
    transition: transform 160ms var(--ease), color 160ms var(--ease);
}
.error-help .link-list a:hover { color: var(--accent-ink); }
.error-help .link-list a:hover .icon { color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
    .error-help .link-list a:hover .icon { transform: translateX(2px); }
}
.error-help .help-note {
    margin-top: 40px;
    max-width: 40rem;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-2);
}
.error-help .help-note a {
    color: var(--ink);
    font-weight: 500;
}
.error-help .help-note a:hover { color: var(--accent-ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .about-philosophy .philosophy,
    .contact-message .message-grid { gap: 56px; }
}

@media (max-width: 900px) {
    .about-philosophy .philosophy,
    .contact-message .message-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .contact-directions .feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        margin-top: 48px;
    }
    .contact-directions .map-consent { min-height: 320px; }
    .contact-directions .map-frame iframe { height: 320px; }
    .error-help .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .about-philosophy .feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .contact-directions .map-consent { padding: 40px 20px; }
    .contact-directions .map-actions {
        flex-direction: column;
        width: 100%;
    }
    .contact-directions .map-actions .btn { width: 100%; }
    .contact-message .form-actions .btn { width: 100%; }
    .legal-body .legal-panel { padding: 24px 20px; }
    .error-help .link-list { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Short viewports (landscape phones, 400 % zoom). The header and the action bar
   stop being fixed (layout.css); here the category bar stops being sticky, and
   offsets that made room for the header or the action bar go.
   ========================================================================== */
@media (max-height: 480px) {
    .menu-page .menu-sticky-wrapper { position: static; }
    .menu-page .menu-category-section,
    .menu-page .category-toggle { scroll-margin-top: 0; }
    .lunch-page .lunch-faq-aside { top: 48px; }
    .draft-bar { top: 0; }
}
@media (max-width: 560px) and (max-height: 480px) {
    .menu-back-to-top { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    html:has(.menu-back-to-top) { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   Gutschein: preview card, steps, amount tiles, PayPal step (gutschein.php)
   ========================================================================== */
.voucher-shop .voucher-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
}
.voucher-shop .voucher-side {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.voucher-card {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1.6 / 1;
    padding: 28px 30px 24px;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--night);
    color: var(--cream);
    box-shadow: var(--shadow-elevated);
}
.voucher-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(184, 154, 98, 0.45);
    border-radius: var(--radius-sm);
    pointer-events: none;
}
.voucher-card-brand b {
    display: block;
    font: 600 18px/1 var(--serif);
    letter-spacing: 0.14em;
}
.voucher-card-brand small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 16px;
    color: var(--cream-2);
}
.voucher-card-amount {
    position: absolute;
    top: 24px;
    right: 30px;
    font: 500 40px/1 var(--serif);
    font-variant-numeric: lining-nums;
    color: var(--gold);
}
.voucher-card-title {
    margin-top: auto;
    font: 400 40px/1 var(--serif);
}
.voucher-card-for {
    margin-top: 10px;
    font-size: 14px;
    color: var(--cream-2);
}
.voucher-card-for b {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--cream);
}
.voucher-card-msg {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font: italic 400 17px/1.35 var(--serif);
    color: var(--cream-2);
    white-space: pre-line;
}
.voucher-card-msg:empty { display: none; }

.voucher-steps {
    margin-top: 40px;
    padding: 0;
    list-style: none;
    counter-reset: vstep;
}
.voucher-steps li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    counter-increment: vstep;
    font-size: 15px;
    line-height: 22px;
    color: var(--ink-2);
}
.voucher-steps li::before {
    content: counter(vstep);
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--raised);
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 600;
}
.voucher-steps strong { font-weight: 500; color: var(--ink); }
.voucher-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--ink-2);
}
.voucher-facts li { display: inline-flex; align-items: center; gap: 8px; }
.voucher-facts .icon { color: var(--accent-ink); }

.voucher-main .h2 { margin-bottom: 32px; }
.voucher-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
.voucher-form fieldset:disabled { opacity: 0.55; }
.voucher-block + .voucher-block {
    margin-top: 12px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.voucher-block h3,
.voucher-pay h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font: 500 24px/1.2 var(--serif);
}
.voucher-block h3 span,
.voucher-pay h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #fff;
    font: 600 13px/1 var(--sans);
}

.voucher-amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.voucher-amounts label { position: relative; cursor: pointer; }
.voucher-amounts input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.voucher-amounts .tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border: 1px solid rgba(27, 26, 24, 0.28);
    border-radius: var(--radius-sm);
    background-color: var(--card);
    font: 500 24px/1 var(--serif);
    font-variant-numeric: lining-nums;
    color: var(--ink);
    transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.voucher-amounts .tile.small { font: 500 15px/1.2 var(--sans); }
.voucher-amounts label:hover .tile { border-color: var(--accent); }
.voucher-amounts label:active .tile { transform: scale(0.97); }
.voucher-amounts input:checked + .tile {
    border-color: var(--accent);
    background-color: var(--accent);
    color: #fff;
}
.voucher-amounts input:focus-visible + .tile {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.voucher-custom { max-width: 240px; }

.voucher-notice { margin-bottom: 24px; }
/* The error box and the payment step (below) are shown by removing the hidden attribute */
.voucher-notice.alert-error,
.voucher-pay { transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
@starting-style {
    .voucher-notice.alert-error,
    .voucher-pay {
        opacity: 0;
        transform: translateY(8px);
    }
}
.voucher-notice .notice-title { font-weight: 500; }
.voucher-notice p + p { margin-top: 6px; }
.voucher-notice a { text-decoration: underline; text-underline-offset: 3px; }
.voucher-again { margin-top: 8px; }

.voucher-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 28px;
}
.voucher-form .form-actions .form-hint { margin-top: 0; }
.voucher-form .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.voucher-pay {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--paper);
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.voucher-pay-sum {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 26px;
    color: var(--ink-2);
}
.voucher-pay-sum strong { font-weight: 500; color: var(--ink); }
.voucher-paypal { max-width: 420px; }
.voucher-edit {
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* One column: card first, then the form, the steps last, so the form is not pushed down */
@media (max-width: 1000px) {
    .voucher-shop .voucher-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .voucher-shop .voucher-side { display: contents; }
    .voucher-shop .voucher-card { order: 0; width: 100%; max-width: 520px; }
    .voucher-shop .voucher-main { order: 1; }
    .voucher-shop .voucher-steps { order: 2; margin-top: 0; }
    .voucher-shop .voucher-facts { order: 3; margin-top: -24px; }
}
@media (max-width: 560px) {
    .voucher-card { aspect-ratio: auto; min-height: 200px; padding: 24px 22px 20px; }
    .voucher-card-amount { top: 22px; right: 22px; font-size: 32px; }
    .voucher-card-title { margin-top: 40px; font-size: 34px; }
    .voucher-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .voucher-pay { padding: 20px 16px; }
}

/* ==========================================================================
   Weihnachtsfeier (weihnachtsfeier.php)
   ========================================================================== */
.xmas-courses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.xmas-course h3 {
    font-size: 24px;
    line-height: 1.2;
}
.xmas-course ul {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}
.xmas-course li {
    font-size: 16px;
    line-height: 24px;
    color: var(--ink);
}
.xmas-note {
    max-width: 40rem;
    margin-top: 40px;
    font-size: 16px;
    line-height: 26px;
}
.xmas-note a,
.xmas-steps a { text-decoration: underline; text-underline-offset: 3px; }
.xmas-steps-wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
}
.xmas-lead {
    margin-top: 16px;
    font-size: 18px;
    line-height: 28px;
}
.xmas-steps {
    display: grid;
    gap: 20px;
    padding-left: 1.4em;
    list-style: decimal;
    font-size: 16px;
    line-height: 26px;
}
.xmas-steps li::marker { font-weight: 600; }
.xmas-cta .wrap {
    display: grid;
    gap: 16px;
    justify-items: start;
}
.xmas-cta h2 { font-size: 48px; }
.xmas-cta p {
    font-size: 18px;
    line-height: 28px;
    color: var(--cream);
}
.xmas-cta .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.xmas-hero-photo,
.xmas-day-photo {
    margin: 0;
    overflow: hidden;
    background-color: var(--night-raised);
}
.xmas-hero-photo { aspect-ratio: 4 / 3; }
.xmas-day-photo { aspect-ratio: 3 / 2; margin-top: 32px; }
.xmas-hero-photo picture,
.xmas-day-photo picture { display: block; height: 100%; }
.xmas-hero-photo img,
.xmas-day-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 900px) {
    .xmas-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xmas-steps-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
    .xmas-courses { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .xmas-cta h2 { font-size: 31px; }
    .xmas-cta .actions { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Speisekarte 11/2026 (owner's wish): categories as rounded tabs, every dish
   in its own rounded card, the photo as a rounded square on the left
   ========================================================================== */
.menu-page .menu-sticky-wrapper { border-bottom: 0; }
.menu-page .menu-pills-scroll { gap: 8px; }
.menu-page .category-pill {
    padding: 0 16px;
    border-radius: 999px;
    background-color: var(--card);
}
.menu-page .category-pill.active {
    background-color: var(--ink);
    color: var(--card);
}
.menu-page .category-pill.active .pill-count { color: var(--cream-2); }
.menu-page .quick-filter-chip { border-radius: 999px; }

/* no paper sheet around the menu any more: the cards carry the surface */
.menu-page .menu-sheet {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}
.menu-page .menu-sheet::before { display: none; }
.menu-page .category-header-wrap {
    justify-content: flex-start;
    margin-bottom: 20px;
}
.menu-page .category-header-wrap::before,
.menu-page .category-header-wrap::after { display: none; }
.menu-page .category-title { text-align: left; }
.menu-page .category-desc {
    margin: -8px 0 20px;
    text-align: left;
}
.menu-page .menu-category-section + .menu-category-section { margin-top: 56px; }

.menu-page .dishes {
    gap: 16px;
    align-items: stretch;
}
.menu-page .dish {
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background-color: var(--card);
}
.menu-page .dish.has-photo {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
}
.menu-page .dish.has-photo > * { grid-column: 2; }
.menu-page .dish.has-photo .dish-photo {
    grid-column: 1;
    grid-row: 1 / span 3;
}
.menu-page .dish-photo {
    width: 112px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    background-color: var(--raised);
}
.menu-page .dish-name { font-size: 22px; }
.menu-page .dish-desc { max-width: none; }

@media (max-width: 900px) {
    .menu-page .dishes { gap: 12px; }
    .menu-page .menu-category-section + .menu-category-section { margin-top: 32px; }
}
@media (max-width: 560px) {
    .menu-page .dish { padding: 14px; }
    .menu-page .dish.has-photo {
        grid-template-columns: 84px minmax(0, 1fr);
        column-gap: 14px;
    }
    .menu-page .dish-photo { width: 84px; }
    .menu-page .dish-name { font-size: 20px; }
}
