/* ==========================================================================
   WSH-Box "Angabe melden" — Melde-Modus + Dialogfeld (Mockup 2026-06-11)
   Brand: cream/bg-elev Flaechen, leaf-green Akzent, mono-Kicker.
   ========================================================================== */

.wsh-feedback-scope { position: relative; }

/* --- Toggle-Leiste (unten links in der Box bzw. unter der Liste) --- */
.wsh-feedback__bar {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.wsh-feedback__bar--list { margin-top: 10px; }

.wsh-feedback__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 6px 12px 6px 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute, #888);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.wsh-feedback__toggle:hover { color: var(--ink, #14181a); }
.wsh-feedback__toggle.is-active {
  color: var(--accent, #2f8a1f);
  border-color: var(--accent, #2f8a1f);
  background: rgba(47, 138, 31, 0.05);
}
.wsh-feedback__flag { font-size: 13px; line-height: 1; }

/* --- Melde-Modus: meldbare Bereiche markieren --- */
.is-reporting [data-wsh-element] {
  outline: 1.5px dashed var(--accent, #2f8a1f);
  outline-offset: 6px;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.is-reporting [data-wsh-element]:hover,
.is-reporting [data-wsh-element]:focus-visible {
  outline-style: solid;
  background: rgba(47, 138, 31, 0.04);
}
.is-reporting [data-wsh-element]::after {
  content: "⚑";
  position: absolute;
  top: 0;
  right: -2px;
  font-size: 12px;
  line-height: 1;
  color: var(--accent, #2f8a1f);
  opacity: 0.75;
}
.is-reporting [data-wsh-element].is-reported::after {
  content: "✓";
  opacity: 1;
}
/* Listeneintraege: Flag nicht ueber den km-Angaben kleben lassen */
.is-reporting .weitere-hof[data-wsh-element]::after { top: 4px; right: 4px; }

/* --- Dialogfeld --- */
.wshfb {
  position: absolute;
  z-index: 60;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: var(--bg-elev, #fafaf7);
  border: 1px solid var(--rule, #ddd);
  border-top: 3px solid var(--accent, #2f8a1f);
  border-radius: 4px;
  box-shadow: 0 14px 40px rgba(20, 24, 26, 0.16);
  padding: 16px 18px;
  box-sizing: border-box;
}
.wshfb.is-fixed {
  position: fixed;
  top: 50%;
  left: 50% !important;
  transform: translate(-50%, -50%);
  width: calc(100vw - 32px);
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.wshfb__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.wshfb__kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute, #888);
  margin: 0 0 4px;
}
.wshfb__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink, #14181a);
  margin: 0;
}
.wshfb__close {
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-mute, #888);
  cursor: pointer;
  padding: 2px 4px;
}
.wshfb__close:hover { color: var(--ink, #14181a); }

.wshfb__value {
  background: var(--bg-sunken, #f1f1ec);
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft, #2c3236);
  margin-bottom: 14px;
}

.wshfb__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute, #888);
  margin: 0 0 7px;
}
.wshfb__label-opt { text-transform: none; letter-spacing: 0.06em; }

.wshfb__options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.wshfb__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--rule, #ddd);
  border-radius: 4px;
  background: var(--bg, #fff);
  font-size: 13px;
  color: var(--ink, #14181a);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wshfb__option:hover { border-color: var(--ink-mute, #888); }
.wshfb__option.is-selected {
  border-color: var(--accent, #2f8a1f);
  background: rgba(47, 138, 31, 0.05);
}
.wshfb__option input[type="radio"] { display: none; }
.wshfb__option-radio {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--ink-mute, #888);
  border-radius: 50%;
  position: relative;
}
.wshfb__option.is-selected .wshfb__option-radio { border-color: var(--accent, #2f8a1f); }
.wshfb__option.is-selected .wshfb__option-radio::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--accent, #2f8a1f);
}

.wshfb__textarea {
  width: 100%;
  min-height: 64px;
  padding: 9px 11px;
  border: 1px solid var(--rule-strong, #ccc);
  border-radius: 4px;
  background: var(--bg, #fff);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink, #14181a);
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.wshfb__textarea:focus { border-color: var(--ink, #14181a); }

.wshfb__contact-toggle {
  background: transparent;
  border: 1px dashed var(--rule-strong, #ccc);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink-soft, #2c3236);
  cursor: pointer;
  margin-bottom: 10px;
}
.wshfb__contact-toggle:hover { border-color: var(--ink, #14181a); color: var(--ink, #14181a); }
.wshfb__contact { margin-bottom: 10px; }
.wshfb__email {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--rule-strong, #ccc);
  border-radius: 4px;
  background: var(--bg, #fff);
  font-family: inherit;
  font-size: 13px;
  color: var(--ink, #14181a);
  outline: none;
  box-sizing: border-box;
}
.wshfb__email:focus { border-color: var(--ink, #14181a); }

.wshfb__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 4px;
}
.wshfb__footnote {
  font-size: 10px;
  line-height: 1.5;
  color: var(--ink-mute, #888);
  margin: 0;
  max-width: 45%;
}
.wshfb__footnote--error { color: #b00020; }
.wshfb__actions { display: flex; gap: 8px; flex-shrink: 0; }
.wshfb__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: 0;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.wshfb__btn--cancel {
  background: transparent;
  color: var(--ink-soft, #2c3236);
  border: 1px solid var(--rule-strong, #ccc);
}
.wshfb__btn--cancel:hover { background: var(--bg-sunken, #f1f1ec); }
.wshfb__btn--submit {
  background: var(--accent, #2f8a1f);
  color: var(--accent-ink, #fff);
}
.wshfb__btn--submit:disabled { opacity: 0.45; cursor: not-allowed; }
.wshfb__btn--submit:not(:disabled):hover { filter: brightness(1.08); }

.wshfb__success {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #14181a);
  padding: 6px 2px;
}

@media (max-width: 700px) {
  .wshfb__foot { flex-direction: column; align-items: stretch; }
  .wshfb__footnote { max-width: none; order: 2; margin-top: 8px; }
  .wshfb__actions { width: 100%; }
  .wshfb__btn { flex: 1; }
}

/* H5 (#212): Honeypot-Feld im Dialog. Off-screen statt display:none, damit
   naive Bots es ausfuellen; fuer Menschen und Screenreader unsichtbar. */
.wshfb .re-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 2026-06-11 (User-Wunsch): Disclaimer-Fussnote dezenter. .mono (Theme) erzwingt 12px+uppercase+0.04em; hier gezielt kleiner ohne .mono global zu aendern. */
.wshfb .wshfb__footnote { font-size: 9px; letter-spacing: 0.02em; line-height: 1.45; }
