/* Foto-Extras — card page: reactions + comments on the guest photos
   (review #48). The bar sits on the guest photo tiles of the core's dark
   photo section; "Zuletzt kommentiert" follows the grid; the sheet is a
   light dialog (bottom sheet on a phone). card.css tokens with fallbacks. */
.pe-rx { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; z-index: 2; }
.pe-rx-btn {
  font: inherit; font-size: 13px; line-height: 1; min-height: 32px; min-width: 32px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(30,16,20,0.55); color: #fff; cursor: pointer;
  backdrop-filter: blur(3px); white-space: nowrap;
}
.pe-rx-btn[aria-pressed="true"] { background: rgba(157,90,99,0.92); border-color: rgba(255,255,255,0.6); }
.pe-rx-btn:focus-visible, .pe-talk-open:focus-visible, .pe-sheet-react:focus-visible, .pe-sheet-close:focus-visible { outline: 2px solid var(--gold-soft, #e7c98f); outline-offset: 2px; }

.pe-talk { width: min(760px, 92vw); max-width: 100%; margin: 28px auto 0; color: #fff; text-align: left; }
.pe-talk-title { font-family: var(--serif, Georgia, serif); font-weight: 500; font-size: 18px; margin: 0 0 10px; text-align: center; opacity: .92; }
.pe-talk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pe-talk-open {
  font: inherit; width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: inherit; cursor: pointer;
}
.pe-talk-thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); }
.pe-talk-text { min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pe-talk-name { margin-right: 6px; }
.pe-talk-name::after { content: ":"; }

body.pe-sheet-open { overflow: hidden; }
.pe-sheet-back { position: fixed; inset: 0; z-index: 130; background: rgba(30,16,20,0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pe-sheet {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--cream, #f7f3ee); color: var(--ink, #4a4643);
  border-radius: 18px; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.pe-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pe-sheet-title { font-family: var(--serif, Georgia, serif); font-size: 20px; font-weight: 600; margin: 0; }
.pe-sheet-close { font: inherit; font-size: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); background: #fff; cursor: pointer; color: inherit; }
.pe-sheet-media { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 12px; background: #000; display: block; }
.pe-sheet-rx { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-sheet-react { font: inherit; font-size: 15px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.14); background: #fff; color: inherit; cursor: pointer; }
.pe-sheet-react[aria-pressed="true"] { border-color: var(--rose-1, #9d5a63); background: #f6e6e8; }
.pe-sheet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pe-sheet-empty { font-size: 14px; color: var(--ink-soft, #8c8681); text-align: center; padding: 8px 0; }
.pe-comment { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 8px 12px; }
.pe-comment--pending { border-style: dashed; opacity: .85; }
.pe-comment--host { border-color: var(--rose-1, #9d5a63); }
.pe-comment-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pe-comment-name { font-size: 14px; }
.pe-comment-badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #f6e6e8; color: var(--rose-2, #7a3b46); }
.pe-comment-text { margin: 4px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pe-comment-note { margin: 4px 0 0; font-size: 12px; color: #8a6634; }
.pe-link { font: inherit; font-size: 13px; background: none; border: none; color: var(--rose-2, #7a3b46); cursor: pointer; padding: 4px 0; text-decoration: underline; }
.pe-form { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(0,0,0,0.08); padding-top: 12px; }
.pe-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #6f6a65; }
.pe-input { font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid rgba(0,0,0,0.18); border-radius: 10px; background: #fff; color: #333; width: 100%; box-sizing: border-box; }
.pe-textarea { resize: vertical; min-height: 60px; }
.pe-hint { font-size: 12px; color: #8c8681; margin: 0; }
.pe-btn { font: inherit; font-size: 15px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--rose-1, #9d5a63); background: var(--rose-1, #9d5a63); color: #fff; cursor: pointer; align-self: flex-start; }
.pe-btn:disabled { opacity: .6; cursor: default; }
.pe-flash { font-size: 13px; margin: 0; min-height: 1em; }
.pe-flash.ok { color: #3f6b43; }
.pe-flash.error { color: #a33; }
@media (max-width: 560px) {
  .pe-sheet-back { align-items: flex-end; padding: 0; }
  .pe-sheet { border-radius: 18px 18px 0 0; max-height: 92vh; }
  .pe-rx { top: 6px; right: 6px; gap: 4px; }
  .pe-rx-btn { padding: 6px 8px; font-size: 12px; }
}
