/* Woche */
.weekbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.weekbar .ttl { flex: 1 1 auto; min-width: 140px; }
.weekbar h1 { font-size: clamp(26px, 5vw, 36px); }
.weekbar p { color: var(--muted); }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.wishes { background: var(--honey-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; display: grid; gap: 8px; }
.wishes h2 { font-size: 15px; color: var(--honey); }
.wish { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wish p { flex: 1 1 200px; min-width: 0; }
.week { display: grid; gap: 10px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
.day.today { border-color: var(--honey); box-shadow: 0 0 0 2px var(--honey-soft); }
.dayhead { display: flex; flex-direction: column; }
.dayhead .dow { font: 700 20px/1.1 var(--font-display); }
.dayhead .dnum { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dayhead .now { font-size: 11px; color: var(--honey); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.slot { display: flex; flex-direction: column; gap: 3px; text-align: left; min-width: 0; min-height: 76px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: var(--surface-2); }
.slot-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.slot-t { display: flex; align-items: flex-start; gap: 7px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.slot-t .dot { margin-top: 5px; }
.slot-m { font-size: 12px; color: var(--muted); }
button.slot.filled:hover, button.slot.note:hover { border-color: var(--accent); }
.slot.empty { background: none; border: 1px dashed var(--line); color: var(--muted); }
button.slot.empty:hover { border-color: var(--accent); color: var(--accent); }
.slot.empty .slot-t { font-weight: 500; }
@media (max-width: 559px) {
  .slots { grid-template-columns: 1fr; }
  .slot { min-height: 0; }
  .day { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
}
@media (min-width: 960px) {
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .day { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 8px; }
  .dayhead { flex-direction: row; align-items: baseline; gap: 8px; }
  .slots { grid-template-columns: minmax(0, 1fr); }
  .slot { min-height: 96px; padding: 8px 10px; }
  .slot-t { font-size: 14px; }
}


/* Ziehen und Ablegen */
.tray { margin-bottom: 16px; }
.tray h2 { font: 700 13px var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tray h2 small { font-weight: 500; text-transform: none; letter-spacing: 0; }
.trayrow { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: -4px; }
.dragchip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 14px 3px 2px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  font-weight: 600; font-size: 14px; white-space: nowrap; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dragchip:hover { border-color: var(--accent); }
.dragchip.wishchip { background: var(--surface); border-color: var(--honey); }
.grip { display: inline-grid; place-items: center; width: 28px; height: 30px; color: var(--muted); touch-action: none; cursor: grab; flex: none; }
.slot { position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.slot .grip { position: absolute; top: 2px; right: 0; }
.slot.filled .slot-t, .slot.note .slot-t { padding-right: 24px; }
.slot[data-drag] { cursor: grab; }
.dragsrc { opacity: .35; }
body.dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
body.dragging .slot[data-drop] { border-color: var(--line); border-style: dashed; }
.dropover, body.dragging .dropover { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft) !important; border-color: var(--accent) !important; }
.ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; display: flex; align-items: center; gap: 8px; max-width: 240px;
  padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 10px 28px rgb(8 18 12 / .3); font-weight: 700; transform-origin: 0 0; }
.ghost span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toolbar.weektools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.slot.leftover { border-style: dashed; opacity: .85; }
.slotmeta { margin-top: 14px; display: grid; gap: 10px; }
.slotleft { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }

/* Mehrere Gerichte pro Mahlzeit */
.slot-more { font-weight: 500; font-size: 13px; color: var(--ink-2, inherit); opacity: .9; }
.moremeal { display: grid; gap: 6px; }
.moremeal .catrow { border-top: 0; padding: 4px 0; }
