/* Cleangreen Testseite – Gestaltung nach den Beispielseiten im Storyboard (Teil 07) und dem CI/CD */
:root {
  --t: #34B7EB;        /* Türkis */
  --td: #177FAA;       /* Türkis dunkel, Links und aktive Navigation */
  --dg: #4D4D4D;       /* Dunkelgrau */
  --lt: #EAF7FD;       /* Hellblau */
  --bk: #0A0A0A;       /* Tiefschwarz */
  --ow: #F1F1F1;       /* helles Grau für Flächen */
  --line: #DCDCDC;     /* feine Linien */
  --white: #FFFFFF;
  --ok: #2E7D4F;
  --err: #B3261E;
  --font: Aptos, "Aptos Display", "Segoe UI", Arial, Helvetica, sans-serif;
  --radius: 8px;
  --content: 1344px;
  --pad: 48px;
  --gap: 24px;
  --vw: 100vw;
  --left: max(var(--pad), calc((var(--vw) - var(--content)) / 2));
  --fs-xs: 12px; --fs-s: 13px; --fs-b: 15px; --fs-l: 16px;
  --fs-h1: 36px; --fs-h2: 26px; --fs-h3: 16px;
  --head-h: 64px;
}
@media (max-width: 900px) { :root { --pad: 24px; --gap: 16px; --fs-h1: 28px; --fs-h2: 22px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-b); line-height: 1.55; color: var(--dg); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--td); text-underline-offset: 3px; }
a:hover { color: var(--bk); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; color: var(--dg); font-weight: 400; letter-spacing: 0; }
h1 { font-size: var(--fs-h1); line-height: 1.2; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h1.bold, h2.bold { font-weight: 600; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 1.2em; }
b, strong { font-weight: 600; }
em, i { font-style: normal; }
:focus-visible { outline: 3px solid var(--td); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--content) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.small { font-size: var(--fs-s); }
.muted { color: #6B6B6B; }

/* Testbanner (nur Testseite) */
.testbar { background: #2F2F2F; color: var(--white); font-size: 12px; }
.no-testbar .testbar { display: none; }
.testbar .wrap { display: flex; gap: 8px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 5px; padding-bottom: 5px; }
.testbar strong { letter-spacing: .08em; }
.testbar a { color: var(--white); font-weight: 600; }
.testbar .pill { display: inline-block; border: 1px solid rgba(255,255,255,.5); border-radius: 99px; padding: 0 8px; margin: 0 6px; }

/* Jubiläumsband, schliessbar */
.jubiband { background: var(--lt); color: var(--dg); font-size: var(--fs-s); text-align: center; padding: 7px 48px; position: relative; }
.jubiband b { color: var(--dg); }
.jubiband a { font-weight: 600; text-decoration: none; }
.jubiband button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; font: inherit; font-size: 18px; line-height: 1; color: var(--dg); cursor: pointer; padding: 4px 8px; }
.jubiband[hidden] { display: none; }

/* Kopfzeile, fixiert */
.head { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid #E6E6E6; }
.head .wrap { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.logo img { height: 42px; width: auto; }
.nav { display: flex; gap: 0; margin-left: auto; margin-right: 24px; }
.nav a { color: var(--dg); text-decoration: none; padding: 20px 18px 19px; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--td); }
.nav a[aria-current="page"] { color: var(--td); border-bottom-color: var(--t); font-weight: 600; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; color: var(--dg); font: inherit; font-size: 14px; }
@media (max-width: 1439px) { .nav a { padding-left: 11px; padding-right: 11px; } .nav { margin-right: 12px; } }
@media (max-width: 1279px) {
  .burger { display: inline-flex; gap: 8px; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--white); flex-direction: column; padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(10,10,10,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--ow); font-size: 15px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--ow); }
  .head .btn.desk { display: none; }
  .nav .btn { display: inline-flex; margin-top: 14px; justify-content: center; }
}
@media (min-width: 1280px) { .nav .btn { display: none; } }

/* Schaltflächen: Türkis mit Tiefschwarz, nie Weiss auf Türkis */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--t); color: var(--bk); border: 1.5px solid var(--t); padding: 9px 22px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; line-height: 1.25; min-height: 40px; transition: background .15s, border-color .15s; }
.btn:hover { background: #5CC6F0; border-color: #5CC6F0; color: var(--bk); }
.btn.ghost { background: var(--white); color: var(--dg); border-color: var(--dg); }
.btn.ghost:hover { background: var(--ow); }
.btn.small { padding: 6px 14px; font-size: var(--fs-s); min-height: 32px; }
.btn.wide { min-width: 200px; }
.btn[disabled] { opacity: .55; cursor: wait; }
.more { font-weight: 600; text-decoration: none; font-size: 14px; color: var(--td); }
.more::after { content: " \2192"; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* Rubrik mit Bildmarke */
.rub { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--dg); margin: 0 0 12px; }
.rub img { height: 14px; width: auto; }
.rub.t { color: var(--t); }
.rub.t img.ico { height: 18px; }

/* Abschnitte */
.sec { padding: 40px 0; }
.sec.tight { padding: 28px 0; }
.sec.first { padding-top: 28px; }
.band-grey { background: var(--ow); }
.band-lt { background: var(--lt); }
.band-dark { background: var(--dg); color: var(--white); }
.sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap); flex-wrap: wrap; margin-bottom: 24px; }
.sechead h2 { margin: 0; }
.headrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); gap: var(--gap); align-items: start; margin-bottom: 28px; }
.headrow h1, .headrow h2 { margin: 0; }
.headrow .aside { padding-top: 6px; font-size: 14px; }
@media (max-width: 900px) { .headrow { grid-template-columns: 1fr; } }
.crumb { font-size: 12px; margin: 0 0 14px; color: var(--dg); }
.crumb a { color: var(--dg); text-decoration: none; }
.crumb a:hover { color: var(--td); }
.crumb .sep { margin: 0 6px; }
.lead { font-size: var(--fs-b); max-width: 76ch; }
.q { font-size: var(--fs-b); color: var(--dg); }

/* Einstiegsbereich mit Kopfbild: rechts bündig an Kopfzeile und Fensterrand */
.phead { position: relative; overflow: hidden; }
.phead .pimg { position: absolute; top: 0; right: 0; width: var(--iw, 42vw); aspect-ratio: var(--ar, 2.912); height: auto; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); background: var(--lt); }
.phead .wrap { min-height: calc(var(--iw, 42vw) / var(--ar, 2.912)); display: flex; }
.phead .txt { width: calc(100vw - var(--iw, 42vw) - var(--left) - 48px); max-width: 100%; padding: 22px 0 22px; display: flex; flex-direction: column; justify-content: flex-start; }
.phead .txt.mid { justify-content: center; }
.phead h1 { margin-bottom: 18px; }
.phead h1.two { font-weight: 600; font-size: 30px; line-height: 1.25; margin-bottom: 14px; }
.phead h1.two span { display: block; }
.phead .lead { margin: 0; }
.phead.home { --iw: 47vw; --ar: 2.294; --fx: 75%; }
.phead.home .txt { padding-top: 40px; padding-bottom: 32px; }
.phead.home h1 { font-size: 40px; margin-bottom: 14px; }
.phead.home .lead { max-width: 64ch; }
@media (max-width: 900px) {
  .phead .pimg { position: static; width: 100%; aspect-ratio: 2 / 1; }
  .phead .wrap { min-height: 0; display: block; }
  .phead .txt { width: auto; padding: 22px 0 8px; }
  .phead.home h1 { font-size: 30px; }
  .phead h1.two { font-size: 24px; }
}

/* WISSEN. LÖSUNGEN. WIRKUNG. als Leitworte */
.wlw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.wlw .it { display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; }
.wlw .it img { width: 40px; height: 40px; }
.wlw h3 { letter-spacing: .14em; font-size: 18px; font-weight: 700; color: var(--dg); margin: 6px 0 12px; }
.wlw p { margin: 0; font-size: 14px; }
@media (max-width: 900px) { .wlw { grid-template-columns: 1fr; } }

/* Karten und Raster */
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gap16 { gap: 16px; }
@media (max-width: 1100px) { .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4, .g5, .g6 { grid-template-columns: 1fr; } }
.grid > * { min-width: 0; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--dg); transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--t); box-shadow: 0 4px 16px rgba(10,10,10,.06); color: var(--dg); }
.card .ph { width: 100%; aspect-ratio: var(--ar, 2.78); object-fit: cover; object-position: var(--fx, 50%) 50%; background: var(--lt); }
.card .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 15px; font-weight: 600; display: flex; gap: 12px; align-items: center; color: var(--dg); }
.card h3 img { width: 28px; height: 28px; flex: none; }
.card p { margin: 0; font-size: 13px; line-height: 1.5; }
.card .more { margin-top: auto; padding-top: 10px; font-size: 13px; }
.card.grey { background: var(--ow); border-color: var(--ow); }
.card.lt { background: var(--lt); border-color: #CBEAF7; }

/* Leistungsfeld-Kachel Startseite (Variante C: Hellblau-Kopf) */
.feld .fh { background: var(--lt); padding: 14px 20px; display: flex; gap: 12px; align-items: center; }
.feld .fh img { width: 28px; height: 28px; }
.feld .fh h3 { margin: 0; font-size: 15px; }
.feld .bd { padding-top: 16px; }
.feld .bd p { font-size: 13px; }

/* Link-Zeile mit Pfeil */
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 46px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--dg); background: var(--white); font-size: 13px; line-height: 1.3; }
.lrow img { width: 26px; height: 26px; flex: none; }
.lrow::after { content: "\2192"; margin-left: auto; color: var(--t); font-weight: 700; padding-left: 10px; }
.lrow:hover { border-color: var(--t); color: var(--bk); }
.lrow.noarr::after { content: none; }
.lrow b { font-weight: 600; }
.fhead { background: var(--lt); border: 1px solid #CBEAF7; padding: 12px 16px; display: flex; gap: 12px; align-items: center; margin-bottom: 8px; min-height: 54px; }
.fhead img { width: 30px; height: 30px; }
.fhead h3 { margin: 0; font-size: 15px; }
.fcol { display: flex; flex-direction: column; gap: 8px; }

/* Branchen-Chips Startseite */
.chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 46px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--dg); background: var(--white); font-size: 13px; font-weight: 600; line-height: 1.3; }
.chip img { width: 26px; height: 26px; flex: none; }
.chip:hover { border-color: var(--t); color: var(--bk); }
.chip.main { border-color: #BFE6F7; background: var(--lt); }
@media (max-width: 1100px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .chips { grid-template-columns: 1fr 1fr; } }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.kpi .n { font-size: 40px; font-weight: 700; color: var(--t); line-height: 1; margin-bottom: 14px; }
.kpi .l { font-size: 14px; }
.kpi .n.ph { color: #9AA6AD; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .n { font-size: 32px; } }

/* Detailseite Leistung: drei Säulen */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { background: var(--ow); border-radius: var(--radius); padding: 22px 22px 24px; min-width: 0; }
.pillar .ph3 { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; font-size: 15px; color: var(--dg); }
.pillar .ph3 img { width: 30px; height: 30px; flex: none; }
.pillar .ph3 b { letter-spacing: .12em; font-weight: 700; }
.pillar .ph3 span { letter-spacing: .06em; font-weight: 600; }
.pillar p { font-size: 14px; }
.sq { list-style: none; padding: 0; margin: 0; }
.sq li { position: relative; padding: 0 0 0 18px; margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.sq li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 6px; height: 6px; background: var(--t); }
.sq.s li { font-size: 13px; margin-bottom: 4px; }
.pillar .sq { margin-top: 16px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.phasen { display: grid; gap: 8px; }
.phase { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; }
.phase .nr { width: 34px; height: 34px; border-radius: 4px; display: grid; place-items: center; font-weight: 700; color: var(--bk); font-size: 14px; }
.phase:nth-child(1) .nr { background: #34B7EB; } .phase:nth-child(2) .nr { background: #8DD2E7; } .phase:nth-child(3) .nr { background: #A2B2DC; } .phase:nth-child(4) .nr { background: #177FAA; color: var(--white); }
.phase b { font-size: 13px; color: var(--dg); } .phase small { color: var(--td); font-size: 12px; margin-left: 6px; }
.phase span { display: block; font-size: 12.5px; line-height: 1.4; }
.rueck { display: flex; gap: 6px; align-items: center; font-size: 12.5px; margin-top: 10px; }
.rueck img { width: 16px; height: 16px; }

/* Band «Weitere Leistungen» und Gesprächsband */
.moreband { background: var(--dg); color: var(--white); }
.moreband .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
.moreband p { margin: 0; font-size: 14px; }
.moreband b { font-weight: 600; margin-right: 6px; }
.moreband a:not(.btn) { color: var(--white); text-decoration: none; }
.moreband a:not(.btn):hover { text-decoration: underline; }
.moreband .dot { margin: 0 10px; opacity: .8; }
.moreband .lg { font-size: 16px; }
.talk { background: var(--lt); }
.talk .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.talk p { margin: 0; font-size: 14px; }

/* Branchenseite */
.bgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--gap); align-items: start; }
.bgrid.b2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1.35fr); }
@media (max-width: 1000px) { .bgrid, .bgrid.b2 { grid-template-columns: 1fr; } }
.ubox h3 { background: var(--ow); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; margin: 0 0 12px; border: 1px solid var(--ow); }
.ubox.on h3 { background: var(--lt); border-color: #BFE6F7; }
.ubox h3 img { width: 24px; height: 24px; }
.ubox p { font-size: 13px; margin-bottom: 10px; padding: 0 4px; }
.ubox .sq { padding: 0 4px; }
.staerke { background: var(--ow); border-radius: var(--radius); padding: 18px 20px 20px; }
.staerke h3 { font-size: 14px; margin: 0 0 14px; }
.staerke .row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; margin-bottom: 16px; font-size: 13px; line-height: 1.45; }
.staerke .row:last-child { margin-bottom: 0; }
.staerke .row img { width: 28px; height: 28px; }
.staerke .row b { color: var(--td); font-weight: 700; }
.btext p { font-size: 13.5px; }
.btext .lbl { font-weight: 600; font-size: 13.5px; margin: 6px 0 6px; }
.mrow { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 12px; }
.mrow .lrow { font-weight: 600; font-size: 12.5px; min-height: 58px; }
.mrow .lrow::after { content: none; }
@media (max-width: 1100px) { .mrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mrow { grid-template-columns: 1fr; } }
.h4 { font-size: 14px; font-weight: 600; margin: 0 0 12px; color: var(--dg); }

/* Branchen-Übersicht */
.btile .ph { --ar: 3.814; }
.btile .bd { flex-direction: row; gap: 12px; align-items: flex-start; padding: 16px 18px 18px; }
.btile .bd > img { width: 28px; height: 28px; flex: none; margin-top: 1px; }
.btile h3 { font-size: 15px; display: block; }
.btile .sub { font-size: 12px; color: var(--td); font-weight: 600; margin-top: 6px; display: block; }
.btile .sub a { text-decoration: none; }
.nlbox { background: var(--lt); border: 1px solid #CBEAF7; border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.nlbox img { width: 30px; height: 30px; }
.nlbox h3 { margin: 0 0 8px; font-size: 15px; }

/* esora */
.esora-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.esora-hero h1 { font-size: 30px; }
.esora-hero .shot { width: 100%; aspect-ratio: 2.417; object-fit: cover; object-position: 20% 0; border-radius: 2px; }
@media (max-width: 900px) { .esora-hero { grid-template-columns: 1fr; } }
.feat .bd { gap: 10px; padding: 22px 18px; }
.feat .bd img { width: 30px; height: 30px; }
.feat h3 { margin-top: 6px; }
.footnote { background: var(--ow); padding: 18px 0; font-size: 13px; text-align: right; }

/* Fachbücher */
.book { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 24px; padding: 20px; }
.book .cv { width: 100%; aspect-ratio: .78; object-fit: contain; background: var(--white); }
.book h3 { font-size: 18px; font-weight: 600; margin: 4px 0 10px; display: block; }
.book .au { color: var(--td); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.book p { font-size: 13px; }
.book .buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; }
.book .bt { display: flex; flex-direction: column; }
@media (max-width: 640px) { .book { grid-template-columns: 110px 1fr; } }

/* Teaser Startseite: esora und Fachbücher */
.teaser { border-radius: var(--radius); padding: 24px 28px; display: grid; gap: 20px; align-items: center; min-height: 230px; }
.teaser.esora { background: var(--ow); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.teaser.buch { border: 1px solid var(--line); grid-template-columns: minmax(0, 1.05fr) minmax(0, .65fr) minmax(0, .65fr); }
.teaser h3 { font-size: 18px; font-weight: 600; }
.teaser p { font-size: 13.5px; }
.teaser .shot { width: 100%; aspect-ratio: 1.594; object-fit: cover; object-position: 30% 10%; }
.teaser .cv { width: 100%; aspect-ratio: .78; object-fit: cover; }
@media (max-width: 900px) { .teaser.esora, .teaser.buch { grid-template-columns: 1fr; } .teaser .cv { max-width: 200px; } }

.jubirow { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.jubirow img { width: 120px; }
.jubirow h3 { font-size: 18px; margin-bottom: 6px; }
.jubirow p { margin: 0; font-size: 14px; }
@media (max-width: 760px) { .jubirow { grid-template-columns: 1fr; gap: 16px; } }

/* Über uns */
.values .card .bd { padding: 18px 20px; }
.values h3 { font-size: 15px; }
.teambox { background: var(--ow); border-radius: var(--radius); padding: 22px 24px; }
.teambox h3, .histbox h3 { font-size: 16px; margin-bottom: 12px; }
.teambox p { font-size: 13.5px; }
.histbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }

/* Meilensteine */
.ms { position: relative; display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 12px; }
.ms .y { text-align: center; font-size: 20px; font-weight: 700; color: var(--td); }
.ms .y.p { color: #9A9A9A; }
.ms .dot { height: 40px; position: relative; }
.ms .dot::before { content: ""; position: absolute; top: 50%; left: -6px; right: -6px; height: 2px; background: var(--t); }
.ms .col:first-child .dot::before { left: 50%; }
.ms .col:last-child .dot::before { right: 50%; }
.ms .dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--t); border: 2px solid var(--t); }
.ms .col.p .dot::after { background: var(--white); border-color: #9A9A9A; }
.ms .col.last .dot::after { background: var(--dg); border-color: var(--dg); }
.ms .box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; text-align: center; min-height: 210px; display: flex; flex-direction: column; margin-top: 8px; }
.ms .col.last .box { background: var(--lt); border-color: #CBEAF7; }
.ms .box b { font-size: 13.5px; display: block; margin-bottom: 14px; min-height: 2.6em; }
.ms .box span { font-size: 12.5px; line-height: 1.45; }
.ms .box .pr { margin-top: auto; padding-top: 12px; font-size: 11.5px; color: #8A8A8A; }
@media (max-width: 1000px) { .ms { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ms .dot { display: none; } .ms .box { min-height: 0; } }
.ms.compact .box { min-height: 0; }

/* Jubiläum */
.jhead { background: var(--lt); position: relative; overflow: hidden; }
.jhead .pimg { position: absolute; top: 0; right: 0; height: 100%; width: 41vw; object-fit: cover; object-position: 80% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.jhead .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; min-height: calc(41vw / 2.311 + 10px); padding-top: 24px; padding-bottom: 24px; position: relative; }
.jhead .txt { max-width: calc(100vw - 41vw - var(--left) - 220px - 48px); }
.jhead .txt h1 { margin-bottom: 28px; }
.jhead img.logo30 { width: 200px; }
@media (max-width: 900px) { .jhead .pimg { display: none; } .jhead .wrap { grid-template-columns: 1fr; min-height: 0; gap: 16px; } .jhead .txt { max-width: none; } .jhead img.logo30 { width: 150px; } }
.prog .bd { padding: 22px 20px; gap: 10px; }
.prog h3 { font-size: 16px; }
.prog h3 img { width: 34px; height: 34px; }
.prog .when { color: var(--td); font-weight: 600; font-size: 13px; }
.prog .more { margin-top: auto; padding-top: 24px; }
.ek .bd { flex-direction: row; gap: 18px; padding: 22px 20px; }
.ek .nr { font-size: 26px; font-weight: 700; color: var(--t); line-height: 1; min-width: 36px; }
.ek h3 { display: block; font-size: 14.5px; margin-bottom: 10px; }
.vorm { background: var(--dg); color: var(--white); }
.vorm .wrap { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; align-items: start; }
.vorm h2 { color: var(--white); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.vorm p { font-size: 14px; }
.vorm img.ic { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.vorm .formcard { background: transparent; border: 0; box-shadow: none; padding: 0; }
.vorm label, .vorm .lbl { color: var(--white); }
.vorm .chk a { color: var(--white); }
.vorm .note { background: rgba(255,255,255,.1); color: var(--white); }
.vorm .success { color: var(--dg); }
@media (max-width: 900px) { .vorm .wrap { grid-template-columns: 1fr; } }

/* Kontakt */
.kgrid { display: grid; grid-template-columns: minmax(0, 0.77fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 1000px) { .kgrid { grid-template-columns: 1fr; gap: 32px; } }
.kbox { background: var(--ow); border-radius: var(--radius); padding: 12px 18px; display: grid; grid-template-columns: 34px 1fr; gap: 0 16px; align-items: center; text-decoration: none; color: var(--dg); margin-bottom: 10px; }
.kbox img { width: 30px; height: 30px; }
.kbox b { font-size: 14.5px; display: block; }
.kbox span { font-size: 12.5px; }
a.kbox:hover { background: var(--lt); color: var(--dg); }
.mapimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.way { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 13px; }
.way img { width: 28px; height: 28px; }
.way b { display: block; font-size: 14px; margin-bottom: 4px; }
@media (max-width: 640px) { .ways { grid-template-columns: 1fr; } }

/* Jobs */
.job .bd { flex-direction: row; gap: 16px; padding: 18px 20px; }
.job .bd > img { width: 30px; height: 30px; flex: none; }
.job h3 { display: block; font-size: 15px; margin-bottom: 14px; }
.job p { font-size: 13px; }
.job .more { display: inline-block; margin-top: 6px; }

/* Newsletter */
.nlgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.nlgrid .prev { background: var(--ow); border: 1px solid var(--line); padding: 0; overflow: hidden; }
.nlgrid .prev img { width: 100%; height: auto; }
@media (max-width: 1000px) { .nlgrid { grid-template-columns: 1fr; } }

/* Rechtliches */
.legal3 .card { background: var(--ow); border-color: var(--ow); }
.legal3 .bd { padding: 22px 22px 28px; }
.legal3 h3 { font-size: 15px; margin-bottom: 14px; }
.legal3 p, .legal3 li { font-size: 13.5px; }
.dsg .bd { flex-direction: row; gap: 20px; padding: 20px 22px; }
.dsg .nr { font-size: 20px; font-weight: 700; color: var(--t); min-width: 16px; line-height: 1.1; }
.dsg h3 { display: block; margin-bottom: 10px; font-size: 15px; }
.note { font-size: var(--fs-s); color: var(--dg); background: var(--ow); border-left: 3px solid var(--t); padding: 10px 14px; border-radius: 0 6px 6px 0; }
.draft { display: inline-block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--white); border: 1px dashed #9AA6AD; padding: 1px 7px; border-radius: 4px; margin-left: 8px; vertical-align: middle; color: #6B6B6B; font-weight: 400; }

/* Formulare */
form { display: grid; gap: 14px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid.g3f { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .fgrid, .fgrid.g3f { grid-template-columns: 1fr; } }
.f { display: flex; flex-direction: column; gap: 5px; }
.f.full { grid-column: 1 / -1; }
label, .lbl { font-size: 13px; font-weight: 600; color: var(--dg); }
.req::after { content: " *"; color: var(--td); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=time], select, textarea {
  font: inherit; font-size: 14px; color: var(--bk); background: var(--white); border: 1px solid #B5B5B5; border-radius: 2px; padding: 9px 11px; width: 100%; min-height: 40px; }
input[type=file] { font: inherit; font-size: 13px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--td); box-shadow: 0 0 0 3px rgba(52,183,235,.22); }
.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; cursor: pointer; line-height: 1.45; }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--td); flex: none; }
.chk img { width: 22px; height: 22px; flex: none; margin-top: -2px; }
.chkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding-left: 20px; }
@media (max-width: 640px) { .chkgrid { grid-template-columns: 1fr; padding-left: 0; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ferr { color: var(--err); font-size: 13px; font-weight: 600; }
.invalid { border-color: var(--err) !important; }
.formmsg { padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.formmsg.err { background: #FCEDEC; color: var(--err); border: 1px solid #F3C1BD; }
.success { background: var(--lt); border: 1px solid #BFE6F7; border-radius: var(--radius); padding: 28px; color: var(--dg); }
.success h3 { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.success h3 img { width: 30px; height: 30px; }
.formcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.formcard.flat { border: 0; padding: 0; }
.h3s { font-size: 16px; font-weight: 600; margin: 4px 0 4px; }

/* Terminbuchung */
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.steps span { font-size: 12.5px; padding: 5px 12px; border-radius: 99px; background: var(--ow); color: var(--dg); }
.steps span.on { background: var(--lt); color: var(--td); font-weight: 700; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day { flex: none; width: 84px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px; text-align: center; background: var(--white); cursor: pointer; font: inherit; color: var(--dg); }
.day b { display: block; font-size: 20px; color: var(--bk); line-height: 1.1; font-weight: 600; }
.day small { display: block; font-size: 11.5px; }
.day[aria-pressed="true"] { border-color: var(--td); background: var(--lt); box-shadow: inset 0 0 0 1px var(--td); }
.times { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.time { border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; background: var(--white); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--dg); }
.time[aria-pressed="true"] { background: var(--t); border-color: var(--t); color: var(--bk); }
.fmt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fmt label { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 400; font-size: 14px; }
.fmt label:has(input:checked) { border-color: var(--td); background: var(--lt); }
.fmt img { width: 24px; height: 24px; }
.fmt input { accent-color: var(--td); }
@media (max-width: 640px) { .fmt { grid-template-columns: 1fr; } }
.picked { background: var(--lt); border-radius: 8px; padding: 10px 14px; font-weight: 600; color: var(--bk); display: flex; gap: 10px; align-items: center; font-size: 14px; }
.picked img { width: 22px; height: 22px; }

/* Fusszeile: ruhiges dunkles Band wie in der PP */
.foot { background: var(--dg); color: var(--white); font-size: 12.5px; }
.foot .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; min-height: 112px; padding-top: 24px; padding-bottom: 24px; }
.foot img { height: 46px; width: auto; }
.foot p { margin: 0; line-height: 1.6; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .claim { letter-spacing: .2em; font-weight: 700; font-size: 12px; white-space: nowrap; }
.foot .meta { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; font-size: 11.5px; opacity: .85; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .foot .wrap { grid-template-columns: 1fr; } }

/* Testcenter und Verwaltung */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { font: inherit; background: none; border: 0; border-bottom: 3px solid transparent; padding: 9px 12px; cursor: pointer; color: var(--dg); font-size: 14px; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--t); color: var(--bk); font-weight: 700; }
.badge { display: inline-block; min-width: 20px; padding: 0 7px; border-radius: 99px; background: var(--t); color: var(--bk); font-size: 11.5px; font-weight: 700; text-align: center; margin-left: 6px; }
.badge.grey { background: var(--ow); color: var(--dg); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--white); }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dg); background: var(--ow); padding: 9px 12px; position: sticky; top: 0; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--ow); vertical-align: top; }
.tbl tr.sel td { background: var(--lt); }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: #F7FBFD; }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.st { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.st-neu, .st-unbestätigt { background: var(--t); color: var(--bk); }
.st-in-Bearbeitung { background: #FFE9B8; color: #5A4300; }
.st-erledigt, .st-bestätigt, .st-versendet { background: #DCEFE3; color: #1F5C38; }
.st-abgesagt, .st-abgemeldet, .st-Fehler { background: #F6DCDA; color: #8A1F18; }
.st-gespeichert { background: var(--ow); color: var(--dg); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--gap); align-items: start; }
@media (max-width: 960px) { .panel { grid-template-columns: 1fr; } }
.viewer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ow); overflow: hidden; position: sticky; top: 84px; }
.viewer .vh { background: var(--white); padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.viewer iframe { width: 100%; height: 640px; border: 0; background: var(--ow); display: block; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 13.5px; margin: 0 0 14px; }
.dl dt { color: var(--td); font-weight: 600; }
.dl dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.empty { padding: 32px; text-align: center; color: var(--dg); background: var(--ow); border-radius: var(--radius); }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--ow), #E6EAEC, var(--ow)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 10px 0; }
@keyframes sk { to { background-position: -200% 0; } }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--white); }
.box h3 { display: flex; gap: 12px; align-items: center; }
.box h3 img { width: 28px; height: 28px; }
form > *, .fgrid > *, .panel > * { min-width: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Funktionsseiten (Termin, Testcenter, Verwaltung) */
.dhero { padding: 28px 0 48px; }
.dhero h1 { margin-bottom: 14px; }
.dhero .lead { margin-bottom: 20px; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--dg); margin: 0 0 12px; }
.eyebrow img { height: 14px; width: auto; }
.cards { display: grid; gap: 16px; }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards.c3 { grid-template-columns: 1fr; } }
.cards > * { min-width: 0; }
main > section.tight:not(.sec) { padding: 0 0 48px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.bgrid.solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.ms .col { display: flex; flex-direction: column; }
.ms .col .box { flex: 1 1 auto; }
.jhead h1 span { display: block; }

/* ---------- Ergänzungen aus den Prüfrunden (ergänzen bestehende Regeln weiter oben) ---------- */
.nav a.navesora { display: inline-flex; align-items: center; }
.nav a.navesora { flex: none; }
.nav a.navesora img { height: 19px; width: 54px; min-width: 54px; display: block; }
.head .btn.desk { padding-left: 18px; padding-right: 18px; white-space: nowrap; }

/* Kennzahlen */
.kband { padding: 30px 0; }
.kband .kpis { gap: 0; }
.kband .kpi { display: flex; align-items: center; gap: 16px; padding: 6px 22px; border-left: 1px solid #DADADA; }
.kband .kpi:first-child { border-left: 0; padding-left: 0; }
.kband .kpi .ki { width: 54px; height: 54px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px #E3E3E3; }
.kband .kpi .ki img { width: 28px; height: 28px; }
.kband .kpi .n { font-size: 34px; margin-bottom: 6px; }
.kband .kpi .l { font-size: 13px; line-height: 1.4; }
@media (max-width: 1100px) { .kband .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } .kband .kpi { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .kband .kpis { grid-template-columns: 1fr; } }
.teaser .tag { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--td); margin-bottom: 10px; }
/* Leistungsseiten: gleiche Position der Kacheln, grösserer Einleitungstext */
.phead.leist .lead { font-size: 17px; line-height: 1.6; }
@media (min-width: 901px) { .phead.leist .wrap { min-height: max(calc(var(--iw, 42vw) / var(--ar, 2.912)), var(--leist-h, 290px)); } }
/* Branchen: Kachel «Unsere Stärke» bündig mit dem Kopfbild */
@media (min-width: 1001px) {
  .bgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) calc(42vw - var(--left)); }
  .bgrid.b2 { grid-template-columns: minmax(0, 1fr) calc(42vw - var(--left)); }
  .bgrid.solo { grid-template-columns: minmax(0, 1fr); }
}
/* Weitere Leistungen / Passende Leistungen: einheitliche Kacheln */
.mrow .lrow { font-size: 13px; line-height: 1.35; }
/* Bänder vor der Fusszeile: hellblau und ohne Abstand */
main > section.talk:last-child { margin-bottom: 0; }
.foot { margin-top: 0; }
.talk p b { font-weight: 600; }
/* Fachbücher */
.book .cv { aspect-ratio: .9; object-fit: contain; }
.teaser .cv { aspect-ratio: .9; object-fit: contain; background: transparent; }
@media (min-width: 1280px) { .phead.leist { --leist-h: 266px; } }

/* Logo mit lesbarem Slogan */
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.logo img { height: 40px; width: auto; display: block; }
.logo .slogan { display: block; border-left: 1px solid #CFCFCF; padding-left: 14px; font-size: 12px; line-height: 1.35; color: var(--dg); font-weight: 400; white-space: nowrap; }
.logo.neg .slogan { color: var(--white); border-left-color: rgba(255,255,255,.45); }
.foot .logo img { height: 40px; }
@media (max-width: 1360px) and (min-width: 1280px) { .logo .slogan { font-size: 11px; padding-left: 10px; } .logo { gap: 10px; } .logo img { height: 34px; } }
@media (max-width: 480px) { .logo img { height: 32px; } .logo .slogan { font-size: 10.5px; padding-left: 10px; } .logo { gap: 10px; } }
@media (max-width: 400px) { html[lang="fr-CH"] .logo .slogan { font-size: 9.8px; padding-left: 8px; } html[lang="fr-CH"] .logo { gap: 8px; } }
.mapimg { aspect-ratio: 1280 / 1060; object-fit: contain; background: #F4F4F4; }
/* Fachbücher: flache Buchumschläge, beide gleich dargestellt */
.book { align-items: center; }
.book .cv { width: auto; max-width: 100%; height: 300px; aspect-ratio: auto; object-fit: contain; justify-self: center; box-shadow: 0 10px 26px rgba(29,29,27,.20), 0 1px 3px rgba(29,29,27,.12); border-radius: 2px; background: var(--white); }
.teaser .cv { width: auto; max-width: 100%; height: 170px; aspect-ratio: auto; object-fit: contain; justify-self: center; box-shadow: 0 8px 20px rgba(29,29,27,.18), 0 1px 3px rgba(29,29,27,.10); border-radius: 2px; }
@media (max-width: 640px) { .book .cv { height: 170px; } }
/* Bänder immer bündig mit der Fusszeile, auch bei kurzen Seiten */
body > main { display: flex; flex-direction: column; }
body > main > * { flex: none; }
body > main > section.talk:last-child { margin-top: auto; }
/* Branchen: Textblock kompakter, ruhiger Abstand zur Kachel «Unsere Stärke» */
@media (min-width: 1001px) {
  .bgrid.b2 { column-gap: clamp(56px, 7vw, 120px); }
  .bgrid:not(.b2) { column-gap: 16px; }
  .bgrid:not(.b2) > .ubox { margin-right: 24px; }
  .bgrid .btext { max-width: 760px; }
}

/* Lange Wörter in Kacheln sauber trennen */
.lrow, .chip, .card h3, .btile h3, .ubox h3, .staerke h3, .kbox b, .ms .box b, .fhead h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; min-width: 0; }
.lrow > img, .chip > img { flex: none; }
/* Platz für Texte in Kacheln und Buttons */
.nlbox .btn { font-size: 13px; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.book { grid-template-columns: auto minmax(0, 1fr); }
.book .cv { height: clamp(190px, 21vw, 300px); }
.book .buy { flex-wrap: wrap; }
.book .buy .btn.wide { min-width: 0; padding-left: 28px; padding-right: 28px; }
@media (max-width: 640px) { .book { grid-template-columns: 1fr; justify-items: center; text-align: left; } .book .bt { width: 100%; } .book .cv { height: 220px; } }
.ms .box span { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 1279px) and (min-width: 1001px) { .ms { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; } .ms .dot { display: none; } .ms .box { min-height: 0; } }
/* Branchen: Kachel «Unsere Stärke» links bündig mit dem Kopfbild, Grösse wie bisher */
@media (min-width: 1001px) {
  body > main { overflow-x: clip; }
  .bgrid .staerke { margin-right: 0; border-radius: var(--radius); }
}
@media (min-width: 1001px) {
  .bgrid:not(.b2):not(.solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) clamp(32px, 4.5vw, 80px) calc(42vw - var(--left)); column-gap: 24px; }
  .bgrid:not(.b2):not(.solo) > .ubox { margin-right: 0; }
  .bgrid:not(.b2):not(.solo) > .staerke { grid-column: 4; }
}

/* Branchen: Kachel exakt links bündig mit dem Kopfbild, auch mit Scrollbalken, kleinerer Abstand zum Textblock */
@media (min-width: 1001px) {
  .bgrid.b2 { column-gap: clamp(40px, 3.5vw, 64px); }
  .bgrid .btext { max-width: none; }
  .bgrid:not(.b2):not(.solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 0px calc(42vw - var(--left)); }
}
/* Fachbuch: Link zur Besprechung */
.book .booklink { color: var(--dg); font-weight: 600; text-decoration: underline; text-decoration-color: #34B7EB; text-underline-offset: 3px; }
.book .booklink:hover { color: #000; }

/* ---------- Rechtliches: Datenschutzerklärung und Cookie-Richtlinie ---------- */
.lgwrap h1 { margin-bottom: 6px; }
.lgstand { font-size: var(--fs-s); color: var(--dg); margin: 0 0 18px; }
.lglead { max-width: 820px; font-size: var(--fs-l); line-height: 1.65; margin: 0 0 36px; }
.lgh { font-size: 20px; margin: 0 0 16px; }
.lgover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); margin-bottom: 48px; align-items: start; }
.lgacc { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-bottom: 10px; }
.lgacc summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.lgacc summary::-webkit-details-marker { display: none; }
.lgacc summary img { flex: none; }
.lgacc summary .t { flex: 1; font-weight: 600; color: var(--dg); }
.lgacc summary .more { font-size: var(--fs-s); color: var(--td); white-space: nowrap; }
.lgacc[open] summary .more { font-size: 0; }
.lgacc[open] summary .more::after { content: 'weniger anzeigen'; font-size: var(--fs-s); }
.lgacc .bd { padding: 0 18px 16px 62px; font-size: 14px; line-height: 1.6; }
.lgacc .bd p { margin: 0 0 8px; }
.lgacc .bsp { color: var(--dg); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--dg); background: var(--lt); border-radius: 4px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.lgdoc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; border-top: 1px solid var(--line); padding-top: 36px; }
.lgtoc { position: sticky; top: 96px; }
.lgtoc ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.lgtoc li { margin-bottom: 8px; }
.lgtoc a { color: var(--dg); text-decoration: none; }
.lgtoc a:hover { color: var(--td); text-decoration: underline; }
.lgtext { max-width: 860px; font-size: 15px; line-height: 1.7; }
.lgtext h2 { font-size: 22px; margin: 40px 0 14px; scroll-margin-top: 96px; }
.lgtext h2:first-child { margin-top: 0; }
.lgtext h3 { font-size: 17px; margin: 28px 0 10px; scroll-margin-top: 96px; }
.lgtext h4 { font-size: 15px; margin: 20px 0 8px; }
.lgtext p { margin: 0 0 12px; }
.lgtext a { color: var(--td); }
.lgtext .sq { margin: 0 0 14px; }
.lgaddr { background: var(--ow); border-radius: 8px; padding: 14px 18px; display: inline-block; line-height: 1.7; }
.lgsingle { max-width: 900px; }
.cktab { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 12px 0 20px; }
.cktab h3 { margin-top: 0; }
.cktab table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cktab th, .cktab td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.cktab th { background: var(--ow); font-weight: 600; }
.ckmanage { border: 1px solid var(--line); border-radius: 12px; padding: 8px 18px 18px; margin: 10px 0 20px; }
.ckkat { border-bottom: 1px solid var(--line); }
.ckkat summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; font-weight: 600; color: var(--dg); }
.ckkat summary::-webkit-details-marker { display: none; }
.ckkat summary .t { flex: 1; }
.ckkat summary .t::before { content: '+'; display: inline-block; width: 18px; color: var(--td); }
.ckkat[open] summary .t::before { content: '–'; }
.ckkat p { margin: 0 0 12px 18px; font-size: 13.5px; line-height: 1.6; font-weight: 400; }
.ckkat .immer { font-size: var(--fs-s); color: var(--ok); font-weight: 600; }
.sw { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.sw .sl { position: absolute; inset: 0; background: #C9C9C9; border-radius: 22px; transition: background .15s; }
.sw .sl::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw input:checked + .sl { background: var(--t); }
.sw input:checked + .sl::after { transform: translateX(18px); }
.sw input:focus-visible + .sl { outline: 2px solid var(--td); outline-offset: 2px; }
.sw .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ckbtns { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }

/* Cookie-Hinweis unten rechts */
.ckban { position: fixed; right: 24px; bottom: 24px; z-index: 9000; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--white); color: var(--dg); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05); padding: 18px 22px 16px; font-size: 14px; }
.ckban[hidden], .cktab-open[hidden] { display: none; }
.ckhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.ckhead strong { font-size: 15px; color: var(--dg); }
.ckx { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--dg); cursor: pointer; padding: 2px 6px; }
.ckban > p { margin: 0 0 14px; line-height: 1.55; }
.ckpref { margin: 0 0 12px; }
.ckbtns3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ckbtns3 .btn { width: 100%; padding: 9px 10px; }
.ckbtns3 [hidden], .ckpref[hidden] { display: none; }
.btn.grey { background: var(--ow); border-color: var(--ow); color: var(--dg); }
.btn.grey:hover { background: #E4E4E4; border-color: #E4E4E4; color: var(--dg); }
.btn.ghost.t { border-color: var(--t); color: var(--dg); }
.cklinks { display: flex; justify-content: center; gap: 16px; margin-top: 12px; font-size: var(--fs-s); }
.cklinks a { color: var(--dg); }
.cktab-open { position: fixed; right: 24px; bottom: 0; z-index: 8999; background: var(--white); color: var(--dg); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 7px 14px; font: inherit; font-size: var(--fs-s); font-weight: 600; cursor: pointer; box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
@media (max-width: 899px) { .cktab-open, .cktab-open:not([hidden]) { display: none; } }
.foot a[data-cookie-open] { cursor: pointer; }
@media (max-width: 900px) {
  .lgover, .lgdoc { grid-template-columns: 1fr; }
  .lgtoc { position: static; }
  .ckban { right: 16px; bottom: 16px; }
  .ckbtns3 { grid-template-columns: 1fr; }
}

/* ---------- Bilder und Kennzahlenleiste in der Flucht des Inhalts ---------- */
/* Kopfbilder: gleiche Grösse und Höhe wie bisher, rechter Rand bündig mit dem Inhalt.
   Der linke Bildstreifen fällt weg, der rechte Bildbereich bleibt vollständig sichtbar. */
@media (min-width: 901px) {
  .phead .pimg { right: var(--left); clip-path: inset(0 0 0 var(--left)); }
  .jhead .pimg { right: var(--left); clip-path: inset(0 0 0 var(--left));
    -webkit-mask-image: linear-gradient(90deg, transparent var(--left), #000 calc(var(--left) + 9vw));
    mask-image: linear-gradient(90deg, transparent var(--left), #000 calc(var(--left) + 9vw)); }
}
/* Kennzahlenleiste: graue Fläche nur über die Inhaltsbreite */
.band-grey.kband { background: transparent; padding: 0; margin: 8px 0 8px; }
.kband .kpis { background: var(--ow); border-radius: var(--radius); padding: 30px 28px; }

/* ---------- Startseite Kopfbild, Kennzahlen, Sprachwahl ---------- */
/* Kopfbilder aller Seiten: weiter zur Mitte, linker Rand als weicher Verlauf, Textblock schmaler */
@media (min-width: 901px) {
  .phead { --hh: clamp(270px, 19.5vw, 350px); --cw: calc(var(--vw) - 2 * var(--left)); }
  .phead .wrap, .phead.leist .wrap { min-height: var(--hh); }
  .phead .pimg { right: var(--left); top: 0; height: 100%; aspect-ratio: auto; clip-path: none;
    width: calc(var(--cw) * .6); object-position: 50% var(--fy, 50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 14%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 14%, #000 34%); }
  .phead .txt { position: relative; z-index: 1; width: calc(var(--cw) * .46); padding-top: 26px; padding-bottom: 26px; }
  .phead.home .txt { padding-top: 32px; }
}
/* Kennzahlen: alle Zahlen auf gleicher Höhe, Symbol mittig zur Zahl */
.kband .kpi { align-items: flex-start; }
.kband .kpi .n { min-height: 54px; display: flex; align-items: center; margin-bottom: 4px; }
/* Sprachwahl DE / FR / IT / EN */
.lang { display: flex; align-items: center; gap: 4px; font-size: 13px; margin-right: 18px; white-space: nowrap; }
.lang a { color: var(--dg); text-decoration: none; padding: 4px 3px; font-weight: 500; border-bottom: 2px solid transparent; }
.lang a:hover { color: var(--td); }
.lang a[aria-current="true"] { font-weight: 700; color: var(--dg); border-bottom-color: var(--t); }
.lang span { color: #B5B5B5; }
@media (max-width: 1439px) { .lang { margin-right: 12px; gap: 2px; } }
@media (max-width: 1279px) { .lang { margin-right: 0; margin-left: 14px; order: 3; } }
@media (max-width: 560px) { .lang { font-size: 12px; margin-left: 8px; } .lang a { padding: 4px 1px; } }
.langnote { max-width: 720px; padding: 40px 0 60px; }
.langnote .lead { margin-bottom: 24px; }
.nav .lang-m { display: none; }
@media (max-width: 600px) {
  .head > .wrap > .lang { display: none; }
  .nav .lang-m { display: flex; margin: 10px 0 0; font-size: 14px; gap: 6px; }
  .nav .lang-m a { padding: 6px 4px; border-bottom: 2px solid transparent; font-size: 14px; }
  .nav .lang-m a[aria-current="true"] { border-bottom-color: var(--t); }
}
/* Kopfzeile ab 1280 px: enge Abstände auf allen Breiten, da .wrap bei 1440 px gedeckelt ist */
@media (min-width: 1280px) {
  .head .wrap { gap: 14px; }
  .nav { margin-right: 6px; }
  .nav a { padding-left: 8px; padding-right: 8px; }
  .lang { margin-right: 4px; gap: 1px; font-size: 12.5px; }
  .head .btn.desk { padding-left: 14px; padding-right: 14px; }
}
/* 1280 bis 1439 px: nochmals enger, damit auch die französische und italienische Kopfzeile mit Arial oder Segoe UI in eine Zeile passt */
@media (min-width: 1280px) and (max-width: 1439px) {
  .head .wrap { gap: 10px; }
  .nav { margin-right: 2px; }
  .nav a { padding-left: 6px; padding-right: 6px; font-size: 13px; }
  .lang { margin-right: 0; font-size: 12px; }
  .head .btn.desk { padding-left: 12px; padding-right: 12px; }
}

/* Kopfzeile: reicht der Platz nicht (z. B. längere Menütexte in Übersetzungen), wechselt sie automatisch
   auf das Menü mit Knopf, wie unter 1280 px. Gesteuert in app.js (fitHead), Slogan bleibt immer sichtbar. */
@media (min-width: 1280px) {
  .nav { flex-shrink: 0; }
  .nav a { white-space: nowrap; }
}
.head.compact .burger { display: inline-flex; gap: 8px; align-items: center; }
.head.compact .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--white); flex-direction: column; padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(10,10,10,.08); }
.head.compact .nav.open { display: flex; }
.head.compact .nav a { padding: 13px 2px; border-bottom: 1px solid var(--ow); font-size: 15px; }
.head.compact .nav a[aria-current="page"] { border-bottom-color: var(--ow); }
/* Termin-Knopf bleibt neben «Menü» sichtbar, der doppelte Knopf im aufgeklappten Menü ist ausgeblendet */
.head.compact .btn.desk { display: inline-flex; }
.head.compact .nav .btn { display: none; }
.head.compact .lang { margin-right: 4px; margin-left: 4px; }


/* Kennzahlen mit Titel, esora prominent, Pflichtfeld-Hinweis, Buchangaben */
.kband .khead { margin-bottom: 22px; }
.kband .khead h2 { margin: 0; }
.esorasec { padding-top: 8px; }
.teaser.esora.big { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 40px 44px; gap: 40px; min-height: 0; }
.teaser.esora.big h2 { margin: 14px 0 12px; }
.teaser.esora.big p { font-size: var(--fs-b, 16px); max-width: 560px; }
.teaser.esora.big .sq { margin: 14px 0 22px; }
.teaser.esora.big .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.teaser.esora.big .shot { border-radius: 10px; box-shadow: 0 10px 30px rgba(10,10,10,.10); }
@media (max-width: 900px) { .teaser.esora.big { grid-template-columns: 1fr; padding: 26px 22px; gap: 24px; } }
.reqnote { margin: 0 0 6px; color: var(--dg); }
.reqnote .req::after { content: "* "; color: var(--td); }
.book .bmeta { margin: -4px 0 10px; }
/* Branche mit drei Unterbereichen (Gesundheitswesen): dritte Box unter der ersten, Stärke-Kachel über zwei Zeilen */
@media (min-width: 1001px) {
  .bgrid.b3 { row-gap: 24px; }
  .bgrid.b3 > .ubox:nth-of-type(3) { grid-column: 1; grid-row: 2; }
  .bgrid.b3 > .staerke { grid-row: 1 / span 2; }
}
.esorasec { padding-bottom: 72px; }
/* Sprachen: Hinweis bei Rechtstexten, die nur auf Deutsch vorliegen */
.lgnote { background: var(--lt); border-left: 3px solid var(--t); padding: 12px 16px; margin: 0 0 24px; max-width: 760px; color: var(--dg); }
.phead .q:has(+ .htext) { margin-bottom: 0; }
.phead .htext { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--dg); max-width: 60ch; }
@media (max-width: 1100px) { .phead .htext { font-size: 14.5px; } }
/* Branchenseiten: Einleitungstext im Kopfbereich breiter, bündig zum Textblock «So unterstützen wir Sie» */
@media (min-width: 901px) {
  .phead .txt:has(.htext) { width: min(46vw, 690px); }
  .phead .htext { max-width: none; font-size: 14px; line-height: 1.6; }
  .phead:has(.htext) .pimg { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 22%, rgba(0,0,0,.35) 34%, #000 52%);
    mask-image: linear-gradient(90deg, transparent 0, transparent 22%, rgba(0,0,0,.35) 34%, #000 52%); }
  /* Textblock «So unterstützen wir Sie» bündig zum Kopftext, grössere Schrift */
  .bgrid.b2 .btext { max-width: min(46vw, 690px); }
  .btext p, .btext .sq.s li { font-size: 15px; line-height: 1.55; margin-bottom: 8px; }
  .btext .lbl { font-size: 15.5px; margin: 4px 0 10px; }
  .ubox p, .ubox .sq.s li, .staerke .row { font-size: 14px; }
  .ubox .sq.s li { margin-bottom: 6px; }
}
@media (min-width: 901px) and (max-width: 1100px) { .phead .htext { font-size: 13.5px; } .phead .txt:has(.htext) { width: 46vw; } }

/* Ergänzungen 28.10.2026: Terminzusammenfassung erst nach Auswahl, Preise, Dateiauswahl in Landessprache, Kontrast Kennzahlen */
.picked[hidden] { display: none; }
.kpi .n { color: #177FAA; }
.book .buy .price { display: flex; flex-direction: column; gap: 2px; }
.book .buy .price b { font-size: 18px; color: var(--bk); }
.filebox { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filebox .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filebox .btn.ghost { cursor: pointer; padding: 9px 18px; font-size: 14px; }
.filebox input:focus-visible + .btn.ghost { outline: 3px solid #177FAA; outline-offset: 2px; }
.filebox .filename { font-size: 13px; }
.note.warn { border-left-color: #E08A00; }

/* Microsoft Bookings (Terminseite, Variante Bookings) */
.bkframe { margin-top: 18px; border: 1px solid #E3E5E8; border-radius: 10px; overflow: hidden; background: var(--white); }
.bkframe iframe { display: block; width: 100%; height: 1150px; border: 0; }
@media (max-width: 720px) { .bkframe iframe { height: 1400px; } }
/* PrivacyBee-Widget (Datenschutzerklärung) */
.pbwidget privacybee-widget { display: block; font-family: inherit; }
.pbwidget .prx_wrapper > .prx_h1 { display: none; } /* Seitentitel steht bereits über dem Widget */
.pbwidget .prx_wrapper > .prx_text:first-of-type { margin-top: 0; }
