/* R40 abnahme – loads last. Only small cross-package fixes.

   §1 One edge for header, content and footer (≥ 851 px).
      The start page uses .j-shell = min(1180px, 100% − 164px) (journey.css), the header (basis) min(1180px, 100% − 130px)
      and the subpages .wrap = min(1240px, 100% − 112px) (portfolio.css), /projekt min(1160px, 100% − 96px): four edges.
      Now header, footer and the content of every page use the start page's rule, so the logo starts at the content's
      left edge and the language switch ends at its right edge – on every page at the same place. The start page's
      wider variant would have pushed the content under Fio at the right edge, so the subpages come in instead.
      Below 851 px nothing changes (header and start page already agree there). */
:root{--ab-w:min(1180px,calc(100% - 164px))}
@media (min-width:1500px){:root{--ab-w:min(1280px,calc(100% - 190px))}}
@media (max-width:1150px){:root{--ab-w:calc(100% - 130px)}}
@media (min-width:851px){
  html body :is(header.j-header,header.site-header){--ba-w:var(--ab-w)}
  html body footer.j-footer>.j-shell{width:var(--ab-w)!important}
  html body:not(.page-ticket) footer.ba-footer{padding-inline:calc((100% - var(--ab-w)) / 2)!important}
  html body .wrap{width:var(--ab-w)}
  html body .pj{--pj-shell:var(--ab-w)}
}

/* §2 Fio on a phone: an announcement waits as a small blue dot at Fio (fio.js sets .fox-root[data-news]); tapping him
      opens his window, where the sentence stands at the top. */
.fox-root[data-news=true] .fox-toggle::after{content:"";position:absolute;right:10px;top:8px;width:12px;height:12px;border-radius:50%;background:#304ee7;box-shadow:0 0 0 2.5px #fffef9;pointer-events:none;animation:ab-news .5s cubic-bezier(.3,1.6,.5,1) both}
@keyframes ab-news{from{scale:0}}
html[data-read=on] .fox-root[data-news=true] .fox-toggle::after,html.motion-paused .fox-root[data-news=true] .fox-toggle::after{animation:none}
@media (prefers-reduced-motion:reduce){.fox-root[data-news=true] .fox-toggle::after{animation:none}}

/* §3 Start page, profile section (feinschliff §2): the blue circle behind the CV sheets stuck out of the page at 600–800 px
      (waagrechtes Scrollen 14 px bei 768). The section clips sideways only. */
html body section.j-profile{overflow-x:clip}

/* §9 (Hauptagent, 17.11.) Profilfoto wieder so groß wie im Profil-Paket gedacht (≈364 px bei 1440):
   die gemeinsame Kante (§1) hatte die Seite 60 px schmaler gemacht. Mittlere Spalte bekommt mehr Anteil, Kasten 370 statt 380. */
@media (min-width:1101px){.page-profil .home-hero .hero-grid{grid-template-columns:minmax(0,1fr) minmax(270px,.92fr) 370px}}
