/* Shared design vocabulary; each independently deployable app has its own copy. */
[hidden] { display: none !important; }
/* Sichtbarer Tastaturfokus auch auf dynamischen Rückmeldungen. */
:focus-visible { outline: 3px solid #245b87; outline-offset: 4px; }
.error-panel { width: min(900px, calc(100% - 32px)); margin: 24px auto; padding: 20px; overflow-wrap: anywhere; }
.error-panel .btn { margin: 8px 8px 8px 0; }
#meldung:not(:empty), .operation-state { width: min(900px, calc(100% - 32px)); margin: 16px auto; padding: 16px; border: 2px solid var(--accent-color); border-radius: 8px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
body { line-height: 1.55; }
.site-header { min-height: 70px; padding-block: 12px; }
.header-logo { width: min(420px, 85vw); height: auto; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 24px 16px; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.welcome-note h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.skip-link { position: fixed; top: -120px; left: 12px; padding: 12px; z-index: 100; background: white; }
.skip-link:focus { top: 12px; }
.category-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 12px; }
/* Die Seitennavigation bleibt bewusst im Footer und funktioniert ohne JavaScript. */
.footer-bottom { flex-wrap: wrap; }
.footer-bottom .footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
[aria-current="page"] { font-weight: bold; text-decoration-thickness: 3px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary, button.btn-primary { background: var(--accent-color); color: white; }
[data-unsaved] { flex-basis: 100%; color: #715200; font-weight: bold; }
.cart-editor { width: min(900px, calc(100% - 32px)); margin: 16px auto; padding: 16px; border: 2px solid var(--accent-color); border-radius: 12px; background: var(--page-bg); }
.cart-editor form { display: flex; flex-wrap: wrap; gap: 12px; }
[data-saved-totals] { font-weight: bold; color: #715200; }
.menu-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 1100px; }
.menu-grid .speise-card { border: 1px solid var(--accent-color); border-radius: 12px; }
.menu-tools, .legal-content, .table-list { width: min(900px, calc(100% - 32px)); margin: 24px auto; }
.table-list input { width: 100%; min-height: 44px; font: inherit; padding: 10px; }
.category-nav a { padding: 8px 12px; border: 1px solid var(--accent-color); border-radius: 20px; }
[data-menu-group] { scroll-margin-top: 80px; }
/* Zentriert die Kategorieüberschriften, ohne die Ausrichtung der Gerichtkarten zu ändern. */
[data-menu-group] > .hero > h2 { text-align: center; }
.table-list ul { padding: 0; list-style: none; }
.table-list li { padding: 16px; margin-block: 12px; border: 1px solid var(--accent-color); border-radius: 8px; }
.table-list li a { margin: 8px; }
.field-error { color: #8b2020; font-weight: bold; }
[aria-invalid="true"] { border: 2px solid #8b2020 !important; }
.legal-content { overflow-wrap: anywhere; text-align: left; }
.legal-content address { font-style: normal; }
.input-card details, .input-card section { width: 100%; }
.site-header a { display: block; }
summary { cursor: pointer; padding: 12px; min-height: 44px; }
@media print {
    .site-header, nav, .site-footer, #laden, #meldung, .btn, .preview-notice, .skip-link, noscript { display: none !important; }
    body { background: white; color: black; }
    .input-grid { display: block; margin: 0; }
    .alert { color: black; background: white; border: 1px solid black; }
    h1, h2 { font-size: 18pt; }
}