/* ===========================================
   Briefing-Workshop („Briefing bewerten“)
   Baut auf /itc/itc.css auf (Farben, Buttons). Mobil zuerst – wird auch am Strand am Handy ausgefüllt.
   =========================================== */

.be-body { --be-red: #c8102e; --be-pass: #1f7a4d; --be-fail: #b06a00; --be-me: #3b22a3; --be-ref: #e0b500; }
.be-main.pf-tool-main { max-width: 880px; }
.be-main a { color: var(--itc-primary); }

.be-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; font-weight: 700; }
.be-top a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }

.be-hero { background: #fff; border-radius: var(--itc-radius); box-shadow: var(--itc-shadow); padding: 18px 20px; margin-bottom: 16px; border-top: 6px solid var(--be-red); }
.be-hero .itc-eyebrow { color: var(--be-red); }
.be-hero h1 { margin: 2px 0 8px; color: var(--itc-ink); font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.2; }
.be-who { margin-top: 10px !important; color: var(--itc-muted); font-size: 0.9rem; }
.be-note { padding: 10px 12px; background: var(--itc-primary-soft); border-radius: var(--itc-radius-sm); }

.be-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 10px; }
.be-meta div { min-width: 0; }
.be-meta dt { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--itc-muted); }
.be-meta dd { margin: 0; font-weight: 600; color: var(--itc-ink); }

.be-card { background: #fff; border-radius: var(--itc-radius); box-shadow: var(--itc-shadow); padding: 16px 18px; margin: 0 0 14px; }
.be-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px !important; font-weight: 800; color: var(--itc-ink); }
.be-h2 { margin: 22px 0 10px; font-size: 1.15rem; color: var(--itc-ink); }
.be-flash { padding: 10px 14px; border-radius: var(--itc-radius-sm); font-weight: 700; }
.be-flash.is-ok { background: #e6f5ec; color: var(--be-pass); }
.be-flash.is-error { background: #fdecee; color: var(--be-red); }

/* Punkteskala */
.be-scale { margin-top: 8px; }
.be-scale summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; color: var(--itc-primary); }
.be-scale ul { margin: 8px 0 0; padding: 0; list-style: none; }
.be-scale li { margin: 4px 0; font-size: 0.92rem; }
.be-scale b { display: inline-block; width: 1.4em; color: var(--itc-ink); }

/* Liste der Runden */
.be-rounds { display: grid; gap: 10px; }
.be-round { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 16px; background: #fff; border-radius: var(--itc-radius);
  box-shadow: var(--itc-shadow); text-decoration: none; color: inherit; border-left: 5px solid var(--itc-primary); }
.be-round.is-rated { border-left-color: var(--be-pass); }
.be-round.is-closed { border-left-color: var(--itc-line); }
.be-round strong { color: var(--itc-ink); font-size: 1.05rem; }
.be-round .be-meta { margin: 4px 0 0; }
.be-round-go { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--itc-primary); }
.be-chip { align-self: start; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--itc-primary-soft); color: var(--itc-primary); }
.be-chip.is-rated { background: #e6f5ec; color: var(--be-pass); }
.be-chip.is-closed { background: #eee; color: var(--itc-muted); }
.be-crit-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Abschnitte und Kriterien */
.be-section { background: #fff; border-radius: var(--itc-radius); box-shadow: var(--itc-shadow); padding: 4px 16px 12px; margin-bottom: 14px; }
.be-section h2, .be-section h3 { margin: 12px 0 4px; padding: 6px 10px; border-radius: 8px; background: var(--be-red); color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.be-crit { border: 0; border-bottom: 1px solid var(--itc-line); margin: 0; padding: 14px 0; min-width: 0; }
.be-crit:last-child { border-bottom: 0; }
.be-crit legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0; font-weight: 800; color: var(--itc-ink); font-size: 1rem; }
.be-ko { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #fdecee; color: var(--be-red); font-style: normal; font-size: 0.74rem; font-weight: 700; }
.be-crit-help { margin: 6px 0 10px !important; color: var(--itc-muted); font-size: 0.9rem; }
.be-crit-help strong { color: var(--be-red); font-weight: 700; }
.be-crit.is-failed legend .be-crit-title { color: var(--be-red); }

.be-opts { display: grid; gap: 6px; }
.be-opt { position: relative; display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; align-items: start; padding: 10px 12px;
  border: 1.5px solid var(--itc-line); border-radius: var(--itc-radius-sm); background: #fff; cursor: pointer; font-size: 0.9rem; line-height: 1.4; }
.be-opt input { position: absolute; opacity: 0; pointer-events: none; }
.be-opt-n { display: inline-flex; align-items: center; justify-content: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--itc-bg); font-weight: 800; color: var(--itc-ink); }
.be-opt.is-grey .be-opt-n { background: #e4e4e8; }
.be-opt:hover { border-color: var(--itc-primary-line); }
.be-opt:has(input:focus-visible) { box-shadow: var(--itc-focus); }
.be-opt:has(input:checked) { border-color: var(--itc-primary); background: var(--itc-primary-soft); }
.be-opt:has(input:checked) .be-opt-n { background: var(--itc-primary); color: #fff; }
.be-opt.is-grey:has(input:checked) { border-color: var(--be-red); background: #fdecee; }
.be-opt.is-grey:has(input:checked) .be-opt-n { background: var(--be-red); }
.be-opt--read { cursor: default; }
.be-minline { margin: 4px 0 20px; font-weight: 700; color: var(--be-red); }

.be-comments span { display: block; margin: 12px 0 6px; font-weight: 800; color: var(--itc-ink); }
.be-comments textarea { width: 100%; }

/* Leiste unten: Punkte und Abschicken */
.be-form { padding-bottom: 8px; }
.be-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 0 -4px; padding: 10px 14px; background: rgba(255, 255, 255, 0.97); border-radius: var(--itc-radius) var(--itc-radius) 0 0;
  box-shadow: 0 -4px 18px rgba(23, 37, 77, 0.12); }
.be-bar-score { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.be-bar-score strong { font-size: 1.2rem; color: var(--itc-ink); }
.be-bar-left { color: var(--itc-muted); font-size: 0.88rem; }
.be-bar-verdict { font-weight: 800; }
.be-bar-verdict.is-pass { color: var(--be-pass); }
.be-bar-verdict.is-fail { color: var(--be-fail); }

/* Ergebnis und Vergleich */
.be-summary { display: grid; gap: 14px; margin-bottom: 14px; }
.be-summary .be-card { margin: 0; }
.be-mine.is-pass { border-top: 5px solid var(--be-pass); }
.be-mine.is-fail { border-top: 5px solid var(--be-fail); }
.be-group { border-top: 5px solid var(--be-me); }
.be-big { margin: 0 !important; font-size: 1.8rem; font-weight: 800; color: var(--itc-ink); line-height: 1.2; }
.be-big small { font-size: 1rem; color: var(--itc-muted); }
.be-verdict { font-weight: 800; }
.be-mine.is-pass .be-verdict { color: var(--be-pass); }
.be-mine.is-fail .be-verdict { color: var(--be-fail); }
.be-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--itc-line); }
.be-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.be-reasons { margin: 6px 0 0; padding-left: 18px; color: var(--be-fail); font-size: 0.9rem; }
.be-refresh { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; text-decoration: none; }

.be-track { position: relative; height: 64px; margin: 18px 6px 4px; border-bottom: 2px solid var(--itc-line); }
.be-track-min { position: absolute; top: -6px; bottom: -6px; border-left: 2px dashed var(--be-red); }
.be-track-min span { position: absolute; top: -14px; left: 4px; white-space: nowrap; font-size: 0.7rem; font-weight: 700; color: var(--be-red); }
.be-track-end { position: absolute; bottom: -20px; left: 0; font-size: 0.72rem; color: var(--itc-muted); }
.be-track-end.is-right { left: auto; right: 0; }
.be-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #8d93ad; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(23, 37, 77, 0.15); vertical-align: middle; }
.be-track .be-dot { position: absolute; bottom: calc(2px + var(--i, 0) * 13px); transform: translateX(-50%); }
.be-dot.is-low { background: #c9a36b; }
.be-dot.is-me { background: var(--be-me); width: 16px; height: 16px; z-index: 2; }
.be-dot.is-ref { background: var(--be-ref); border-radius: 3px; z-index: 3; }
.be-track .be-dot.is-ref { bottom: auto; top: 0; }
.be-totals { margin: 26px 0 0 !important; font-weight: 700; color: var(--itc-ink); letter-spacing: 0.02em; }
.be-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px !important; font-size: 0.85rem; color: var(--itc-muted); }

.be-split { border-left: 5px solid var(--be-fail); }
.be-split ol { margin: 6px 0 0; padding-left: 20px; }
.be-split li { margin: 3px 0; font-weight: 600; }

.be-section--cmp { padding-bottom: 6px; }
.be-cmp { padding: 12px 0; border-bottom: 1px solid var(--itc-line); scroll-margin-top: 80px; }
.be-cmp:last-child { border-bottom: 0; }
.be-cmp.is-split { background: linear-gradient(90deg, #fff6e5, #fff 60%); margin: 0 -16px; padding: 12px 16px; }
.be-cmp-title { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px !important; font-weight: 700; color: var(--itc-ink); }
.be-cmp-title .be-ko { white-space: nowrap; vertical-align: middle; }
.be-mean { flex: none; white-space: nowrap; color: var(--itc-muted); font-weight: 600; font-size: 0.9rem; }
.be-dist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; }
.be-dist-col { position: relative; display: grid; justify-items: center; gap: 4px; }
.be-dist-bar { position: relative; width: 100%; height: 56px; border-radius: 8px; background: var(--itc-bg); overflow: hidden; }
.be-dist-bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0%); background: #c5c9db; border-radius: 6px 6px 0 0; }
.be-dist-bar b { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 0.85rem; color: var(--itc-ink); }
.be-dist-col.is-grey .be-dist-bar { background: #ececf0; }
.be-dist-col.is-mine .be-dist-bar { outline: 3px solid var(--be-me); outline-offset: -3px; }
.be-dist-col.is-mine .be-dist-bar::before { background: #a99be0; }
.be-dist-p { font-weight: 800; color: var(--itc-ink); }
.be-tag { position: absolute; top: -8px; padding: 0 6px; border-radius: 999px; font-size: 0.66rem; font-weight: 800; color: #fff; }
.be-tag--me { left: 2px; background: var(--be-me); }
.be-tag--ref { right: 2px; background: var(--be-ref); color: #3a2c00; }

@media (min-width: 720px) {
  .be-opts { grid-template-columns: repeat(4, 1fr); }
  .be-opt { grid-template-columns: 1fr; justify-items: start; }
  .be-summary { grid-template-columns: 1fr 1.6fr; }
  .be-round { grid-template-columns: 1fr auto auto; }
  .be-round-go { grid-column: auto; }
}

@media print {
  .be-bar, .be-top, #header, #footer { display: none !important; }
}
