/********** Pizzomunno – Komponenten (seitenübergreifend wiederverwendbar) **********/

/* =========================================================
   Feature-Karten (Startseite: Steinofen, Eis, Gastfreundschaft)
   ========================================================= */

.feature {
    height: 100%;
    padding: 2.25rem 2rem;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--accent);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    color: var(--primary);
    background: var(--cream);
    border-radius: 50%;
    font-size: 1.5rem;
}

.feature h3 {
    margin-bottom: 0.75rem;
}

.feature p {
    margin-bottom: 0;
}

/* =========================================================
   Bild-Rahmen mit versetzter Goldlinie
   ========================================================= */

.framed-image {
    position: relative;
    z-index: 0;
    margin: 0 1.25rem 1.25rem 0;
}

.framed-image::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border: 1px solid var(--accent);
}

.framed-image img {
    display: block;
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-medium);
}

/* =========================================================
   Kategorie-Kacheln (Startseite → Speisekarte)
   ========================================================= */

.category-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 220px;
    padding: 1.75rem;
    overflow: hidden;
    color: var(--white);
    background: var(--forest);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile:hover {
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.category-tile i {
    margin-bottom: auto;
    color: var(--accent);
    font-size: 1.75rem;
}

.category-tile h3 {
    margin-bottom: 0.25rem;
    color: var(--white);
}

.category-tile span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

/* =========================================================
   Gericht (Speisekarte & Startseiten-Auswahl)
   Name ········ Preis, darunter die Beschreibung.
   ========================================================= */

.dish {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.dish__head {
    display: flex;
    flex-wrap: wrap; /* langer Name: Preis rutscht in die nächste Zeile statt über den Rand */
    align-items: baseline;
    column-gap: 0.75rem;
}

.dish__name {
    min-width: 0;
    margin: 0;
    color: var(--forest);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.dish__leader {
    flex: 1;
    min-width: 1rem;
    border-bottom: 1px dotted rgba(20, 34, 28, 0.35);
    transform: translateY(-0.3rem);
}

.dish__price {
    margin-left: auto;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
}

.dish__desc {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.dish__badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.6rem;
    color: var(--forest);
    background: var(--accent);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Hervorgehobenes Gericht (Startseite) */
.dish-card {
    height: 100%;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.dish-card__price {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--accent-dark);
    font-size: 1.35rem;
    font-weight: 800;
}

.dish-card h3 {
    margin-bottom: 0.5rem;
}

.dish-card p {
    margin-bottom: 0;
}

/* =========================================================
   Kennzahlen (Legende)
   ========================================================= */

.stat {
    padding: 0.5rem 1.5rem;
    text-align: center;
}

.stat__number {
    display: block;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1;
}

.stat__label {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* =========================================================
   Zitat / Erzähltext
   ========================================================= */

.story p {
    color: var(--text-main);
    font-size: 1.08rem;
}

.story p:first-of-type::first-letter {
    float: left;
    margin: 0.15rem 0.6rem 0 0;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    line-height: 0.8;
}

/* =========================================================
   Öffnungszeiten-Tabelle & Status-Badge
   ========================================================= */

.hours {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.hours th,
.hours td {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}

.hours th {
    color: var(--forest);
    font-weight: 700;
    padding-right: 1.5rem;
}

.hours td {
    color: var(--text-muted);
    text-align: right;
}

.hours small {
    display: block;
    color: var(--text-muted);
    opacity: 0.85;
}

.open-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.open-status::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    border-radius: 50%;
}

.open-status[data-state="open"]::before {
    background: #2e9e5b;
    box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.2);
}

.open-status[data-state="closed"]::before {
    background: #b4452f;
}

/* =========================================================
   Call-to-Action-Band
   ========================================================= */

.cta-band {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    color: var(--white);
    text-align: center;
    background:
        linear-gradient(rgba(8, 40, 30, 0.9), rgba(8, 40, 30, 0.9)),
        url(../img/Galeriebild7.jpeg) center / cover no-repeat;
}

.cta-band h2 {
    color: var(--white);
}

.cta-band p {
    max-width: 560px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
}

.cta-band .btn-group-cta {
    justify-content: center;
}

/* =========================================================
   Info-Karten (Kontakt, Jobs)
   ========================================================= */

.info-card {
    height: 100%;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border-soft);
}

.info-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--primary);
    background: var(--cream);
    border-radius: 50%;
}

.info-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.info-card p {
    margin-bottom: 0;
}

/* Aufzählung mit Haken */
.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 2rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 0.55rem;
    color: var(--primary);
    font-family: "Font Awesome 5 Free";
    font-size: 0.85rem;
    font-weight: 900;
}

/* Nummerierte Schritte (Jobs) */
.steps {
    counter-reset: step;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    position: relative;
    padding: 0 0 2rem 4rem;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--forest);
    background: var(--accent);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.375rem;
    top: 3.25rem;
    bottom: 0.5rem;
    width: 1px;
    background: var(--border-gold);
}

.steps h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.steps p {
    margin-bottom: 0;
}

/* =========================================================
   Formular (Kontakt) – nur Optik, Verhalten steckt in js/main.js
   ========================================================= */

.form-panel {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--accent);
    box-shadow: var(--shadow-soft);
}

.form-control,
.form-select {
    min-height: 56px;
    color: var(--text-main);
    background-color: var(--cream-soft);
    border: 1px solid rgba(20, 34, 28, 0.2);
    border-radius: var(--radius-sm);
    box-shadow: none;
}

textarea.form-control {
    min-height: 150px;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem var(--accent-soft);
}

.form-floating > label {
    color: var(--text-muted);
}

input[type="checkbox"] {
    accent-color: var(--primary);
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
}

.privacy-checkbox input {
    flex: 0 0 auto;
    margin-top: 0.35rem;
}

.form-panel .btn-primary {
    min-height: 56px;
}

/* =========================================================
   Galerie (Raster + Lightbox, siehe js/site.js)
   ========================================================= */

.gallery-grid {
    columns: 3 280px;
    column-gap: 1rem;
}

.gallery-grid__item {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    overflow: hidden;
    break-inside: avoid;
    background: var(--forest);
    border: 0;
    cursor: zoom-in;
}

.gallery-grid__item img {
    display: block;
    width: 100%;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.gallery-grid__item:hover img {
    opacity: 0.88;
    transform: scale(1.04);
}

.gallery-teaser {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

.gallery-teaser a {
    overflow: hidden;
    background: var(--forest);
}

.gallery-teaser a:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-teaser img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-teaser a:hover img {
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .gallery-teaser {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(5, 25, 19, 0.94);
}

.lightbox.is-open {
    display: flex;
}

.lightbox {
    touch-action: none;
    overscroll-behavior: contain;
}

.lightbox img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    box-shadow: var(--shadow-strong);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.lightbox__count {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    padding: 0.25rem 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    font-size: 0.85rem;
    transform: translateX(-50%);
    pointer-events: none;
}

.lightbox__btn {
    position: absolute;
    z-index: 3; /* immer vor dem Bild */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lightbox__btn:hover {
    background: var(--accent);
    color: var(--forest);
}

.lightbox__close {
    top: 1.25rem;
    right: 1.25rem;
}

.lightbox__prev {
    left: 1.25rem;
}

.lightbox__next {
    right: 1.25rem;
}

/* =========================================================
   Speisekarte
   ========================================================= */

.menu-nav {
    position: sticky;
    top: calc(var(--header-offset, var(--header-height)) - 2px); /* gemessene Header-Höhe, 2px Überlappung */
    z-index: 900;
    background: rgba(251, 247, 238, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

/* Deckt eine mögliche Lücke zwischen Header und Leiste ab (z. B. durch Rundung auf iOS) */
.menu-nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 8px;
    background: inherit;
}

.menu-nav__list {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0.35rem 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.menu-nav__list::-webkit-scrollbar {
    display: none;
}

.menu-nav__list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.menu-nav__list a:hover,
.menu-nav__list a.is-active {
    color: var(--forest);
    border-bottom-color: var(--accent);
}

.menu-nav__list i {
    color: var(--accent-dark);
}

@media (min-width: 992px) {
    .menu-nav__list {
        justify-content: center;
    }
}

.menu-section {
    scroll-margin-top: calc(var(--header-height) + 70px);
}

.menu-section + .menu-section {
    margin-top: var(--section-space);
}

.menu-section__head {
    margin-bottom: 2rem;
    text-align: center;
}

.menu-section__head i {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--accent-dark);
    font-size: 1.5rem;
}

.menu-section__head h2 {
    margin-bottom: 0;
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 991.98px) {
    .menu-list {
        grid-template-columns: 1fr;
    }
}

.menu-note {
    margin: 3rem auto 0;
    max-width: 560px;
    text-align: center;
    font-size: 0.95rem;
}

/* =========================================================
   Teller-Bild (freigestellte Pizza auf Creme-Kreis)
   ========================================================= */

.plate {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 5%;
    background: radial-gradient(circle, var(--cream) 0 99%, transparent 100%);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--border-gold);
    overflow: hidden; /* die Ecken des drehenden Quadrats dürfen nicht über den Rand ragen (sonst seitlicher Spielraum auf iOS) */
    contain: paint;
}

.plate img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    filter: drop-shadow(0 18px 28px rgba(12, 58, 44, 0.28));
}

@media (max-width: 575.98px) {
    .category-tile {
        min-height: 150px;
        padding: 1.25rem;
    }

    .category-tile i {
        font-size: 1.4rem;
    }

    .category-tile h3 {
        font-size: 1.1rem;
    }

    .feature,
    .dish-card,
    .info-card {
        padding: 1.5rem;
    }

    .dish__head {
        gap: 0.5rem;
    }

    .dish__name {
        font-size: 1.1rem;
    }

    .framed-image {
        margin: 0 1rem 1rem 0;
    }

    .framed-image::before {
        inset: 1rem -1rem -1rem 1rem;
    }
}

/* Pizza dreht sich langsam an ihrem Platz */
.plate img {
    animation: plate-rotate 45s linear infinite;
}

@keyframes plate-rotate {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .plate img {
        animation: none;
    }
}

/* Datenschutz-Checkbox: der Text enthält ein geschütztes Leerzeichen (nbsp) und
   darf auf sehr schmalen Displays umbrechen, statt die Seite zu verbreitern. */
.privacy-checkbox span {
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: break-word;
}

@media (max-width: 575.98px) {
    .form-panel {
        padding: 1.25rem;
    }
}

/* =========================================================
   Rechtstexte (Datenschutz)
   ========================================================= */

.legal {
    max-width: 820px;
    margin: 0 auto;
}

.legal__block + .legal__block {
    margin-top: 2.5rem;
}

.legal h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-gold);
    font-size: clamp(1.3rem, 3vw, 1.65rem);
}

.legal p,
.legal li {
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.legal ul {
    padding-left: 1.25rem;
}

.legal li + li {
    margin-top: 0.35rem;
}

.legal a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Inhaltsverzeichnis & Übersichtstabelle der Datenschutzerklärung */
.legal__toc {
    margin-bottom: 3rem;
    padding: 1.5rem 1.75rem;
    background: var(--cream);
    border-left: 3px solid var(--accent);
}

.legal__toc h2 {
    margin-bottom: 0.75rem;
    padding: 0;
    border: 0;
    font-size: 1.15rem;
}

.legal__toc ol {
    margin: 0;
    padding-left: 1.25rem;
    columns: 2 260px;
    column-gap: 2rem;
}

.legal__toc li {
    break-inside: avoid;
    padding: 0.15rem 0;
}

.legal__toc a {
    text-decoration: none;
}

.legal__toc a:hover {
    text-decoration: underline;
}

.legal-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--border-soft);
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
}

.legal-table thead th {
    color: var(--white);
    background: var(--forest);
    font-weight: 700;
}

.legal-table tbody th {
    background: var(--cream-soft);
    color: var(--forest);
}

/* Auf Handys als gestapelte Karten, damit nichts seitlich scrollt */
@media (max-width: 767.98px) {
    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
    }

    .legal-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .legal-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-soft);
    }

    .legal-table th,
    .legal-table td {
        border: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .legal-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--accent-dark);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }
}

/* Jobs: etwas größerer Einleitungssatz */
.lead-text {
    color: var(--text-main);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Speisekarte: Kategorie-Navigation mit wischbaren Pfeilen (Mobil/Tablet) */
.menu-nav__wrap {
    position: relative;
}

.menu-nav__arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: none;
    align-items: center;
    width: 2.75rem;
    padding: 0;
    color: var(--accent-dark);
    border: 0;
    cursor: pointer;
}

.menu-nav__arrow--prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 0.5rem;
    background: linear-gradient(90deg, var(--cream-soft) 35%, rgba(251, 247, 238, 0));
}

.menu-nav__arrow--next {
    right: 0;
    justify-content: flex-end;
    padding-right: 0.5rem;
    background: linear-gradient(270deg, var(--cream-soft) 35%, rgba(251, 247, 238, 0));
}

.menu-nav__arrow i {
    animation: menu-nav-nudge-right 1.4s ease-in-out infinite;
}

.menu-nav__arrow--prev i {
    animation-name: menu-nav-nudge-left;
}

/* Pfeil nur, wenn in diese Richtung noch etwas versteckt ist (data-Attribute setzt js/site.js) */
.menu-nav__wrap[data-more-left="true"] .menu-nav__arrow--prev,
.menu-nav__wrap[data-more-right="true"] .menu-nav__arrow--next {
    display: flex;
}

@keyframes menu-nav-nudge-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes menu-nav-nudge-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

@media (prefers-reduced-motion: reduce) {
    .menu-nav__arrow i {
        animation: none;
    }
}

/* =========================================================
   Gericht mit Foto-Platzhalter (Speisekarte)
   Eigenes Foto: in .dish__photo das auskommentierte <img> einkommentieren,
   Platzhalter-Icon/-Text entfernen.
   ========================================================= */

.dish--photo {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.1rem;
    align-items: center;
}

.dish__photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    aspect-ratio: 1;
    overflow: hidden;
    color: var(--accent-dark);
    background: var(--cream);
    border: 1px dashed var(--border-gold);
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.dish__photo i {
    font-size: 1.25rem;
    opacity: 0.7;
}

.dish__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish__body {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .dish--photo {
        grid-template-columns: 76px 1fr;
        gap: 0.85rem;
    }
}

/* Status-Punkt pulsiert: grün = geöffnet, rot = geschlossen (Zustand setzt js/site.js) */
.open-status::before {
    flex: 0 0 auto;
}

.open-status[data-state="open"]::before {
    animation: status-pulse-open 2s ease-out infinite;
}

.open-status[data-state="closed"]::before {
    animation: status-pulse-closed 2.6s ease-out infinite;
}

@keyframes status-pulse-open {
    0% { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(46, 158, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0); }
}

@keyframes status-pulse-closed {
    0% { box-shadow: 0 0 0 0 rgba(180, 69, 47, 0.5); }
    70% { box-shadow: 0 0 0 9px rgba(180, 69, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(180, 69, 47, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .open-status[data-state]::before {
        animation: none;
    }
}

/* Kleiner Button (z. B. „E-Mail schreiben“) */
.btn-sm {
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
}

/* E-Mail-Zeile unter den Bewerbungs-Buttons (Jobs) */
.job-mail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    margin: 1.5rem 0 0;
}

.job-mail > i {
    color: var(--accent-dark);
}

.job-mail span {
    color: var(--text-main);
    overflow-wrap: anywhere;
}

/* =========================================================
   Kompakte Mobilansicht: Karten, Speisekarte, Listen
   ========================================================= */

@media (max-width: 575.98px) {
    .feature,
    .dish-card,
    .info-card {
        padding: 1.35rem 1.25rem;
    }

    .feature__icon {
        margin-bottom: 0.75rem;
    }

    .dish {
        padding: 0.8rem 0;
    }

    .dish--photo {
        grid-template-columns: 64px 1fr;
        gap: 0.75rem;
    }

    .dish__photo i {
        font-size: 1rem;
    }

    .dish__photo span {
        display: none;
    }

    .dish__name {
        font-size: 1.05rem;
    }

    .dish__desc {
        font-size: 0.9rem;
    }

    .menu-section + .menu-section {
        margin-top: 2.25rem;
    }

    .menu-section__head {
        margin-bottom: 0.75rem;
    }

    .menu-section__head i {
        margin-bottom: 0.35rem;
    }

    .stat__number {
        font-size: 2.6rem;
    }

    .stat {
        padding: 0.25rem 0.75rem;
    }

    .cta-band {
        padding: 2.5rem 0;
    }

    .cta-band p {
        margin-bottom: 1.25rem;
        font-size: 1rem;
    }

    .steps li {
        padding: 0 0 1.25rem 3.4rem;
    }

    .gallery-grid {
        column-gap: 0.6rem;
    }

    .gallery-grid__item {
        margin-bottom: 0.6rem;
    }

    .gallery-teaser {
        grid-auto-rows: 130px;
        gap: 0.6rem;
    }

    .plate,
    .framed-image {
        max-width: 300px;
    }

    .category-tile {
        min-height: 120px;
        padding: 1rem;
    }

    .form-panel {
        padding: 1.1rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    .legal__block + .legal__block {
        margin-top: 1.75rem;
    }

    .legal__toc {
        margin-bottom: 2rem;
        padding: 1rem 1.15rem;
    }

    .job-mail {
        margin-top: 1.1rem;
    }
}

/* Button mit E-Mail-Adresse: Adresse in normaler Schreibweise, darf bei Bedarf umbrechen */
.btn--email {
    text-transform: none;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

/* =========================================================
   Kontaktseite: Reihenfolge Handy = Öffnungszeiten, Formular, Kontaktdaten;
   Desktop = Kontaktdaten + Öffnungszeiten links, Formular rechts
   ========================================================= */

.contact-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "hours"
        "form"
        "cards";
}

.contact-layout__hours {
    grid-area: hours;
}

.contact-layout__form {
    grid-area: form;
}

.contact-layout__cards {
    grid-area: cards;
}

@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-rows: auto 1fr;
        column-gap: 3rem;
        grid-template-areas:
            "cards form"
            "hours form";
    }
}

/* Öffnungszeiten-Tabelle auf dem Handy: Tag über den Zeiten statt zwei enge Spalten */
@media (max-width: 575.98px) {
    .hours,
    .hours tbody,
    .hours tr,
    .hours th,
    .hours td {
        display: block;
        width: 100%;
    }

    .hours tr {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .hours th,
    .hours td {
        padding: 0;
        text-align: left;
        border: 0;
    }

    .hours td {
        margin-top: 0.15rem;
    }
}
