/* ec-moderation.css — §MODERATION-REPORTS-2026-10-27 (Owner-Go D1–D8)
 *
 * Melde-Dialog (ec-moderation.js) im Obsidian-Glas. Liegt UEBER Profil-Sheet und Kontaktinfo
 * (Desktop 10000 → 10050; Handy-Modalebene 2147482650 → 2147482700) und UNTER Lightbox
 * (2147483000) und Toasts (2147483200). Handy (< 600 px): Bottom-Sheet, scrollt intern,
 * Hoehe nach dvh + Safe-Area (Tastatur verdeckt das Textfeld nicht, focusin scrollt es mittig).
 * Doppelte ID: Alt-Regeln setzen .modal button / .modal input breit mit ID-Spezifitaet.
 */
html body #ec-report-modal.modal-overlay { z-index: 10050 !important; }
html body.ec-mobile-shell-active #ec-report-modal.modal-overlay { z-index: 2147482700 !important; }
html body #ec-report-modal#ec-report-modal.active {
  display: flex; align-items: center; justify-content: center;
  padding: 20px calc(16px + env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
  background: rgba(2, 3, 6, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* !important nur, wo die Mobile-Shell (mobile-overrides.css 26.14, body.ec-mobile-shell-active
   .modal-overlay .modal) selbst !important setzt — die Doppel-ID gewinnt dann. */
html body #ec-report-modal#ec-report-modal .ec-mod {
  position: relative;
  width: 100%; max-width: 440px !important; box-sizing: border-box;
  max-height: min(92vh, 760px); max-height: min(92dvh, 760px); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  text-align: left; color: #eef0f6 !important;
  background: linear-gradient(180deg, rgba(22, 24, 30, .94), rgba(10, 11, 14, .96)) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 20px !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  -webkit-backdrop-filter: blur(22px) saturate(130%); backdrop-filter: blur(22px) saturate(130%);
}
html body #ec-report-modal#ec-report-modal .modal-handle { display: none; }
html body #ec-report-modal#ec-report-modal .ec-mod-close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; min-width: 40px; padding: 0; margin: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06); color: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
html body #ec-report-modal#ec-report-modal .ec-mod-head { display: flex; align-items: center; gap: 10px; padding-right: 44px; }
html body #ec-report-modal#ec-report-modal .ec-mod-head h2 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: #f6f7fb; }
html body #ec-report-modal#ec-report-modal .ec-mod-ico { font-size: 20px; }
html body #ec-report-modal#ec-report-modal .ec-mod-target { margin: 10px 0 14px; font-size: 13px; color: rgba(230, 230, 230, .72); overflow-wrap: anywhere; }
html body #ec-report-modal#ec-report-modal .ec-mod-target strong { color: #f6f7fb; font-weight: 600; }
html body #ec-report-modal#ec-report-modal .ec-mod-reasons {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
  margin: 0 0 14px; padding: 0; border: 0; min-inline-size: 0;
}
html body #ec-report-modal#ec-report-modal .ec-mod-reasons legend {
  grid-column: 1 / -1; padding: 0; margin: 0 0 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: rgba(230, 230, 230, .66);
}
html body #ec-report-modal#ec-report-modal .ec-mod-reason {
  display: flex; align-items: center; gap: 10px; min-height: 48px; min-width: 0; padding: 0 12px; box-sizing: border-box;
  border-radius: 12px; cursor: pointer; font-size: 14px; color: #eef0f6;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
}
html body #ec-report-modal#ec-report-modal .ec-mod-reason:has(input:checked) { border-color: rgba(248, 113, 113, .7); background: rgba(239, 68, 68, .12); }
html body #ec-report-modal#ec-report-modal .ec-mod-reason input,
html body #ec-report-modal#ec-report-modal .ec-mod-block input {
  width: 18px; height: 18px; min-width: 18px; margin: 0; padding: 0; flex: 0 0 auto; accent-color: #ef4444;
}
html body #ec-report-modal#ec-report-modal .ec-mod-field { display: block; margin: 0 0 12px; }
html body #ec-report-modal#ec-report-modal .ec-mod-field > span { display: block; margin-bottom: 6px; font-size: 13px; color: rgba(230, 230, 230, .8); }
html body #ec-report-modal#ec-report-modal .ec-mod-field textarea {
  display: block; width: 100%; box-sizing: border-box; min-height: 84px; max-height: 40vh; resize: vertical;
  margin: 0; padding: 10px 12px !important; border-radius: 12px !important; font: inherit; font-size: 16px !important; line-height: 1.45;  /* 16 px: kein iOS-Zoom */
  color: #f6f7fb !important; background: rgba(0, 0, 0, .35) !important; border: 1px solid rgba(255, 255, 255, .12) !important;
}
html body #ec-report-modal#ec-report-modal .ec-mod-field textarea:focus { outline: 2px solid rgba(248, 113, 113, .55) !important; outline-offset: 1px; border-color: rgba(248, 113, 113, .45) !important; background: rgba(0, 0, 0, .45) !important; }
html body #ec-report-modal#ec-report-modal .ec-mod-count { display: block; margin-top: 4px; text-align: right; font-size: 11px; color: rgba(230, 230, 230, .6); }
html body #ec-report-modal#ec-report-modal .ec-mod-block {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; margin: 0 0 12px; box-sizing: border-box;
  border-radius: 12px; cursor: pointer; font-size: 14px; color: #eef0f6;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
}
html body #ec-report-modal#ec-report-modal .ec-mod-note { margin: 0 0 14px; font-size: 12px; line-height: 1.55; color: rgba(230, 230, 230, .66); }
html body #ec-report-modal#ec-report-modal .ec-mod-error {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  color: #fecaca; background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .35);
}
html body #ec-report-modal#ec-report-modal .ec-mod-error[hidden] { display: none; }
html body #ec-report-modal#ec-report-modal .ec-mod-actions { display: flex; gap: 10px; }
html body #ec-report-modal#ec-report-modal .ec-mod-btn {
  flex: 1 1 0; min-width: 0; min-height: 48px; margin: 0; padding: 0 14px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: #eef0f6;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
html body #ec-report-modal#ec-report-modal .ec-mod-btn--danger { color: #fff; background: linear-gradient(180deg, #ef4444, #b91c1c); border-color: rgba(248, 113, 113, .6); }
html body #ec-report-modal#ec-report-modal .ec-mod-btn[disabled] { opacity: .5; cursor: not-allowed; }

@media (max-width: 599px) {
  html body #ec-report-modal#ec-report-modal.active { align-items: flex-end; padding: 0; }
  html body #ec-report-modal#ec-report-modal .ec-mod {
    max-width: none !important; border-radius: 20px 20px 0 0 !important;
    max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
    padding: 10px calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px)) !important;
  }
  html body #ec-report-modal#ec-report-modal .modal-handle {
    display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: rgba(255, 255, 255, .25);
  }
  html body #ec-report-modal#ec-report-modal .ec-mod-close { top: 8px; }
  html body #ec-report-modal#ec-report-modal .ec-mod-reasons { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 359px) {
  html body #ec-report-modal#ec-report-modal .ec-mod-reasons { grid-template-columns: 1fr; }
}

/* Kontaktanfrage: dritter Knopf „Melden“. Unter 440 px stehen die Knoepfe unter dem Namen
   (sonst drueckten drei Knoepfe Name/@Name auf wenige Zeichen, Lehre §ADMIN-USERS-V2). */
.ec-creq-btn.ec-creq-report { background: transparent; color: #fca5a5; border-color: rgba(239, 68, 68, .45); }
@media (max-width: 440px) {
  .ec-creq-row { flex-wrap: wrap; }
  .ec-creq-actions { flex: 1 1 100%; }
  .ec-creq-actions .ec-creq-btn { flex: 1 1 0; }
}

/* §CONTACTS-SYNC-D21-2026-11-01: vierter Knopf „Blockieren“. Vier Knoepfe passen neben keinen Namen
   mehr (Desktop-Liste ~380 px, Handy 390 px) — die Knoepfe stehen deshalb immer unter dem Namen. */
.ec-creq .ec-creq-row { flex-wrap: wrap; }
.ec-creq .ec-creq-actions { flex: 1 1 100%; flex-wrap: wrap; }
.ec-creq .ec-creq-actions .ec-creq-btn { flex: 1 1 0; min-width: 0; }
.ec-creq-btn.ec-creq-block { background: transparent; color: #fda4af; border-color: rgba(244, 63, 94, .5); }
.ec-creq-title .ec-creq-n { font-weight: 700; color: inherit; letter-spacing: 0; }
