/* i-Pille und Handbuch (#83). Farben aus dem CD (0_Rohdaten/CD/cd_tokens.py). */
.hilfe { display: inline; }
/* Pille neben, nicht in der Überschrift: sonst gehört ihr Name zur Überschrift (review G83 W3). */
.titelzeile { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hilfe-pille {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -10px -6px -10px 0; padding: 0; vertical-align: middle;
  border: 0; background: transparent; cursor: pointer; font: inherit;
}
.hilfe-i {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: #1A4B7E; color: #FFFFFF; box-shadow: 0 0 0 1px var(--knopf-rand, #1A4B7E);
  font: bold 14px/1 Georgia, "Times New Roman", serif; font-style: italic;
}
.hilfe-pille:hover .hilfe-i { background: #15406B; } /* BLAU 1A4B7E um 15 % abgedunkelt */
.hilfe-pille:focus-visible { outline: 3px solid var(--akzent, #1A4B7E); outline-offset: -3px; border-radius: 50%; }
.hilfe-blase {
  max-width: min(28rem, calc(100vw - 32px)); padding: 16px; margin: auto;
  border: 1px solid var(--linie, #C9D5E4); border-radius: 8px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
  background: var(--hintergrund, #FFFFFF); color: var(--text, #1C2833); text-align: left;
  font: normal 1rem/1.45 Arial, Helvetica, sans-serif; letter-spacing: normal; text-transform: none;
}
.hilfe-blase::backdrop { background: rgb(0 0 0 / 0.25); }
.hilfe-titel, .hilfe-kurz, .hilfe-mehr { display: block; margin-bottom: 8px; }
.hilfe-titel { color: var(--akzent, #1A4B7E); }
.hilfe-mehr { display: inline-flex; align-items: center; min-height: 44px; color: var(--akzent, #1A4B7E); }
.hilfe-zu {
  display: block; min-height: 44px; margin-top: 4px; padding: 8px 16px;
  border: 1px solid var(--akzent, #1A4B7E); border-radius: 6px; background: var(--feld, #FFFFFF); color: var(--akzent, #1A4B7E);
  font: 1rem Arial, Helvetica, sans-serif; cursor: pointer;
}
/* Ohne Popover-Unterstützung steht der Text direkt unter dem Element. */
@supports not selector(:popover-open) {
  .hilfe-pille, .hilfe-zu { display: none; }
  .hilfe-blase { display: block; position: static; margin: 8px 0; box-shadow: none; font-size: 0.9375rem; }
}

/* Handbuch */
.hilfe-gruppen, .hilfe-inhalt { margin: 16px 0; }
.hilfe-gruppen a { display: inline-block; min-height: 44px; padding: 10px 4px; }
.hilfe-inhalt li { margin: 6px 0; }
.hilfe-artikel { padding-top: 8px; border-top: 1px solid var(--linie, #C9D5E4); margin-top: 24px; }
.hilfe-artikel h2 { color: var(--akzent, #1A4B7E); }
.hilfe-kurzfassung { font-weight: bold; }
.hilfe-diagramm { margin: 12px 0 16px; }
.hilfe-diagramm img { display: block; max-width: 100%; height: auto; border: 1px solid var(--linie, #C9D5E4); background: #fff; }  /* Diagramme sind hell gezeichnet */
.hilfe-diagramm figcaption { color: var(--text-leise, #5A6A7A); font-size: 0.9375rem; margin-top: 4px; }
.hilfe-artikel table { border-collapse: collapse; margin: 8px 0; }
.hilfe-artikel th, .hilfe-artikel td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--linie, #C9D5E4); }
.hilfe-artikel code { background: var(--flaeche, #EAEFF5); padding: 0 4px; border-radius: 3px; }

/* Druck: Pillen nie; alles andere nur auf der Handbuchseite, damit z. B. der Vorbehalt
   im Preisaushang auf Papier bleibt (review G83 W2). */
@media print {
  .hilfe { display: none !important; }
  .seite-handbuch .kopf, .seite-handbuch .fuss, .seite-handbuch .umgebung, .seite-handbuch .hilfe-gruppen { display: none !important; }
  body.seite-handbuch { font-size: 11pt; }
  .seite-handbuch main { max-width: none; padding: 0; }
  .seite-handbuch .hilfe-artikel { break-before: page; border-top: 0; margin-top: 0; }
  .seite-handbuch a { color: inherit; text-decoration: none; }
}

/* Admin: Pille vor dem Titel, damit die Werkzeugknöpfe rechts sie nicht verdecken. */
#content .titelzeile .hilfe-pille { margin: -10px 0 -10px -10px; }
