/* Wochenkarte und Verwaltung (gemeinsame Bausteine: shell.css) */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  padding-bottom: env(safe-area-inset-bottom);
}
button { font: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }


.wrap { max-width: 760px; margin: 0 auto; padding: 16px 12px 40px; }
.frame {
  background: var(--white); border: 2px solid var(--green); border-radius: 26px; overflow: hidden;
}

/* Kopf mit Logo */
.head { display: grid; gap: 18px; padding: 24px 22px 22px; align-items: center; }
.logo { width: 100%; max-width: 300px; height: auto; margin: 0 auto; display: block; }
.head-text { text-align: center; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-2); }
.head h1 { font-family: var(--serif); font-weight: 700; color: var(--green); font-size: 40px; line-height: 1.05; margin: 6px 0 14px; letter-spacing: -.01em; }
.pill { display: inline-block; background: var(--green-2); color: #fff; font-weight: 700; border-radius: 999px; padding: 8px 18px; font-size: 16px; }
@media (min-width: 640px) {
  .head { grid-template-columns: 1fr 1fr; padding: 32px; }
  .head-text { text-align: left; border-left: 1px solid var(--line); padding-left: 28px; }
  .head h1 { font-size: 48px; }
}

/* Grünes Band */
.band { background: var(--green); color: #fff; display: flex; gap: 14px; align-items: center; padding: 16px 22px; }
.band strong { display: block; font-size: 17px; }
.band span { opacity: .9; font-size: 16px; }
.band a { color: #fff; text-decoration: none; white-space: nowrap; }
.h-badge {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--green);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 19px;
}
.h-badge.small { width: 26px; height: 26px; font-size: 15px; background: var(--green); color: #fff; }

/* Aktionen: Teilen + Einrichten */
.actions-area { background: linear-gradient(180deg, #eef4ea, var(--bg)); padding: 20px 22px; display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.tip-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.tip h2 { font-family: var(--serif); color: var(--green); font-size: 26px; margin: 4px 0 2px; }
.tip p { margin: 0; color: var(--muted); font-size: 16px; }
.big-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--green-2); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px 10px 10px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--green-2);
  min-height: 60px;
}
.big-btn .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; }
.big-btn strong { display: block; font-size: 18px; line-height: 1.2; }
.big-btn small { display: block; font-size: 14px; opacity: .9; }
.big-btn.light { background: #fff; color: var(--green); box-shadow: 0 0 0 2px var(--green-2); }
.big-btn.light .ico { background: var(--green-soft); }
.big-btn:active { transform: scale(.99); }
.big-btn:disabled { opacity: .6; }
@media (min-width: 640px) { .actions-area { grid-template-columns: 1fr 1fr; align-items: center; } .actions-area .tip { grid-column: 1 / -1; } }

.hint { text-align: center; font-size: 15px; color: var(--muted); margin: 18px 22px 0; }

/* Wochenkarte als Liste */
.menu { background: var(--bg); padding: 14px 14px 20px; display: grid; gap: 12px; }
.day-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day-card.past { opacity: .6; }
.day-card.today { border: 2px solid var(--green-2); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
.day-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--green); font-size: 25px; }
.day-head span { font-weight: 700; color: var(--muted); font-size: 15px; white-space: nowrap; }
.day-head .today-tag, .today-tag { color: #fff; background: var(--green-2); border-radius: 999px; padding: 2px 10px; font-size: 13px; margin-left: 6px; vertical-align: 3px; font-family: var(--sans); font-weight: 700; }
.dish {
  position: relative; padding: 14px 18px 16px;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.dish + .dish { border-top: 1px dashed var(--line); }
.dish-row { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.dish-name { margin: 0; font-size: 18px; line-height: 1.4; }
.price { font-weight: 700; color: var(--green); font-size: 18px; white-space: nowrap; }
.like-row { margin-top: 10px; }

.like {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 6px 16px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink);
  font-size: 15px; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.like .heart { font-size: 18px; line-height: 1; }
.like .count { color: var(--muted); font-size: 14px; }
.like[aria-pressed="true"] { border-color: var(--heart); background: #fcebe8; color: var(--heart); }
.like[aria-pressed="true"] .count { color: var(--heart); }
.like:active { transform: scale(.97); }

.burst {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(.4);
  font-size: 64px; pointer-events: none; opacity: 0;
  animation: burst .7s ease-out forwards;
}
@keyframes burst {
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .burst { animation-duration: .01s; } }

/* Fuß */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 18px 22px; background: var(--white); }
.foot strong { font-family: var(--serif); color: var(--green); font-size: 24px; display: block; }
.foot span { color: var(--muted); font-size: 15px; }
.foot a { color: var(--green); font-weight: 700; text-decoration: none; font-size: 18px; }
.below { text-align: center; padding: 18px 0 0; }

/* Verwaltung */
.admin .wrap { padding-top: 16px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.admin-head h1 { font-family: var(--serif); font-size: 28px; margin: 8px 0; }
.admin section { padding: 18px 0; border-top: 1px solid var(--line); }
.admin h2 { font-size: 19px; margin: 0 0 10px; }
.stack { display: grid; gap: 12px; margin-top: 12px; }
.stack label:not(.check) { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.stack input:not([type=checkbox]), .stack textarea, .stack select {
  font: inherit; color: var(--ink); padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); width: 100%;
}
.stack .check { border: 0; padding: 4px 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats div { background: var(--paper); border-radius: 12px; padding: 12px; display: grid; }
.stats strong { font-size: 26px; font-family: var(--serif); }
.stats span { font-size: 14px; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 600; }
.tbl .num { text-align: right; white-space: nowrap; }
.flash { padding: 12px 14px; border-radius: 10px; }
.flash.ok { background: #e3efe2; color: var(--ok); }
.flash.err { background: #f6e1dc; color: var(--err); }


/* Fixe Gerichte (jeden Freitag) */
.fix-badge { margin: 12px 18px 0; display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 4px 12px; }
.dish.hinweis { border-top: 0; margin: 10px 12px 12px; padding: 12px 14px; background: var(--green-soft, #e6f0e2); border-left: 4px solid var(--green); border-radius: 8px; }
.dish.hinweis .dish-name { color: var(--green); font-weight: 700; margin: 0; }
.hinweis-link { display: inline-block; margin-top: 8px; min-height: 42px; line-height: 42px; color: var(--green); font-weight: 700; font-size: 17px; text-decoration: none; }

/* Desktop: Wochenkarte ohne Rahmen, etwas breiter */
@media (min-width: 1024px) and (hover: hover) {
  .wrap { max-width: 860px; padding-top: 32px; }
  .frame { border: 0; }
}
