h1:focus {
    outline: none;
}

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

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

:root {
  /* Primary — warm amber/terracotta */
  --ml-primary:        #c2703e;
  --ml-primary-hover:  #a85d32;
  --ml-primary-light:  #f8ece3;
  --ml-primary-subtle: #fdf5ef;

  /* Backgrounds */
  --ml-bg:             #faf8f5;
  --ml-surface:        #ffffff;
  --ml-surface-alt:    #f5f0eb;

  /* Text */
  --ml-text:           #2c2520;
  --ml-text-muted:     #7a6e63;
  --ml-text-light:     #a89b8f;

  /* Borders & Dividers */
  --ml-border:         #e8e0d8;
  --ml-border-light:   #f0ebe5;

  /* Status */
  --ml-success:        #4a8c5c;
  --ml-success-bg:     #edf5ef;
  --ml-danger:         #b5463a;
  --ml-danger-bg:      #fbefee;

  /* Shadows — warm-tinted */
  --ml-shadow-sm:      0 1px 3px rgba(140, 100, 60, 0.06);
  --ml-shadow:         0 2px 8px rgba(140, 100, 60, 0.08);
  --ml-shadow-lg:      0 4px 20px rgba(140, 100, 60, 0.10);
  --ml-shadow-elevated:0 8px 30px rgba(140, 100, 60, 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-primary);
  text-decoration-color: rgba(194, 112, 62, 0.3);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--ml-primary-hover);
  text-decoration-color: var(--ml-primary-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-primary);
  --bs-btn-border-color: var(--ml-primary);
  --bs-btn-hover-bg: var(--ml-primary-hover);
  --bs-btn-hover-border-color: var(--ml-primary-hover);
  --bs-btn-active-bg: var(--ml-primary-hover);
  --bs-btn-active-border-color: var(--ml-primary-hover);
}

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

.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; }


/* ── 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);
  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: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.profile-hero--placeholder {
  background: linear-gradient(135deg, #3d2b1f 0%, #5c3d2e 40%, #c2703e 100%);
}

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

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

.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.15rem;
}

.profile-cuisine {
  font-size: 0.9rem;
  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;
}


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

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

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

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

.category-pill {
  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;
}

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

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

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

.menu-category-desc {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ml-text-muted);
  margin-bottom: 1rem;
}

.menu-item {
  padding-block: 1rem;
  border-bottom: 1px solid var(--ml-border-light);
}

.menu-item:last-child {
  border-bottom: 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);
  font-size: 0.85rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.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-primary);
  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;
}

.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;
}

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

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

.tagesangebote-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  align-items: start;
}

@media (max-width: 991px) {
  .tagesangebote-week-grid {
    grid-template-columns: 1fr;
  }
}

.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: 340px;
  border-collapse: collapse;
}

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

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

.hours-day {
  color: var(--ml-text);
  width: 45%;
}

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

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

.hours-today td {
  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-primary);
}


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

.home-hero {
  padding-block: 4rem 3rem;
}

.home-hero h1 {
  font-size: 2.75rem;
}

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

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


/* ── 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;
  background-color: var(--ml-text);
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.5rem;
}

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

.admin-branding > span:first-child {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
}

.admin-branding-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.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(194, 112, 62, 0.2);
}

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

.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;
}

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

@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .admin-branding {
    margin-bottom: 0;
    margin-right: 1rem;
  }

  .admin-content {
    padding: 1.5rem;
  }
}


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

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