/* ═══════════════════════════════════════════════════════════
   The HorseLoop — Community features
   Poll · Bookmarks · Feedback
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   UMFRAGE DER WOCHE + FOTO-GRID — Variante B („Warm & Verspielt", Juni 2026)
   Helle, cremefarbene Sektion (liegt im .lightband der Startseite). Umfrage =
   Mint-Panel mit nummerierten Antwort-Karten; darunter eine statische
   Polaroid-Collage. Fonts: Site-Stack (Fraunces/Source Serif/JetBrains/Caveat)
   statt der Handout-Fonts, damit der Bereich zum Rest der Seite passt.
   ═══════════════════════════════════════════════════════════════════════ */
.umfrage {
  padding: calc(80px * var(--density)) var(--pad-x);
}
.umfrage__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ───────────── Umfrage (renderPoll → .umfrage__survey) ───────────── */
.umfrage__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid #c79a3e;
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #16242f;
}
.umfrage__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c79a3e;
}

.umfrage__titlerow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 24px;
  margin-bottom: 8px;
}
.umfrage__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #16242f;
  margin: 0;
  /* lange Komposita (z. B. „Nahrungsergänzungsmittel") auf Mobile umbrechen
     statt Horizontal-Overflow; hyphens nutzt lang="de" für saubere Trennstellen */
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.umfrage__q em {
  font-style: italic;
  color: #0DB87A;
}
.umfrage__scribble {
  font-family: "Caveat", cursive;
  font-size: 30px;
  line-height: 1.1;
  color: #0FA3A3;
}
.umfrage__sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
  color: #55615a;
  margin: 0 0 26px;
  max-width: 54ch;
}

.umfrage__panel {
  background: #DCEDE0;
  border-radius: 24px;
  padding: clamp(16px, 2.4vw, 24px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

/* Antwort-Karte (label umschließt verstecktes radio) */
.umf-opt {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(22, 36, 47, 0.08);
  background: #fffdf6;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 1px 0 rgba(22, 36, 47, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.umf-opt:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -20px rgba(199, 154, 62, 0.7);
}
.umf-opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.umf-opt:focus-within {
  outline: 2px solid #0FA3A3;
  outline-offset: 2px;
}

.umf-opt__num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #5A8A7F;
  color: #f5ebd7;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  flex: none;
  transition: background 0.16s ease;
}
.umf-opt.is-mine .umf-opt__num {
  background: #c79a3e;
}

.umf-opt__body {
  min-width: 0;
}
.umf-opt__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  color: #16242f;
}
.umf-opt__hint {
  display: block;
  font-size: 14.5px;
  line-height: 1.4;
  color: #6b7670;
  margin-top: 4px;
}

.umf-opt__bar {
  display: block;
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(90, 138, 127, 0.2);
  overflow: hidden;
}
.umf-opt__bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #0DB87A;
  transform-origin: left;
  animation: umfBarGrow 0.5s ease;
}
.umf-opt.is-mine .umf-opt__bar-fill {
  background: #c79a3e;
}

.umf-opt__pct {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #16242f;
  margin-top: 4px;
}

.umf-opt__ring {
  position: absolute;
  inset: 0;
  border: 2px solid #c79a3e;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
}
.umf-opt.is-mine .umf-opt__ring {
  opacity: 1;
}

@keyframes umfBarGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.umfrage__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.umfrage__foot-hint {
  font-family: "Caveat", cursive;
  font-size: 24px;
  line-height: 1.05;
  white-space: nowrap;
  color: #0DB87A;
}
.umfrage__foot-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #9aa49e;
}

/* Kontextueller Link zum Heumengen-Rechner — erscheint nach der Abstimmung */
.umfrage__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(13, 184, 122, 0.10);
  border: 1px solid rgba(13, 184, 122, 0.30);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.umfrage__cta:hover {
  background: rgba(13, 184, 122, 0.16);
  border-color: rgba(13, 184, 122, 0.55);
}
.umfrage__cta-text {
  color: #42554c;
  font-size: 14px;
}
.umfrage__cta-go {
  color: #0A8C5C;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* ───────────── Divider ───────────── */
.umfrage__divider {
  border: 0;
  height: 1px;
  background: rgba(22, 36, 47, 0.12);
  margin: clamp(30px, 4vw, 52px) 0;
}

/* ───────────── Foto-Grid (statische Collage) ───────────── */
.fotogrid__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.fotogrid__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  color: #16242f;
  margin: 0;
}
.fotogrid__mail {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #6b7670;
}
.fotogrid__mail a {
  color: #0FA3A3;
  text-decoration: none;
}
.fotogrid__mail a:hover {
  text-decoration: underline;
}

.fotogrid__collage {
  columns: 230px;
  column-gap: 18px;
}
.fotogrid__tile {
  break-inside: avoid;
  margin: 0 0 18px;
}

/* Polaroid */
.fotogrid__polaroid {
  margin: 0;
  background: #fffdf6;
  padding: 10px 10px 14px;
  border-radius: 8px;
  box-shadow: 0 12px 28px -16px rgba(22, 36, 47, 0.55);
}
.fotogrid__photo {
  border-radius: 5px;
  overflow: hidden;
}
.fotogrid__photo img,
.fotogrid__framed img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fotogrid__caption {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: #16242f;
  text-align: center;
  margin-top: 6px;
}

/* Einfache gerahmte Kachel */
.fotogrid__framed {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(22, 36, 47, 0.08), 0 12px 28px -18px rgba(22, 36, 47, 0.5);
}

/* „Mach mit!"-Kachel */
.fotogrid__cta {
  background: #16242f;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  justify-content: center;
}
.fotogrid__cta-title {
  font-family: "Caveat", cursive;
  font-size: 30px;
  line-height: 1;
  color: #0DB87A;
}
.fotogrid__cta-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  color: #DCEDE0;
}
.fotogrid__cta-mail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8aab9e;
  margin-top: 4px;
  text-decoration: none;
}
.fotogrid__cta-mail:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .umf-opt__bar-fill { animation: none; }
}

/* ───────────────── BOOKMARK BUTTON ───────────────── */
.bm-btn {
  --bm-size: 38px;
  position: relative;
  width: var(--bm-size);
  height: var(--bm-size);
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, white 14%, transparent);
  background: color-mix(in oklch, #0A1F16 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #F2FBF6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}
.bm-btn:hover {
  transform: scale(1.08);
  border-color: color-mix(in oklch, var(--accent) 50%, transparent);
  background: color-mix(in oklch, var(--accent) 30%, #0A1F16);
}
.bm-btn svg { width: 18px; height: 18px; }
.bm-btn .bm-btn__fill { fill: transparent; stroke: currentColor; stroke-width: 2; }
.bm-btn.is-on .bm-btn__fill {
  fill: var(--accent);
  stroke: var(--accent);
}
.bm-btn.is-on {
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 18%, #0A1F16);
  border-color: color-mix(in oklch, var(--accent) 50%, transparent);
}
.bm-btn.bump svg { animation: bump 0.4s cubic-bezier(.34,1.56,.64,1); }
@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Heart on topic cards — positioned absolutely */
.topic-card .bm-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  --bm-size: 36px;
}
.topic-card { position: relative; }

/* Nav heart icon */
.nav__bookmarks {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__bookmarks:hover {
  background: color-mix(in oklch, var(--accent) 18%, transparent);
  color: var(--accent);
}
.nav__bookmarks svg { width: 20px; height: 20px; }
.nav__bookmarks__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #06241A;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0;
}
.nav__bookmarks__badge.is-on { display: inline-flex; }

/* ───────────────── FEEDBACK ───────────────── */
.feedback {
  position: relative;
  margin: 56px 0 0;
  padding: 40px 44px;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.feedback__mark {
  position: absolute;
  bottom: -60px;
  right: -20px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 320px;
  line-height: 1;
  color: color-mix(in oklch, var(--accent) 12%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.feedback__body { position: relative; z-index: 1; max-width: 60ch; }
.feedback__q {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.feedback__q em { font-style: italic; color: var(--accent); font-weight: 400; }
.feedback__sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
}

.feedback__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 500 14px/1 var(--font-body);
  cursor: pointer;
  transition: all 0.18s ease;
}
.feedback__btn:hover {
  border-color: color-mix(in oklch, var(--accent) 50%, transparent);
  transform: translateY(-1px);
}
.feedback__btn.is-on {
  background: var(--accent);
  color: #06241A;
  border-color: var(--accent);
  box-shadow: 0 6px 18px -6px color-mix(in oklch, var(--accent) 50%, transparent);
}
.feedback__btn svg { flex: none; }

.feedback__followup {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
}
.feedback__followup label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.feedback__followup label span { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.feedback__followup textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font: 15px/1.5 var(--font-body);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.18s ease;
}
.feedback__followup textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.feedback__send {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--bg);
  font: 500 13px/1 var(--font-body);
  cursor: pointer;
  transition: filter 0.18s ease;
}
.feedback__send:hover { filter: brightness(1.1); }
.feedback__send:disabled { opacity: 0.5; cursor: default; }
.feedback__thanks {
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: var(--accent);
  margin-left: 10px;
}
.feedback__done {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.feedback__done a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }


/* Nav: right-side wrapper so 'Frag uns' + heart sit together */
.nav__bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ───────────────── LIGHTBOX (Pferde-Momente Großansicht) ───────────────── */
.lightbox {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  color: #F2FBF6;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(7, 24, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(94vw, 1400px);
}
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,0.7);
  display: block;
  object-fit: contain;
}
.lightbox__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(242,251,246,0.72);
  text-align: center;
  max-width: 80ch;
  line-height: 1.5;
}
.lightbox__close,
.lightbox__nav {
  position: fixed;
  background: color-mix(in oklch, #0A1F16 70%, transparent);
  border: 1px solid color-mix(in oklch, white 18%, transparent);
  color: #F2FBF6;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 180ms ease, transform 150ms ease, border-color 180ms ease;
  z-index: 2;
}
.lightbox__close { top: 24px; right: 24px; width: 48px; height: 48px; }
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: color-mix(in oklch, var(--accent) 30%, #0A1F16);
  border-color: color-mix(in oklch, var(--accent) 55%, transparent);
  outline: none;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__close:hover { transform: scale(1.06); }
.lightbox__close svg,
.lightbox__nav svg { display: block; }

@media (max-width: 600px) {
  .lightbox__close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lightbox__nav { width: 46px; height: 46px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__caption { font-size: 11px; padding: 0 16px; }
}
