/* ---------- Titelbild (Karo bleibt als Rahmen) ---------- */
.cover { position: relative; }
.cover.has-photo { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.cover.has-photo::before {
  content: ''; position: absolute; inset: 14px; border-radius: 14px; z-index: 0;
  background: var(--cover) center / cover no-repeat; box-shadow: 0 6px 20px -10px rgba(60, 45, 30, .5);
}
.cover.has-photo > * { position: relative; z-index: 1; }
@media (min-width: 900px) { .cover.has-photo { min-height: 320px; } .cover.has-photo::before { inset: 18px; } }

/* ---------- Rezeptfoto direkt ändern ---------- */
.rz-hero .photo-btn {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer; font-size: 13.5px;
  background: rgba(255, 255, 255, .92); color: var(--accent-ink); box-shadow: 0 2px 8px rgba(60, 45, 30, .2);
}
.rz-hero .photo-btn svg { width: 17px; height: 17px; }
.rz-hero.empty {
  aspect-ratio: 16 / 7; max-height: 260px; border: 2px dashed var(--line); border-radius: 14px; background: var(--tint);
  display: grid; place-items: center; cursor: pointer; color: var(--accent-ink);
}
.rz-hero.empty::before, .rz-hero.empty::after { display: none; }
.rz-hero.empty span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }

/* ---------- „Nachgekocht“-Galerie ---------- */
.rz-cooked { margin: 30px 0 6px; padding: 18px 20px; border-radius: 18px; background: var(--tint); }
.rz-cooked .label { margin-bottom: 4px; }
.rz-cooked > p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.cooked-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cooked-grid figure { position: relative; margin: 0; background: #fff; padding: 6px 6px 8px; border-radius: 8px; box-shadow: 0 6px 16px -10px rgba(60, 45, 30, .45); transform: rotate(-1.2deg); }
.cooked-grid figure:nth-child(even) { transform: rotate(1.3deg); }
.cooked-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--tint); }
.cooked-grid figcaption { font: 700 17px/1.1 var(--hand); color: var(--accent-ink); text-align: center; margin-top: 6px; }
.cooked-grid .del { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #b3261e; display: grid; place-items: center; cursor: pointer; }
.cooked-grid .del svg { width: 15px; height: 15px; }
.cooked-add {
  display: grid; place-items: center; gap: 6px; aspect-ratio: 1; border: 2px dashed color-mix(in srgb, var(--accent) 70%, var(--line));
  border-radius: 8px; background: rgba(255,255,255,.6); color: var(--accent-ink); cursor: pointer; font-size: 13px; padding: 8px; text-align: center;
}
.cooked-add svg { width: 26px; height: 26px; }

/* ---------- Meine Kategorien ---------- */
.katlist { list-style: none; margin: 0; padding: 0; }
.katlist li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.katlist li:last-child { border-bottom: 0; }
.kat-ic { border: 0; background: none; padding: 2px; cursor: pointer; border-radius: 50%; }
.kat-ic .sticker-ic { width: 34px; height: 34px; }
.kat-ic .sticker-ic svg { width: 20px; height: 20px; }
.kat-name { flex: 1; min-width: 0; font-weight: 500; }
.kat-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.kat-btns { display: flex; gap: 0; }
.kat-btns .icon-btn { width: 36px; height: 36px; }
.kat-btns .icon-btn svg { width: 17px; height: 17px; }
.kat-btns .icon-btn:disabled { opacity: .25; cursor: default; }
@media (max-width: 420px) { .kat-btns .icon-btn { width: 32px; } }

@media print { .photo-btn, .rz-cooked { display: none !important; } }
