body { padding-top: 4.5rem; }
.azbar .btn { margin: 0 .15rem .3rem 0; }
.snippet { color: #555; }
.card:hover { -webkit-transform: translateY(-1px); transform: translateY(-1px); -webkit-transition: -webkit-transform .12s ease-in-out; transition: -webkit-transform .12s ease-in-out; transition: transform .12s ease-in-out; transition: transform .12s ease-in-out, -webkit-transform .12s ease-in-out; }
/* Sticky Sidebar CTA */
.sticky-cta {
  position: sticky;
  top: 1rem;          /* Abstand zum oberen Rand */
  z-index: 10;
}
:root{
  --biolex-blue: #2f5fa8;     /* Cover-ähnlich */
  --biolex-blue-2: #244a86;   /* dunkler */
  --biolex-ink: #0b1a33;
}


.entry-thumb{
  width: 100%;
  aspect-ratio: 16/9;
  background: #f2f4f7;
  border-bottom: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
}

.entry-thumb img{
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center 18%;
     object-position: center 18%;   /* <<< WICHTIG: nach oben schieben */
  display: block;
}


.azbar{
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -ms-flex-wrap:wrap;
      flex-wrap:wrap;
  gap:.35rem;
  -webkit-box-pack:center;
      -ms-flex-pack:center;
          justify-content:center;   /* ← mittig */
}
/* Eintragstitel wie Buch */
.entry-title{
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:.2px;
}

/* Snippet kleiner + dunkelblau */
.entry-snippet{
  font-size:.9rem;
  color:#2c4a73;   /* Lexikon-blau */
  line-height:1.4;
}

.biolex-nav{
  background: -webkit-gradient(linear, left top, left bottom, from(var(--biolex-blue-2)), to(var(--biolex-blue)));
  background: linear-gradient(180deg, var(--biolex-blue-2), var(--biolex-blue));
  border-bottom: 1px solid rgba(255,255,255,.12);
  -webkit-box-shadow: 0 6px 18px rgba(0,0,0,.18);
          box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.biolex-nav .navbar-brand{
  font-weight: 800;
  letter-spacing: .02em;
}

.biolex-mark{
  font-size: 1.05rem;
}

.biolex-sub{
  font-weight: 500;
  opacity: .85;
  font-size: .9rem;
}

.biolex-nav .nav-link{
  opacity: .92;
}

.biolex-nav .nav-link.active{
  opacity: 1;
  font-weight: 700;
  text-decoration: none;
}

.btn-biolex{
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
}

.btn-biolex:hover{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.30);
  color: #fff;
}

.biolex-search{
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  -webkit-box-shadow: 0 16px 40px rgba(0,0,0,.18);
          box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

.biolex-nav-spacer{
  height: 62px; /* navbar Höhe */
}

/* --- Zeitstrahl --- */
.bio-timeline{
  position: relative;
  height: 74px;
  border-radius: 10px;
  background: #f8f9fa;
  overflow: hidden;
}

.bio-axis{
  position:absolute;
  left: 10px; right: 10px;
  top: 36px;
  height: 2px;
  background: rgba(0,0,0,.15);
}

.bio-lifespan{
  position:absolute;
  top: 30px;
  height: 14px;
  border-radius: 999px;
  background: rgba(13,110,253,.25);           /* bootstrap primary */
  border: 1px solid rgba(13,110,253,.45);
  -webkit-box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
          box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
}

.bio-ticks, .bio-events{
  position:absolute;
  left: 10px; right: 10px;
  top: 0; bottom: 0;
}

.bio-tick{
  position:absolute;
  top: 22px;
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,.12);
}

.bio-tick label{
  position:absolute;
  top: 34px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  font-size: 11px;
  color: rgba(0,0,0,.55);
  white-space: nowrap;
}

.bio-event{
  position:absolute;
  top: 18px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  cursor: help;
}

.bio-event .dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(25,135,84,.85);            /* bootstrap success */
  border: 1px solid rgba(25,135,84,.9);
  -webkit-box-shadow: 0 0 0 3px rgba(25,135,84,.14);
          box-shadow: 0 0 0 3px rgba(25,135,84,.14);
}

.bio-event .tag{
  margin-top: 6px;
  max-width: 220px;
  font-size: 11px;
  color: rgba(0,0,0,.7);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bio-legend-dot{
  display:inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  vertical-align: -1px;
}
.bio-legend-life{ background: rgba(13,110,253,.55); }
.bio-legend-med{ background: rgba(25,135,84,.85); }

/* Timeline dots – default */
.bio-events .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.15);
  background: #6c757d; /* fallback */
  -webkit-box-shadow: 0 1px 0 rgba(0,0,0,.06);
          box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

/* Typ m = grün */
.bio-events .dot.is-m{
  background: #198754;                 /* Bootstrap success */
  border-color: rgba(25,135,84,.35);
}

/* Typ p = gelb */
.bio-events .dot.is-p{
  background: #f5c84b;                 /* warmes gelb */
  border-color: rgba(245,200,75,.55);
}

/* optional: Hover etwas "knackiger" */
.bio-events .dot:hover{
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}


/* Druck: Timeline gern drin lassen, aber ohne „Hover“-Kram */
@media print{
  .bio-timeline{ background: #fff !important; border: 1px solid #ddd; }
  .bio-event{ cursor: default; }
}
.bio-lifespan { cursor: help; }
/* medizinisch (m) = grün */
.bio-legend-med{
  background:#2e9d62;
}

/* pflegerisch (p) = gelb */
.bio-legend-p{
  background:#f4b400;
}

/* Timeline-Dots */
.bio-event .dot.is-m{
  background:#2e9d62;
}

.bio-event .dot.is-p{
  background:#f4b400;
}
/* Optional: auf sehr kleinen Screens nicht sticky (wenn du willst) */
@media (max-width: 991.98px) {
  .sticky-cta { position: static; }
}

/* Screen: Print-Elemente verstecken */
.print-only { display: none; }

/* PRINT */
@media print {

  /* print-only sichtbar */
  .print-only { display: block !important; }

  /* Print-Bild wie „Buch“ rechts im Satzspiegel */
  .print-entry-image {
    display: block !important;
    float: right;
    max-width: 55mm;
    height: auto;
    margin: 0 0 10pt 12pt;
    border-radius: 4pt;
  }

  /* Falls du justify/hyphenation nutzt */
  #text p {
    text-align: justify;
    -ms-hyphens: auto;
        hyphens: auto;
  }
}
@media print {
  /* Nur relevanter Inhalt */
  nav, header, footer,
  .col-lg-4,           /* rechte Seite komplett weg */
  .btn, button,
  .sticky-cta,
  .mb-3 > a            /* zurück zur Liste */
  { display: none !important; }

  /* Print-only Elemente aktivieren */
  .print-only { display: block !important; }

  /* Layout */
  .container, .row, .col-lg-8 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Cards neutralisieren */
  .card, .shadow-sm {
    border: none !important;
    -webkit-box-shadow: none !important;
            box-shadow: none !important;
  }

  /* Typografie */
  #name { font-size: 22pt !important; margin-bottom: 6pt !important; }
  #author { font-size: 11pt !important; margin-bottom: 8pt !important; color: #000 !important; }
  #text { font-size: 11pt !important; line-height: 1.35 !important; }
  #biblio { font-size: 10.5pt !important; -webkit-column-break-before: page; -moz-column-break-before: page; break-before: page; }

  /* Bild (wenn vorhanden) */
  #entryImage {
    float: right;
    max-width: 45mm;
    margin: 0 0 10pt 12pt;
    border-radius: 4pt;
  }

  /* Links schwarz (optional: URL-Ausgabe aktivieren, wenn du willst) */
  a { color: #000 !important; text-decoration: none !important; }
@media print {

  /* Buchsatz-Optik */
  body {
    font-family: "Georgia", "Times New Roman", serif !important;
    color: #000 !important;
  }

  #text p { 
    text-align: justify;
    -ms-hyphens: auto;
        hyphens: auto;
  }

  /* Cards bleiben transparent (wie wir schon gemacht haben) */
  .card, .card-body, .card-header { background: transparent !important; }

  /* Bild im Druck: NICHT floaten (float ist der häufigste "weg"-Bug) */
  #imgwrap { 
    display: block !important;
    margin: 0 0 10pt 0 !important;
  }

  #entryImage {
    display: block !important;
    float: none !important;

    /* Buch-typisch: Bild rechts, aber als Block via margin-left auto */
    max-width: 55mm !important;
    height: auto !important;

    margin-left: auto !important;
    margin-right: 0 !important;
    margin-bottom: 10pt !important;

    border-radius: 4pt !important;
  }

  /* Optional: kleine Bildunterschrift falls du sie später willst */
  .print-figcap {
    font-size: 9.5pt;
    color: #333;
    text-align: right;
    margin-top: -6pt;
    margin-bottom: 10pt;
  }

  /* Literatur auf neue Seite, wie Buch */
  #biblio { -webkit-column-break-before: page; -moz-column-break-before: page; break-before: page; }

}
  /* Wasserzeichen */
body::before {
  content: "hpsmedia";
  position: fixed;
  top: 20%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(-25deg);
          transform: translate(-50%, -50%) rotate(-25deg);

  font-size: 22pt;          /* kleiner als vorher → passt besser */
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;

  color: rgba(0,0,0,0.07);  /* sehr dezent */
  z-index: 0;
  pointer-events: none;
}
@media print {

  /* Bootstrap-Karten transparent machen */
  .card,
  .card-body,
  .card-header {
    background: transparent !important;
  }

}
  /* Print-Header über Inhalt legen (z-index) */
  #printHeader, #printChicagoBox, #name, #author, #text, #biblio {
    position: relative;
    z-index: 1;
  }

  /* Chicago-Box: dezente Umrandung */
  #printChicagoBox {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 12pt;
  }

  @page { margin: 14mm; }
}