/* teeparty.be – News-Feed (Home) */
.tp-news {
  width: 528px;
  max-height: 615px;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 4px 10px 4px 2px;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #2b2b2b;
}
.tp-news-item {
  background: #F2D7A0;
  border: 1px solid #d8be86;
  border-radius: 3px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.tp-news-titel {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 6px;
  color: #1a1a1a;
}
.tp-news-body {
  font-size: 13px;
  line-height: 1.5;
  text-align: justify;
}
.tp-news-body a { color: #7a4a00; }
.tp-news-body img { max-width: 100%; height: auto; }
.tp-news-meta {
  margin-top: 8px;
  font-size: 11px;
  font-style: italic;
  color: #6b5a3a;
  border-top: 1px solid #d8be86;
  padding-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.tp-news-nav {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 2px 10px;
}
.tp-news-nav a { color: #7a4a00; text-decoration: none; font-weight: bold; }
.tp-news-nav a:hover { text-decoration: underline; }
.tp-news-nav .tp-news-older { margin-left: auto; }
.tp-news-empty { font-style: italic; color: #6b5a3a; padding: 20px; text-align: center; }

/* Eingebettete YouTube-Videos (responsiv 16:9) */
.tp-yt { position: relative; width: 100%; padding-top: 56.25%; margin: 8px 0; background: #000; }
.tp-yt iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Kommentare (News-Inline + Galerie-Widget) ---------- */
.tp-cmts { margin-top: 10px; border-top: 1px solid #d8be86; padding-top: 8px; }
.tp-cmts-head { font-size: 12px; font-weight: bold; color: #6b5a3a; margin-bottom: 6px; }
.tp-cmts { background: #F2D7A0; }
.tp-cmt { background: #f7e7c0; border: 1px solid #d8be86; border-radius: 3px; padding: 6px 8px; margin-bottom: 6px; }
.tp-cmt-meta { font-size: 11px; color: #6b5a3a; }
.tp-cmt-name { font-weight: bold; color: #5d3800; }
.tp-cmt-text { font-size: 12px; line-height: 1.45; margin-top: 2px; word-wrap: break-word; }
.tp-cmt-empty { font-size: 12px; font-style: italic; color: #6b5a3a; margin-bottom: 6px; }
.tp-cmt-flash { font-size: 12px; color: #2f6b1e; background: #e7f3df; border: 1px solid #b7d6a4; border-radius: 3px; padding: 4px 7px; margin-bottom: 6px; }
.tp-cmt-error { font-size: 12px; color: #a33; background: #f7e3e0; border: 1px solid #e0b3ab; border-radius: 3px; padding: 4px 7px; margin-bottom: 6px; }
.tp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tp-cmt-form { margin-top: 6px; }
.tp-cmt-form input[type=text], .tp-cmt-form textarea {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 12px;
  padding: 5px 6px; border: 1px solid #c9ad75; border-radius: 3px; margin-bottom: 5px;
}
.tp-cmt-msg { resize: vertical; }
.tp-cmt-row { display: flex; align-items: center; gap: 10px; }
.tp-cmt-math { font-size: 12px; color: #2b2b2b; white-space: nowrap; }
.tp-cmt-math input { width: 52px; box-sizing: border-box; padding: 4px 5px; border: 1px solid #c9ad75; border-radius: 3px; font-size: 12px; }
.tp-cmt-form button {
  margin-left: auto; background: #7a4a00; color: #fff; border: 0;
  padding: 6px 12px; border-radius: 3px; cursor: pointer; font-size: 12px;
}
.tp-cmt-form button:hover { background: #5d3800; }

/* ---------- Feed: Beitrag verlinkt auf eigene Seite ---------- */
.tp-news-titel a { color: #1a1a1a; text-decoration: none; }
.tp-news-titel a:hover { text-decoration: underline; }
.tp-news-cmtlink { font-size: 11px; font-weight: normal; font-style: normal;
  color: #6b5a3a; text-decoration: none; white-space: nowrap; }
.tp-news-cmtlink:hover { text-decoration: underline; }
.tp-cmt-closed { font-size: 12px; font-style: italic; color: #6b5a3a; margin: 6px 0 0; }
.tp-cmt-policy { font-size: 11px; color: #6b5a3a; margin: 4px 0 0; }
.tp-cmt-policy a { color: #7a4a00; }

/* Webmaster-Antwort unter einem Kommentar */
.tp-cmt-wm { margin: 4px 0 0; padding: 5px 8px; font-size: 12px; line-height: 1.45;
  background: #fff3c4; border-left: 3px solid #c9a227; border-radius: 0 3px 3px 0; }
.tp-cmt-wm strong { color: #7a5a00; }

/* ---------- Einzel-Artikelseite (post.php) ---------- */
.tp-post-back { display: block; text-align: right; font-size: 12px; font-weight: bold;
  color: #7a4a00; text-decoration: none; }
.tp-post-back:hover { text-decoration: underline; }
.tp-post-title { font-size: 20px; margin: 2px 0 10px; color: #1a1a1a; }
.tp-post-body { font-size: 14px; line-height: 1.55; }
.tp-post-body a { color: #7a4a00; }
.tp-post-body img { max-width: 100%; height: auto; }
.tp-post-meta { margin-top: 10px; font-size: 12px; font-style: italic; color: #6b5a3a;
  border-top: 1px solid #d8be86; padding-top: 6px; }

/* ---------- Reaktionen (ASCII/Kaomoji) ---------- */
.tp-react { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 5px 0 0; padding: 0; }
.tp-react-post { margin: 8px 0 0; }
/* Emoji-Buttons: standardmaessig versteckt; sichtbar als "Chip" (vergeben/eigene Wahl) oder im offenen Picker */
.tp-react-btn { display: none; align-items: center; gap: 4px;
  background: #fbeccb; border: 1px solid #d8be86; border-radius: 12px;
  padding: 2px 9px; cursor: pointer; font-family: "Courier New", Courier, monospace;
  font-size: 12px; line-height: 1.4; color: #5d3800; transition: background .12s; }
.tp-react-btn.has { display: inline-flex; }
/* Offener Picker zeigt nur die ersten 8 (primary); der Rest ist per Lupe-Suche erreichbar */
.tp-react.picker-open .tp-react-btn.tp-react-primary { display: inline-flex; }
.tp-react-btn:hover { background: #f3dca6; border-color: #c9a227; }
.tp-react-btn.is-active { background: #e8c879; border-color: #7a4a00; font-weight: bold; }
.tp-react-emo { font-weight: bold; white-space: nowrap; }
.tp-react-n { min-width: 8px; text-align: center; font-size: 11px; color: #7a5a00; }
/* "+"-Button (Picker oeffnen): immer sichtbar */
.tp-react-add { display: inline-flex; align-items: center; justify-content: center;
  background: #fbeccb; border: 1px solid #d8be86; border-radius: 12px; min-width: 24px; height: 22px;
  padding: 0 7px; cursor: pointer; color: #5d3800; font-weight: bold; line-height: 1; font-size: 14px; }
.tp-react-add:hover { background: #f3dca6; border-color: #c9a227; }
/* Honeypot gegen Bots: visuell versteckt (nicht display:none, das ueberspringen manche Bots) */
.tp-react-hp { position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important; opacity: 0 !important; }

/* Lupe (Reaktionen suchen) + Suchfeld: Lupe wie der "+"-Button, Feld erst sichtbar wenn .show */
.tp-react-search { display: inline-flex; align-items: center; justify-content: center;
  background: #fbeccb; border: 1px solid #d8be86; border-radius: 12px; min-width: 24px; height: 22px;
  padding: 0 7px; cursor: pointer; color: #5d3800; line-height: 1; font-size: 12px; }
.tp-react-search:hover { background: #f3dca6; border-color: #c9a227; }
.tp-react-q { display: none; width: 130px; box-sizing: border-box; font-size: 12px; padding: 2px 7px;
  border: 1px solid #c9ad75; border-radius: 12px; font-family: inherit; color: #2b2b2b; }
.tp-react-q.show { display: inline-block; }

/* ---------- GIF in Kommentaren (Giphy-Picker) ---------- */
.tp-cmt-gif { display: block; max-width: 220px; height: auto; margin-top: 5px;
  border: 1px solid #d8be86; border-radius: 4px; }
/* Namenszeile: Name links (flexibel), GIF-Knopf rechts daneben */
.tp-cmt-namerow { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; }
/* Name-Feld und GIF-Knopf bekommen EXAKT die gleiche feste Hoehe (box-sizing:border-box,
   vertikales padding 0) -> pixelgenau gleich hoch, unabhaengig von input-vs-button-Rendering.
   Hoehere Spezifitaet als ".tp-cmt-form button" (Absenden), sonst gewinnt dessen padding/border. */
.tp-cmt-namerow .tp-cmt-in,
.tp-cmt-namerow .tp-gif-btn {
  box-sizing: border-box; height: 30px; margin: 0; padding: 0 10px;
  border-width: 1px; border-style: solid; font-size: 12px; line-height: normal;
}
.tp-cmt-namerow .tp-cmt-in { flex: 1; border-color: #c9ad75; }
.tp-cmt-namerow .tp-gif-btn { flex: none; display: inline-flex; align-items: center; justify-content: center;
  position: relative; top: -2px;   /* Knopf leicht hoeher ziehen (Feinjustage) */
  background: #fbeccb; color: #5d3800; border-color: #d8be86; border-radius: 12px;
  cursor: pointer; font-weight: bold; white-space: nowrap; }
.tp-cmt-namerow .tp-gif-btn:hover { background: #f3dca6; border-color: #c9a227; }
.tp-gif-chosen { position: relative; display: inline-flex; margin: 0 0 6px; }
.tp-gif-chosen:empty { display: none; }
.tp-gif-thumb { max-width: 120px; max-height: 90px; height: auto; border: 1px solid #d8be86; border-radius: 4px; }
.tp-gif-x { position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; line-height: 16px;
  border: 0; border-radius: 50%; background: #7a4a00; color: #fff; cursor: pointer; font-size: 13px; padding: 0; }
.tp-gif-x:hover { background: #5d3800; }
.tp-gifpick { display: none; border: 1px solid #c9ad75; border-radius: 4px; background: #fbf3df;
  padding: 6px; margin: 0 0 6px; }
.tp-gifpick.open { display: block; }
.tp-gif-q { width: 100%; box-sizing: border-box; font-size: 12px; padding: 5px 6px;
  border: 1px solid #c9ad75; border-radius: 3px; font-family: inherit; margin-bottom: 6px; }
.tp-gif-grid { display: flex; flex-wrap: wrap; gap: 4px; max-height: 220px; overflow-y: auto; }
.tp-gif-cell { padding: 0; border: 1px solid #d8be86; border-radius: 3px; background: #fff;
  cursor: pointer; line-height: 0; overflow: hidden; }
.tp-gif-cell:hover { border-color: #7a4a00; }
.tp-gif-cell img { width: 96px; height: 72px; object-fit: cover; display: block; }
.tp-gif-empty { font-size: 12px; font-style: italic; color: #6b5a3a; padding: 6px; }
.tp-gif-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tp-gif-more { background: #7a6a30; color: #fff; border: 0; padding: 3px 10px; border-radius: 3px;
  cursor: pointer; font-size: 11px; }
.tp-gif-more:hover { background: #5d3800; }
.tp-gif-by { font-size: 10px; color: #6b5a3a; letter-spacing: .03em; }

/* Hinweis: Das Cookie-/Statistik-Einwilligungs-Banner (.tp-consent*) bringt sein CSS selbst mit
   (assets/consent.js injiziert es), damit es auch auf statischen Seiten ohne Stylesheet greift. */
