/* community.css — Stile für Erinnerungen, Chat, Galerie, Kommentare */

/* Badges (Glocke + Navigation) */
.hbtn { position: relative; }
.hbadge {
  position: absolute; top: -3px; right: -3px;
  background: var(--rot, #c41e3a); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 9px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.nav-badge {
  margin-left: auto; background: var(--rot, #c41e3a); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px;
}

/* Chat */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 320px; }
.chat-list { flex: 1; overflow-y: auto; padding: 8px 2px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 82%; display: flex; flex-direction: column; align-items: flex-start; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-author { font-size: 11px; color: var(--muted, #5b6470); margin: 0 6px 2px; }
.chat-bubble { background: #fff; border: 1px solid var(--linie, #d8e0ea); border-radius: 14px; padding: 7px 11px; }
.chat-msg.mine .chat-bubble { background: var(--hell, #2f6fd0); color: #fff; border-color: transparent; }
.chat-text { display: block; white-space: pre-wrap; word-break: break-word; }
.chat-time { display: block; text-align: right; font-size: 10px; opacity: .7; margin-top: 2px; }
.chat-bar { display: flex; gap: 8px; padding: 8px 0 2px; align-items: flex-end; }
.chat-input { flex: 1; resize: none; max-height: 120px; }
.chat-send { flex: 0 0 auto; padding: 10px 16px; font-size: 18px; }
.chat-emoji { flex: 0 0 auto; padding: 8px 10px; font-size: 18px; }
.emoji-panel { display: flex; flex-wrap: wrap; gap: 2px; max-height: 170px; overflow-y: auto;
  padding: 8px; background: #fff; border: 1px solid var(--linie, #d8e0ea); border-radius: 10px; margin-bottom: 6px; }
.emoji-key { border: none; background: none; cursor: pointer; font-size: 22px; padding: 4px; border-radius: 6px; line-height: 1; }
.emoji-key:hover { background: var(--hellgrau, #eef2f7); }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-cell { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--hellgrau, #eef2f7); }
.gallery-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-badge { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 8px; }
.photo-full { width: 100%; border-radius: 10px; display: block; }
.photo-cap { font-weight: 600; margin: 8px 0 2px; }

/* Kommentare */
.comment { border-top: 1px solid var(--linie, #d8e0ea); padding: 7px 0; }
.c-head { display: flex; align-items: center; gap: 8px; }
.c-author { font-weight: 700; color: var(--blau, #1e4a8a); font-size: 13px; }
.c-time { font-size: 11px; color: var(--muted, #5b6470); }
.c-del { margin-left: auto; background: none; border: none; color: var(--muted, #5b6470); cursor: pointer; font-size: 13px; }
.c-text { white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.comment-bar { display: flex; gap: 8px; margin-top: 10px; }
.comment-bar .input { flex: 1; }

/* Anklickbare Dashboard-Kacheln */
.tile.click { cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.tile.click:hover { box-shadow: 0 0 0 2px var(--hell, #2f6fd0) inset; }
.tile.click:active { transform: scale(.98); }

/* Anklickbare Pills (z. B. Konto im Spielerprofil) */
.pill.click { cursor: pointer; }
.pill.click:hover { filter: brightness(1.12); text-decoration: underline; }

/* Anklickbare „gesamt"-Spalte in der Strichliste (Gesamtzahl korrigieren) */
.drink-col.click { cursor: pointer; border-radius: 8px; }
.drink-col.click:hover { background: rgba(255,255,255,.06); }

/* Untere Leiste (mobil) immer sichtbar – fest am unteren Rand, an die sichtbare Viewport-Höhe gekoppelt */
@media (max-width: 820px) {
  html, body { height: 100dvh; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; }
  .view { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
