/* Additions scoped to the HTMX pages; the original restaurant styles remain. */
.gericht-details { width: min(900px, calc(100% - 32px)); margin: 24px auto; overflow-wrap: anywhere; }
.speise-preis { font-size: 1.2rem; font-weight: bold; }
.speise-card { overflow-wrap: anywhere; }
.speise-card a:focus-visible, .gericht-details a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
#meldung, #laden { width: min(100% - 32px, 900px); margin: 8px auto; }
.alert { padding: 16px; border: 1px solid currentColor; border-radius: 6px; margin: 12px 0; }
.alert-success { color: #215b32; background: #edf8ee; }
.alert-error { color: #8b2020; background: #fff0f0; }
.alert-warning { color: #715200; background: #fff8da; }
.warenkorb-aktionen { flex-wrap: wrap; align-items: center; }
.warenkorb-button { background: var(--page-bg); }
button:disabled { opacity: .5; cursor: not-allowed; }
.preview-notice { width: min(900px, calc(100% - 64px)); margin: 16px auto; }
.warenkorb-card { min-width: 0; overflow-x: auto; }
:is(a, button, input, select):focus-visible { outline: 3px solid #397b45; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.input-card label { margin-bottom: 8px; }
.menu-grid .speise-card { border: 1px solid var(--accent-color); border-radius: 12px; }
.menu-grid .speise-preis { margin: 16px 0; }
/* Aktionen stehen im normalen Seitenfluss vor und nach der Speisekarte, ohne Inhalte zu überdecken. */
.menu-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; margin: 16px 0; padding: 0 12px; }
.menu-actions .btn { min-width: 0; max-width: 100%; background: var(--page-bg); box-shadow: 0 2px 8px #0002; pointer-events: auto; }
.menu-reload { justify-self: start; }
.menu-actions .warenkorb-button { position: static; display: block; width: fit-content; margin: 0; justify-self: end; }
@media (max-width: 600px) {
    .warenkorb-card table, .warenkorb-card tbody, .warenkorb-card tfoot { display: block; }
    .warenkorb-card thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .warenkorb-card tbody tr { display: block; border: 1px solid var(--accent-color); border-radius: 12px; margin-bottom: 16px; padding: 8px; }
    .warenkorb-card tbody td { display: block; text-align: left; overflow-wrap: anywhere; }
    .warenkorb-card tbody td::before { content: attr(data-label); display: block; font-weight: bold; margin-bottom: 6px; }
    .warenkorb-card td form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .warenkorb-card tfoot tr { display: flex; flex-wrap: wrap; justify-content: space-between; }
    .warenkorb-card input[type="checkbox"] { width: 24px; height: 24px; }
    .warenkorb-aktionen { flex-direction: column; align-items: stretch; }
    .warenkorb-aktionen .btn { width: 100%; }
}
