/* Bestätigungsseite der Firmenerkennung (termin.html), im Stil der Mail und der Verwaltung (MailDuett): grauer Hintergrund, weißer Kasten,
   Kopf mit Logo und goldener Linie, dunkle Knöpfe mit goldenem Rand. Nur für body.review, die Seitenleiste des Add-ins bleibt unberührt. */
.review main { max-width: none; }

body.review {
  --rv-bg: #f3f4f6;
  --rv-card: #ffffff;
  --rv-line: #e5e7eb;
  --rv-ink: #1c2430;
  --rv-muted: #6b7280;
  --rv-gold: #f5a623;
  --rv-panel: #f9fafb;
  --rv-btn: #1f4e79;
  --rv-btn-fg: #ffffff;
  --rv-hover: #fdf1dc;
  background: var(--rv-bg);
  color: var(--rv-ink);
  padding: 24px 12px;
}

@media (prefers-color-scheme: dark) {
  body.review {
    --rv-bg: #12151a;
    --rv-card: #1b1f24;
    --rv-line: #2f363e;
    --rv-ink: #e6eaee;
    --rv-muted: #9aa5b1;
    --rv-panel: #222830;
    --rv-btn: #7fb0e0;
    --rv-btn-fg: #0e2236;
    --rv-hover: #2a2620;
  }
}

.review .rv-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--rv-card);
  border: 1px solid var(--rv-line);
  border-radius: 6px;
  overflow: hidden;
}

.review .rv-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 3px solid var(--rv-gold);
  font-size: 18px;
  font-weight: 600;
}
.review .rv-head img { width: 40px; height: 40px; display: block; }

.review .rv-env {
  margin: 0;
  padding: 6px 24px;
  background: #fff4d6;
  color: #6b4a00;
  font-size: 13px;
  font-weight: 600;
}

.review .rv-body { padding: 20px 24px 8px; }
.review .rv-body h1 { font-size: 20px; margin: 0 0 14px; }

/* Der Termin: Kasten mit goldener Kante links */
.review .rv-appt {
  background: var(--rv-panel);
  border: 1px solid var(--rv-line);
  border-left: 4px solid var(--rv-gold);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 0 0 16px;
}
.review .rv-appt h2 { font-size: 16px; margin: 2px 0 4px; text-transform: none; letter-spacing: 0; color: var(--rv-ink); }
.review .rv-appt p { margin: 2px 0; }
.review .muted { color: var(--rv-muted); }

.review .rv-question { margin: 0 0 10px; }

/* Knöpfe */
.review button {
  font: inherit;
  border-radius: 4px;
  padding: 9px 16px;
  border: 1px solid var(--rv-line);
  background: var(--rv-card);
  color: var(--rv-ink);
  cursor: pointer;
}
.review button:hover:not(:disabled) { border-color: var(--rv-gold); background: var(--rv-hover); }
.review button:focus-visible { outline: 2px solid var(--rv-gold); outline-offset: 2px; }
.review button.primary {
  width: auto;
  margin: 0;
  background: var(--rv-btn);
  border-color: var(--rv-btn);
  border-left: 4px solid var(--rv-gold);
  color: var(--rv-btn-fg);
  font-weight: 600;
}
.review button.primary:hover:not(:disabled) { background: var(--rv-btn); border-color: var(--rv-btn); border-left-color: var(--rv-gold); filter: brightness(1.15); }
.review button.choice {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  border-left: 4px solid var(--rv-gold);
}
.review button.choice .muted { font-weight: 400; }
.review .rv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
/* Terminpflege: Liste der Termine ohne Kundenfirma, je Zeile Titel, Zeit und „Entscheiden …“. */
.review .rv-list { list-style: none; margin: 0 0 16px; padding: 0; }
.review .rv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rv-line); }
.review .rv-row button { flex: 0 0 auto; }
.review .rv-item { padding: 12px 0; border-top: 1px solid var(--rv-line); display: grid; gap: 8px; }
.review .rv-item .rv-place, .review .rv-item .rv-search { margin: 0; border-top: 0; padding-top: 0; }
.review .rv-choices { flex-wrap: wrap; }
/* Ein Knopf für alle Entscheidungen, bleibt beim Blättern unten sichtbar. */
.review .rv-submit { position: sticky; bottom: 0; background: var(--rv-card, #fff); padding: 12px 0; margin: 0; border-top: 1px solid var(--rv-line); }

.review .rv-search { border-top: 1px solid var(--rv-line); padding-top: 14px; margin-bottom: 12px; }
/* Ticket wählen (nach dem Bestätigen): abgesetzt wie die Firmensuche. */
.review .rv-ticket { border-top: 1px solid var(--rv-line); padding-top: 14px; margin-top: 8px; }
.review .rv-search label { display: block; font-weight: 600; margin-bottom: 6px; }
.review .rv-search input {
  width: 100%;
  font: inherit;
  padding: 9px 12px;
  border: 1px solid var(--rv-line);
  border-radius: 4px;
  background: var(--rv-card);
  color: var(--rv-ink);
  margin-bottom: 8px;
}

/* Wo findet der Termin statt? Drei Knöpfe als Umschalter, der gewählte dunkel mit goldener Unterkante. */
.review .rv-place { margin: 0 0 16px; }
.review .rv-place-label { display: block; font-weight: 600; margin-bottom: 6px; }
.review .rv-seg { display: flex; flex-wrap: wrap; gap: 0; }
.review .rv-seg button.seg { border-radius: 0; margin-left: -1px; padding: 8px 14px; }
.review .rv-seg button.seg:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
.review .rv-seg button.seg:last-child { border-radius: 0 4px 4px 0; }
.review .rv-seg button.seg.active,
.review .rv-seg button.seg.active:hover:not(:disabled) {
  background: var(--rv-btn);
  border-color: var(--rv-btn);
  color: var(--rv-btn-fg);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--rv-gold);
  position: relative;
}

/* Ergebnis nach der Entscheidung */
.review .rv-done {
  border-left: 4px solid #1b6e3a;
  background: #eaf6ee;
  color: #14532d;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 0 0 16px;
}
.review .rv-info { padding: 10px 14px; border-radius: 4px; background: var(--rv-panel); border: 1px solid var(--rv-line); margin: 0 0 16px; }
.review .box.warn { border-radius: 4px; padding: 10px 14px; margin: 0 0 16px; }
@media (prefers-color-scheme: dark) {
  .review .rv-done { background: #16301f; color: #a7e3bc; }
}

.review .rv-foot {
  padding: 10px 24px;
  border-top: 1px solid var(--rv-line);
  font-size: 12px;
  color: var(--rv-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  body.review { padding: 0; }
  .review .rv-card { border-radius: 0; border-left: 0; border-right: 0; }
  .review .rv-head, .review .rv-body, .review .rv-foot, .review .rv-env { padding-left: 16px; padding-right: 16px; }
  .review .rv-actions button { flex: 1 1 auto; }
  .review .rv-seg button.seg { flex: 1 1 auto; padding-left: 8px; padding-right: 8px; }
}
