/* Geschenklisten – Koralle als Akzent */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gift-card {
  display: flex; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: inherit; align-items: center;
}
.gift-card:hover { border-color: var(--coral); }
.gift-card-img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; flex: none; background: var(--coral-soft); color: var(--coral-ink); display: grid; place-items: center; }
.gift-card-img img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.gift-card-img .icon { width: 30px; height: 30px; }
.gift-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.gift-card-body strong { font-family: var(--font-round); font-size: 1.05rem; }
.gift-meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 4px 0 2px; }
.gift-meter > div { height: 100%; background: var(--coral); }
details.archive { margin-top: 28px; }
details.archive > summary { cursor: pointer; font-weight: 650; color: var(--muted); margin-bottom: 12px; }

.share-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius);
  background: var(--coral-soft); margin-bottom: 12px;
}
.share-bar .grow { flex: 1 1 240px; min-width: 0; }
.share-url { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-switches { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 12px; }
.list-switches .check { margin: 0; }
.intro-preview { margin-bottom: 14px; }
.intro-preview summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.intro-preview p { white-space: pre-line; margin-top: 8px; }

.gift-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gift-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.gift-row.taken { background: color-mix(in srgb, var(--coral-soft) 45%, var(--surface)); }
.gift-row-main { display: flex; gap: 14px; width: 100%; padding: 12px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.gift-row-main .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-right: 60px; }
.gift-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; background: #fff; flex: none; border: 1px solid var(--line); display: grid; place-items: center; color: var(--coral-ink); }
span.gift-thumb { background: var(--coral-soft); border: 0; }
.gift-title { font-weight: 650; line-height: 1.3; }
.gift-title .fav { color: var(--coral-ink); margin-right: 4px; }
.gift-title .fav .icon { width: 1em; height: 1em; fill: currentColor; }
.gift-meta { font-size: .85rem; color: var(--muted); }
.gift-link { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; text-decoration: none; }
.gift-link .icon { width: 1em; height: 1em; }
.gift-res { list-style: none; margin: 0; padding: 0 12px 10px 90px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.gift-res li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.icon-btn.small-x { width: 32px; height: 32px; }
.icon-btn.small-x .icon { width: 16px; height: 16px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn .input { flex: 1; min-width: 0; }
.gift-form-img { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gift-form-img img { width: 96px; height: 96px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.gift-form-img .thumb { width: 64px; height: 64px; }

/* ---------- Öffentliche Seite für die Familie ---------- */
.gift-public { background: var(--paper); }
.gp-wrap { max-width: 760px; margin: 0 auto; padding: 36px 16px 64px; }
.gp-head { margin-bottom: 26px; }
.gp-from { color: var(--coral-ink); font-weight: 700; margin-bottom: 4px; }
.gp-head h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); color: var(--primary); margin-bottom: 4px; }
.gp-date { color: var(--muted); font-weight: 600; }
.gp-intro { margin-top: 14px; line-height: 1.6; max-width: 62ch; }
.gp-mine { padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); margin-bottom: 18px; }
.gp-mine p { margin: 0; }
.gp-sub { margin: 32px 0 12px; color: var(--muted); }
.gp-item {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
}
.gp-item.is-fav { border-color: var(--coral); }
.gp-item.is-done { opacity: .62; }
.gp-img { width: 112px; height: 112px; border-radius: 14px; overflow: hidden; background: #fff; display: grid; place-items: center; border: 1px solid var(--line); }
.gp-img img { width: 100%; height: 100%; object-fit: contain; }
.gp-noimg { font-size: 2.4rem; }
.gp-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.gp-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.gp-fav { font-size: .78rem; font-weight: 700; color: var(--coral-ink); background: var(--coral-soft); padding: 2px 8px; border-radius: 999px; }
.gp-desc { margin: 0; color: var(--muted); font-size: .93rem; white-space: pre-line; }
.gp-price { margin: 0; font-weight: 650; }
.gp-status { font-size: .85rem; font-weight: 650; color: var(--muted); }
.gp-status.mine { color: var(--ok); }
.gp-status.done { color: var(--coral-ink); }
.gp-names { margin: 0; font-size: .85rem; color: var(--muted); }
.gp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gp-empty { text-align: center; padding: 30px 0; color: var(--muted); }
.gp-foot { margin-top: 36px; font-size: .85rem; color: var(--muted); text-align: center; }
.gp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gift-public .toasts { bottom: 20px; }
@media (max-width: 480px) {
  .gp-item { grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; }
  .gp-img { width: 84px; height: 84px; }
}
