/* Frontend-Runde R5 (15.10.2026, OpenAI + eigener Review): globale Korrekturen fuer alle oeffentlichen Seiten von doktorfy.de */
html{scroll-padding-top:96px}
[id]{scroll-margin-top:96px}
body.pub-page{--gray-3:#4b5563;--gray-4:#4b5563}
/* Eingabefelder: ein einziger, klarer Fokusrahmen */
.auth-main input:focus,.pub-page input:focus,.pub-page textarea:focus,.pub-page select:focus{outline:none!important;border-color:#1a9fd4!important;box-shadow:0 0 0 3px rgba(26,159,212,.18)!important}
/* Promo-Leiste schliessbar */
.hd-promo{position:relative}
.hd-promo-x{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:none;color:#fff;cursor:pointer;display:grid;place-items:center;opacity:.85}
.hd-promo-x:hover{opacity:1}
.hd-promo-x svg{width:16px;height:16px}
.hd-promo[hidden]{display:none!important}
/* Login/Registrierung: reduzierte Navigation, keine App-Leiste */
body:has(.auth-main) .hd-promo,body:has(.auth-main) .hd-nav,body:has(.auth-main) .hd-burger,body:has(.auth-main) .hd-sbtn,body:has(.auth-main) .hd-head-cta{display:none!important}
body:has(.auth-main) .hd-head-in{justify-content:space-between}
/* FAQ: Chips innerhalb des Randes umbrechen, ganze Zeile als Touch-Ziel */
:has(>.fq-chip){display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:center}
a.fq-chip{max-width:100%;white-space:normal;text-align:center;min-height:44px;display:inline-flex;align-items:center}
.pub-accordion-btn,.faq-q,.pc-faq summary{width:100%;min-height:52px;cursor:pointer}
/* Blog: Kategorien scrollbar, Karten komplett klickbar, Metadaten kontrastreicher */
.blog-cats{display:flex;overflow-x:auto;flex-wrap:nowrap;gap:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.blog-cats::-webkit-scrollbar{display:none}
.blog-cats>*{flex:none}
.blog-list>*{position:relative}
.blog-card-link::after{content:"";position:absolute;inset:0}
.blog-card-meta,.blog-card-footer{color:#475467!important}
/* Apotheken: Karten klickbar, Hilfsleiste nicht ueber Karten */
.apo-card{cursor:pointer}
/* Shop: Banner mobil begrenzt, Feed nicht von Sticky-Leiste verdeckt */
@media(max-width:560px){
  .shop-banner-slot{max-height:150px;overflow:hidden;border-radius:16px}
  body:has(.mobile-filter-bar) main,body:has(.mobile-filter-bar) .shop-layout,body:has(.mobile-filter-bar) #productGrid{padding-bottom:92px}
  .blog-card-title{-webkit-line-clamp:3!important}
  body.pub-page h1:not(.hd h1):not(.hd-final h2){font-size:clamp(28px,8.4vw,36px)!important;line-height:1.15}
  .zl-nl-section{padding:28px 0!important}
  .zl-nl-title{font-size:22px!important}
  .zl-nl-sub{font-size:14px!important;margin-bottom:12px!important}
  .zl-nl-badges{display:none!important}
  .zl-nl-form .zl-nl-field:first-child{display:none}
  #zlai-teaser{display:none!important}
  #zlai-fab{right:16px!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;width:44px!important;height:44px!important;z-index:900!important}
  body{padding-bottom:0}
  .hd-faqhead{flex-direction:column;align-items:flex-start;gap:8px}
  .hd-phero-img{height:min(230px,56vw)}
  .hd-phero .hd-lead{font-size:16px}
}
.hd-phero-cta{margin-top:4px}
@media(max-width:560px){.hd .hd-phero-cta{width:100%;height:52px;font-size:16px;border-radius:14px}}
/* Batch 2 */
.pub-condition-desc{-webkit-line-clamp:unset!important;display:block!important;overflow:visible!important}
.pub-condition-card{position:relative}
.pub-condition-card::after{content:"\203A";position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:22px;color:#98a2b3}
.apo-card-name{-webkit-line-clamp:3!important}
.hd-icon[aria-current=page]{color:#1a9fd4}
.hd-stickycta{display:none}
@media(max-width:560px){
  .hd-pal-go{display:grid!important;right:8px;top:8px;width:26px;height:26px}
  .hd-pcarousel{grid-auto-columns:78%;scroll-padding:0 16px}
  .hd-stickycta{display:block;position:fixed;left:0;right:0;bottom:0;z-index:800;background:#fff;border-top:1px solid #e5eaf0;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}
  .hd-stickycta a{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:12px;background:#0a0a0a;color:#fff!important;font-weight:700;font-size:15.5px;text-decoration:none}
  body.hd-has-sticky{padding-bottom:76px}
  body.hd-has-sticky #zlai-fab{bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
  html.hd-menu-open .hd-stickycta{display:none}
}
/* Shop: Header-Stapel (Header 64/58 px, Suchleiste nicht sticky) und Ergebnisleiste darunter */
.hd-sbar{position:static!important}
.result-bar{top:58px!important}
@media(max-width:1020px){.result-bar{top:64px!important}}
body.pub-page h1,body.pub-page h2{overflow-wrap:anywhere;hyphens:auto}
@media(max-width:560px){body.pub-page h1:not(.hd h1):not(.hd-final h2){font-size:clamp(26px,7.4vw,34px)!important}}
/* Batch 3 (R5): Shop, Apotheken, Kontakt, Warenkorb, Login, FAQ, Preise */
.shop-banner-slot{max-height:320px;overflow:hidden}
.faq-jump{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.faq-jump a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;background:#eaf7ff;color:#101828!important;font-size:14px;font-weight:600;text-decoration:none}
.pub-accordion-btn{min-height:56px}
.pub-accordion-btn:focus-visible{outline:2px solid #1a9fd4;outline-offset:-2px}
.apo-card{position:relative}
.apo-card-link::after{content:"";position:absolute;inset:0;z-index:1}
.apo-card::after{content:"Apotheke ansehen \2192";display:block;margin-top:10px;font-size:14px;font-weight:700;color:#1384ba}
.apo-card:hover,.apo-card:focus-within{border-color:#1a9fd4;box-shadow:0 8px 24px -16px rgba(16,60,90,.4)}
.apo-card:active{transform:translateY(1px)}
body:has(.pg-section) .pub-page-hero{padding-bottom:32px!important}
body:has(.pg-section) .pg-section{padding-top:24px!important}
.rec-grid{scroll-snap-type:x mandatory}
.rec-card{scroll-snap-align:start;min-width:180px}
.rec-mfr,.rec-form-badge{color:#475467!important}
.rec-name{-webkit-line-clamp:3!important}
.auth-main a,.auth-main .forgot{display:inline-flex;align-items:center;min-height:44px;color:#344054}
.auth-main a:hover,.auth-main a:focus-visible{color:#1384ba;text-decoration:underline}
@media(max-width:560px){
  .result-bar .sb-mobile-toggle,.result-bar select{display:none!important}
  .result-bar button[onclick*="Pharm"]::after,.result-bar button[onclick*="pharm"]::after{content:" Apotheke";font-size:13px;margin-left:6px;font-weight:600}
  .shop-banner-slot{max-height:140px}
  :has(>.apo-chip){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:8px}
  :has(>.apo-chip)::-webkit-scrollbar{display:none}
  .apo-chip{flex:none}
  .apo-search{min-height:56px}
  .apo-card{padding:20px 16px 16px}
  .rec-grid{padding:0 16px;scroll-padding:0 16px}
  .rec-card{min-width:78%}
  .rec-card-img{aspect-ratio:4/3;overflow:hidden}
  .rec-card-img img{width:100%;height:100%;object-fit:contain}
  .cart-empty{padding:32px 16px!important}
  .auth-main .sub{margin-bottom:24px}
  .auth-main .g{margin-bottom:20px}
  .price-card{display:flex;flex-direction:column}
  .price-card .price-divider{order:4}
  .price-card .price-features{order:5}
  .price-card .pub-btn,.price-card [class*="btn"]{order:3;margin:14px 0 6px}
}
.apo-tools,.apo-search-wrap,.apo-chips{min-width:0;max-width:100%}
.apo-chips{overflow-x:auto}
@media(max-width:560px){
  :has(>.apo-chip){justify-content:flex-start!important}
  .result-bar>button:not(.sb-mobile-toggle)::after{content:" Apotheke";font-size:13px;margin-left:6px;font-weight:600}
}
.faq-q{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}
.faq-item:has(.faq-q[aria-expanded=true]),.faq-item.open{background:#f4fbff}
body:has(.pg-section) .pub-page-hero{padding-bottom:16px!important;margin-bottom:0!important;min-height:0!important}
body:has(.pg-section) .pg-section{padding-top:0!important;margin-top:0!important}
div:has(>a[href="/apotheken-staedte"]){display:block!important;margin:6px 0 4px}
@media(min-width:1021px){
  .sidebar div:has(>#sortSel),.sidebar *:has(+ div > #sortSel),.sidebar *:has(+ #sortSel){display:none!important}
}
.apo-hero p:has(>a[href="/apotheken-staedte"]){display:block!important;margin-top:8px!important}
/* Shop-Aktionsbanner mobil: eine Karte pro Ansicht, Scroll-Snap, kleine Vorschau, Positionspunkte */
@media(max-width:560px){
  .zl-deals-track{scroll-snap-type:x mandatory;gap:10px;scroll-padding:0}
  .zl-deal{flex:0 0 calc(100% - 24px)!important;max-width:none!important;scroll-snap-align:start}
  .zl-deal-dots{display:flex;justify-content:center;gap:6px;margin:8px 0 2px}
  .zl-deal-dots i{width:7px;height:7px;border-radius:50%;background:#cfd6de;display:block}
  .zl-deal-dots i.on{background:#1a9fd4;width:18px;border-radius:4px}
}
@media(min-width:561px){.zl-deal-dots{display:none}}
/* Apotheken mobil: Sticky-Leiste Filter + Treffer, Filter als Bottom-Sheet */
.apo-sbar,.apo-backdrop{display:none}
@media(max-width:760px){
  .apo-sbar{position:fixed;left:0;right:0;top:64px;z-index:60;background:#fff;border-bottom:1px solid #e5eaf0;padding:8px 16px;display:none;align-items:center;justify-content:space-between;gap:12px}
  .apo-sbar.on{display:flex}
  .apo-sbar button{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:12px;border:1px solid #e5eaf0;background:#eaf7ff;color:#101828;font:inherit;font-weight:600;font-size:14px;cursor:pointer}
  .apo-sbar span{font-size:14px;color:#475467}
  .apo-backdrop.on{display:block;position:fixed;inset:0;background:rgba(16,24,40,.45);z-index:2147483000}
  body.apo-sheet-open{overflow:hidden}
  body.apo-sheet-open .apo-tools{position:fixed;left:0;right:0;bottom:0;z-index:2147483100;max-height:80vh;overflow:auto;background:#fff;border-radius:18px 18px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 40px rgba(0,0,0,.25)}
  body.apo-sheet-open #zlai-fab,body.apo-sheet-open .hd-stickycta{display:none!important}
  .apo-sheet-x{display:none}
  body.apo-sheet-open .apo-sheet-x{display:flex;position:sticky;top:0;justify-content:flex-end;margin:-6px 0 6px}
  body.apo-sheet-open .apo-sheet-x button{width:44px;height:44px;border:0;background:#f2f4f7;border-radius:50%;font-size:20px;cursor:pointer}
}
/* Ueber uns: Hero+Kennzahlen responsiv; Kontakt: Firmendaten scannbar, Notfallnummern anwaehlbar */
@media(min-width:1024px){
  .ab-hero{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:56px;max-width:1100px!important}
  .ab-hero>*{grid-column:1}
  .ab-hero>.ab-stats{grid-column:2;grid-row:1/span 6;align-self:center;margin-bottom:0!important}
}
@media(max-width:480px){.ab-stats{grid-template-columns:1fr!important;gap:10px!important}.ab-stats>div{padding:16px!important;height:auto}}
.pg-dl dt{margin-top:24px;font-weight:700}
.pg-dl dt:first-child{margin-top:0}
.pg-dl dd{margin:8px 0 0;overflow-wrap:anywhere}
a.pg-tel{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:#1384ba;text-decoration:underline}
@media(min-width:1024px){.ab-hero>.ab-stats{align-self:start!important;margin-top:8px}}
/* Shop-Karten: feste Reihenfolge Status-Badges, Name, Hersteller/Typ, Verfuegbarkeit, Lieferzeit, Preis; Badges kontrolliert umbrechen */
.s-badges{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.s-badges>*{flex:0 1 auto;max-width:100%}
.s-brand-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.s-card-body{display:flex;flex-direction:column;gap:6px}
.s-card-body .s-badges{order:1}.s-card-body .s-name{order:2}.s-card-body .s-brand-row{order:3}.s-card-body .s-pharma{order:4}.s-card-body .s-meta{order:5}
@media(max-width:560px){.result-bar>button:not(.sb-mobile-toggle){width:auto!important;min-width:44px;padding:0 14px!important;display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap}.result-bar>button:not(.sb-mobile-toggle)::after{margin-left:0!important;color:#101828}}
@media(max-width:560px){
  .result-bar>button:not(.sb-mobile-toggle)::after{content:none!important}
  #phModalTrigger{width:auto!important;min-width:44px;padding:0 14px!important;display:inline-flex!important;align-items:center;gap:8px;white-space:nowrap}
  #phModalTriggerLabel{display:inline!important;font-size:13.5px!important;font-weight:600;max-width:150px;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:560px){
  .result-bar #phModalTrigger{flex:0 0 auto!important;width:auto!important;min-width:44px!important;padding:0 14px!important;justify-content:center}
  .result-bar #phModalTrigger span{display:inline!important;white-space:nowrap}
}
