/* pocket ATA v4.13.2 – MOBILE FIRST / compact card polish. Full original modules remain unmodified.
   Quickcard/home content is supplemental. Without JS the full content stays visible. */
.pc48-home,.pc48-pocket-card,.pc48-mobile-dock,.pc48-sheet-backdrop,.pc48-search-shade,.pc48-to-top,.pc48-learning-details,.pc48-floating-compact{display:none}
:root{--pc48-ink:#102a33;--pc48-green:#0f766e;--pc48-line:#d6e3e9}
/* Close button is injected on all viewports but only belongs to mobile search. */
#pc48SearchClose{display:none!important}
.pc48-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}
@media(max-width:767px){
  html{scroll-padding-top:76px}
  .pocket-learning-notice{min-height:43px!important;padding:5px 53px 5px 12px!important;text-align:left!important;align-items:center}
  .pocket-learning-notice-copy{display:none!important}
  .pc48-learning-details{display:block;width:100%;text-align:left;font-size:11px;line-height:1.38}
  .pc48-learning-details summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:35px;font-weight:800;color:#f8fafc;cursor:pointer}
  .pc48-learning-details summary::-webkit-details-marker{display:none}
  .pc48-learning-details summary i:first-child{color:#fbbf24}
  .pc48-learning-details summary i:last-child{margin-left:auto;color:#94a3b8}
  .pc48-learning-details[open] summary i:last-child{transform:rotate(180deg)}
  .pc48-learning-details p{margin:5px 0 8px;color:#e2e8f0;font-weight:400;font-size:11px}
  html.pc48-mobile-js body[data-pc48-default="quick"]:not(.pc48-mode-full) .p46-topic-rail{display:none}
  body{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
  body.pc32-tool-open,body.pc32-result-open{padding-bottom:0}
  main.max-w-7xl{padding:12px 12px 20px!important}
  .p46-hero{border-radius:15px;padding:14px 16px;margin:0 auto 12px!important;min-height:0;gap:8px}
  .p46-hero-side{display:none!important}
  .p46-hero-kicker{margin:0 0 5px;font-size:9px;line-height:1.25}
  .p46-hero h1{font-size:clamp(20px,5.2vw,25px);line-height:1.14}
  .p46-hero-description{font-size:12px;line-height:1.38;margin:7px 0 0}
  .p46-hero-actions{margin-top:9px;gap:6px}
  .p46-hero-action{min-height:40px;font-size:.75rem;padding:7px 10px}
  body[data-pocket-page="overview"] .p46-hero-actions{display:none}
  .pc48-hero-tagline{display:none}
  .p46-topic-head{display:none}
  .p46-topic-rail{margin-bottom:10px}
  .p46-topic-scroll{padding-bottom:4px;gap:5px}
  .p46-topic-pill{min-height:40px;padding:8px 12px;font-size:.73rem}
  #p473SearchHome{display:none!important}
  body.pc48-searching #p473SearchHome{display:block!important;grid-column:1/-1;grid-row:2;position:relative;width:100%;min-width:0}
  body.pc48-searching #p473SearchHome .app-search{width:auto;margin-right:52px}
  body.pc48-searching #appHeader{z-index:95}
  body.pc48-searching #pc48SearchClose{display:grid!important;place-items:center;position:absolute;right:0;top:0;width:44px;height:44px;border:1px solid #cbd5e1;background:white;border-radius:10px;color:#334155;cursor:pointer}
  body.pc48-searching #searchResultsPanel:not(.hidden){position:fixed!important;z-index:92!important;top:var(--pc48-results-top,125px);left:0;right:0;bottom:0;overflow-y:auto;max-height:none;background:#fff}
  body.pc48-searching #searchResultsPanel #searchResultsList{max-height:none;overflow:visible;grid-template-columns:1fr}
  body.pc48-searching #pc48SearchShade{display:block;position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:49}
  .app-topbar{padding:8px 0!important;row-gap:7px!important}
  .app-brand-icon{width:34px;height:34px;border-radius:10px}
  .app-brand-name{font-size:19px}
  .app-emergency{min-height:40px!important;height:40px!important;padding:9px 8px!important}
  .app-menu-trigger{height:40px!important;min-height:40px!important}
  /* Quick homepage and document fallback: all existing homepage content remains below. */
  .pc48-home{display:block;background:#fff;border:1px solid #d6e6e8;box-shadow:0 4px 18px rgba(15,23,42,.05);border-radius:16px;padding:14px 12px;margin:0 0 8px}
  .pc48-home>h2{margin:0 0 4px;color:#103740;font-size:17px;line-height:1.23;font-weight:850}
  .pc48-home-intro{font-size:12px;line-height:1.42;color:#475569;margin:0 0 12px}
  .pc48-home-search{display:flex;align-items:center;gap:9px;width:100%;text-align:left;min-height:48px;background:#f0fdfa;color:#0f766e;border:1px solid #99ddd6;border-radius:12px;padding:10px 12px;font-weight:750;font-size:12px}
  .pc48-home-search span{flex:1;color:#334155}
  .pc48-home-search>i:last-child{font-size:12px}
  .pc48-home h3{font-size:13px;font-weight:850;color:#334155;margin:15px 0 8px}
  .pc48-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .pc48-shortcuts a{min-width:0;min-height:78px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;background:#f8fafc;border:1px solid #dce7ee;border-radius:12px;padding:8px 3px;text-align:center;color:#334155;text-decoration:none;font-size:11px;font-weight:750;line-height:1.25}
  .pc48-shortcuts a i{color:#0d9488;font-size:20px}
  .pc48-shortcuts a.is-urgent{background:#fff7f7;border-color:#fecaca;color:#991b1b}
  .pc48-shortcuts a.is-urgent i{color:#b91c1c}
  .pc48-shortcuts a:active{background:#ccfbf1;transform:scale(.98)}
  .pc48-home-personal{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:5px}
  .pc48-home-personal>div{min-width:0}
  .pc48-home-personal h3{margin-top:11px}
  .pc48-personal-list{display:flex;flex-direction:column;gap:5px}
  .pc48-personal-list a{display:block;padding:7px 8px;color:#0f766e;background:#f0fdfa;border-radius:8px;font-size:11px;font-weight:700;overflow-wrap:anywhere;line-height:1.3;text-decoration:underline;text-underline-offset:2px}
  .pc48-empty{font-size:11px;line-height:1.45;color:#64748b}
  .pc48-home-expand{margin-top:15px;width:100%;display:flex;gap:8px;justify-content:space-between;align-items:center;min-height:46px;text-align:left;border:1px solid #cbd5e1;border-radius:11px;padding:10px 12px;background:#f1f5f9;color:#0f172a;font-size:12px;font-weight:800}
  .pc48-home-expand span{flex:1}
  body.pc48-mode-full .pc48-home-expand i{transform:rotate(180deg)}
  /* Original homepage preserved behind explicit progressive disclosure on mobile. */
  html.pc48-mobile-js body[data-pocket-page="overview"]:not(.pc48-mode-full) #pc48PageWrapper{display:none}
  /* Text-heavy modules start with the short card, but ALL original markup remains on demand. */
  html.pc48-mobile-js body[data-pc48-default="quick"]:not(.pc48-mode-full) #pc48PageWrapper,
  html.pc48-mobile-js body.pc48-mode-quick #pc48PageWrapper{display:none}
  /* Compact facts + source-anchored chapter navigation */
  .pc48-pocket-card{display:block;background:#fff;border:1px solid #bfdedb;box-shadow:0 4px 18px rgba(15,23,42,.06);border-radius:16px;padding:14px 13px;margin:0 0 12px}
  .pc48-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .pc48-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#0f766e;font-weight:900}
  .pc48-save{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 10px;border-radius:10px;border:1px solid #cbd5e1;color:#0f766e;background:#f8fafc;font-size:12px;font-weight:750;white-space:nowrap}
  .pc48-save[aria-pressed="true"]{background:#ccfbf1;border-color:#0f766e}
  .pc48-pocket-card h2{font-size:18px;line-height:1.25;color:#0f172a;font-weight:850;margin:6px 0 3px}
  .pc48-card-hint{color:#64748b;font-size:11px;line-height:1.45;margin:0 0 9px}
  .pc48-card-facts{display:grid;gap:0;margin:0;border:1px solid #d9e8eb;border-radius:11px;overflow:hidden}
  /* Labels keep their words intact. If the available space is too small,
     the description moves below the label instead of overlapping it. */
  .pc48-card-facts>div{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px;row-gap:4px;padding:9px 10px;font-size:12px;line-height:1.35;min-width:0}
  .pc48-card-facts>div+div{border-top:1px solid #e2e8f0}
  .pc48-card-facts dt{flex:0 1 auto;max-width:100%;font-weight:850;color:#0f766e;min-width:0;overflow-wrap:break-word;word-break:normal;line-height:1.35}
  .pc48-card-facts dd{flex:1 1 170px;min-width:0;max-width:100%;color:#334155;margin:0;overflow-wrap:break-word}
  /* Allow long captions and buttons to wrap without overflowing narrow cards. */
  .pc48-pocket-card :is(.pc49-module-link,.pc48-card-actions button,.pc48-jump-list button){min-width:0;overflow-wrap:break-word}
  .pc48-card-actions{margin-top:12px}
  .pc48-card-actions button:not([hidden]){display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;padding:10px 12px;border-radius:10px;font-size:12px;line-height:1.35;text-align:center;font-weight:850;cursor:pointer}
  #pc48ModeFull:not([hidden]){border:1px solid #0f766e;color:#fff;background:#0f766e}
  #pc48ModeCompact:not([hidden]){border:1px solid #a1b9c2;color:#0f766e;background:#f8fafc}
  .pc48-floating-compact:not([hidden]){display:flex;position:fixed;left:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:60;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;background:#0f766e;color:white;border:2px solid white;border-radius:22px;box-shadow:0 4px 14px rgba(15,23,42,.22);font-size:12px;font-weight:800;cursor:pointer}
  body.pc48-searching .pc48-floating-compact,body.pc48-sheet-open .pc48-floating-compact,body.pc32-tool-open .pc48-floating-compact,body.pc32-result-open .pc48-floating-compact{display:none!important}
  .pc48-jumps{margin-top:9px;border-radius:10px;border:1px solid #cbd5e1;background:#f8fafc}
  .pc48-jumps[hidden]{display:none!important}
  .pc48-jumps>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:9px 11px;min-height:44px;font-size:12px;font-weight:750;cursor:pointer;color:#334155}
  .pc48-jumps>summary::-webkit-details-marker{display:none}
  .pc48-jumps>summary span{flex:1;color:#64748b;font-weight:500}
  .pc48-jumps[open]>summary>i:last-child{transform:rotate(180deg)}
  .pc48-jump-list{padding:7px;display:grid;gap:4px;border-top:1px solid #e2e8f0;max-height:260px;overflow-y:auto}
  .pc48-jump-list button{display:flex;align-items:center;text-align:left;width:100%;border:0;background:#fff;border-radius:8px;min-height:43px;padding:10px;color:#0f766e;font-weight:700;font-size:12px;overflow-wrap:anywhere}
  .pc48-jump-list button i{color:#94a3b8;margin-left:auto}
  /* 5 main actions and an always-visible emergency-learning section */
  #pc48MobileDock.pc48-mobile-dock{display:flex!important;align-items:stretch;position:fixed;left:0;right:0;bottom:0;z-index:80;padding:4px 6px calc(4px + env(safe-area-inset-bottom,0px));border-top:1px solid #cbd5e1;background:#fff;box-shadow:0 -4px 19px rgba(15,23,42,.13);min-height:72px;gap:2px}
  #pc48MobileDock .pc48-dock-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex:1 1 0;min-width:0;gap:1px}
  #pc48MobileDock a,#pc48MobileDock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:55px;padding:7px 1px;border:0;border-radius:10px;background:transparent;color:#475569;text-decoration:none;font-size:10px;line-height:1.15;font-weight:750;cursor:pointer}
  #pc48MobileDock i{font-size:19px}
  #pc48MobileDock .is-active{background:#ccfbf1!important;color:#115e59!important}
  #pc48MobileDock .pc48-dock-emergency{width:60px;flex:0 0 60px;color:#b91c1c;background:#fff1f2;border-left:1px solid #fecaca;border-radius:10px;font-size:10px}
  #pc48MobileDock .pc48-dock-emergency i{color:#b91c1c}
  body.pc32-tool-open #pc48MobileDock,body.pc32-result-open #pc48MobileDock{display:none!important}
  body.pc48-searching #pc48MobileDock{display:none!important}
  /* accessible modal sheet for favorites and module list */
  #pc48SheetBackdrop.pc48-sheet-backdrop:not([hidden]){display:flex;align-items:flex-end;justify-content:center;position:fixed;inset:0;z-index:105;background:rgba(15,23,42,.55)}
  #pc48Sheet{display:flex;flex-direction:column;width:100%;max-height:min(82vh,740px);overflow:hidden;background:#fff;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -10px 36px rgba(15,23,42,.15)}
  .pc48-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:14px 16px;border-bottom:1px solid #e2e8f0}
  .pc48-sheet-head strong{font-size:17px;color:#0f172a}
  .pc48-sheet-head button{width:44px;height:44px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc}
  #pc48SheetBody{padding:14px 14px 18px;overflow-y:auto;overscroll-behavior:contain}
  #pc48SheetBody .pc48-sheet-section{margin:0 0 12px}
  #pc48SheetBody h3{font-size:12px;font-weight:900;color:#475569;margin:0 0 7px;text-transform:uppercase;letter-spacing:.04em}
  #pc48SheetBody .pc48-sheet-links{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  #pc48SheetBody a{display:flex;align-items:center;gap:8px;min-height:48px;border:1px solid #dbe4e9;border-radius:10px;padding:8px;color:#0f766e;background:#f8fafc;text-decoration:none;font-size:12px;font-weight:750;line-height:1.35;overflow-wrap:anywhere}
  #pc48SheetBody a i{font-size:15px}
  #pc48SheetBody p{font-size:13px;color:#64748b}
  .pc48-to-top:not([hidden]){position:fixed;right:12px;bottom:calc(82px + env(safe-area-inset-bottom,0px));z-index:60;display:grid;place-items:center;width:44px;height:44px;background:#0f766e;color:white;border-radius:50%;border:2px solid white;box-shadow:0 4px 14px rgba(15,23,42,.25)}
  body.pc48-searching .pc48-to-top,body.pc48-sheet-open .pc48-to-top{display:none!important}
  #pc48PageWrapper .tab-section{scroll-margin-top:80px}
  #pc48PageWrapper [id^="pc48-section-"]{scroll-margin-top:85px}
  .pc48-home :is(a,button):focus-visible,.pc48-pocket-card :is(button,summary):focus-visible,.pc48-floating-compact:focus-visible,#pc48MobileDock :is(a,button):focus-visible,#pc48Sheet :is(a,button):focus-visible{outline:3px solid #14b8a6;outline-offset:2px}
}
@media(min-width:768px){#pc48MobileDock,.pc48-sheet-backdrop,.pc48-home,.pc48-pocket-card,.pc48-floating-compact{display:none!important}}
@media(max-width:370px){
  .pc48-card-facts>div{column-gap:8px;row-gap:3px;font-size:11.5px}
  /* The pediatric calculator title and badge must not push each other off-screen. */
  #tab-tools .bg-white.rounded-2xl > .flex.items-center.justify-between{flex-wrap:wrap;gap:8px}
  #tab-tools .bg-white.rounded-2xl > .flex.items-center.justify-between > h3{min-width:0;overflow-wrap:break-word}
  #tab-tools .bg-white.rounded-2xl > .flex.items-center.justify-between > span{max-width:100%;flex-shrink:1}
  .pc48-shortcuts a{font-size:10px}
  .pc48-dock-emergency{width:52px!important;flex-basis:52px!important}
  #pc48MobileDock a,#pc48MobileDock button{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.pc48-home-expand i,.pc48-shortcuts a{transition:none}}

/* v4.8.5: Hinweis-Schließen liegt über dem aufklappbaren Lehrtext,
   so dass ein Fingertipp nicht versehentlich das <summary> aktiviert. */
.pocket-learning-notice-close {
  z-index:5;
  pointer-events:auto;
  -webkit-tap-highlight-color:transparent;
}
@media (max-width:767px) {
  .pc48-learning-details > summary { padding-right:4px; }
  .pocket-learning-notice-close { top:50%; right:4px; }
}
