:root {
  --bg: #f6f3ec;
  --paper: #ffffff;
  --ink: #1a1f1c;
  --muted: #6b716c;
  --line: #e6e1d6;
  --green: #2f5d3a;
  --green-deep: #24482d;
  --green-soft: #e7efe8;
  --green-leaf: #8fb56a;
  --orange: #e86a1f;
  --shadow: 0 8px 24px rgba(28, 36, 32, 0.06);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: light; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: 5.5rem;
}

.wrap {
  width: min(100% - 1.5rem, 28rem);
  margin: 0 auto;
  padding: 0.65rem 0 2rem;
}

.top {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--green);
  border-radius: 999px;
}

.icon-btn:focus-visible { outline: 2px solid var(--green); }

.logo {
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 4.75rem;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

h1 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.85rem, 7vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
}

.spark {
  color: var(--green);
  font-size: 0.7em;
  vertical-align: super;
}

.lede {
  text-align: center;
  color: var(--muted);
  margin: 0.45rem 0 1.1rem;
  font-size: 0.98rem;
}

.heute {
  display: block;
  text-align: center;
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  margin: 0 auto 1rem;
  font-weight: 650;
  font-size: 0.95rem;
  max-width: 100%;
}

.heute svg { display: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.chip {
  appearance: none;
  border: 1.5px solid var(--green);
  background: var(--paper);
  color: var(--green);
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chip svg { width: 16px; height: 16px; }

.chip[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.cards {
  display: grid;
  gap: 0.85rem;
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.7rem;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1rem;
  gap: 0.75rem;
  align-items: center;
}

.thumb {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 14px;
  background: #d9c4a8;
  position: relative;
  overflow: hidden;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 22% 18% 18% 18%;
  border-radius: 50%;
  background: rgba(255, 248, 235, 0.35);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 18% 16% auto 16%;
  height: 38%;
  border-radius: 40% 40% 30% 30%;
  background: rgba(255, 255, 255, 0.28);
}

.thumb.pasta { background: linear-gradient(145deg, #c9854a, #e8b56a); }
.thumb.fish { background: linear-gradient(145deg, #6a8ea3, #b7d0c8); }
.thumb.veg { background: linear-gradient(145deg, #5f8a4a, #c5d48a); }
.thumb.soup { background: linear-gradient(145deg, #c45c32, #e8a05a); }
.thumb.meat { background: linear-gradient(145deg, #8a4a32, #d4a07a); }

.card h2 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.meta {
  list-style: none;
  display: grid;
  gap: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 550;
}

.meta li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.85;
}

.chevron {
  color: #b9b3a8;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
}

.kochkarte {
  margin-top: 0.75rem;
  padding: 0.75rem 0.35rem 0.2rem;
  border-top: 1px solid var(--line);
  cursor: default;
}

.kochkarte h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin: 0.65rem 0 0.3rem;
}

.kochkarte ul, .kochkarte ol {
  margin-left: 1.15rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.kochkarte li + li { margin-top: 0.22rem; }

.pick {
  margin-top: 0.95rem;
  appearance: none;
  border: 0;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  width: 100%;
}

.pick:hover { background: var(--green-deep); }

.actions { margin: 1rem 0 0.4rem; }

.btn-ghost {
  appearance: none;
  width: 100%;
  border: 1.5px solid #d8d3c8;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-ghost svg { width: 16px; height: 16px; }

.legal-foot {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

body.page { padding-bottom: 2.5rem; }

.legal-foot a { color: var(--green); }

.hub {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.4rem calc(0.55rem + env(safe-area-inset-bottom));
  z-index: 20;
}

.pick.inline { margin-top: 0; }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 28, 0.35);
  z-index: 45;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.sheet.open { display: flex; }

.sheet-panel {
  background: var(--paper);
  width: min(100%, 28rem);
  max-height: min(88vh, 40rem);
  border-radius: 22px 22px 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
}

.sheet-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.sheet-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.vorrat-list {
  overflow: auto;
  flex: 1;
  padding-right: 0.2rem;
}

.vorrat-group {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 800;
  margin: 0.85rem 0 0.4rem;
}

.vorrat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  font-weight: 600;
  cursor: pointer;
}

.vorrat-item input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green);
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.hub span,
.hub button {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--green);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: default;
}

.hub button { cursor: pointer; }

.hub svg { width: 22px; height: 22px; opacity: 0.85; }

.hub small {
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--muted);
}

.status {
  color: var(--muted);
  margin: 1rem 0;
  text-align: center;
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 28, 0.35);
  z-index: 40;
  display: none;
}

.drawer.open { display: block; }

.drawer-panel {
  background: var(--paper);
  width: min(18rem, 86vw);
  height: 100%;
  padding: 1.25rem;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
}

.drawer-panel a {
  display: block;
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.page-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem 1.3rem;
  cursor: default;
}

.page-card h2 {
  font-size: 1.05rem;
  margin: 1rem 0 0.35rem;
  color: var(--green);
}

.page-card p, .page-card address {
  color: var(--muted);
  font-style: normal;
  margin-top: 0.45rem;
}

.page-card a { color: var(--green); }
