/* Bewertung und Teilen: auf allen bewertbaren Inhaltsseiten. */
#page-tools.has-feedback {
  justify-content: flex-start;
  gap: 12px;
}
.feedback-votes { display: inline-flex; align-items: center; background: #f2f2f2; border-radius: 25px; }
#page-tools .feedback-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; min-height: 34px; padding: 0 12px; border: 0; border-radius: 25px;
  background: transparent; color: #292929; font: 15px/1 Nunito, sans-serif; cursor: pointer;
}
#page-tools .feedback-vote { min-width: 68px; font-variant-numeric: tabular-nums; }
.feedback-divider { width: 1px; height: 20px; background: #d0d0d0; }
/* Below the desktop header; above the mobile footer. */
#page-tools .feedback-vote::before {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  padding: 6px 8px;
  border-radius: 4px;
  background: #707070;
  color: #fff;
  font: 12px/1.3 Nunito, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
}
@media (hover: hover) {
  #page-tools .feedback-vote:hover::before { visibility: visible; }
}
#page-tools .feedback-vote:focus-visible::before { visibility: visible; }
@media (max-width: 989px) {
  #page-tools .feedback-vote::before {
    top: auto;
    bottom: calc(100% + 12px);
  }
}
.feedback-count-short { display: none; }
.feedback-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: 0 0 auto; }
.feedback-icon .cuff { fill: none; }
.feedback-icon--down { transform: rotate(180deg); }
.feedback-hand, .feedback-icon .cuff { transition: fill 150ms ease, stroke 150ms ease; }
.feedback-vote[aria-pressed="true"] .feedback-hand,
.feedback-vote[aria-pressed="true"] .cuff { fill: #f5c957; stroke: #936709; }
#page-tools .feedback-vote[aria-pressed="true"] { color: #805700; }
#page-tools .feedback-button:disabled { cursor: wait; opacity: .6; }
#page-tools .feedback-button:not(:disabled):hover { background: #e9e9e9; }
#page-tools .feedback-share { color: #267b32; background: #edf7ec; }
#page-tools .feedback-share:hover { background: #d8efd7; }
#page-tools .feedback-top { margin-left: auto; gap: 8px; white-space: nowrap; }
.feedback-message {
  position: absolute; bottom: 58px; left: 12px; margin: 0; padding: 10px 14px;
  max-width: min(440px, calc(100vw - 40px)); border: 1px solid #ddd; border-radius: 6px;
  background: #fff; color: #444; box-shadow: 0 3px 12px #0002; font: 14px/1.5 Nunito, sans-serif;
}
.feedback-message button { font: inherit; color: #267b32; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; }
.feedback-share-dialog { box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 0; border-radius: 12px; background: #fff; color: #444; font: 16px/1.5 Nunito, sans-serif; box-shadow: 0 8px 40px #0004; }
.feedback-share-dialog::backdrop { background: #0008; }
.feedback-share-dialog label { display: block; margin-bottom: 10px; font-weight: 700; }
.feedback-share-dialog input { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #bbb; border-radius: 5px; font: 16px Nunito, sans-serif; }
.feedback-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.feedback-share-dialog button { min-height: 44px; border: 0; padding: 8px 14px; border-radius: 22px; background: #f2f2f2; color: #333; font: inherit; cursor: pointer; }
.feedback-share-dialog .feedback-copy { color: #267b32; background: #edf7ec; }
.feedback-share-status { font-size: 14px; margin: 12px 0 0; }
@media screen and (max-width: 480px) {
  #page-tools.has-feedback { gap: 8px; padding-inline: 10px; }
  #page-tools .feedback-button { gap: 6px; padding-inline: 10px; font-size: 14px; }
  #page-tools .feedback-vote { min-width: 59px; }
  .feedback-icon { width: 21px; height: 21px; }
  #page-tools .feedback-top { justify-content: center; min-width: 40px; }
  .feedback-top-label { display: none; }
  .feedback-count-full { display: none; }
  .feedback-count-short { display: inline; }
}
@media print { .feedback-share-dialog { display: none; } }
@media screen and (max-width: 360px) {
  #page-tools .feedback-share { min-width: 44px; }
  .feedback-share > span { display: none; }
}

/* Die sichtbaren Pillen bleiben kompakt, die Touch-Fläche ist 44 Pixel hoch. */
@media (pointer: coarse) {
  #page-tools .feedback-button::after { content: ""; position: absolute; inset: -5px 0; }
}

/* BLP: dieselben Bedienelemente im Desktopkopf und in der mobilen Fußleiste. */
#page-tools.has-feedback { display:flex; align-items:center; justify-content:center; position:relative; z-index:100; flex-shrink:0; }
#page-tools .feedback-share:not(:disabled):hover { background:#d8efd7; }
.feedback-message { top:calc(100% + 10px); bottom:auto; left:auto; right:0; z-index:101; }
@media (max-width:989px) {
  #page-tools.has-feedback { position:fixed; inset:auto 0 0; z-index:100; width:100%; min-height:64px; padding:15px 12px max(15px,env(safe-area-inset-bottom)); background:#fffffffa; box-shadow:0 -1px 7px #0002; transform:translateY(100%); visibility:hidden; transition:transform .3s,visibility .3s; }
  #page-tools.has-feedback.is-visible { transform:translateY(0); visibility:visible; }
  .feedback-message { top:auto; bottom:calc(100% + 10px); left:50%; right:auto; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 32px); }
}
@media (prefers-reduced-motion:reduce) { #page-tools.has-feedback { transition:none; } }
@media print { #page-tools.has-feedback { display:none; } }
