/* Beinghunted. Newsfeed – Beiträge, Galerie, Kommentare.
   Baut auf shell.css und ../assets/site.css auf. */

/* Helle Variante: überschreibt die dunklen Werte aus ../assets/site.css */
:root { --bg: #ffffff; --fg: #000000; }
.marquee__track .dot { background: var(--fg); }

.feed { max-width: 1280px; }

/* ---------- Beitrag ---------- */
.post {
  border-top: 1px solid rgba(0,0,0,0.15);
  padding: 40px 0 56px;
}
.post__lede {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 14px;
}
.post__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.21vw, 45px);   /* ca. 15 % kleiner */
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin-bottom: 32px;
  max-width: 1100px;
  overflow-wrap: break-word;
}
.post__body {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
}
.post__body p + p { margin-top: 14px; }
.post__body a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.post__body a:hover { opacity: 0.7; }
.post__body strong { font-weight: 700; }

/* ---------- Galerie ---------- */
.gallery { position: relative; margin-bottom: 32px; outline: none; }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: #ffffff;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  aspect-ratio: 3 / 2;
  scroll-snap-align: start;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

.gallery-btn {
  position: absolute;
  top: calc(50% - 14px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255,255,255,0.85);
  color: #000;
  font: inherit;
  font-size: 18px;
  line-height: 44px;
  cursor: pointer;
  padding: 0;
  transition: opacity 120ms ease, background 120ms ease;
}
.gallery-btn:hover { background: #fff; }
.gallery-btn:disabled { opacity: 0; pointer-events: none; }
.gallery-btn.prev { left: 0; }
.gallery-btn.next { right: 0; }
.gallery-count {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}
.gallery--single .gallery-count { display: none; }

/* ---------- Kommentare ---------- */
.comments { max-width: 720px; margin-top: 36px; }
.comments-toggle {
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.7;
}
.comments-toggle:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.comments-inner { margin-top: 18px; border-top: 1px solid rgba(0,0,0,0.14); }
.comment { padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.14); }
.comment-head {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.comment-head .date { opacity: 0.5; margin-left: 10px; }
.comment-text { font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }

.comment-form { margin-top: 20px; display: grid; gap: 10px; }
.comment-form input,
.comment-form textarea {
  font: inherit;
  font-size: 14px;
  width: 100%;
  padding: 12px 14px;
  color: var(--fg);
  background: transparent;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--fg); }
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: rgba(0,0,0,0.45); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn,
.comment-form button {
  justify-self: start;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  cursor: pointer;
  border-radius: 0;
}
.comment-form button:disabled { opacity: 0.5; cursor: default; }
.form-msg { font-size: 12px; letter-spacing: 0.02em; opacity: 0.7; min-height: 1em; }

/* ---------- Jahr / Monat ---------- */
.period {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.period[hidden] { display: none; }
.period__field { display: flex; align-items: baseline; gap: 12px; cursor: pointer; }
.period__label { opacity: 0.55; }
.period select {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center;
  border: 0;
  border-bottom: 1px solid var(--fg);
  border-radius: 0;
  padding: 2px 20px 4px 0;
  cursor: pointer;
  outline: none;
}
.period select:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

/* ---------- Vorheriger / nächster Monat ---------- */
.month-nav {
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(0,0,0,0.15);
  padding: 32px 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.month-nav[hidden] { display: none; }
.month-nav .newer { margin-left: auto; }

.feed-empty { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; padding: 24px 0 48px; }

@media (max-width: 640px) {
  .post { padding: 28px 0 40px; }
  .post__title { margin-bottom: 24px; }
  .gallery {
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
  }
  .gallery-count { padding-left: var(--pad); }
  .gallery-btn { width: 38px; height: 38px; line-height: 38px; font-size: 16px; }
}
