/* Blazor's FocusOnNavigate focuses the page h1 (tabindex=-1) after every navigation. That focus is
   for screen readers only; the generic [tabindex]:focus-visible ring below would otherwise draw a
   box around every page title on load. */
h1:focus,
h1[tabindex]:focus-visible {
    outline: none;
}

/* Enable smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════
   moinlokal.de — Theme Variables & Bootstrap Overrides
   ═══════════════════════════════════════════════════════════ */

/* ── Color Palette ────────────────────────────────────────── */

:root {
  /* Primary — teal from logo */
  --ml-primary:        #0097a7;
  --ml-primary-hover:  #00838f;
  --ml-primary-light:  #e0f4f4;
  --ml-primary-subtle: #f0fafa;

  /* Action — the teal for everything that carries text (buttons with white text, links,
     badges, active pills). The logo teal above is only 3.5:1 against white; this tone reaches
     at least 4.5:1 (WCAG AA) on white and on the tinted backgrounds above. Keep the logo
     teal for surfaces, gradients, borders and icons. */
  --ml-action:         #00778a;
  --ml-action-hover:   #00606d;

  /* "r, g, b" of the two tones, for rgba(var(--ml-primary-rgb), .1). A restaurant's own brand
     colour (GH-56, Features/BrandColors) overrides these together with the tones above. */
  --ml-primary-rgb:    0, 151, 167;
  --ml-action-rgb:     0, 119, 138;

  /* Secondary — navy from logo */
  --ml-navy:           #173047;
  --ml-navy-light:     #1b3a5c;

  /* Backgrounds */
  --ml-bg:             #f7fafa;
  --ml-surface:        #ffffff;
  --ml-surface-alt:    #eef4f5;

  /* Text */
  --ml-text:           #1a2e3b;
  --ml-text-muted:     #4f6575; /* was #5a7282: 4.3:1 on the tinted hero */
  --ml-text-light:     #4f6575; /* was #8da0ae (2.6:1); AA needs 4.5:1 for text */

  /* Borders & Dividers */
  --ml-border:         #d8e3e8;
  --ml-border-light:   #e8eff2;

  /* Status */
  --ml-success:        #4a8c5c;
  /* Text in the success green: --ml-success is only 3.6:1 on its tinted background and 4.0:1 on
     white. This tone reaches 4.7:1 / 5.3:1 (WCAG AA). Keep --ml-success for surfaces and icons. */
  --ml-success-text:   #2f7a47;
  --ml-success-bg:     #edf5ef;
  --ml-danger:         #b5463a;
  --ml-danger-bg:      #fbefee;

  /* Shadows — cool-tinted */
  --ml-shadow-sm:      0 1px 3px rgba(23, 48, 71, 0.06);
  --ml-shadow:         0 2px 8px rgba(23, 48, 71, 0.08);
  --ml-shadow-lg:      0 4px 20px rgba(23, 48, 71, 0.10);
  --ml-shadow-elevated:0 8px 30px rgba(23, 48, 71, 0.12);

  /* Radius */
  --ml-radius-sm:      0.375rem;
  --ml-radius:         0.625rem;
  --ml-radius-lg:      0.875rem;
  --ml-radius-xl:      1.25rem;

  /* Typography — DSGVO-konforme System Fonts (keine Google Fonts) */
  --ml-font-body:      system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ml-font-heading:   Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --ml-line-height:    1.6;
  --ml-line-height-heading: 1.2;
}


/* ── Global Defaults ──────────────────────────────────────── */

body {
  font-family: var(--ml-font-body);
  color: var(--ml-text);
  background-color: var(--ml-bg);
  line-height: var(--ml-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2 {
  font-family: var(--ml-font-heading);
  line-height: var(--ml-line-height-heading);
  color: var(--ml-text);
  font-weight: 400;
}

h3, h4, h5, h6 {
  font-family: var(--ml-font-body);
  font-weight: 600;
  line-height: var(--ml-line-height-heading);
  color: var(--ml-text);
}

a {
  color: var(--ml-action);
  text-decoration-color: rgba(var(--ml-action-rgb), 0.3);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--ml-action-hover);
  text-decoration-color: var(--ml-action-hover);
}


/* ── Bootstrap Component Overrides ────────────────────────── */

.btn {
  border-radius: var(--ml-radius);
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-primary {
  --bs-btn-bg: var(--ml-action);
  --bs-btn-border-color: var(--ml-action);
  --bs-btn-hover-bg: var(--ml-action-hover);
  --bs-btn-hover-border-color: var(--ml-action-hover);
  --bs-btn-active-bg: var(--ml-action-hover);
  --bs-btn-active-border-color: var(--ml-action-hover);
  --bs-btn-disabled-bg: var(--ml-action);
  --bs-btn-disabled-border-color: var(--ml-action);
}

.btn-outline-primary {
  --bs-btn-color: var(--ml-action);
  --bs-btn-border-color: var(--ml-action);
  --bs-btn-hover-bg: var(--ml-action);
  --bs-btn-hover-border-color: var(--ml-action);
  --bs-btn-active-bg: var(--ml-action-hover);
  --bs-btn-active-border-color: var(--ml-action-hover);
  --bs-btn-disabled-color: var(--ml-action);
  --bs-btn-disabled-border-color: var(--ml-action);
}

/* Keyboard focus: one solid ring in the action colour. Bootstrap's default is a half-transparent
   blue glow (about 2:1 on the page background, below the 3:1 WCAG 1.4.11 asks of UI components)
   that ignores a restaurant's own brand colour; --ml-action is at least 4.5:1 on white. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: 3px solid var(--ml-action);
  outline-offset: 2px;
  box-shadow: none;
}

.form-control:focus-visible,
.form-select:focus-visible {
  border-color: var(--ml-action);
}

/* The admin sidebar is navy: the action colour would nearly vanish on it. */
.admin-sidebar :focus-visible {
  outline-color: #fff;
}

/* Bootstrap's grey (#6c757d) is 4.47:1 on the page background — just under AA. */
.btn-outline-secondary {
  --bs-btn-color: #5a6670;
  --bs-btn-border-color: #5a6670;
  --bs-btn-hover-bg: #5a6670;
  --bs-btn-hover-border-color: #5a6670;
}

.card {
  border-color: var(--ml-border);
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow-sm);
}

.card-body { padding: 1.25rem; }

.badge {
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--ml-radius-sm);
}

.table {
  --bs-table-color: var(--ml-text);
  --bs-table-border-color: var(--ml-border-light);
}

.text-muted { color: var(--ml-text-muted) !important; }

.qr-preview {
  width: 100%;
  max-width: 220px;
}

.qr-preview svg {
  width: 100%;
  height: auto;
  display: block;
}


/* ── Utility Classes ──────────────────────────────────────── */

.section-label {
  font-family: var(--ml-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ml-text-muted);
  margin-bottom: 1rem;
}

.content-container {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.divider {
  border: 0;
  border-top: 1px solid var(--ml-border);
  margin-block: 1.5rem;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ml-text);
  white-space: nowrap;
}

.price-old {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ml-text-light);
  text-decoration: line-through;
}

.badge-open {
  background-color: var(--ml-success-bg);
  color: var(--ml-success-text);
  font-size: 0.8125rem;
  padding: 0.35em 0.75em;
  border-radius: var(--ml-radius-sm);
  font-weight: 600;
}

.badge-closed {
  background-color: var(--ml-danger-bg);
  color: var(--ml-danger);
  font-size: 0.8125rem;
  padding: 0.35em 0.75em;
  border-radius: var(--ml-radius-sm);
  font-weight: 600;
}


/* ── Restaurant Profile ──────────────────────────────── */

.profile-hero {
  height: clamp(180px, 30vw, 270px);
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid rgba(23, 48, 71, 0.12);
}

.profile-hero--placeholder {
  background: linear-gradient(135deg, #173047 0%, #1b3a5c 40%, var(--ml-primary) 100%);
}

.profile-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(23, 48, 71, 0.35) 100%);
}

.profile-header-card {
  background: var(--ml-surface);
  margin-top: -2.85rem;
  position: relative;
  z-index: 10;
  border-radius: var(--ml-radius-xl);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--ml-shadow-lg);
  border: 1px solid var(--ml-border-light);
}

.profile-header-wrap {
  position: relative;
}

.profile-header-content {
  row-gap: 0.85rem !important;
}

.profile-logo {
  border-radius: var(--ml-radius-lg);
  object-fit: cover;
  border: 3px solid var(--ml-surface);
  box-shadow: var(--ml-shadow-sm);
  flex-shrink: 0;
}

.profile-logo-placeholder {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--ml-radius-lg);
  background: linear-gradient(135deg, var(--ml-primary), var(--ml-primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  font-weight: 700;
  box-shadow: var(--ml-shadow-sm);
}

.profile-name {
  font-size: 1.75rem;
  margin-bottom: 0.1rem;
  letter-spacing: 0.01em;
}

/* Demo tenant disclosure — the header has to say the restaurant is invented,
   loudly enough that a visitor skimming the page cannot mistake it for real. */
.demo-badge {
  display: inline-block;
  vertical-align: 0.25em;
  margin-left: 0.6rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #fff4d6;
  color: #7a5200;
  border: 1px solid #f0c661;
  font-family: var(--ml-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-header-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.9rem 0 0;
  padding: 0.5rem 0.85rem;
  border-radius: var(--ml-radius);
  background: #fff9ec;
  border: 1px solid #f0c661;
  color: #6b4900;
  font-size: 0.875rem;
  line-height: 1.5;
}

.demo-header-note i {
  flex-shrink: 0;
  font-size: 1rem;
}

.profile-cuisine {
  font-size: 0.9rem;
  color: var(--ml-text-muted);
}

.profile-actions {
  align-items: center;
}

.profile-action-btn {
  border-radius: 999px;
  font-weight: 600;
  min-width: 6.4rem;
}

.announcement-stack .alert {
  border-radius: var(--ml-radius);
  border-width: 1px;
  padding: 0.8rem 1rem;
}

/* Event teaser on the profile (F020). Tinted with the brand colour; all text stays --ml-text
   and the button uses --ml-action so it is readable on any restaurant brand colour. */
.event-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: rgba(var(--ml-primary-rgb), 0.08);
  border: 1px solid rgba(var(--ml-primary-rgb), 0.35);
  border-radius: var(--ml-radius);
  color: var(--ml-text);
}

.event-banner-icon {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ml-primary);
}

.event-banner-body {
  flex: 1 1 14rem;
  min-width: 0;
}

.event-banner-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-banner-title {
  font-size: 1.15rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.event-banner-meta {
  font-size: 0.95rem;
}

.event-banner-cta {
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .event-banner-cta {
    width: 100%;
  }
}

/* Profile body: actions + lunch and about in the main column, hours/address/contact in a sticky
   side column. On phones the side card sits between the two main parts, so "when and where" comes
   before the longer about text. */
.profile-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .profile-body {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "top side"
      "bottom side";
    column-gap: 2rem;
  }

  .profile-body-top { grid-area: top; }
  .profile-body-bottom { grid-area: bottom; }

  .profile-body-side {
    grid-area: side;
    align-self: start;
    position: sticky;
    top: 1rem;
  }
}

.profile-body-top > :last-child,
.profile-body-bottom > :last-child {
  margin-bottom: 0;
}

/* Section headings on the profile: a real heading step above body text, not an uppercase label. */
.profile-heading {
  font-family: var(--ml-font-body);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ml-text);
  margin-bottom: 0.75rem;
}

/* Open/closed status in the header card, links to the hours table. */
.profile-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-top: 0.45rem;
  color: var(--ml-text);
  text-decoration: none;
  font-size: 0.875rem;
}

.profile-status:hover .profile-status-detail {
  text-decoration: underline;
}

.profile-status-dot {
  font-size: 0.5rem;
  vertical-align: middle;
  margin-right: 0.15rem;
}

.profile-status-detail {
  color: var(--ml-text-muted);
  font-weight: 500;
}

/* Guest actions as one row of tiles: one filled primary (menu), the rest quiet and equal. */
.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
}

.profile-action-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--ml-radius-lg);
  border: 1px solid var(--ml-border);
  background: var(--ml-surface);
  color: var(--ml-text);
  text-decoration: none;
  box-shadow: var(--ml-shadow-sm);
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out, transform 0.15s ease-out;
}

.profile-action-tile:hover {
  border-color: rgba(var(--ml-action-rgb), 0.55);
  background: rgba(var(--ml-primary-rgb), 0.05);
  color: var(--ml-text);
  transform: translateY(-1px);
}

.profile-action-tile-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ml-action);
  flex-shrink: 0;
}

.profile-action-tile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-action-tile-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.profile-action-tile-desc {
  font-size: 0.85rem;
  color: var(--ml-text-muted);
  line-height: 1.35;
}

.profile-action-tile--primary,
.profile-action-tile--primary:hover {
  background: var(--ml-action);
  border-color: var(--ml-action);
  color: #fff;
}

.profile-action-tile--primary:hover {
  background: var(--ml-action-hover);
  border-color: var(--ml-action-hover);
}

.profile-action-tile--primary .profile-action-tile-icon,
.profile-action-tile--primary .profile-action-tile-desc {
  color: rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .profile-action-tile,
  .profile-action-tile:hover {
    transition: none;
    transform: none;
  }
}

/* Today's lunch as a quiet panel next to the actions. */
.profile-panel {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  background: var(--ml-surface);
}

.profile-section {
  margin-bottom: 1.5rem;
}

.profile-description {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ml-text);
  margin-bottom: 0;
  max-width: 64ch;
  text-wrap: pretty;
}

/* Phones: menu tile across the full width, the other actions side by side below it. */
@media (max-width: 575.98px) {
  .profile-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-action-tile--primary,
  .profile-action-tile:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }

  .profile-action-tile:not(.profile-action-tile--primary) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* A lone tile in the last row spans the full width, so it has room for icon and text side by
     side, like the menu tile above it. */
  .profile-action-tile:last-child:nth-child(even):not(.profile-action-tile--primary) {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }
}

.profile-primary-cta {
  font-weight: 600;
  min-width: 12.5rem;
}

.profile-subsection-title {
  font-family: var(--ml-font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ml-text-muted);
}


/* ── Info Card (sidebar) ─────────────────────────────── */

.info-card {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--ml-shadow-sm);
}


.info-card address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ml-text);
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .profile-header-card {
    margin-top: -2.25rem;
    padding: 1rem;
    border-radius: var(--ml-radius-lg);
  }

  .profile-logo,
  .profile-logo-placeholder {
    width: 64px;
    height: 64px;
  }

  .profile-logo-placeholder {
    font-size: 1.4rem;
  }

  .profile-name {
    font-size: 1.55rem;
    line-height: 1.1;
  }

  .demo-badge {
    display: block;
    width: fit-content;
    margin-left: 0;
    margin-top: 0.35rem;
    vertical-align: baseline;
  }

  .demo-header-note {
    margin-top: 0.85rem;
    font-size: 0.825rem;
  }

  .profile-actions {
    width: 100%;
    gap: 0.45rem !important;
    margin-top: 0.2rem;
  }

  .profile-action-btn {
    flex: 1 1 calc(33.333% - 0.45rem);
    min-width: 0;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0.45rem;
  }

  .profile-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .profile-primary-cta {
    min-width: 0;
    width: 100%;
    max-width: 18rem;
  }

  .hours-table {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  /* Stays a clear step above the 1.125rem section headings. */
  .profile-name {
    font-size: 1.45rem;
  }

  .profile-cuisine {
    font-size: 0.88rem;
  }

  .profile-description {
    font-size: 0.96rem;
  }

  .announcement-stack .alert {
    font-size: 0.95rem;
  }
}


/* ── Reservation Page ─────────────────────────────────── */

.reservation-page {
  padding-block: 1.75rem 3rem;
}

.reservation-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ml-text-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.reservation-back-link:hover {
  color: var(--ml-action);
}

.reservation-title {
  font-size: 1.9rem;
}

.reservation-card {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow-sm);
  padding: 1.5rem;
}

.reservation-notice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--ml-primary-subtle);
  border: 1px solid var(--ml-primary-light);
  border-radius: var(--ml-radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.reservation-notice i {
  color: var(--ml-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.reservation-card .form-control:focus {
  border-color: var(--ml-primary);
  box-shadow: 0 0 0 0.2rem var(--ml-primary-light);
}

.reservation-card .btn-primary {
  padding-block: 0.7rem;
  font-size: 1rem;
}

@media (max-width: 576px) {
  .reservation-page {
    padding-block: 1.25rem 2.5rem;
  }

  .reservation-card {
    padding: 1.15rem;
  }

  .reservation-title {
    font-size: 1.6rem;
  }
}


/* ── Menu Page ───────────────────────────────────────── */

.menu-page-header {
  padding-block: 2rem 1rem;
}

.menu-page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.menu-header-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.menu-header-actions .btn {
  border-radius: 0.55rem;
}

.category-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ml-text-muted);
  background: var(--ml-surface-alt);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}

.category-pill:hover {
  color: var(--ml-action);
  background: var(--ml-primary-light);
}

.category-pill.active {
  color: var(--ml-action);
  background: var(--ml-primary-light);
  border-color: var(--ml-primary);
  font-weight: 600;
}

/* ── Sticky Menu Bar ──────────────────────────────── */

.menu-sticky-bar {
  position: sticky;
  margin-bottom: 1.0rem;
  top: 0;
  z-index: 20;
  background: var(--ml-surface);
  border-bottom: 1px solid var(--ml-border);
  box-shadow: var(--ml-shadow-sm);
}

.menu-sticky-bar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.menu-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: transparent;
  color: var(--ml-text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.menu-back-icon:hover {
  background: var(--ml-primary-light);
  color: var(--ml-action);
}

.menu-sticky-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ml-text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Sticky nav category pills are the same, but with active state */
.menu-sticky-bar .category-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.menu-sticky-bar .category-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
}

@media (max-width: 576px) {
  .menu-sticky-label {
    display: none;
  }

  .menu-sticky-bar-inner {
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }

  .menu-back-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .menu-sticky-bar .category-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
}

.menu-category {
  margin-bottom: 2.5rem;
  scroll-margin-top: 4.5rem;
}

/* Scroll offset for category anchor links (sticky category nav) */
.menu-category h2[id] {
  scroll-margin-top: 3.5rem;
}

.menu-category-heading {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

/* Category notes often carry real offers ("als Menü für 10,50 €"), so they read as a quiet
   tinted note rather than italic small print. */
.menu-category-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ml-text);
  background: rgba(var(--ml-primary-rgb), 0.06);
  border: 1px solid rgba(var(--ml-primary-rgb), 0.18);
  border-radius: var(--ml-radius);
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.75rem;
  text-wrap: pretty;
}

@media (max-width: 576px) {
  .menu-header-actions {
    width: 100%;
  }

  .menu-header-actions .btn {
    width: 100%;
  }
}

.menu-item {
  position: relative;
  padding-block: 1.2rem 1.25rem;
}

/* A solid hairline between dishes: the old fading gradient all but vanished on phones,
   leaving only the whitespace to tell one dish from the next. */
.menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ml-border);
}

.menu-item:last-child::after {
  display: none;
}

.menu-item-name {
  font-family: var(--ml-font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--ml-text);
}

.menu-item-badge {
  color: var(--ml-success-text);
  font-size: 0.85rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.menu-item-unavailable {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ml-danger);
  background: var(--ml-danger-bg);
  border-radius: var(--ml-radius-sm);
  padding: 0.15em 0.55em;
  margin-bottom: 0.35rem;
}

/* Temporarily unavailable dishes stay on the menu, but visibly recede. */
.menu-item-sold-out .menu-item-name,
.menu-item-sold-out .menu-item-desc,
.menu-item-sold-out .price,
.menu-item-sold-out .menu-item-variants {
  color: var(--ml-text-light);
}

.menu-item-sold-out .price,
.menu-item-sold-out .menu-item-variants .variant {
  text-decoration: line-through;
}

.menu-item-sold-out .menu-item-img {
  filter: grayscale(1);
  opacity: 0.65;
}

.menu-item-desc {
  font-size: 0.9rem;
  color: var(--ml-text-muted);
  margin-bottom: 0.25rem;
  line-height: 1.45;
}

.menu-item-allergens {
  font-size: 0.75rem;
  color: var(--ml-text-light);
  letter-spacing: 0.03em;
}

.menu-item-variants {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.menu-item-variants .variant {
  font-size: 0.85rem;
  color: var(--ml-text-muted);
  background: var(--ml-surface-alt);
  padding: 0.2em 0.6em;
  border-radius: var(--ml-radius-sm);
}

.menu-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--ml-radius);
  object-fit: cover;
  flex-shrink: 0;
}

.menu-item-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--ml-radius-sm);
  object-fit: cover;
}


/* ── Allergen Legend ──────────────────────────────────── */

.allergen-legend {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ml-border);
}

.allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.4rem 1.5rem;
}

.allergen-item {
  font-size: 0.8125rem;
  color: var(--ml-text-muted);
}

.allergen-item strong {
  display: inline-block;
  width: 1.4em;
  color: var(--ml-text);
  font-weight: 600;
}


/* ── Daily Specials ──────────────────────────────────── */

.special-card {
  background: var(--ml-primary-subtle);
  border: 1px solid var(--ml-primary-light);
  border-radius: var(--ml-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.special-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ml-action);
  margin-bottom: 0.5rem;
}

.special-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.special-card-desc {
  font-size: 0.875rem;
  color: var(--ml-text-muted);
  margin-bottom: 0.5rem;
}

.special-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

/* Serving state of today's special (Components/Shared/DailySpecialStatus.razor). Text colours are
   the AA-safe tokens, never --ml-primary, so they stay readable on any brand colour. */
.special-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.1rem 0.55rem;
  margin-bottom: 0.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--ml-surface);
}
.special-status--available { color: var(--ml-success-text); }
.special-status--upcoming  { color: var(--ml-action); }
.special-status--ended     { color: var(--ml-text-muted); }

/* Mittagstisch box on the restaurant profile page: one link, stretched over the whole box. */
.profile-lunch {
  position: relative;
  padding-block: 0.85rem;
  transition: border-color 0.15s ease-out;
}
.profile-lunch:hover { border-color: rgba(var(--ml-action-rgb), 0.55); }
.profile-lunch:focus-within { outline: 2px solid var(--ml-action); outline-offset: 2px; }
.profile-lunch-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.profile-lunch-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ml-action);
}
.profile-lunch-headline {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.6rem;
  min-width: 0;
}
.profile-lunch-title { margin: 0; }
.profile-lunch-link,
.profile-lunch-link:hover { color: inherit; text-decoration: none; }
.profile-lunch-link:focus-visible { outline: none; box-shadow: none; } /* the box shows the focus ring */
.profile-lunch-time {
  font-size: 0.875rem;
  color: var(--ml-text-muted);
}
.profile-lunch-chevron { color: var(--ml-text-muted); }

/* Over for today: one quiet row. */
.profile-lunch--ended .profile-lunch-icon { color: var(--ml-text-muted); }
.profile-lunch--ended .profile-lunch-headline { flex-direction: column; align-items: flex-start; }

.profile-specials {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}
.profile-special {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ml-border-light);
}
.profile-special:last-child { border-bottom: 0; }
.profile-special-title { font-weight: 600; }
.profile-special-price { font-weight: 600; white-space: nowrap; }
.profile-special-time {
  display: block;
  font-size: 0.8rem;
  color: var(--ml-text-muted);
}
.profile-special--ended { color: var(--ml-text-muted); }
.profile-lunch-more {
  font-size: 0.8rem;
  color: var(--ml-text-muted);
  margin: 0.25rem 0 0;
}

/* Over for today: still listed, but neutral instead of the brand tint. */
.special-card--ended {
  background: var(--ml-bg); /* not --ml-surface-alt: muted text would drop below 4.5:1 */
  border-color: var(--ml-border);
}

.special-card-time {
  font-size: 0.8rem;
  color: var(--ml-text-muted);
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.special-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--ml-radius-lg) var(--ml-radius-lg) 0 0;
  display: block;
}

.special-card-body {
  padding: 1rem;
}

/* ── Mittagstisch public pages ───────────────────────── */

.mittagstisch-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.mittagstisch-hero-title {
  font-family: var(--ml-font-heading);
  font-size: 2rem;
  color: var(--ml-text);
  margin-bottom: 0.5rem;
}

.mittagstisch-hero-sub {
  color: var(--ml-text-muted);
  margin-bottom: 1.5rem;
}

.mittagstisch-search-form {
  max-width: 520px;
  margin: 0 auto;
}

.mittagstisch-date-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}

.mittagstisch-date-nav::-webkit-scrollbar {
  display: none;
}

/* Days without specials stay tappable but read as empty, so guests don't tap through blind. */
.mittagstisch-date-nav .category-pill.is-empty:not(.active) {
  color: var(--ml-text-muted);
  border: 1px dashed var(--ml-border);
  background: transparent;
}

.mittagstisch-restaurant-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--ml-radius-sm);
  flex-shrink: 0;
}

/* ── Tagesangebote Admin Week Grid ───────────────────── */

/* Seven fixed columns only fit a wide desktop. On a tablet each day squeezed to ~90px and the
   titles broke after every letter, so the days wrap into as many ≥13rem columns as fit:
   7 on a wide screen, 3–4 on a tablet, 1 on a phone. */
.tagesangebote-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
  gap: 0.75rem;
  align-items: start;
}

.tagesangebote-title {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.tagesangebote-day-card {
  border: 1px solid var(--ml-border-light);
  border-radius: var(--ml-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 120px;
}

.tagesangebote-day-card--today {
  border-color: var(--ml-primary);
  box-shadow: 0 0 0 2px var(--ml-primary-light);
}

.tagesangebote-day-header {
  background: var(--ml-bg-subtle);
  padding: 0.4rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.tagesangebote-day-card--today .tagesangebote-day-header {
  background: var(--ml-primary-subtle);
}

.tagesangebote-day-name {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tagesangebote-day-date {
  color: var(--ml-text-muted);
}

.tagesangebote-day-body {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.tagesangebote-item {
  background: var(--ml-primary-subtle);
  border-radius: var(--ml-radius-sm);
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
}

.min-width-0 {
  min-width: 0;
}


/* ── Opening Hours Table ─────────────────────────────── */

.hours-table {
  width: 100%;
  max-width: 430px;
  border-collapse: collapse;
}

.hours-table td,
.hours-table th {
  padding: 0.45rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--ml-border-light);
}

.hours-table tr:last-child td,
.hours-table tr:last-child th {
  border-bottom: none;
}

.hours-day {
  color: var(--ml-text);
  width: 45%;
  font-weight: 400;
  text-align: left;
}

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

.hours-closed {
  font-style: italic;
  color: var(--ml-text-light);
}

.hours-today td,
.hours-today th {
  font-weight: 600;
  color: var(--ml-text);
}

.hours-today .hours-time {
  color: var(--ml-text);
}


/* ── Empty State ─────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  font-size: 2.5rem;
  color: var(--ml-text-light);
  margin-bottom: 0.75rem;
  display: block;
}

.empty-state-text {
  font-size: 1.05rem;
  color: var(--ml-text-muted);
  margin-bottom: 0.25rem;
}

.empty-state-hint {
  font-size: 0.875rem;
  color: var(--ml-text-light);
}


/* ── Site Footer ─────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--ml-border);
  padding-block: 1.5rem;
  margin-top: 3rem;
  color: var(--ml-text-light);
}

.site-footer a {
  color: var(--ml-text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ml-action);
}

/* The version carries the build time in its title attribute; without a cursor
   change there is nothing to suggest it is worth hovering. */
.site-footer-version {
  cursor: help;
}


/* ── Homepage Hero ───────────────────────────────────── */

.home-page {
  overflow: hidden;
}

.home-hero {
  padding-block: 4.5rem 3.25rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(var(--ml-primary-rgb), 0.10), transparent 33%),
    radial-gradient(circle at 14% 78%, rgba(23, 48, 71, 0.06), transparent 30%),
    linear-gradient(180deg, var(--ml-primary-subtle) 0%, var(--ml-bg) 72%);
  border-bottom: 1px solid var(--ml-border-light);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}

.home-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.home-hero .lead {
  font-size: 1.15rem;
  color: var(--ml-text-muted);
  max-width: 620px;
}

.home-logo {
  height: auto;
  max-width: 280px;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-trust-points {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--ml-text-muted);
}

.home-trust-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-trust-points i {
  color: var(--ml-success-text);
}

.home-highlight-card {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-xl);
  box-shadow: var(--ml-shadow);
  padding: 1.4rem 1.35rem;
}

.home-highlight-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ml-text-muted);
  display: grid;
  gap: 0.5rem;
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.home-info-card {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border-light);
  border-radius: var(--ml-radius-lg);
  padding: 1.1rem;
}

.home-info-card p {
  color: var(--ml-text-muted);
}

.home-feature-strip {
  background: linear-gradient(180deg, var(--ml-primary-subtle) 0%, transparent 100%);
  border-block: 1px solid var(--ml-border-light);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.home-feature-item {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border-light);
  border-radius: var(--ml-radius-lg);
  padding: 1.05rem 1.1rem;
}

.home-feature-item i {
  color: var(--ml-primary);
  font-size: 1.15rem;
}

.home-feature-item p {
  margin-bottom: 0;
  color: var(--ml-text-muted);
}

.home-steps {
  margin-top: 0.6rem;
  margin-bottom: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.home-bottom-cta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-accordion-intro {
  color: var(--ml-text-muted);
  max-width: 62ch;
  font-size: 1.05rem;
}

.home-accordion {
  --bs-accordion-border-color: var(--ml-border-light);
  --bs-accordion-border-radius: var(--ml-radius-lg);
  --bs-accordion-inner-border-radius: calc(var(--ml-radius-lg) - 1px);
  --bs-accordion-btn-color: var(--ml-text);
  --bs-accordion-btn-bg: var(--ml-surface);
  --bs-accordion-btn-focus-border-color: var(--ml-border);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-color: var(--ml-action);
  --bs-accordion-active-bg: var(--ml-primary-subtle);
  --bs-accordion-body-padding-x: 1.25rem;
  --bs-accordion-body-padding-y: 1rem;
  display: grid;
  gap: 0.75rem;
}

.home-accordion .accordion-item {
  border-radius: var(--ml-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--ml-shadow-sm);
}

.home-accordion .accordion-button {
  font-weight: 600;
  font-family: var(--ml-font-body);
}

.home-accordion .accordion-button i {
  color: var(--ml-primary);
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
  margin-right: 0.55rem;
}

.home-accordion .accordion-body {
  color: var(--ml-text-muted);
}

/* ── Demo Request Page ───────────────────────────────── */

/* No overflow:hidden: it clipped the row gutter on phones instead of fixing it. */
.demo-request-page .row {
  --bs-gutter-x: 1.5rem;
}

@media (max-width: 575.98px) {
  .demo-request-page .row {
    --bs-gutter-x: 0;
  }
}

.demo-request-hero {
  max-width: 780px;
  margin-bottom: 1.75rem;
}

.demo-request-hero .lead {
  color: var(--ml-text-muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.demo-request-form-card,
.demo-request-side-card {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow-sm);
  padding: 1.25rem;
}

.demo-request-side-card {
  position: sticky;
  top: 1rem;
}

.demo-request-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ml-text-muted);
  display: grid;
  gap: 0.55rem;
}

.demo-request-contact {
  display: grid;
  gap: 0.4rem;
}

.demo-request-contact a {
  text-decoration: none;
}

.demo-request-submit {
  min-width: 12rem;
}

.demo-request-success {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-xl);
  box-shadow: var(--ml-shadow);
  padding: 2rem 1.5rem;
  max-width: 720px;
  margin-inline: auto;
}

.demo-request-success-icon {
  font-size: 2.5rem;
  color: var(--ml-success-text);
  margin-bottom: 0.75rem;
  display: block;
}

.demo-request-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 991.98px) {
  .home-hero-grid,
  .home-info-grid,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-block: 1.75rem 2.5rem;
  }

  .home-highlight-card {
    padding: 1.2rem 1.1rem;
  }

  .demo-request-side-card {
    position: static;
  }
}


/* ── Form validation ─────────────────────────────────── */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* ══════════════════════════════════════════════════════════
   Admin Layout & Components — Warm Theme
   ══════════════════════════════════════════════════════════ */

/* ── Admin Layout Structure ────────────────────────────── */

.admin-layout {
  background-color: var(--ml-bg);
}

.admin-sidebar {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  /* Matches .admin-sidebar-inner's navy so Bootstrap's default white
     offcanvas background never peeks through the offcanvas-body's own
     padding (visible as a white strip along the mobile drawer's edges). */
  background-color: var(--ml-navy);
}

.admin-sidebar .offcanvas-header {
  background-color: var(--ml-navy);
  color: white;
}

.admin-sidebar .offcanvas-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-sidebar-inner {
  height: 100%;
  background-color: var(--ml-navy);
  color: white;
  gap: 0.5rem;
}

/* Bootstrap's offcanvas-md resets the offcanvas-body to flex-grow:0 at the
   desktop breakpoint (it's designed to just wrap its content there); we need
   it to keep stretching so the "mt-auto" logout link still sticks to the
   bottom of a full-height sidebar. flex-grow alone isn't enough though: at
   this breakpoint .offcanvas-md.offcanvas-start becomes display:block (not
   flex), so the offcanvas-body is no longer a flex item and flex-grow has no
   effect — height:100% is what actually stretches it (and .admin-sidebar-inner
   inside it) to match the nav's full height. */
/* The sidebar is a fixed column only from 992px up. Below that (phones and tablets in
   portrait, e.g. an iPad at 820px) it becomes a drawer behind the topbar, so the page content
   gets the full width instead of ~600px next to a 220px column. */
@media (min-width: 992px) {
  .admin-sidebar.offcanvas-lg .offcanvas-body {
    flex-grow: 1;
    display: flex;
    height: 100%;
  }

  .admin-sidebar.offcanvas-lg {
    width: 220px;
    flex: 0 0 220px;
    /* Bootstrap sets offcanvas-lg transparent; below the sticky inner box the column
       would otherwise show the light page background on long pages. */
    background-color: var(--ml-navy) !important;
  }

  /* Bootstrap paints the offcanvas-lg itself transparent, so the navy column is this inner
     box. As a flex item it shrank to its content (166–193px depending on the longest label),
     making the content edge jump from page to page; it fills the full 220px now. It also
     stays in view while a long page (menu, statistics) scrolls. */
  .admin-sidebar.offcanvas-lg .admin-sidebar-inner {
    flex: 1 1 auto;
    min-width: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}

/* Bootstrap's default offcanvas width (400px) is too wide for a nav drawer. */
@media (max-width: 991.98px) {
  .admin-sidebar.offcanvas-lg {
    width: 280px;
  }
}

.admin-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-branding-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
  margin-top: 0.5rem;
}

.admin-branding-subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.1rem;
}

.admin-branding-logo {
  border-radius: 12px;
  background-color: #ffffff;
  padding: 8px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: var(--ml-radius);
  transition: all 0.15s ease;
  font-size: 0.9375rem;
  font-weight: 500;
}

.admin-nav-link:hover {
  color: white;
  background-color: rgba(var(--ml-primary-rgb), 0.2);
}

.admin-nav-link--active {
  color: white;
  background-color: var(--ml-action);
  font-weight: 600;
}

/* Feature is not in the tenant's plan, or the subscription lapsed. Still clickable —
   the page itself explains why and offers the upgrade. */
.admin-nav-link--locked {
  opacity: 0.55;
}

.admin-nav-link--locked:hover {
  opacity: 0.8;
}

.admin-nav-link--logout {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.admin-nav-link--logout:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar-divider {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 0.75rem 0;
}

/* Small caps heading over a group of sidebar entries. Not a heading element: it only names the list below it. */
.admin-nav-group-label {
  padding: 0.85rem 0.75rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}

/* Section tab bar above the page content. Tabs stay on one line and scroll sideways on phones
   instead of wrapping. Link text uses --ml-action (contrast on white), never the logo teal. */
.admin-section-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-section-tabs .nav-tabs {
  flex-wrap: nowrap;
  white-space: nowrap;
  border-bottom-color: rgba(var(--ml-primary-rgb), 0.25);
}

.admin-section-tabs .nav-link {
  color: var(--ml-action);
}

.admin-section-tabs .nav-link.active {
  color: var(--ml-action);
  font-weight: 600;
}

/* The topbar already reads "moinlokal.de Admin"; dropping the logo block keeps the whole owner menu on one phone screen. */
@media (max-width: 991.98px) {
  .admin-sidebar .admin-branding {
    display: none;
  }
}

.admin-content {
  padding: 2.5rem;
  background-color: var(--ml-bg);
  overflow-y: auto;
}

.admin-topbar {
  background-color: var(--ml-navy);
  color: white;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-toggle {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.admin-topbar-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Tablets (iPad landscape: 1180px minus the 220px column) need every pixel for tables. */
@media (max-width: 1199.98px) {
  .admin-content {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .admin-content {
    padding: 1.25rem 1rem;
  }
}


/* ── Admin Form Utilities ──────────────────────────────── */

.text-brand {
  color: var(--ml-action) !important;
}

/* ── Stamp card (F004 guest page) ────────────────────── */

.stamp-card {
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  background: var(--ml-surface);
  box-shadow: var(--ml-shadow-sm);
}

.stamp-card-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.stamp-card-reward {
  margin: 0.75rem 0 0;
  color: var(--ml-text);
}

/* Slots grow with the card up to 3.5rem: five fit a 360px phone without wrapping. */
.stamp-grid {
  display: grid;
  grid-template-columns: repeat(var(--stamp-cols, 5), minmax(0, 3.5rem));
  justify-content: center;
  gap: 0.625rem;
  margin: 0 auto 1rem;
}

.stamp-grid-slot {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--ml-primary);
  background: rgba(var(--ml-primary-rgb), 0.08);
  color: rgba(var(--ml-primary-rgb), 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.stamp-grid-slot.is-filled {
  border-color: var(--ml-action);
  background: var(--ml-action);
  color: #fff;
  font-size: 1.6rem;
}

/* Progress figure: the number is what the guest came to read. */
.stamp-card-count {
  margin: 0;
  color: var(--ml-text);
}

.stamp-card-count-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ml-action);
}

/* "Mehrere Stempel?" — the rare case stays one tap away instead of a form field on every visit. */
.stamp-more {
  margin-bottom: 0.5rem;
}

.stamp-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  list-style: none;
  cursor: pointer;
  color: var(--ml-action);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.stamp-more > summary::-webkit-details-marker {
  display: none;
}

.stamp-more-body {
  padding: 0.25rem 0 0.75rem;
}

.stamp-id {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

.stamp-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
  white-space: normal;
}

.stamp-choice .bi {
  font-size: 1.6rem;
}

.stamp-choice-desc {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ml-text-muted);
}

.stamp-choice:hover .stamp-choice-desc,
.stamp-choice:focus-visible .stamp-choice-desc {
  color: inherit;
}



/* ── Guest pages: shared touch targets, link colour, figures ─────────────
   From the guest-page UX review: one place for the rules every public page
   shares, instead of per-page sizes that drifted between 28 and 44px. */

/* Bootstrap's link button is #0d6efd and ignores a restaurant's brand colour. */
.btn-link {
  --bs-btn-color: var(--ml-action);
  --bs-btn-hover-color: var(--ml-action-hover);
  --bs-btn-active-color: var(--ml-action-hover);
  --bs-btn-disabled-color: var(--ml-text-muted);
}

/* 44px touch targets for the navigation guests use with one thumb. */
.reservation-back-link,
.category-pill,
.menu-sticky-bar .category-pill {
  min-height: 2.75rem;
}

.menu-sticky-bar .category-pill {
  font-size: 0.875rem;
}

.menu-back-icon {
  width: 2.75rem;
  height: 2.75rem;
}

/* Horizontal pill rows: no classic scrollbar inside the sticky bar, a fade hints at more. */
.menu-sticky-bar .category-nav,
.mittagstisch-date-nav {
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
}

.menu-sticky-bar .category-nav::-webkit-scrollbar {
  display: none;
}

/* Guest form fields and their primary buttons. */
.reservation-card .form-control,
.reservation-card .form-select,
.guest-form .form-control,
.guest-form .form-select {
  min-height: 2.75rem;
}

/* Prices line up in columns. */
.price,
.price-old,
.profile-special-price {
  font-variant-numeric: tabular-nums;
}

/* Bootstrap badges inherit .75em, which drops to 10.5px inside small text. */
.badge {
  font-size: max(0.75em, 0.75rem);
}

/* Fewer single words stranded on the last line of short descriptive text. */
.menu-item-desc,
.special-card-desc,
.order-content-container p,
.empty-state-text,
.empty-state-hint {
  text-wrap: pretty;
}

@media (max-width: 576px) {
  .menu-sticky-bar .category-pill {
    font-size: 0.875rem;
    padding: 0.35rem 0.85rem;
  }

  .menu-back-icon {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.guest-result {
  text-align: center;
  padding-block: 2.5rem 1.5rem;
}

.guest-result-icon {
  font-size: 2.5rem;
  color: var(--ml-text-muted);
}

.guest-result-icon.is-success {
  color: var(--ml-success-text);
}

.guest-result-text {
  color: var(--ml-text-muted);
  text-wrap: pretty;
}

.guest-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.guest-result-actions .btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

/* Event list cards share the guest card look (border + radius tokens), the whole card is the link. */
.event-list-card {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow-sm);
  transition: border-color 0.15s ease-out;
}

.event-list-card:hover {
  border-color: rgba(var(--ml-action-rgb), 0.55);
}

.event-list-link {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--ml-text);
  text-decoration: none;
}

.event-list-link:hover {
  color: var(--ml-text);
}

/* Key/value details on guest token pages: two columns on every width (Bootstrap's
   col-sm split stacked the labels loosely on phones). */
.guest-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
}

.guest-details dt {
  font-weight: 600;
  color: var(--ml-text-muted);
}

.guest-details dd {
  margin: 0;
}

/* Diet marks as words (menu, Mittagstisch): readable on phones and by screen readers. */
.diet-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--ml-success-text);
  color: var(--ml-success-text);
  background: var(--ml-success-bg);
  font-family: var(--ml-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

.diet-badge--vegetarian {
  background: transparent;
}

/* Allergen codes link to the legend; each code carries its name as abbr title. */
a.menu-item-allergens {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--ml-text-muted);
  text-decoration: none;
}

a.menu-item-allergens:hover,
a.menu-item-allergens:focus-visible {
  color: var(--ml-action);
  text-decoration: underline;
}

.menu-item-allergens abbr {
  text-decoration: none;
  cursor: help;
}

.allergen-legend {
  scroll-margin-top: 5rem;
}

/* Menu on wide screens: keep dish name and price within one glance. */
@media (min-width: 768px) {
  .menu-category .menu-items,
  .menu-category .menu-category-desc {
    max-width: 42rem;
  }
}


/* ── Platform pages (UX review, round 3) ───────────────────── */

/* Legal pages: 65-75 characters per line for body text; tables and headings may use the column. */
.legal-page {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.legal-page p,
.legal-page li {
  max-width: 68ch;
}

.legal-page h2[id] {
  scroll-margin-top: 1.5rem;
}

.legal-toc {
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--ml-surface);
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 16rem;
}

.legal-toc a {
  display: inline-block;
  padding-block: 0.2rem;
}

/* Bootstrap's pink code colour is 4.3:1 on the page background. */
code {
  color: #a3105f;
}

/* Mittagstisch results heading: readable mixed case instead of an uppercase label. */
.mittagstisch-results-title {
  font-family: var(--ml-font-body);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* The time range inside the 0.75rem special label rendered at 10.5px. */
.special-card-label .small {
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0;
}

/* 404: a real heading and actions with full-size targets. */
.not-found {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding-block: 4rem 3rem;
}

.not-found h1 {
  font-size: 2rem;
  margin: 1rem 0 0.75rem;
}

/* Short prose everywhere: fewer single words stranded on the last line. */
p,
li {
  text-wrap: pretty;
}

/* ── Pricing page ─────────────────────────────────────── */
.pricing-page {
  max-width: 960px;
}

.pricing-intro {
  font-size: 1.1rem;
  max-width: 620px;
  color: var(--ml-text-muted);
}

.pricing-trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--ml-radius-lg);
  background: rgba(var(--ml-primary-rgb), 0.08);
  border: 1px solid rgba(var(--ml-primary-rgb), 0.3);
}

.pricing-trial > div {
  flex: 1 1 22rem;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow-sm);
}

.pricing-card--featured {
  border: 2px solid var(--ml-primary);
}

.pricing-card--module {
  background: var(--ml-primary-subtle);
}

/* Text on the badge needs the action colour (>= 4.5:1), not the logo teal (3.5:1). */
.pricing-badge {
  position: absolute;
  top: -0.8rem;
  left: 1.25rem;
  padding: 0.3em 0.8em;
  border-radius: 1rem;
  background: var(--ml-action);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.pricing-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ml-text-muted);
  margin-bottom: 0.25rem;
}

.pricing-price {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ml-text);
  margin: 0.25rem 0 0;
  font-variant-numeric: tabular-nums;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ml-text-muted);
}

.pricing-note {
  color: var(--ml-text-muted);
  margin-bottom: 1rem;
}

.pricing-cta-note {
  margin: .5rem 0 0;
  font-size: .875rem;
  text-align: center;
  color: var(--ml-text-muted);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pricing-list li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pricing-list .bi {
  color: var(--ml-action);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.pricing-card .btn,
.pricing-trial .btn,
.pricing-page .btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pricing-combos dt {
  font-weight: 600;
  margin-top: 0.5rem;
}

.pricing-combos dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.pricing-combos dd span {
  display: block;
  color: var(--ml-text-muted);
}

.pricing-faq {
  border-top: 1px solid var(--ml-border);
  padding-top: 2.5rem;
}

.pricing-faq p {
  color: var(--ml-text-muted);
}

/* ── Home (UX review round 3) ───────────────────────── */
.home-hero .lead {
  font-weight: 400;
  color: var(--ml-text);
}

.home-price-line {
  color: var(--ml-text-muted);
}

/* Real section headings instead of uppercase labels. */
.home-section-title {
  font-family: var(--ml-font-heading);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  margin-bottom: 1.25rem;
}

/* Phone frame around a real screenshot of the example restaurant. */
.home-phone {
  margin: 0;
  justify-self: center;
  text-align: center;
}

.home-phone-frame {
  display: block;
  width: min(280px, 70vw);
  padding: 10px;
  border-radius: 2.25rem;
  background: #1a2e3b;
  box-shadow: 0 18px 40px rgba(23, 48, 71, 0.22), 0 4px 10px rgba(23, 48, 71, 0.12);
  transition: transform 0.2s ease-out;
}

.home-phone-frame:hover {
  transform: translateY(-3px);
}

.home-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.65rem;
}

.home-phone figcaption {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--ml-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .home-phone-frame,
  .home-phone-frame:hover {
    transition: none;
    transform: none;
  }
}

.home-plan-tag {
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--ml-action-rgb), 0.45);
  color: var(--ml-action);
  font-size: 0.75rem;
  font-weight: 600;
}

.home-price-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 2rem 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--ml-radius-lg);
  background: rgba(var(--ml-primary-rgb), 0.07);
  border: 1px solid rgba(var(--ml-primary-rgb), 0.25);
}

.home-price-teaser-amount {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.home-cta,
.home-price-teaser .btn {
  min-height: 2.75rem;
}

/* The header already carries the logo; on phones the second, large one only pushed the
   headline and the call to action down. */
@media (max-width: 767.98px) {
  .home-logo {
    display: none;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }
}


/* ── Admin: shared touch targets, readable sizes, honest colours ─────────
   From the admin UX review: owners and staff use the admin on phones and
   kitchen tablets, so Bootstrap's 31px btn-sm and 13px checkboxes are too small. */

.admin-content .btn,
.admin-content .btn-sm,
.admin-content .form-control,
.admin-content .form-select {
  min-height: 2.75rem;
}

.admin-content .btn-sm {
  padding-inline: 0.75rem;
  font-size: 0.875rem;
}

/* With the raised min-height the label sat at the top of the button ("Öffnen",
   "Einstellungen"); centre it instead. */
.admin-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* A flex container drops the space between an icon and its label; this restores it. */
  column-gap: 0.25rem;
}

/* Icon-only link buttons get a full-size hit area. */
.admin-content .btn-link.p-0 {
  min-width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-content .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
}

.admin-content .form-check {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0;
}

.admin-content .form-check .form-check-input {
  float: none;
  margin-left: 0;
  flex-shrink: 0;
}

.admin-content .form-switch .form-check-input {
  width: 2.5rem;
}

/* Bootstrap text colours that miss AA on the admin's tinted backgrounds. */
.admin-content .text-success {
  color: var(--ml-success-text) !important;
}

.admin-content .btn-outline-danger {
  --bs-btn-color: #b02a37;
  --bs-btn-border-color: #b02a37;
  --bs-btn-hover-bg: #b02a37;
  --bs-btn-hover-border-color: #b02a37;
}

/* Sidebar small print: at least 12px and readable on navy. */
.admin-branding-subtitle,
.admin-nav-group-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.admin-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.admin-sidebar-toggle {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

/* Daily specials week view: no 11px text. */
.tagesangebote-item {
  font-size: 0.875rem;
}

.tagesangebote-item .small {
  font-size: 0.8125rem;
}

/* Checked switches, radios and checkboxes, pills and progress bars in the brand action colour
   instead of Bootstrap's #0d6efd (off-brand, and 4.3:1 as pill text). */
.form-check-input:checked {
  background-color: var(--ml-action);
  border-color: var(--ml-action);
}

.form-check-input:focus {
  border-color: var(--ml-action);
  box-shadow: 0 0 0 0.2rem rgba(var(--ml-action-rgb), 0.25);
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--ml-action);
  --bs-nav-link-color: var(--ml-action);
  --bs-nav-link-hover-color: var(--ml-action-hover);
}

.progress {
  --bs-progress-bar-bg: var(--ml-action);
}

/* Admin tables that turn into stacked cards on phones: add .table-stack to the <table> and a
   data-label to each <td>. Actions get their own full-width line instead of being cut off at
   the right edge of a horizontally scrolling table. */
@media (max-width: 767.98px) {
  .table-stack thead {
    display: none;
  }

  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }

  .table-stack tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ml-border);
  }

  .table-stack td {
    border: 0;
    padding: 0.2rem 0;
    text-align: left !important;
  }

  .table-stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ml-text-muted);
  }

  .table-stack td.table-stack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
  }
}

/* Wider screens keep the table, but the action buttons wrap onto a second line inside their
   cell instead of running out of the card (menu editor on an iPad in portrait). */
@media (min-width: 768px) {
  .table-stack td.table-stack-actions {
    white-space: normal;
    text-align: right;
  }

  .table-stack td.table-stack-actions .btn {
    margin-block: 0.125rem;
  }
}

/* SuperAdmin restaurant list */
.tenant-table td {
  vertical-align: top;
}

.confirm-dialog-actions {
  gap: 0.5rem;
}

.confirm-dialog-actions .btn {
  min-height: 2.75rem;
}

/* ── Admin live orders (pickup, reservations) ──────────── */
/* With many orders at once a single column of tall cards needed constant scrolling. The cards
   flow into as many ≥18rem columns as fit: 1 on a phone, 2 on an iPad in portrait, 3 in
   landscape and more on a desktop. A grid (not CSS columns) keeps the reading order row by row,
   so the oldest order stays top left. */
.admin-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
  gap: 0.75rem;
  align-items: start;
}

.admin-order-card {
  min-width: 0;
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: var(--ml-shadow-sm);
  overflow-wrap: anywhere;
}

.admin-order-contact {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
}

.admin-order-card.is-open {
  border-color: rgba(var(--ml-action-rgb), 0.5);
}

/* New since the page was opened: a clear ring that stays until someone acts on it. */
.admin-order-card.is-new {
  border: 2px solid var(--ml-danger);
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12);
}

.admin-order-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ml-border);
}

/* Collapsible cards ("ready" and finished ones): an overlay button makes the header the toggle. */
.admin-order-head {
  position: relative;
}

.admin-order-toggle {
  position: absolute;
  inset: -0.5rem -0.5rem 0;
  border: 0;
  border-radius: var(--ml-radius-sm);
  background: transparent;
  cursor: pointer;
}

.admin-order-toggle:focus-visible {
  outline: 2px solid var(--ml-action);
}

.admin-order-card.is-collapsed .admin-order-head {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-order-note-flag {
  color: #6b4900;
}

.admin-order-back {
  min-height: 2.75rem;
  margin-top: 0.25rem;
  padding-inline: 0;
}

.ml-toast-undo {
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--ml-radius-sm);
  background: transparent;
  color: #fff;
  font-weight: 600;
}

.admin-order-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.admin-order-head-row > p:first-child {
  min-width: 0;
}

.admin-order-total {
  margin-left: auto;
  white-space: nowrap;
}

.admin-order-time {
  font-size: 0.875rem;
  color: var(--ml-text-muted);
}

.admin-order-pickup {
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ml-text);
}

.admin-order-items {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem;
  font-size: 1rem;
  line-height: 1.35;
}

.admin-order-items li {
  padding: 0.15rem 0;
}

/* Notes (allergies, "ohne Zwiebeln") are the most important text on the card. */
.admin-order-note {
  display: block;
  margin-top: 0.15rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--ml-radius-sm);
  background: #fff4d6;
  color: #6b4900;
  font-weight: 600;
  font-size: 0.95rem;
}

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Buttons grow to share the row; when a narrow card wraps them, each fills its own line
   instead of leaving the second one hanging on the right. */
.admin-order-actions .btn {
  flex: 1 1 auto;
  min-height: 2.75rem;
  padding-inline: 0.65rem;
}

@media (max-width: 575.98px) {
  .admin-order-actions .btn {
    flex: 1 1 100%;
  }

  .admin-order-actions .ms-auto {
    margin-left: 0 !important;
    margin-top: 0.75rem;
  }
}

.order-status-badge {
  font-size: 0.8125rem;
}

.admin-row-new > td {
  background: rgba(220, 53, 69, 0.06);
}

.admin-order-line-total {
  float: right;
  color: var(--ml-text-muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.admin-filter-bar {
  padding: 0.75rem 1rem;
  border: 1px solid var(--ml-border);
  border-radius: var(--ml-radius-lg);
  background: var(--ml-surface);
}

.admin-service-call {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--ml-radius-lg);
  border: 1px solid var(--ml-border);
  background: var(--ml-surface);
}

.admin-service-call.is-open {
  border: 2px solid var(--ml-danger);
  background: #fff5f5;
}

.admin-order-more {
  position: relative;
}

.admin-order-more > summary {
  list-style: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.admin-order-more > summary::-webkit-details-marker {
  display: none;
}

.admin-order-more-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Action confirmation on the live order pages (ActionToast): floats above the cards instead of
   pushing them down, fades after a few seconds. Below the reconnect bar (z-index 2000). */
.ml-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1090;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  border-radius: var(--ml-radius-lg);
  background: var(--ml-navy);
  color: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
  animation: ml-toast-in 0.2s ease-out;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ml-toast > .bi {
  color: #6fd59a;
  font-size: 1.1rem;
}

.ml-toast-text {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ml-toast .btn-close {
  flex-shrink: 0;
  padding: 0.75rem;
}

.ml-toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, 0.5rem);
}

@keyframes ml-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ml-toast {
    animation: none;
    transition: none;
  }
}

/* Daily special titles wrap instead of being cut to "Mittagstisch: …". */
.tagesangebote-title {
  overflow-wrap: anywhere;
}

.announcement-message {
  min-width: 12rem;
  overflow-wrap: anywhere;
}

.announcement-inactive .announcement-message {
  color: var(--ml-text-muted);
}

/* ── Admin dashboard: today + setup checklist ────────────────────────────── */
.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 1100px;
}
@media (min-width: 992px) {
  .dashboard-grid { grid-template-columns: 3fr 2fr; align-items: start; }
}
.dashboard-card {
  border: 1px solid var(--ml-border, #e5ddd5);
  border-radius: 0.75rem;
}
.dashboard-today li,
.dashboard-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.35rem 0;
  border-top: 1px solid var(--ml-border, #e5ddd5);
}
.dashboard-today li:first-child,
.dashboard-checklist li:first-child { border-top: 0; }
.dashboard-today li > .bi,
.dashboard-checklist li > .bi { flex: 0 0 1.25rem; color: var(--ml-primary); }
.dashboard-today li.has-open > .bi { color: var(--ml-action); }
.dashboard-checklist li.is-done { color: var(--ml-text-muted); }
.dashboard-checklist li.is-done > .bi { color: var(--bs-success); }
.dashboard-checklist a { font-weight: 600; }

/* Open orders / reservations next to the sidebar entry. Yellow with dark text reads on the dark sidebar. */
.admin-nav-count { font-size: 0.72rem; }
.admin-nav-link .admin-nav-count + .bi-lock-fill { margin-left: 0.25rem !important; }

/* ── Admin statistics: labelled bar chart ────────────────────────────────── */
.analytics-chart {
  height: 200px;
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.analytics-bar-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}
.analytics-bar {
  width: 100%;
  min-height: 2px;
  background: var(--ml-primary);
  border-radius: 3px 3px 0 0;
}
.analytics-bar-value {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
}
.analytics-bar-label {
  font-size: 0.65rem;
  color: var(--ml-text-muted);
  min-height: 1rem;
  white-space: nowrap;
}
.admin-count-pill {
  background: var(--ml-action);
  color: #fff;
}

/* ── Dish dialog: fields scroll, header and footer stay ──────────────────── */
.dish-dialog .dish-dialog-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.dish-dialog .dish-dialog-form > .modal-body { overflow-y: auto; }
.dish-allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.25rem 1rem;
}
.dish-allergen-grid .form-check { min-height: 32px; margin-bottom: 0; }

/* ── Imprint wizard stepper ──────────────────────────────────────────────── */
.imprint-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
}
.imprint-stepper li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ml-text-muted);
  font-size: 0.9rem;
}
.imprint-stepper-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid var(--ml-border, #e5ddd5);
  font-weight: 700;
  font-size: 0.8rem;
}
.imprint-stepper li.is-current { color: var(--ml-text, #1a1a1a); font-weight: 600; }
.imprint-stepper li.is-current .imprint-stepper-num { background: var(--ml-action); border-color: var(--ml-action); color: #fff; }
.imprint-stepper li.is-done .imprint-stepper-num { border-color: var(--bs-success); color: var(--bs-success); }

/* Mandatory-field marker. Not .text-danger: that class marks error messages. */
.required-mark { color: var(--ml-danger, #b02a37); font-weight: 600; }

/* Phone drawer: the topbar names the page, so the account block goes and entries get
   tighter, keeping all owner entries plus "Abmelden" on one 390x844 screen. */
@media (max-width: 767.98px) {
  .admin-sidebar .admin-user-block { display: none; }
  .admin-sidebar .admin-nav-link { padding-top: 0.5rem; padding-bottom: 0.5rem; margin-bottom: 0.1rem; }
  .admin-sidebar .admin-nav-group-label { padding-top: 0.6rem; }
  .admin-sidebar .admin-sidebar-divider { margin: 0.4rem 0; }
}

/* Circuit reconnect notice (App.razor). Blazor toggles the components-reconnect-* classes.
   Hidden for the first 4s via the animation delay, so brief drops stay invisible. */
.ml-reconnect {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 2000;
    max-width: calc(100vw - 2rem);
    padding: .5rem 1rem;
    border-radius: .5rem;
    background: #212529;
    color: #fff;
    font-size: .875rem;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .25);
}
.ml-reconnect.components-reconnect-show,
.ml-reconnect.components-reconnect-failed,
.ml-reconnect.components-reconnect-rejected,
.ml-reconnect.components-reconnect-retrying,
.ml-reconnect.components-reconnect-paused {
    display: block;
    animation: ml-reconnect-in .2s 4s backwards;
}
.ml-reconnect-lost { display: none; }
.ml-reconnect.components-reconnect-failed .ml-reconnect-wait,
.ml-reconnect.components-reconnect-rejected .ml-reconnect-wait,
.ml-reconnect.components-reconnect-paused .ml-reconnect-wait { display: none; }
.ml-reconnect.components-reconnect-failed .ml-reconnect-lost,
.ml-reconnect.components-reconnect-rejected .ml-reconnect-lost,
.ml-reconnect.components-reconnect-paused .ml-reconnect-lost { display: inline; }
@keyframes ml-reconnect-in { from { opacity: 0; } to { opacity: 1; } }
