@font-face{font-family:Jakarta;src:url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');font-weight:200 800;font-display:swap}
:root{color-scheme:light;--red:#a41335;--ink:#281e21;--muted:#605558;--line:#e8dddf;font:100% Jakarta,system-ui,sans-serif;color:var(--ink);background:white}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:.25em}a:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:4px}header{border-bottom:1px solid var(--line)}.bar,main,footer{width:min(88%,77rem);margin:auto}.bar,nav,footer,.actions{display:flex;align-items:center;gap:1.5rem}.bar,footer{justify-content:space-between;padding:1.25rem 0}.brand,.header-cta,nav a,.button{text-decoration:none}.brand{display:inline-flex;align-items:center;gap:.2em;font-size:1.45rem;font-weight:800;letter-spacing:-.055em}.brand b,.brand em,em{color:var(--red);font-style:normal}.brand b{font-size:1.7rem;margin-right:.18em}.header-cta{color:var(--red);font-weight:700}.bar a:hover,footer a:hover{color:var(--red)}nav{font-size:.88rem}
section{border-bottom:1px solid var(--line);padding:clamp(3rem,6vw,6rem) 0;scroll-margin:1rem}
.hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.85fr);gap:7%;align-items:center;padding:clamp(2rem,4vw,4rem) 0}.hero img{width:100%;height:clamp(25rem,40vw,37rem);object-fit:cover;object-position:50% 58%;border-radius:.35rem 3rem .35rem .35rem}
h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}h1{font-size:clamp(2.6rem,5.7vw,5.7rem);letter-spacing:-.068em;line-height:1.02}h2{font-size:clamp(1.9rem,3.8vw,3.6rem);line-height:1.1;letter-spacing:-.055em;margin-bottom:1.5rem}h3{font-size:1.2rem;line-height:1.3;letter-spacing:-.035em;margin-bottom:.65rem}p,li{line-height:1.65;color:var(--muted)}.hero p{margin-top:1.5rem;max-width:58ch}.actions{flex-wrap:wrap;margin:1.6rem 0;gap:1rem 1.4rem}.button{background:var(--red);color:white;padding:.9rem 1.2rem;font-weight:700;border-radius:.45rem}.button:hover{background:#80102b}.button span{margin-left:.35rem}.secondary{font-weight:650;color:var(--red)}.glance{padding:2rem 0;border-bottom:1px solid var(--line)}.glance h2{font-size:1rem;letter-spacing:0}.glance ul,.grid{display:grid;gap:1.4rem;grid-template-columns:repeat(3,minmax(0,1fr))}.glance ul{grid-template-columns:repeat(5,minmax(0,1fr));padding:0;list-style:none}.glance li,article{border-top:2px solid var(--red);padding-top:1rem}.glance li{font-size:.9rem}.four{grid-template-columns:repeat(4,minmax(0,1fr))}.grid article{padding-right:.5rem}.split{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:6%;align-items:start}.split img{width:100%;height:auto;border-radius:.65rem}.split article+article{margin-top:1.5rem}.lead{margin:-.7rem 0 1.5rem}.grid ul,.grid ol,article ul,section>ul{padding-left:1.25rem}li+li{margin-top:.4rem}.glance li{margin:0}li::marker{color:var(--red)}details{padding:1rem 0;border-bottom:1px solid var(--line)}summary{cursor:pointer;font-weight:650}summary::marker{color:var(--red)}details p,details ul{margin:.75rem 0 0}footer{padding:2rem 0;color:var(--muted)}#kontakt h2{color:var(--red)}
@media(max-width:850px){.four,.glance ul{grid-template-columns:repeat(2,minmax(0,1fr))}.bar{flex-wrap:wrap}.bar nav{order:3;width:100%;justify-content:space-between;gap:.45rem}.hero{gap:4%}.grid:not(.four){grid-template-columns:1fr}.hero img{height:24rem}}
@media(max-width:600px){.hero,.split{grid-template-columns:1fr}.hero img{height:18rem;object-fit:contain;border-radius:0;margin-top:.75rem}.split{gap:1.5rem}.split img{max-height:19rem;object-fit:contain;object-position:left}.actions{align-items:flex-start}.glance ul,.four{grid-template-columns:1fr}.glance li{border:0;padding:0}.glance ul{gap:.55rem}.bar{row-gap:.85rem}.bar nav{font-size:.78rem}.hero p{margin-top:1rem}footer{font-size:.85rem}h2,h3{overflow-wrap:anywhere}}

/* Homepage opening, following the supplied pharmacy facade mockup. */
.bar {
  width: min(92%, 96rem);
  margin-inline: auto;
}
:root { --bar-height: 64px; }
.bar { min-height: var(--bar-height); padding-block: .55rem; }
.bar .brand { font-size: clamp(1.35rem, 2.1vw, 2rem); white-space: nowrap; }
.brand img { display: block; width: clamp(8rem, 14vw, 12rem); height: auto; }
footer .brand img { width: 8.5rem; }
.bar nav { gap: clamp(.7rem, 1.9vw, 2.1rem); }
.header-cta, .hero .button, .hero .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .6rem;
  padding: .75rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.header-cta, .hero .button { color: white; background: var(--red); }
.bar .header-cta:hover, .hero .button:hover { color: white; background: #84102c; }
main { width: 100%; }
main > section:not(.hero):not(#vorteile) { width: min(92%, 77rem); margin-inline: auto; }
.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-height: calc(100dvh - var(--bar-height) - 1px);
  padding: clamp(2.25rem, 3.3vw, 4rem) max(4%, calc((100% - 96rem) / 2));
  color: white;
  background: linear-gradient(90deg, rgba(10,18,31,.92), rgba(13,22,37,.81) 31%, rgba(13,22,37,.52) 47%, transparent 66%), url('/careapo/pharmacy-evening.webp') right center / cover no-repeat, #18212e;
}
.hero-copy { width: min(47%, 43rem); }
.hero h1 {
  font-size: clamp(2.3rem, 3.35vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.07;
  text-wrap: initial;
}
.hero p, .hero li { color: white; }
.hero p { margin-top: .8rem; font-size: clamp(1rem, 1.15vw, 1.2rem); line-height: 1.4; }
.hero .actions { margin: 1.25rem 0; gap: .65rem; }
.hero .secondary { color: white; border: 1.5px solid white; background: #131b27a8; }
.hero .secondary:hover { background: #344052; }
.hero .glance { padding: 0; border: 0; }
.hero .glance h2 { font-size: 1.35rem; margin: 0 0 .65rem; }
.hero .glance ul { display: grid; grid-template-columns: 1fr; gap: .38rem; margin: 0; }
.hero .glance li { display: flex; align-items: baseline; gap: .65rem; border: 0; padding: 0; line-height: 1.35; font-size: 1rem; }
.hero .glance li::before { content: '✓'; flex: none; width: 1.32rem; line-height: 1.32rem; text-align: center; border-radius: 50%; background: var(--red); font-size: .83rem; }








@media (min-width: 1051px) and (min-height: 640px) {
  .hero .glance {
    padding: clamp(.85rem, 1.8vh, 1.5rem) clamp(1rem, 1.5vw, 1.75rem);
    background: rgb(13 22 37 / 58%);
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 1rem;
  }
  .hero .glance h2 { font-size: clamp(1.45rem, 1.5vw, 1.8rem); margin-bottom: .5em; }
  .hero .glance ul { gap: clamp(.45rem, 1vh, .85rem); }
  .hero .glance li { font-size: clamp(1.075rem, 1.2vw, 1.25rem); gap: .7em; }
  .hero .glance li::before { width: 1.55em; line-height: 1.55; font-size: .9em; }
}

@media (max-width: 1050px) {
  .bar { flex-wrap: wrap; gap: .6rem 1rem; }
  .bar nav { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; padding: .3rem 0; }
  .hero-copy { width: min(60%, 36rem); }
}
@media (max-width: 800px) {
  .hero { padding: 0; background: #1a2433; }
  .hero::before { content: ''; display: block; flex: 1 0 auto; height: clamp(10rem, min(42vw, 38svh), 17rem); background: url('/careapo/pharmacy-evening.webp') 85% center / cover no-repeat; }
  .hero-copy { width: auto; padding: 1.5rem 5% 1.8rem; }
  .hero h1 { font-size: clamp(2rem, 7.8vw, 2.65rem); }
  .bar nav { gap: 1rem; justify-content: flex-start; }
  .header-cta { font-size: .78rem; padding: .6rem .75rem; }
  .hero .actions a { font-size: .9rem; padding: .7rem .85rem; }
}

/* Persistent section navigation */
:root { --nav-offset: 5.5rem; }
html { scroll-padding-top: var(--nav-offset); }
header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 2px 12px #4123280c; }
section { scroll-margin-top: .5rem; }
.bar nav a { white-space: nowrap; }
@media(max-width:1050px){ :root { --nav-offset: 7.75rem; } }

.chapter h2 { text-align: center; margin-bottom: clamp(1.5rem,3vw,2.75rem); }
.spot-icon {
  display: inline-block;
  flex: none;
  width: var(--spot-size, 3.5rem);
  aspect-ratio: 1;
  vertical-align: middle;
  mix-blend-mode: multiply;
}
.chapter .spot-icon > img { display: block; width: 100%; height: auto; border-radius: 0; }
#ablauf h3 { display: flex; align-items: center; gap: .8rem; }
#ablauf .spot-icon { --spot-size: clamp(3.3rem, 5vw, 4.8rem); }
#betrieb .mini-grid li { display: flex; align-items: center; gap: 1rem; }
#betrieb .spot-icon, .question-grid .spot-icon { --spot-size: clamp(2.9rem, 4.8vw, 4.5rem); }
.night-panel h3 { display: flex; align-items: center; gap: .8rem; }
#ablauf article, #integration article, .question-grid details, .mini-grid li {
  padding: clamp(1rem,2vw,1.55rem); background: #fff; border: 1px solid var(--line);
  border-radius: .9rem; box-shadow: 0 5px 18px #55142908;
}
#ablauf article { background: linear-gradient(155deg,#fff 60%,#fbf2f4); }
#ablauf ol { padding-left: 1.4rem; }
#ablauf li::marker { font-weight: 750; }
.illustrated, #kontakt { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.55fr); gap: clamp(1.2rem,3vw,3rem); align-items: center; }
.illustrated > img { width: 100%; height: auto; max-height: 32rem; object-fit: contain; border-radius: .8rem; }
.integration-terminal { position: relative; width: 100%; align-self: start; justify-self: center; container-type: inline-size; }
.integration-terminal > img:first-child { display: block; width: 100%; height: auto; }
.integration-screen { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.integration-screen image {
  opacity: .91; filter: brightness(.88) saturate(.92);
}
#integration .grid { grid-template-columns: 1fr; gap: .85rem; }
#integration article { display: grid; grid-template-columns: clamp(5rem,9vw,8.5rem) 1fr; column-gap: 1.3rem; align-items: center; }
#integration article > img { width:100%; grid-row: span 2; border-radius:.5rem; }
#integration h3 .spot-icon { --spot-size: 2.4rem; margin-right: .5rem; }
#notdienst .split { align-items: center; }
.duty-terminal { position: relative; grid-area: 1 / 2; overflow: hidden; border-radius: .65rem; }
.duty-terminal > img:first-child { display: block; }
#notdienst .duty-terminal .duty-screen {
  position: absolute; left: 24.1667%; top: 7.8125%; width: 25.625%; height: 56.7708%;
  max-height: none; border-radius: 0; object-fit: contain; object-position: center; background: #15181b;
}
#notdienst .duty-example-link { display: table; margin-top: .35rem; font-weight: 650; color: var(--red); }
#duty-example {
  box-sizing: border-box; max-width: min(92vw, 36rem); max-height: 94dvh; overflow: auto;
  padding: clamp(1rem, 2vw, 1.75rem); border: 1px solid var(--line);
  border-radius: 1rem; background: white; color: var(--ink); overscroll-behavior: contain;
}
#duty-example::backdrop, .lightbox::backdrop { background: rgb(32 18 24 / 62%); }
html:has(#duty-example[open]) { overflow: hidden; }
#duty-example button { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
#duty-example h2 { margin: .35rem 0 1rem; font-size: clamp(1.15rem, 2.2vw, 1.6rem); text-align: left; }
/* The software panel starts at (25, 79) inside the 816 × 1447 kiosk capture. */
.duty-example-frame {
  position: relative; overflow: hidden; margin-inline: auto;
  width: min(100%, 40dvh); aspect-ratio: 762 / 1295;
  border-radius: 4.5% / 2.65%;
}
#duty-example { width: min(92vw, 36rem); }
#duty-example img {
  position: absolute; width: 107.087%; height: auto; max-width: none;
  left: -3.281%; top: -6.1%; display: block;
}
@media (max-width: 700px) {
  .duty-terminal { grid-area: auto; order: 2; width: min(100%, 25rem); justify-self: center; }
}
#notdienst .split img { grid-column:2; grid-row:1; }
#notdienst .split article { grid-column:1; grid-row:1; border:0; }
#notdienst .split ul { list-style:none; padding:0; }
.night-panel { margin-top:2rem; border:0; border-left:4px solid var(--red); background:#fbf2f4; border-radius:.5rem; padding:1.5rem; }
.night-panel ul { display:flex;flex-wrap:wrap;gap:.65rem 2rem;margin-bottom:0; }
.question-grid,.mini-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); gap:.85rem;align-items:start; }
.chapter summary { display:flex; align-items:center; gap:.75rem; list-style:none; }
.chapter summary::-webkit-details-marker {display:none;}
.chapter summary::after { content:'+'; margin-left:auto; color:var(--red); font-size:1.2rem; }
.chapter details[open] summary::after {content:'−';}
.mini-grid {list-style:none;padding:0;margin:0;align-items:stretch;}
.mini-grid li {margin:0;}
#terminal .spot-icon {margin-bottom:.65rem;}
#terminal li>img {display:block;width:100%;height:clamp(6rem,10vw,9rem);object-fit:contain;margin-bottom:.75rem;}
#betrieb .mini-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
#kontakt {border-bottom:0;}
#kontakt h2 {text-align:left;}
.contact-terminal {
  position: relative;
  width: min(100%, clamp(12.8rem, 24vw, 21.6rem));
  justify-self: center;
}
.contact-terminal > img:first-child { display: block; width: 100%; height: auto; }
.contact-terminal .contact-screen {
  position: absolute;
  left: 58.07%; top: 31%; width: 16.82%; height: 27.45%;
  object-fit: fill; border-radius: 1.5% / 0.75%;
  filter: brightness(.94);
}
#kontakt .button {display:inline-flex;align-items:center;gap:.5rem;}
#kontakt .button .apo-icon {background:none;color:inherit;width:auto;height:auto;}
@media(max-width:850px) {
  .integration-terminal { max-width: 20rem; }
  .illustrated {grid-template-columns:1fr; gap:1.5rem;}
  .illustrated>img {max-height:17rem;width:auto;max-width:100%;margin:auto;}
  #betrieb .mini-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px) {
  #notdienst .split,.question-grid,#kontakt {grid-template-columns:1fr;}
  #notdienst .split img,#notdienst .split article {grid-column:auto;grid-row:auto;}
  #notdienst .split img {order:2;}
  #integration article {grid-template-columns:4.5rem minmax(0,1fr);column-gap:.75rem;}
  #integration article > img {grid-row:1;}
  #integration article ul {grid-column:1/-1;margin-top:.6rem;}
  #integration h3 .spot-icon {display:none;}
  .mini-grid,#betrieb .mini-grid {grid-template-columns:1fr;}
  #terminal .mini-grid li>img {float:right;width:5rem;height:4rem;margin:0 0 .6rem .65rem;}
  .contact-terminal { width: min(100%, 11.2rem); }
  .night-panel ul {display:block;}
}

.chapter details { min-width: 0; overflow-wrap: anywhere; }

.menu-trigger { display: none; }
#mobile-menu {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(22rem, 88vw);
  height: 100dvh; max-height: none; max-width: none; padding: 1.4rem;
  border: 0; border-left: 1px solid var(--line); background: white; color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
#mobile-menu::backdrop { background: rgb(32 18 24 / 45%); }
html { scrollbar-gutter: stable; }
html:has(#mobile-menu[open]) { overflow: hidden; }
.menu-heading { display: flex; align-items: center; justify-content: space-between; font-size: 1.3rem; }
.menu-heading button, .menu-trigger {
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--red);
  width: 44px; height: 44px; cursor: pointer;
}
.menu-trigger:active, .menu-heading button:active { background: #f8e8ec; }
.menu-trigger:focus-visible, .menu-heading button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.menu-heading button { font-size: 1.7rem; }
#mobile-menu nav { display: grid; gap: 0; margin: 1.25rem 0; }
#mobile-menu nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
@media (max-width: 1560px) {
  .has-menu { --nav-offset: 4.5rem; --bar-height: 60px; }
  .has-menu .bar { flex-wrap: nowrap; min-height: var(--bar-height); }
  .has-menu .bar nav, .has-menu .bar .header-cta { display: none; }
  .has-menu .menu-trigger { display: grid; align-content: center; justify-items: center; gap: 5px; }
  .menu-trigger span { display: block; height: 2px; width: 21px; background: currentColor; }
  .menu-trigger span:last-child { width: 15px; margin-left: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  #mobile-menu[open] { animation: careapo-menu-in .2s ease-out; }
  @keyframes careapo-menu-in { from { transform: translateX(100%); } }
}

html, #mobile-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
@supports not (scrollbar-width: thin) {
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--red); border-radius: 6px; }
}
@media (forced-colors: active) {
  html, #mobile-menu { scrollbar-color: auto; }
}

/* Keep card text readable as its parent column changes width. */
#ablauf .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
 .question-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(17rem, 44%)), 1fr));
}
#betrieb .mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(18rem, 30%)), 1fr));
}
#notdienst .split { gap: clamp(1.4rem, 4vw, 4rem); }
#kontakt .contact-copy { min-width: 0; }
.chapter li { overflow-wrap: break-word; hyphens: auto; }

@media (min-width: 601px) and (max-width: 1000px) {

}
@media (max-width: 700px) {
  #notdienst .split { grid-template-columns: 1fr; }
  #notdienst .split img, #notdienst .split article { grid-area: auto; }
  #notdienst .split img { order: 2; max-height: 20rem; object-fit: contain; }
}
@media (max-width: 600px) {




  #kontakt .actions { align-items: stretch; }
  #kontakt .actions a { min-height: 44px; display: inline-flex; align-items: center; }
  .chapter summary { min-height: 44px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  section { padding-block: 2rem; }
  .hero .glance ul { gap: .25rem; }
  .illustrated > img { max-height: 58svh; }
  .contact-terminal, .integration-terminal { max-width: min(100%, 46.4svh); }
}

#vorteile {
  padding: clamp(2.5rem, 5vw, 5rem) 4%;
  background: linear-gradient(160deg, #fcf3f5, white 42%, #fcf6f7);
}
.benefits-inner { max-width: 84rem; margin-inline: auto; }
.benefits-intro { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 3rem); }
.benefits-label { display: inline-block; padding: .35rem 1rem; border: 1px solid #e7c9d1; border-radius: 2rem; color: var(--red); font-weight: 700; }
.benefits-intro h2 { margin: .65rem 0; font-size: clamp(2.2rem, 4.6vw, 4.5rem); }
.benefits-intro p { font-size: clamp(1rem, 1.45vw, 1.3rem); }
.benefits-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.85rem, 1.6vw, 1.5rem); }
.benefits-grid article {
  display: grid; grid-template-columns: 43% minmax(0,1fr); align-items: center;
  padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1.15rem;
  background: white; box-shadow: 0 5px 16px #60243a0c;
}
.benefits-grid img { width: 100%; height: 100%; object-fit: cover; }
.benefits-grid article > div { padding: clamp(1rem, 1.8vw, 2rem); hyphens: auto; }
.benefits-grid h3 { font-size: clamp(1.25rem, 1.85vw, 2rem); line-height: 1.18; }
.benefits-grid p { line-height: 1.5; }
.benefits-strip { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style:none; padding:0; margin:clamp(1.5rem,3vw,3rem) 0 0; }
.benefits-strip li { display:flex; justify-content:center; align-items:center; gap:.7rem; margin:0; padding:.5rem; color:var(--ink); font-weight:700; }
.benefits-strip li + li { border-left:1px solid var(--line); }
.benefits-strip svg { color:var(--red); flex:none; }
@media(max-width: 900px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefits-grid article { grid-template-columns: min(35%, 12rem) minmax(0,1fr); }
  .benefits-strip { grid-template-columns: 1fr 1fr; gap:.8rem; }
  .benefits-strip li { justify-content:flex-start; }
  .benefits-strip li + li { border:0; }
}
@media(max-width: 480px) {
  .benefits-grid article { grid-template-columns: 31% minmax(0,1fr); }
  .benefits-grid img { height:auto; object-fit:contain; padding-left:.45rem; }
  .benefits-strip li { font-size:.85rem; }
}

/* Shared chapter treatment from the CareApo mockups. */
main > section.chapter:not(.hero):not(#vorteile) {
  width: 100%;
  padding: clamp(2.5rem, 4.4vw, 4.75rem) max(4%, calc((100% - 88rem) / 2));
  background: linear-gradient(145deg, #fcf5f6, white 44%, #f8f5f7);
}
main > section.chapter:nth-of-type(even) {
  background: linear-gradient(160deg, white, #fcf7f8);
}
.integration-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.15rem;
}
.integration-actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 44px; padding: .65rem 1.15rem; border: 1px solid #d8b5c0;
  border-radius: 1.5rem; background: white; color: var(--red);
  font-size: 1rem; font-weight: 650; line-height: 1.35; text-decoration: none;
}
.integration-actions a:first-child { background: var(--red); border-color: var(--red); color: white; }
.integration-actions a::after {
  content: ''; flex: none; width: .42em; height: .42em;
  border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg);
}
.integration-actions a:hover { background: #faf0f3; }
.integration-actions a:first-child:hover { background: #82102b; }
@media (max-width: 40rem) {
  .integration-actions { display: grid; max-width: 24rem; margin-inline: auto; }
}
.chapter-intro { margin: 0 auto clamp(1.4rem, 2.6vw, 2.4rem); text-align: center; }
.chapter .chapter-intro h2 { margin: .7rem 0 .55rem; font-size: clamp(2rem, 3.8vw, 3.85rem); line-height: 1.05; }
.chapter-intro p { max-width: 68ch; margin: auto; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.4; }
.benefits-label {
  display: inline-flex; align-items: center; gap: .55em; color: var(--red);
  background: linear-gradient(170deg, #fff, #fbebef); border-color: #ddafbc;
  box-shadow: 0 2px 4px #541d3014;
}
.benefits-label svg { width: 1.2em; height: 1.2em; }
.portal-cards article, #ablauf article, #integration article, .question-grid details, .mini-grid li, .benefits-grid article {
  border: 1px solid #e9dce1; border-radius: 1.15rem;
  background: linear-gradient(135deg, white 60%, #fcf8fa);
  box-shadow: 0 5px 16px #48172a0f, 0 1px 3px #48172a06;
}
#kontakt .chapter-intro { text-align: left; margin: 0 0 1rem; }
#kontakt h2 { color: var(--ink); }
.chapter-banner, .portal-preview figcaption {
  color: white; background: linear-gradient(120deg, #6b102b, #a41335 65%, #82334b);
  border-radius: 1.1rem; padding: clamp(1rem, 2vw, 1.8rem);
}
.chapter-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; }
.chapter-banner strong { font-size: clamp(1.15rem, 2vw, 1.65rem); }
.chapter-banner .button { background: white; color: var(--red); text-decoration: none; }
.portal-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.9fr); gap: clamp(1rem, 1.6vw, 1.65rem); align-items: stretch; }
.portal-preview { display: flex; flex-direction: column; justify-content: center; gap: .9rem; margin: 0; min-width: 0; }
.portal-preview > img { display: block; width: 100%; height: auto; border-radius: 1.2rem; }
.portal-preview figcaption { display: flex; gap: .85rem; align-items: flex-start; }
.portal-preview figcaption svg { width: clamp(2rem, 3.2vw, 3rem); height: auto; flex: none; }
.portal-preview figcaption strong { display: block; font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.1; letter-spacing: -.035em; }
.portal-preview figcaption p { color: white; font-size: .96rem; line-height: 1.5; margin-top: .6rem; }
.portal-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.portal-cards article { padding: clamp(.9rem, 1.4vw, 1.35rem); }
.portal-cards h3 { display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem; font-size: clamp(1.1rem, 1.45vw, 1.45rem); }
.portal-cards h3 svg { flex: none; color: var(--red); }
.portal-art { float: right; width: clamp(3.2rem, 5.2vw, 5.6rem); height: auto; margin: 0 0 .2rem .45rem; mix-blend-mode: multiply; }
.portal-cards ul, #integration article ul { padding: 0; margin: 0; list-style: none; }
.portal-cards li, #integration article li { padding-left: 1.4em; line-height: 1.45; color: var(--ink); font-size: clamp(.9rem, 1vw, 1rem); }
.portal-cards li + li { margin-top: .32em; }
.portal-cards li::before, #integration article li::before {
  content: '✓' / ''; display: inline-block; width: 1.35em; margin: 0 .55em 0 -1.9em;
  border-radius: 50%; background: var(--red); color: white; font-size: .74em; font-weight: 700; line-height: 1.35; text-align: center; vertical-align: .12em;
}
@media (max-width: 1050px) {
  .portal-layout { grid-template-columns: 1fr; }
  .portal-preview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; max-width: 46rem; margin-inline: auto; }
  .portal-preview > img { max-height: 17rem; object-fit: contain; }
}
@media (max-width: 640px) {
  .portal-cards, .portal-preview { grid-template-columns: 1fr; }
  .portal-preview > img { width: auto; max-width: 100%; margin: auto; }
  .portal-cards h3 { font-size: 1.15rem; }
}

/* One card language for every chapter, taken from the "Warum CareApo 24?" cards:
   tinted illustration panel, large bold title, roomy text. */
:root { --tint: linear-gradient(150deg, #fdf3f5, #f5dde4); --card-pad: clamp(1rem, 1.8vw, 2rem); }
.chapter .chapter-intro h2 { font-size: clamp(2.2rem, 4.6vw, 4.5rem); }
.chapter-intro p { font-size: clamp(1rem, 1.45vw, 1.3rem); }
#ablauf h3, #integration h3, .night-panel h3, .chapter li > div > strong, .question-grid summary {
  font-size: clamp(1.25rem, 1.7vw, 1.7rem); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; color: var(--ink);
}
.chapter li > div > strong { display: block; margin-bottom: .35rem; }
.chapter li > div { line-height: 1.5; }
.chapter .spot-icon { mix-blend-mode: normal; background: var(--tint); border-radius: 1rem; padding: .45rem; }
.chapter .spot-icon > img { mix-blend-mode: multiply; }

/* Illustration panel on the left edge of a card */
#betrieb .panel-cards li, .night-panel {
  display: grid; grid-template-columns: clamp(5.5rem, 30%, 11rem) minmax(0, 1fr); align-items: center; gap: 0;
  padding: 0; overflow: hidden;
}
#betrieb .panel-cards .spot-icon, .night-panel > .spot-icon, .question-grid .spot-icon {
  display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: auto;
  border-radius: 0; padding: clamp(.6rem, 1.4vw, 1.3rem);
}
#betrieb .panel-cards .spot-icon > img, .night-panel > .spot-icon > img, .question-grid .spot-icon > img { width: min(100%, 8rem); }
#betrieb .panel-cards li > div, .night-panel > div { padding: var(--card-pad); }
#betrieb .panel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#betrieb .panel-cards li:last-child:nth-child(odd) { grid-column: 1 / -1; }

#ablauf article { padding: var(--card-pad); }
#ablauf h3 { gap: 1rem; margin-bottom: 1.1rem; }
#ablauf ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
#ablauf ol li { counter-increment: step; position: relative; padding-left: 2.9rem; min-height: 2.1rem; }
#ablauf ol li + li { margin-top: .8rem; }
#ablauf ol li::before {
  content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.1rem; line-height: 2.1rem;
  text-align: center; border-radius: 50%; background: var(--tint); border: 1px solid #e7c9d1; color: var(--red); font-weight: 800;
}

#notdienst .feature-rows li { display: flex; align-items: center; gap: 1.1rem; padding: 0; }
#notdienst .feature-rows li + li { margin-top: 1.2rem; }
#notdienst .feature-rows .spot-icon { --spot-size: clamp(3.6rem, 5.5vw, 5rem); }
.night-panel {
  margin-top: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid #e9dce1; border-radius: 1.15rem;
  background: linear-gradient(135deg, white 60%, #fcf8fa); box-shadow: 0 5px 16px #48172a0f, 0 1px 3px #48172a06;
}
.night-panel h3 { display: block; }
.night-panel ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 1.3rem 0 0; }
.night-panel li { margin: 0; padding: .1rem 1.2rem; line-height: 1.4; }
.night-panel li:first-child { padding-left: 0; }
.night-panel li + li { border-left: 1px solid var(--line); }
.night-panel li strong { display: block; color: var(--ink); }

#integration article { padding: var(--card-pad); }
#integration article > img { border-radius: .9rem; }
#integration h3 { display: flex; align-items: center; gap: .7rem; }
#integration h3 .spot-icon { --spot-size: 3rem; margin: 0; }
@media (min-width: 601px) {
  #integration article h3 { align-self: end; }
  #integration article ul { align-self: start; }
  #integration article { grid-template-columns: clamp(6rem, 24%, 12rem) minmax(0, 1fr); column-gap: clamp(1rem, 2vw, 2rem); }
}

#terminal .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#terminal .mini-grid li {
  --media: clamp(7.5rem, 11vw, 10.5rem);
  display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: center;
  background: var(--tint) top / 100% var(--media) no-repeat, white;
}
#terminal .mini-grid li > img, #terminal .mini-grid .spot-icon {
  display: grid; place-items: center; float: none; width: 100%; height: var(--media); aspect-ratio: auto;
  margin: 0; padding: .9rem; border-radius: 0; background: none; object-fit: contain; mix-blend-mode: multiply;
}
#terminal .mini-grid .spot-icon > img { width: auto; height: calc(var(--media) - 1.8rem); }
#terminal .mini-grid li > div { padding: 1rem 1.1rem 1.3rem; }

.question-grid details {
  --panel: clamp(4.5rem, 22%, 9rem);
  position: relative; overflow: hidden; min-height: 8.5rem;
  padding: var(--card-pad); padding-left: calc(var(--panel) + var(--card-pad));
}
.question-grid .spot-icon { position: absolute; inset: 0 auto 0 0; width: var(--panel); }

/* The one icon banner used under every chapter (same look as the benefits strip). */
.chapter-strip, .contact-facts {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  padding: 0; margin: clamp(1.5rem, 3vw, 3rem) 0 0;
}
.chapter-strip li, .contact-facts li {
  display: flex; justify-content: center; align-items: center; gap: .7rem; margin: 0; padding: .5rem;
  color: var(--ink); font-weight: 700; line-height: 1.3; hyphens: manual;
}
.chapter-strip li + li, .contact-facts li + li { border-left: 1px solid var(--line); }
.chapter-strip svg, .contact-facts svg { flex: none; width: 2rem; height: 2rem; color: var(--red); stroke-width: 1.65; }
.contact-facts { margin: 1.5rem 0; }
.contact-facts li { justify-content: flex-start; }
.contact-facts li:first-child { padding-left: 0; }

@media (max-width: 1050px) {
  #terminal .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .chapter-strip, .contact-facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: .8rem; }
  .chapter-strip li, .contact-facts li { justify-content: flex-start; padding-left: 0; }
  .chapter-strip li + li, .contact-facts li + li { border: 0; }
  #betrieb .panel-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .night-panel ul { grid-template-columns: 1fr; gap: .6rem; }
  .night-panel li { padding: 0; }
  .night-panel li + li { border: 0; }
}
@media (max-width: 480px) {
  .chapter-strip li, .contact-facts li { font-size: .85rem; }
  #terminal .mini-grid { grid-template-columns: 1fr; }
}

/* Anchor jumps land exactly under the sticky header. */
html { scroll-padding-top: calc(var(--bar-height) + 1px); }
section { scroll-margin-top: 0; }
@media (max-width: 1050px) { html:not(.has-menu) { scroll-padding-top: var(--nav-offset); } }
.bar nav { gap: clamp(.6rem, 1.5vw, 2.1rem); }
.header-cta { white-space: nowrap; }

/* Navbar in the page's pill language (same rose pill as the chapter labels). */
header { background: rgb(255 255 255 / 88%); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: #ecdfe3; }
.bar nav {
  gap: .1rem; padding: .25rem; border: 1px solid #ddafbc; border-radius: 2rem;
  background: linear-gradient(170deg, #fff, #fbebef); box-shadow: 0 2px 4px #541d3014; font-weight: 600;
}
.bar nav a { padding: .42rem clamp(.4rem, calc(3vw - 2.1rem), .95rem); border-radius: 2rem; transition: background-color .15s, color .15s; }
.bar nav a:hover { background: white; }
.bar nav a[aria-current], .bar nav a[aria-current]:hover { color: white; background: linear-gradient(120deg, #6b102b, #a41335); }
.header-cta {
  padding: .7rem 1.25rem; border-radius: 2rem;
  background: linear-gradient(120deg, #6b102b, #a41335 65%, #82334b); box-shadow: 0 4px 12px #a4133538;
}
.lang-switch { display: flex; flex: none; padding: .2rem; border: 1px solid #ddafbc; border-radius: 2rem; background: white; font-size: .8rem; font-weight: 700; }
.lang-switch a { padding: .3rem .6rem; border-radius: 2rem; text-decoration: none; color: var(--muted); }
.bar .lang-switch a[aria-current], .bar .lang-switch a[aria-current]:hover { color: white; background: var(--red); }
@media (max-width: 1560px) { .has-menu .lang-switch { margin-left: auto; } }
.bar { gap: 1rem; }
.bar nav { font-size: .85rem; }

/* Phone fixes for the shared cards */
.question-grid summary { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 600px) {
  .night-panel { grid-template-columns: 1fr; }
  .night-panel > .spot-icon { height: 6.5rem; }
  .night-panel > .spot-icon > img { width: auto; height: 100%; max-height: 5rem; }
  .question-grid details { --panel: 3.6rem; min-height: 0; }
  .question-grid .spot-icon { padding: .45rem; }
  #integration article > img { height: auto; aspect-ratio: 1; object-fit: cover; align-self: center; }
}

/* Footer links, simple header, legal pages, blog and cookie banner (pages outside the home page). */
footer { flex-wrap: wrap; width: min(92%, 88rem); gap: .8rem 1.5rem; font-size: .9rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.legal-links a[aria-current] { color: var(--red); font-weight: 700; }
.cookie-settings { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
.cookie-settings:hover { color: var(--red); }
.bar.bar-simple { flex-wrap: nowrap; }
.bar-simple nav { order: 0; width: auto; }
@media (max-width: 700px) { .bar-simple nav ~ .header-cta { display: none; } }
@media (max-width: 480px) { .bar-simple nav { display: none; } }

.legal, article.post { width: min(92%, 48rem); margin: auto; padding: clamp(2rem, 5vw, 4.5rem) 0; border: 0; }
.legal h1, .post h1 { margin: .6rem 0; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.05em; }
.legal h2, .post h2 { margin: 2.2rem 0 .7rem; font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -.03em; }
.legal h3, .post h3, .post h4 { margin: 1.6rem 0 .5rem; }
.legal p, .post p, .post ul, .post ol { margin: .8rem 0; }
.legal a, .post a:not(.button) { color: var(--red); overflow-wrap: anywhere; }
.post time, .blog-grid time { color: var(--muted); font-size: .9rem; }
.post figure { margin: 1.5rem 0; }
.post img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 1rem; }
.post figcaption { margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.post blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 4px solid var(--red); }
.post .chapter-banner { margin-top: 2.5rem; }

.chapter .chapter-intro h1 { margin: .7rem 0 .55rem; font-size: clamp(2.2rem, 4.6vw, 4.5rem); line-height: 1.05; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.2rem; }
.blog-grid article {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid #e9dce1; border-radius: 1.15rem;
  background: linear-gradient(135deg, white 60%, #fcf8fa); box-shadow: 0 5px 16px #48172a0f, 0 1px 3px #48172a06;
}
.blog-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-grid article > div { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1.2rem; }
.blog-grid :is(h2, h3) { margin: 0; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.03em; text-align: left; }
.blog-grid :is(h2, h3) a { text-decoration: none; }
.blog-grid :is(h2, h3) a:hover { color: var(--red); }
.blog-grid .secondary { margin-top: auto; }

.cookie-banner {
  position: fixed; z-index: 30; left: 50%; bottom: 1rem; translate: -50% 0; width: min(92%, 44rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding: 1rem 1.2rem;
  background: white; border: 1px solid #e9dce1; border-radius: 1.15rem; box-shadow: 0 12px 40px #48172a2e;
}
.cookie-banner p { flex: 1 1 16rem; font-size: .9rem; line-height: 1.45; }
.cookie-banner div { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-banner button { padding: .6rem 1.1rem; border: 1.5px solid var(--red); border-radius: 2rem; font: inherit; font-weight: 700; cursor: pointer; }
.cookie-banner .secondary { background: white; color: var(--red); }

/* Home page blog teaser: four posts in a row, two on tablets. */
#blog .blog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { #blog .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.blog-pager { display: none; }
@media (max-width: 48rem) {
  #blog .blog-grid, .blog-index .blog-grid {
    position: relative; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  }
  .blog-grid article { min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .blog-pager + .blog-grid { scrollbar-width: none; }
  .blog-pager + .blog-grid::-webkit-scrollbar { display: none; }
  .blog-pager { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-bottom: .85rem; }
  .blog-pager span { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
  .blog-pager button {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: white;
    color: var(--red); font: inherit; font-size: 1.25rem; cursor: pointer;
  }
  .blog-pager button:disabled { opacity: .4; cursor: default; }
  .blog-pager button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
}

/* Footer: full-width dark-red band (same gradient as the banners) with brand, legal links and contact. */
footer {
  display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); align-items: start;
  gap: 2rem clamp(1.5rem, 4vw, 4rem); width: 100%;
  padding: clamp(2.2rem, 4vw, 3.6rem) max(4%, calc((100% - 88rem) / 2)) 1.3rem;
  color: white; background: linear-gradient(120deg, #6b102b, #a41335 65%, #82334b); font-size: .95rem; line-height: 1.65;
}
footer .brand img { width: clamp(9.5rem, 13vw, 12rem); filter: brightness(0) invert(1); }
.footer-brand p { max-width: 34ch; margin-top: .9rem; color: #ffffffd9; }
footer strong { display: block; margin-bottom: .55rem; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: #ffffffb8; }
footer .legal-links, .footer-links { flex-direction: column; align-items: flex-start; gap: .2rem; font-size: inherit; font-weight: 500; }
.footer-contact { font-style: normal; }
.footer-bottom {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem;
  padding-top: 1.2rem; border-top: 1px solid #ffffff3d; font-size: .85rem; color: #ffffffd9;
}
footer a, footer .cookie-settings { text-decoration: underline transparent; transition: text-decoration-color .15s; }
footer a:hover, footer .cookie-settings:hover, footer .legal-links a[aria-current] { color: white; text-decoration-color: currentColor; }
@media (max-width: 800px) {
  footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { footer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.blog-index .chapter-intro > .secondary { display: inline-block; margin-bottom: 1rem; }

/* Overlay scrollbar (see scrollbar.js): no native bar, so the page keeps its full width. */
html.overlay-scroll { scrollbar-width: none; }
html.overlay-scroll::-webkit-scrollbar { display: none; }
.scroll-thumb {
  position: fixed; z-index: 40; top: 0; right: 3px; width: 6px; border-radius: 6px;
  background: var(--red); opacity: 0; pointer-events: none; transition: opacity .35s;
}
.scroll-thumb.visible { opacity: .8; }

/* Hero polish: the photo always fills the hero, with a label, a two-tone headline, pill buttons and a glass card. */
.hero { min-height: calc(100dvh - var(--bar-height) - 1px); } /* exactly one screen under the navbar */
@media (min-width: 801px) {
  .hero {
    background:
      linear-gradient(90deg, rgb(10 18 31 / 94%), rgb(13 22 37 / 84%) 30%, rgb(13 22 37 / 48%) 50%, transparent 70%),
      linear-gradient(0deg, rgb(10 18 31 / 55%), transparent 32%),
      url('/careapo/pharmacy-evening.webp') right center / cover no-repeat, #18212e;
  }
}
.hero-label {
  display: inline-flex; align-items: center; gap: .55em; margin-bottom: 1.1rem; padding: .4rem 1rem;
  border: 1px solid rgb(255 255 255 / 30%); border-radius: 2rem; background: rgb(255 255 255 / 10%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .9rem; font-weight: 700;
}
.hero-label::before { content: ''; width: .55em; height: .55em; border-radius: 50%; background: #ff8fa6; box-shadow: 0 0 0 4px rgb(255 143 166 / 25%); }
.hero h1 { font-size: clamp(2.4rem, 3.9vw, 4.4rem); line-height: 1.04; letter-spacing: -.05em; }
.hero h1 em { display: block; color: #ffb3c1; }
.hero p { margin-top: 1.1rem; color: rgb(255 255 255 / 88%); }
.hero p strong { color: white; }
.hero .actions { margin: 1.6rem 0; gap: .75rem; }
.hero .button, .hero .secondary { padding: .85rem 1.4rem; border-radius: 2rem; }
.hero .button { background: linear-gradient(120deg, #8a1230, #c21a43 70%, #a8324f); box-shadow: 0 6px 18px rgb(164 19 53 / 45%); }
.hero .button:hover { background: linear-gradient(120deg, #7a102a, #a41335); }
.hero .secondary { border: 1.5px solid rgb(255 255 255 / 70%); background: rgb(255 255 255 / 8%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .secondary:hover { background: rgb(255 255 255 / 20%); }
@media (min-width: 1051px) and (min-height: 640px) {
  .hero .glance {
    background: rgb(255 255 255 / 9%); border-color: rgb(255 255 255 / 24%); border-radius: 1.15rem;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgb(0 0 0 / 25%);
  }
}

/* Phone hero: one full screen – the photo (woman and terminal) on top fades into the dark text area below. */
@media (max-width: 800px) {
  .hero {
    justify-content: flex-end; min-height: calc(100svh - var(--bar-height) - 1px);
    background:
      linear-gradient(180deg, transparent, rgb(19 28 42 / 45%) 20%, #131c2a 45%),
      url('/careapo/pharmacy-evening.webp') 76% top / auto 47% no-repeat, #131c2a;
  }
  .hero::before { content: none; }
  .hero-copy { padding: 9.5rem 5% 1.6rem; }
  .hero-label { margin-bottom: .8rem; font-size: .8rem; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.7rem); }
  .hero p { margin-top: .8rem; font-size: .95rem; }
  .hero .actions { margin: 1.1rem 0; gap: .6rem; }
  .hero .actions a { padding: .7rem 1rem; font-size: .88rem; }
  .hero .glance h2 { font-size: 1.1rem; margin-bottom: .5rem; }
  .hero .glance li { font-size: .92rem; }
}
.hero { border-bottom: 0; } /* no light divider line under the dark photo */

/* Home page blog section on tablets and bigger: one row that scrolls sideways – four posts visible on big
   screens, two on tablets. The arrow buttons in the banner move it; swiping and trackpads work too.
   (Phones up to 48rem use the one-post pager defined further up.) */
.blog-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.blog-controls button { display: none; }
@media (min-width: 48.01rem) {
  #blog .blog-grid {
    --visible: 4; --gap: 1.2rem;
    grid-template-columns: none; grid-auto-flow: column; gap: var(--gap);
    grid-auto-columns: calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: -.6rem; padding: .6rem .6rem 1.4rem; scroll-padding-inline: .6rem; /* room for the card shadows */
  }
  #blog .blog-grid::-webkit-scrollbar { display: none; }
  #blog .blog-grid article { scroll-snap-align: start; }
  .blog-controls button {
    display: block; width: 2.9rem; height: 2.9rem; border: 1.5px solid rgb(255 255 255 / 75%); border-radius: 50%;
    background: rgb(255 255 255 / 10%); color: white; font: inherit; font-size: 1.2rem; cursor: pointer; transition: background-color .15s, opacity .15s;
  }
  .blog-controls button:hover:not(:disabled) { background: rgb(255 255 255 / 28%); }
  .blog-controls button:disabled { opacity: .35; cursor: default; }
  .blog-controls button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
}
@media (min-width: 48.01rem) and (max-width: 1100px) { #blog .blog-grid { --visible: 2; } }
@media (min-width: 48.01rem) and (prefers-reduced-motion: no-preference) { #blog .blog-grid { scroll-behavior: smooth; } }

/* Integration: terminal picture with the installation-check button underneath. */
.integration-visual { display: grid; justify-items: center; gap: .9rem; align-self: start; text-align: center; }
.integration-visual { justify-items: stretch; text-align: left; }
.integration-visual > .integration-terminal { justify-self: center; }
/* Attention card for the installation check, in the banner gradient. */
.check-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .9rem 1rem; padding: clamp(1.1rem, 1.6vw, 1.5rem);
  border-radius: 1.15rem; color: white; background: linear-gradient(120deg, #6b102b, #a41335 65%, #82334b); box-shadow: 0 10px 28px #a4133540;
}
.check-card > svg { width: 2.6rem; height: 2.6rem; padding: .5rem; border-radius: .8rem; background: rgb(255 255 255 / 16%); }
.check-card strong { display: block; font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.2; letter-spacing: -.03em; }
.check-card p { margin-top: .3rem; color: rgb(255 255 255 / 88%); font-size: .92rem; line-height: 1.4; }
.check-card .button {
  grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: .5rem; padding: .8rem 1.2rem;
  border-radius: 2rem; background: white; color: var(--red); text-align: center; transition: transform .15s, box-shadow .15s;
}
.check-card .button:hover { background: white; transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / 22%); }
#integration article > img { height: auto; } /* the images carry width/height attributes now; keep their proportions */

/* Installation photos */
.install-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.2vw, 1.2rem); }
:is(.chapter, .post) .install-grid li { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 1.25rem; border: 1px solid var(--line); background: var(--tint); }
.install-grid img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: 0; }
@media (min-width: 48.01rem) { .post .install-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.5rem; } }
@media (max-width: 48rem) { .install-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.install-grid a { display: block; height: 100%; cursor: zoom-in; }
.lightbox { outline: 0; border: 0; padding: 0; background: none; max-width: 96vw; max-height: 96vh; overflow: visible; cursor: zoom-out; }
.lightbox img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 1rem; }
