/* ═══════════════════════════════════════════════════════════════════════════
   REVIEW-PORTAL — die login-freie Rückmelde-Seite (Karte 966, W1, 16.09.2026)

   Blaupause (Design-Referenz § 0, Seiten-TYP): „Design-Review wie Figma/
   InVision-Kommentarleiste" — links das Werk unverändert, rechts eine schmale
   Leiste mit Screen-Liste und Feld.

   WARUM EIGENES CSS UND NICHT `.v3-page`: diese Seite steht OHNE App-Shell
   (kein Login, keine Navigation, kein Mitgliedsbezug) — genau wie
   `.ab-public` für den Stimmzettel. `.v3-page` rechnet mit dem Shell-Padding
   (negative Ränder, `min-height: calc(100% + 48px)`) und wäre hier falsch.
   Die FARBEN und Maße kommen trotzdem aus derselben Welt wie überall
   (`--v3-*` aus v3_design.css, Marine #00306B = das Blau des Logos).

   ⚠️ Der Präfix `.rvw-` ist vor der Vergabe gegen das ganze Repo geprüft
   worden (App-Lehre 17: greppen UND den Treffer lesen) — 0 Treffer.
   ═══════════════════════════════════════════════════════════════════════════ */
.rvw {
  --rvw-marine: #00306b;
  --rvw-brand: #1e56c8;
  --rvw-ink: #16233a;
  --rvw-ink2: #5b6b84;
  --rvw-ink3: #8b98ad;
  --rvw-canvas: #f4f6f9;
  --rvw-card: #fff;
  --rvw-line: #e6eaf1;
  --rvw-ok: #178a50;
  --rvw-warn: #b26a00;
  --rvw-bad: #b3261e;
  --rvw-r: 14px;
  --rvw-schatten: 0 1px 2px rgba(22, 35, 58, .05), 0 10px 28px -14px rgba(22, 35, 58, .16);
  margin: 0;
  background: var(--rvw-canvas);
  color: var(--rvw-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ⚠️ DIE SEITE SELBST SCROLLT NICHT (gemessen 16.09.2026 im Browser): der
   Rahmen ist ein iframe mit `#anker` in der Adresse, und der Browser scrollt
   den ÄUSSEREN Rahmen mit, um das Sprungziel sichtbar zu machen — beim ersten
   Aufruf war dadurch der Kopf mit Titel, Frist und „So geht's" weg. Ein Fenster
   ohne eigenen Scrollweg kann das nicht: Kopf und Leiste stehen fest, gescrollt
   wird IM Rahmen und IN der Leiste. Am Handy (unten) gilt wieder der normale
   Dokumenten-Scroll — dort liegt die Leiste ohnehin unter dem Rahmen. */
.rvw-wrap {
  max-width: 1480px; margin: 0 auto; padding: 18px clamp(12px, 2.4vw, 26px) 18px;
  display: flex; flex-direction: column; height: 100dvh;
}
.rvw-wrap.rvw-schmal { max-width: 640px; height: auto; padding-top: 12vh; display: block; }

/* ── Kopf: klein halten, die Arbeit beginnt darunter (§ 0 Budget 1) ───────── */
.rvw-kopf {
  display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: flex-start;
  justify-content: space-between;
  background: var(--rvw-card); border: 1px solid var(--rvw-line);
  border-radius: var(--rvw-r); box-shadow: var(--rvw-schatten);
  padding: 13px 18px; margin-bottom: 12px; flex: none;
}
.rvw-kopf-text { min-width: 0; flex: 1 1 380px; }
.rvw-marke {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rvw-ink3); margin-bottom: 4px;
}
.rvw-kopf h1, .rvw-hinweis h1 {
  margin: 0; font-size: clamp(19px, 2.4vw, 25px); font-weight: 800;
  letter-spacing: -.5px; color: var(--rvw-marine); line-height: 1.22;
}
.rvw-worum { margin: 7px 0 0; color: var(--rvw-ink2); font-size: 13px; max-width: 86ch; }
.rvw-mehr { margin-top: 5px; }
.rvw-mehr > summary {
  cursor: pointer; font-size: 12px; font-weight: 700; color: var(--rvw-brand);
  list-style: none; display: inline-flex; align-items: center; gap: 5px;
}
.rvw-mehr > summary::-webkit-details-marker { display: none; }
.rvw-mehr > summary::before { content: "▸"; font-size: 10px; }
.rvw-mehr[open] > summary::before { content: "▾"; }
.rvw-kopf-fakten { display: flex; flex-wrap: wrap; gap: 8px 22px; flex: 0 1 auto; }
.rvw-fakt { display: flex; flex-direction: column; gap: 1px; }
.rvw-fl {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--rvw-ink3);
}
.rvw-fv { font-size: 13px; font-weight: 700; color: var(--rvw-ink); }

/* ── Rückmeldung des Systems ──────────────────────────────────────────────── */
.rvw-flash {
  border-radius: 10px; padding: 10px 14px; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; border-left: 4px solid var(--rvw-brand); background: #e8effd;
  flex: none;
}
.rvw-flash.ok { border-left-color: var(--rvw-ok); background: #e6f6ec; color: #11603a; }
.rvw-flash.bad { border-left-color: var(--rvw-bad); background: #fdeaec; color: #86201a; }

/* ── Werk + Leiste ────────────────────────────────────────────────────────── */
.rvw-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px;
  align-items: stretch; flex: 1; min-height: 0;
}
.rvw-werk {
  background: var(--rvw-card); border: 1px solid var(--rvw-line);
  border-radius: var(--rvw-r); box-shadow: var(--rvw-schatten); overflow: hidden;
  display: flex; flex-direction: column; min-height: 0;
}
.rvw-frame { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: #fff; }
.rvw-werkfuss {
  margin: 0; padding: 9px 14px; border-top: 1px solid var(--rvw-line);
  font-size: 11.5px; color: var(--rvw-ink2); background: #fbfcfe;
}

.rvw-leiste {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 0; overflow-y: auto; padding-right: 2px;
}
.rvw-block {
  background: var(--rvw-card); border: 1px solid var(--rvw-line);
  border-radius: var(--rvw-r); box-shadow: var(--rvw-schatten); padding: 14px 15px;
}
.rvw-h2 {
  margin: 0 0 9px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--rvw-ink3);
}

/* Screen-Liste: ein Klick = ein Bild. Ohne JavaScript ein ganz normaler Link. */
.rvw-screens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rvw-screen {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px;
  text-decoration: none; color: var(--rvw-ink); font-size: 12.8px; font-weight: 600;
  border: 1px solid transparent;
}
.rvw-screen:hover { background: #f3f6fc; }
.rvw-screen.on { background: #e8effd; border-color: #bcd3f7; color: var(--rvw-brand); }
.rvw-snr {
  flex: none; width: 21px; height: 21px; border-radius: 7px; background: #eef1f6;
  color: var(--rvw-ink2); font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.rvw-screen.on .rvw-snr { background: var(--rvw-brand); color: #fff; }
.rvw-stitel { min-width: 0; }

/* ── Das Formular ─────────────────────────────────────────────────────────── */
.rvw-frage {
  background: #fbfcfe; border: 1px solid var(--rvw-line); border-radius: 10px;
  padding: 9px 11px; margin-bottom: 11px; font-size: 13px; color: var(--rvw-ink);
}
.rvw-fragelabel {
  display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--rvw-ink3); margin-bottom: 3px;
}
.rvw-feld { display: block; margin-bottom: 11px; border: 0; padding: 0; }
.rvw-feld > span, .rvw-feld > legend {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .3px;
  text-transform: uppercase; color: var(--rvw-ink3); margin-bottom: 5px; padding: 0;
}
.rvw-feld i { font-style: normal; font-weight: 700; color: var(--rvw-ink3); text-transform: none; letter-spacing: 0; }
.rvw-feld input[type="text"], .rvw-feld textarea {
  width: 100%; border: 1px solid var(--rvw-line); border-radius: 9px; padding: 9px 10px;
  font-size: 13.5px; font-family: inherit; color: var(--rvw-ink); background: #fff;
}
.rvw-feld textarea { resize: vertical; min-height: 58px; }
.rvw-feld input:focus-visible, .rvw-feld textarea:focus-visible {
  outline: 2px solid var(--rvw-brand); outline-offset: 1px; border-color: var(--rvw-brand);
}
.rvw-wahl { display: flex; flex-wrap: wrap; gap: 7px; }
.rvw-wahl legend { flex-basis: 100%; }
.rvw-radio {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--rvw-line); border-radius: 99px; padding: 6px 13px;
  font-size: 13px; font-weight: 650; background: #fff; min-height: 38px;
}
.rvw-radio:has(input:checked) { border-color: var(--rvw-brand); background: #e8effd; color: var(--rvw-brand); }
.rvw-knopf {
  width: 100%; border: 0; border-radius: 10px; padding: 11px 16px; min-height: 44px;
  background: linear-gradient(135deg, #2f6fe0, #1e56c8); color: #fff;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.rvw-knopf:hover { filter: brightness(1.05); }
.rvw-klein { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--rvw-ink3); }

/* Honigtopf — für Menschen unsichtbar, für Automaten verlockend. Bewusst
   NICHT `display:none` (manche Automaten überspringen das). */
.rvw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Was ich in dieser Sitzung schon gesagt habe ──────────────────────────── */
.rvw-eliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rvw-eliste li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.rvw-eton {
  flex: none; font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 2px 9px;
  background: #eef1f6; color: var(--rvw-ink2);
}
.rvw-eton.t-ok { background: #e6f6ec; color: var(--rvw-ok); }
.rvw-eton.t-warn { background: #fdf3e2; color: var(--rvw-warn); }
.rvw-eton.t-bad { background: #fdeaec; color: var(--rvw-bad); }
.rvw-escreen { color: var(--rvw-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Hinweis-Seiten (geschlossen · unbekannt · Fehler) ────────────────────── */
.rvw-hinweis {
  background: var(--rvw-card); border: 1px solid var(--rvw-line);
  border-radius: var(--rvw-r); box-shadow: var(--rvw-schatten); padding: 26px 26px 22px;
}
.rvw-hinweis p { color: var(--rvw-ink2); font-size: 14px; margin: 10px 0 0; }
.rvw-hinweis a { color: var(--rvw-brand); }

/* ── Handy: Leiste unter den Rahmen, Rahmen mindestens 70 vh ──────────────── */
@media (max-width: 980px) {
  .rvw-wrap { height: auto; display: block; padding-bottom: 40px; }
  .rvw-body { grid-template-columns: minmax(0, 1fr); }
  .rvw-leiste { overflow: visible; }
  /* Der Rahmen bleibt am Handy mindestens 70 vh hoch — darunter ist ein
     Entwurf nicht mehr beurteilbar, sondern nur noch zu erahnen. */
  .rvw-werk { display: block; }
  .rvw-frame { height: 70dvh; min-height: 420px; }
  .rvw-kopf { padding: 13px 14px; }
}
