/* PATHO-LOGISCH HOMEPAGE 2026 – nur #pl-home-2026 beeinflussen.
   Für Joomla 5 / T4 BS5 Blank; kein globaler Template-Override. */
#pl-home-2026 {
  --pl-navy: #35384d;
  --pl-ink: #20253d;
  --pl-muted: #72798d;
  --pl-rose: #b03d86;
  --pl-purple: #74428f;
  --pl-light: #f5f6fa;
  --pl-border: #e6e8ef;
  --pl-radius: 17px;
  --pl-shadow: 0 12px 32px rgb(32 41 67 / 5%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--pl-ink);
  line-height: 1.5;
  isolation: isolate;
  /* Funktioniert auch in einem begrenzenden T4 Component-Container. */
  width: min(calc(100vw - 32px), 1760px);
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}
#pl-home-2026, #pl-home-2026 * {box-sizing: border-box;}
#pl-home-2026 a {text-decoration: none;}
#pl-home-2026 a:focus-visible, #pl-home-2026 button:focus-visible,
#pl-home-2026 input:focus-visible, #pl-home-2026 summary:focus-visible {outline:3px solid #805ac8;outline-offset:3px;}
#pl-home-2026 .pl-sr-only {position:absolute; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
#pl-home-2026 .pl-inner {width:min(100% - 56px, 1660px); margin-inline:auto;}
#pl-home-2026 .pl-hero {
  position: relative; min-height: 390px; display:flex;align-items:center;
  overflow:hidden; border-radius: 21px; isolation:isolate;
  background: #f7e8f2 url('/images/patho-home-2026/hero-histology.jpg') center 48%/cover no-repeat;
  margin: 0 0 30px; box-shadow:var(--pl-shadow);
}
#pl-home-2026 .pl-hero-shade {position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.89) 25%,rgba(255,255,255,.38) 59%,rgba(255,255,255,.02) 95%);}
#pl-home-2026 .pl-hero-content {position:relative; padding-block:44px 50px;}
#pl-home-2026 .pl-eyebrow {display:inline-flex;align-items:center;gap:9px;letter-spacing:.1em;text-transform:uppercase;font-size:11px;font-weight:800;color:#6e477b;margin-bottom:12px;}
#pl-home-2026 .pl-eyebrow-dot {width:8px;height:8px;border-radius:50%;background:var(--pl-rose);box-shadow:0 0 0 5px rgb(176 61 134 / 11%);}
#pl-home-2026 h1,#pl-home-2026 h2,#pl-home-2026 h3,#pl-home-2026 p {margin-top:0;}
#pl-home-2026 .pl-hero h1 {font-size:clamp(36px,4.25vw,62px);font-weight:830;line-height:1.08;letter-spacing:-.052em;margin:0 0 13px;color:#1f263d;max-width:800px;}
#pl-home-2026 .pl-hero h1 span {color:#873378;}
#pl-home-2026 .pl-hero-lead {font-size:clamp(15px,1.45vw,19px);color:#384059;max-width:540px;line-height:1.48;margin-bottom:22px;}
#pl-home-2026 .pl-search {max-width:760px; min-height:60px;display:flex;align-items:center;gap:10px;padding:6px 6px 6px 19px;background:white;border:1px solid rgb(148 108 155 / 20%);border-radius:36px;box-shadow:0 14px 30px rgb(62 37 80 / 13%);}
#pl-home-2026 .pl-search-icon {font-size:29px;line-height:1;color:#59637a;}
#pl-home-2026 .pl-search input {width:100%;flex:1;min-width:0;border:0;outline:none!important;padding:10px 2px;font-size:14px;background:transparent;color:var(--pl-ink);box-shadow:none;}
#pl-home-2026 .pl-search input:focus {box-shadow:none;}
#pl-home-2026 .pl-search input::placeholder {color:#777f92;opacity:1;}
#pl-home-2026 .pl-search button {border:0;flex:0 0 auto;padding:12px 26px;border-radius:26px;background:var(--pl-navy);color:white;font-size:14px;font-weight:700;cursor:pointer;transition:background .18s;}
#pl-home-2026 .pl-search button:hover {background:#20243b;}
#pl-home-2026 .pl-search button span{margin-left:9px;}
#pl-home-2026 .pl-quicktags {display:flex;gap:8px;flex-wrap:wrap;align-items:center;max-width:890px;margin-top:15px;}
#pl-home-2026 .pl-quicktag-label {font-size:12px;color:#68677b;font-weight:700;}
#pl-home-2026 .pl-quicktags a {font-size:11px;color:#343149;border:1px solid rgb(110 75 132 / 16%);padding:7px 12px;border-radius:22px;background:rgb(255 255 255 / 82%);transition:background .2s, transform .2s;}
#pl-home-2026 .pl-quicktags a:hover {background:white;transform:translateY(-2px);}
#pl-home-2026 .pl-hero-caption {position:absolute;bottom:14px;right:18px;padding:5px 10px;border-radius:9px;background:rgb(255 255 255 / 82%);font-size:10px;color:#4a4560;}
#pl-home-2026 .pl-section {margin-block:30px 24px;}
#pl-home-2026 .pl-section-top {display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:15px;}
#pl-home-2026 .pl-kicker {color:var(--pl-rose);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.105em;}
#pl-home-2026 h2 {font-size:clamp(19px,1.8vw,24px);font-weight:800;color:#202640;letter-spacing:-.025em;margin:3px 0 0;line-height:1.2;}
#pl-home-2026 .pl-section-hint {font-size:12px;color:var(--pl-muted);margin-bottom:3px;}
#pl-home-2026 .pl-tool-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;}
#pl-home-2026 .pl-tool-card {min-width:0;display:block;background:#fff;border:1px solid var(--pl-border);border-radius:var(--pl-radius);overflow:hidden;color:var(--pl-ink);box-shadow:var(--pl-shadow);transition:transform .19s ease,box-shadow .19s ease,border-color .19s ease;}
#pl-home-2026 .pl-tool-card:hover {transform:translateY(-5px);box-shadow:0 17px 33px rgb(38 42 70 / 12%);border-color:#c6b5d4;}
#pl-home-2026 .pl-tool-card img {width:100%;height:170px;display:block;object-fit:cover;object-position:center;background:#eef0f6;}
#pl-home-2026 .pl-tool-body {position:relative;display:block;padding:11px 36px 14px 13px;min-height:77px;}
#pl-home-2026 .pl-tool-body strong{display:block;font-size:15px;line-height:1.25;font-weight:800;color:#20253b;}
#pl-home-2026 .pl-tool-body small{display:block;font-size:12px;line-height:1.3;color:var(--pl-muted);margin-top:4px;}
#pl-home-2026 .pl-arrow{position:absolute;right:12px;bottom:17px;border:1px solid #e4e6ed;background:#fff;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:14px;color:#293348;}
#pl-home-2026 .pl-lower {display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:20px;align-items:start;margin-top:33px;}
#pl-home-2026 .pl-pathobook {grid-column:1/-1;}
#pl-home-2026 .pl-panel {min-width:0;border:1px solid var(--pl-border);background:#fff;border-radius:var(--pl-radius);overflow:hidden;box-shadow:var(--pl-shadow);}
#pl-home-2026 .pl-panel-header {display:flex;align-items:center;justify-content:space-between;min-height:85px;padding:18px 19px 13px;border-bottom:1px solid #eff0f5;gap:10px;}
#pl-home-2026 .pl-panel-header h2 {font-size:17px;line-height:1.24;}
#pl-home-2026 .pl-panel-ornament {font-size:24px;color:#b8a6bf;font-weight:400;}
#pl-home-2026 .pl-panel-content {padding:16px 18px 20px;min-width:0;}
#pl-home-2026 .pl-pathobook-feed {overflow-wrap:anywhere;}
#pl-home-2026 .pl-pathobook-feed img{max-width:100%;height:auto;}
#pl-home-2026 .pl-pathobook-feed a{color:#65439b;}
#pl-home-2026 .pl-pathobook-feed :is(h2,h3,h4){font-size:1.0rem;line-height:1.35;}
#pl-home-2026 .pl-news-entry {display:flex;align-items:start;gap:12px;padding:12px 0;border-bottom:1px solid #eef0f5;}
#pl-home-2026 .pl-news-entry:first-child {padding-top:0;}
#pl-home-2026 .pl-news-entry:last-child {border-bottom:0;}
#pl-home-2026 .pl-news-entry>img {width:56px;height:56px;border-radius:8px;object-fit:cover;background:#f2f3f6;flex:0 0 auto;}
#pl-home-2026 .pl-news-entry>div {min-width:0;}
#pl-home-2026 .pl-news-entry small {font-size:10px;color:#858ca0;}
#pl-home-2026 .pl-news-entry h3 {font-size:14px;line-height:1.35;font-weight:800;margin:2px 0 4px;color:var(--pl-ink);}
#pl-home-2026 .pl-news-entry p {font-size:12px;color:#596075;line-height:1.45;margin:0;}
#pl-home-2026 .pl-news-entry a,#pl-home-2026 .pl-events a{color:#5d43a6;}
#pl-home-2026 .pl-news-entry a:hover,#pl-home-2026 .pl-events a:hover{text-decoration:underline;}
#pl-home-2026 details>summary {list-style:none;display:flex;align-items:center;justify-content:space-between;gap:7px;cursor:pointer;font-size:12px;font-weight:750;color:#634b96;user-select:none;}
#pl-home-2026 details>summary::-webkit-details-marker {display:none;}
#pl-home-2026 details>summary>span {font-size:18px;transition:transform .2s;}
#pl-home-2026 details[open]>summary>span {transform:rotate(180deg);}
#pl-home-2026 .pl-more-news>summary {padding:14px 1px 2px;}
#pl-home-2026 .pl-more-news .pl-news-entry:first-of-type {margin-top:10px;}
#pl-home-2026 .pl-side-stack {display:grid;gap:17px;min-width:0;}
#pl-home-2026 .pl-journal-mini {display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f0f1f5;}
#pl-home-2026 .pl-journal-mini:first-child{padding-top:0;}
#pl-home-2026 .pl-journal-mini>span {flex:0 0 auto;width:38px;height:41px;border-radius:9px;background:linear-gradient(135deg,#ddd8e7,#f1e8ec);display:grid;place-items:center;font-size:12px;color:#775e81;font-weight:900;}
#pl-home-2026 .pl-journal-mini strong {display:block;font-size:12px;color:#273047;}
#pl-home-2026 .pl-journal-mini small {display:block;font-size:10px;color:var(--pl-muted);margin-top:2px;}
#pl-home-2026 .pl-publications>summary {padding:17px 0 0;}
#pl-home-2026 .pl-publications-body {margin-top:15px;border-top:1px solid var(--pl-border);padding-top:12px;max-height:430px;overflow:auto;font-size:12px;overflow-wrap:anywhere;}
#pl-home-2026 .pl-publications-body h2,#pl-home-2026 .pl-publications-body h3,#pl-home-2026 .pl-publications-body h4,#pl-home-2026 .pl-publications-body h5 {font-size:13px;line-height:1.35;}
#pl-home-2026 .pl-publications-body a {overflow-wrap:anywhere;}
#pl-home-2026 .pl-publications-body :is(ul,ol) {padding-left:20px;}
#pl-home-2026 .pl-events-content {font-size:12px;color:#5d6375;}
#pl-home-2026 .pl-events-content :is(h3,h4){font-size:13px;}
#pl-home-2026 .pl-shortcuts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-top:24px;margin-bottom:34px;}
#pl-home-2026 .pl-shortcut {min-width:0;display:flex;gap:13px;align-items:center;position:relative;min-height:96px;padding:17px 36px 17px 15px;color:#263047;border:1px solid var(--pl-border);border-radius:15px;background:linear-gradient(135deg,#f8f9fc,#eef0f6);transition:transform .2s,border-color .2s;}
#pl-home-2026 .pl-shortcut:hover{transform:translateY(-3px);border-color:#cfc2da;}
#pl-home-2026 .pl-shortcut-icon {font-size:30px;font-weight:800;line-height:1;color:#35384d;}
#pl-home-2026 .pl-shortcut strong {font-size:12px;display:block;color:var(--pl-ink);}
#pl-home-2026 .pl-shortcut small {display:block;font-size:11px;line-height:1.35;color:#626a7c;margin-top:3px;}
#pl-home-2026 .pl-shortcut-go {position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:18px;color:#596278;}
@media(max-width:1100px){#pl-home-2026 .pl-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#pl-home-2026 .pl-lower{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#pl-home-2026 .pl-side-stack{grid-column:auto;grid-template-columns:1fr;}#pl-home-2026 .pl-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:740px){#pl-home-2026 .pl-inner{width:min(100% - 22px, 1660px)}#pl-home-2026 .pl-hero{border-radius:14px;min-height:350px}#pl-home-2026 .pl-hero-content{padding-block:34px 42px}#pl-home-2026 .pl-hero-shade{background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.7))}#pl-home-2026 .pl-search{min-height:52px;padding-left:12px}#pl-home-2026 .pl-search button{padding:11px 16px}#pl-home-2026 .pl-search button span{display:none}#pl-home-2026 .pl-section-hint,#pl-home-2026 .pl-hero-caption{display:none}#pl-home-2026 .pl-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}#pl-home-2026 .pl-tool-card img{height:110px}#pl-home-2026 .pl-tool-body{padding:10px 31px 13px 10px}#pl-home-2026 .pl-lower{grid-template-columns:1fr}#pl-home-2026 .pl-side-stack{grid-column:auto;grid-template-columns:1fr;}#pl-home-2026 .pl-panel-header{min-height:70px}#pl-home-2026 .pl-shortcuts{gap:10px}#pl-home-2026 .pl-shortcut{padding:14px 28px 14px 10px;gap:9px}#pl-home-2026 .pl-shortcut-icon{font-size:22px}}
@media(max-width:425px){#pl-home-2026 .pl-hero h1{font-size:35px}#pl-home-2026 .pl-search input{font-size:12px}#pl-home-2026 .pl-search button{font-size:12px;padding-inline:12px}#pl-home-2026 .pl-tool-body strong{font-size:12px}#pl-home-2026 .pl-tool-body small{font-size:10px}#pl-home-2026 .pl-shortcuts{grid-template-columns:1fr}#pl-home-2026 .pl-shortcut{min-height:67px}#pl-home-2026 .pl-news-entry>img{width:49px;height:49px}}
@media(prefers-reduced-motion:reduce){#pl-home-2026 *,#pl-home-2026 *::before,#pl-home-2026 *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important;}}


/* V2: dynamische Pathobook-Karten (nur bei erkannter gemeinsamer Kartenliste). */
#pl-home-2026 .pl-pathobook-feed .pl-pathobook-card-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:start; gap:20px;
}
#pl-home-2026 .pl-pathobook-feed .pl-pathobook-card-grid > :not(.pl-pathobook-card) {grid-column:1/-1;}
#pl-home-2026 .pl-pathobook-feed .pl-pathobook-card-grid > .pl-pathobook-card {
  grid-column:auto; min-width:0; width:100%!important;max-width:none!important; margin:0!important;
}
#pl-home-2026 .pl-pathobook-feed .pl-pathobook-card {min-width:0;}

/* V3: bestehender ICDnator (bereits global geladen), keine zweite Kopie. */
#ICDnator.overlay3 {
  position:fixed; inset:0; width:100%;height:100%; overflow-y:auto;
  background:rgba(21,25,43,.7); z-index:12500;
  display:none; padding:24px;box-sizing:border-box;
}
#ICDnator .immuntable {
  background:#fff; border-radius:16px; width:min(980px,100%);
  max-height:calc(100dvh - 48px);height:auto;overflow:auto;
  margin:0 auto;padding:18px 24px 26px;box-sizing:border-box;
  box-shadow:0 25px 80px rgba(0,0,0,.3);
}
#ICDnator .overlaybutton {float:right;cursor:pointer;background:#35384d;color:#fff;border-radius:8px;padding:8px 12px;}
#ICDnator .nodisp {display:none!important;}
#ICDnator .inp {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;}
#ICDnator .inp input {flex:1 1 270px;min-width:0;}
#ICDnator .inp button {flex:0 0 auto;white-space:nowrap;background:#35384d;border-color:#35384d;color:#fff;}
#ICDnator .icdcont .table-responsive {max-height:50dvh;overflow:auto;}
#ICDnator thead {position:sticky;top:0;}
#ICDnator .pl-icd-status {font-size:14px;color:#575f73;padding:4px 0;}
body.pl-icd-open {overflow:hidden;}
/* Globales ImageBase-Popup muss ueber dem T4-Header liegen. */
#IB_modal.IB_modal {z-index:12400;}
@media(max-width:1150px){#pl-home-2026 .pl-pathobook-feed .pl-pathobook-card-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:860px){#pl-home-2026 .pl-lower{grid-template-columns:1fr!important;}#pl-home-2026 .pl-pathobook{grid-column:auto;}#pl-home-2026 .pl-side-stack{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:740px){#pl-home-2026 {width:calc(100vw - 16px);}#pl-home-2026 .pl-tool-grid {grid-template-columns:repeat(2,minmax(0,1fr))}#pl-home-2026 .pl-tool-card img{height:126px}#pl-home-2026 .pl-pathobook-feed .pl-pathobook-card-grid{grid-template-columns:1fr!important;}#pl-home-2026 .pl-side-stack{grid-template-columns:1fr}#ICDnator.overlay3{padding:8px;}#ICDnator .immuntable{max-height:calc(100dvh - 16px);padding:12px;}}


/* V5 – ImageBase interne Tools: X war per .d-none in ImageBase.js versteckt.
   Nur diese Startseite lädt dieses Stylesheet. Originaldateien unverändert. */
#IB_modal #IB_externalClose {
  /* V6 uses its own direct-child X; hide the old X to avoid two overlapping buttons. */
  display: none !important;
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 10060 !important;
  cursor: pointer;
  pointer-events: auto;
}
#desktop-close-btn, #wiki-close-btn { cursor: pointer; }


/* V7: verlässliche Schließen-Schaltfläche als DIREKTES Kind des globalen
   ImageBase-Overlays. Sie liegt ausdrücklich außerhalb des iframe. */
#IB_modal #pl-home-ib-close {
  position: fixed !important;
  top: max(15px, env(safe-area-inset-top, 0px)) !important;
  right: max(18px, env(safe-area-inset-right, 0px)) !important;
  z-index: 2147483600 !important;
  width: 48px !important; height: 48px !important;
  padding: 0 !important; border: 2px solid #dfe3ec !important;
  border-radius: 50% !important; background: #fff !important;
  color: #263047 !important; font-size: 30px !important;
  font-family: Arial, sans-serif !important; font-weight: 400 !important;
  line-height: 44px !important; text-align: center !important;
  box-shadow: 0 4px 22px rgba(0,0,0,.22) !important;
  cursor: pointer !important; display:block !important;
  visibility:visible !important; pointer-events: auto !important;
}
#IB_modal #pl-home-ib-close:hover {background:#f2eff7 !important;}
#ICDnator .pl-icd-title {font-size:clamp(24px,3vw,40px);color:#35384d;font-weight:800;margin:8px 0 16px;}
#ICDnator .pl-icd-results {margin-top:14px;}
#ICDnator .pl-icd-status[hidden]{display:none!important;}
#ICDnator .overlaybutton:focus-visible,#IB_modal #pl-home-ib-close:focus-visible {outline:3px solid #8153b7;outline-offset:3px;}

/* V9: Nur auf der Teststartseite. Alte doppelte Modalcontainer/-animationen
   koennen den iframe unsichtbar machen. Das eigentliche Modal wird weiterhin
   ueber #IB_modal.style.display gesteuert. */
html[data-pl-home-initialized="v9"] #IB_modal .IB_modal-inhalt {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  width: 100% !important;
  min-width: 0;
  min-height: 0;
}
html[data-pl-home-initialized="v9"] #IB_modal #IB_eingebettete-seite {
  display: block !important;
  flex: 1 1 auto;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
}

/* V10: News list scrolls instead of expanding. Cards align at the lower edge. */
@media(min-width:861px){
 #pl-home-2026 .pl-lower{align-items:stretch;}
 #pl-home-2026 .pl-news{height:100%;min-height:0;display:flex;flex-direction:column;}
 #pl-home-2026 .pl-news>.pl-panel-content{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdb1ce #f1eff6;max-height:575px;}
 #pl-home-2026 .pl-side-stack{height:100%;grid-template-rows:auto minmax(0,1fr);}
 #pl-home-2026 .pl-events{min-height:0;display:flex;flex-direction:column;}
 #pl-home-2026 .pl-events>.pl-panel-content{flex:1;overflow-y:auto;min-height:0;max-height:460px;}
}
#pl-home-2026 .pl-more-news{display:block;}
#pl-home-2026 .pl-news>.pl-panel-content{scrollbar-gutter:stable;}
#pl-home-2026 .pl-news-entry{scroll-margin-top:15px;}
@media(max-width:860px){
 #pl-home-2026 .pl-news>.pl-panel-content{max-height:410px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;}
 #pl-home-2026 .pl-events>.pl-panel-content{max-height:420px;overflow:auto;}
}
