/* ── COMPARE SLIDER ── */

/* ── CONTENT VIEW (Menü-Seiten) ── */
#content-view {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  background: var(--white);
  z-index: 8;
  align-items: flex-start;
  justify-content: center;
  padding: 60px var(--pad);
  scrollbar-width: none;
  cursor: pointer;
}
#content-view:has(#content-body.hist-view) {
  padding-top: var(--pad);
}
#content-view::-webkit-scrollbar {
  width: 0;
}
#content-view.on {
  display: flex;
}
#content-body {
  max-width: 560px;
  width: 100%;
  cursor: default;
}
#content-body p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.85;
  margin-bottom: 1.5em;
}
#content-body p:last-child {
  margin-bottom: 0;
}
.invoice-list {
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}
.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.invoice-row:last-child {
  border-bottom: none;
}
.invoice-year {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--black);
}
.invoice-dl {
  font-family: var(--sans);
  font-size: var(--t-label-groesse);
  font-weight: var(--t-label-gewicht);
  letter-spacing: var(--t-label-sperrung);
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.15s;
}
.invoice-dl:hover {
  color: var(--black);
}
/* Der Kontaktbogen (große Historie) hat seine eigenen Formatvorlagen:
   css/contact-sheet/sheet.css und cards.css. */
/* Beide Leisten ausblenden, wenn der Content-View offen ist */
body.cv-open #hist,
body.cv-open #hist-oben {
  display: none !important;
}
/* Lightbox-Fokus: alles ausblenden, inkl. Logo */
body.lb-open .panel,
body.lb-open aside.ctx,
body.lb-open footer,
body.lb-open .edge-hint,
body.lb-open #ctx-line,
body.lb-open #panel-line,
body.lb-open .panel-pfeil,
body.lb-open .hdr-nav,
body.lb-open #credit-display,
body.lb-open .hdr {
  display: none !important;
}
/* Lightbox */
#cv-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--white);
  z-index: 10;
  cursor: zoom-out;
}
#cv-lightbox.on {
  display: flex;
}
#cv-lb-num {
  display: none !important;
}
#cv-lb-del {
  display: none !important;
}
/* Lightbox-Bild: per JS auf oz-Fläche positioniert */
#cv-lb-img {
  position: fixed;
  object-fit: contain;
  display: block;
  cursor: zoom-out;
}
.cv-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--light);
  padding: 20px;
  transition: color 0.15s;
}
.cv-lb-nav:hover {
  color: var(--black);
}
#cv-lb-prev {
  left: 0;
}
#cv-lb-next {
  right: 0;
}

.cv-leer {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
}

/* Verweise im Fließtext der Inhaltsseiten */
#content-text a.text-link {
  color: inherit;
  text-decoration: underline;
}
