/* Bayerische TelemedAllianz — site.css
   Tokens first, then base, shell (header/footer), page furniture, home page,
   imported content (.blk …), themed topic pages (.tp-…), utilities. */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0b2545;
  --navy-2: #123560;
  --blue: #1d5fae;
  --blue-bright: #2f7de1;
  --sky: #eef4fb;
  --sky-2: #dde9f7;
  --mint: #e7f5f0;
  --red: #d7263d;
  --red-dark: #b81d32;
  --ink: #14213d;
  --text: #2c3a52;
  --muted: #5d6c84;
  --line: #dfe7f1;
  --paper: #f3f7fc;
  --white: #fff;
  --radius: 1.6rem;
  --radius-sm: 1rem;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 28px rgba(11, 37, 69, .08);
  --shadow-lg: 0 2px 4px rgba(11, 37, 69, .06), 0 22px 60px rgba(11, 37, 69, .16);
  --wrap: 105rem;
  --gutter: clamp(1.25rem, 4.5vw, 5.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* weiß-blaue Raute als dezentes Markenmotiv */
  --rauten: repeating-linear-gradient(60deg, rgba(255, 255, 255, .028) 0 34px, transparent 34px 68px),
            repeating-linear-gradient(-60deg, rgba(255, 255, 255, .028) 0 34px, transparent 34px 68px);
}

/* ---------- base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* Die ganze Seite skaliert mit dem Bildschirm: 16px bis ~1350px Breite, 20px ab ~1920px */
html { font-size: clamp(100%, .5rem + .6vw, 125%); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); color: var(--ink); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1rem + 3.4vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 1rem + 1.7vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
strong { font-weight: 650; color: var(--ink); }
hr { border: 0; margin: 2.5rem 0; }
blockquote { margin: 0 0 1.2em; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--blue-bright); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.socials svg { fill: currentColor; stroke: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; color: #fff; }

.kicker { font: 700 .78rem/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 .9rem; }
.kicker--light { color: #9cc4f5; }

/* ---------- buttons ------------------------------------------------------ */
.btn, .tp-button { display: inline-flex; align-items: center; gap: .55em; padding: .82em 1.35em; border-radius: 999px; background: var(--blue); color: #fff; font: 650 .98rem/1.2 var(--head); text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s; }
.btn:hover, .tp-button:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .18s; }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: .62em 1.1em; font-size: .9rem; }
.btn--ghost, .tp-outline, .tp-button-outline, .tp-button-secondary { background: transparent; color: var(--blue); }
.btn--ghost:hover, .tp-outline:hover, .tp-button-outline:hover, .tp-button-secondary:hover { background: var(--sky); color: var(--navy); border-color: var(--blue); }
.btn--accent { background: var(--red); border-color: var(--red); }
.btn--accent:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--onDark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--onDark:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky-2); border-color: var(--sky-2); color: var(--navy); }
.actions, .tp-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 1.1rem; }
.actions--center { justify-content: center; margin-top: 2.4rem; }

/* ---------- header: top bar, main bar, mega menu ------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.5) blur(16px); transition: transform .35s var(--ease), box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 34px rgba(11, 37, 69, .1); }
.site-header.is-away { transform: translateY(-100%); }
.topbar { background: var(--navy); color: #c9d8ee; font-size: .8rem; overflow: hidden; max-height: 3rem; transition: max-height .3s var(--ease); }
.is-scrolled .topbar { max-height: 0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 2.4rem; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; color: #e3ecf9; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 1rem; height: 1rem; color: #7fb4f5; }
.topbar__links { display: flex; align-items: center; gap: 1.6rem; }
.lang { font-weight: 650; padding: .2rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.lang:hover { background: rgba(255, 255, 255, .24); }
@media (max-width: 860px) { .topbar__note span { display: none; } .topbar__links a:nth-child(2) { display: none; } }

.site-header__inner { position: static; display: flex; align-items: center; gap: 1.2rem; min-height: 4.6rem; transition: min-height .3s var(--ease); }
.is-scrolled .site-header__inner { min-height: 3.9rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 3rem; height: 3rem; transition: transform .5s var(--ease), width .3s, height .3s; }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.is-scrolled .brand img { width: 2.5rem; height: 2.5rem; }
.brand__text { font: 800 1.02rem/1.15 var(--head); letter-spacing: -.01em; }
.brand__text span { display: block; font: 500 .72rem/1.3 var(--body); color: var(--muted); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav { position: relative; }
.nav::before { content: ""; position: absolute; left: 0; top: 50%; height: 2.5rem; width: var(--pill-w, 0); transform: translate(var(--pill-x, 0), -50%); border-radius: 999px; background: var(--sky); opacity: var(--pill-o, 0); transition: transform .3s var(--ease), width .3s var(--ease), opacity .2s; pointer-events: none; }
.nav__list > li { margin: 0; display: flex; align-items: center; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .7rem .85rem; border-radius: 999px; font: 650 .95rem/1.2 var(--head); color: var(--ink); text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav__link svg { width: .9rem; height: .9rem; opacity: .55; transition: transform .25s var(--ease); }
.nav__list > li:hover > .nav__link, .nav__list > li.is-active > .nav__link, .nav__list > li.is-open > .nav__link { color: var(--blue); }
.nav__list > li.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__list > li.is-active > .nav__link::after { content: ""; position: absolute; left: 50%; bottom: .15rem; width: .4rem; height: .4rem; border-radius: 50%; background: var(--red); transform: translateX(-50%); }
.nav__more { display: none; }
.nav__tools { display: flex; align-items: center; gap: .6rem; }
.nav__tools .btn svg { width: 1.05em; height: 1.05em; }
.nav-toggle { display: none; margin-left: auto; width: 2.9rem; height: 2.9rem; border: 0; border-radius: 50%; background: var(--sky); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mega { position: fixed; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 8rem); overflow: auto; background: #fff; border-radius: 0 0 2rem 2rem; box-shadow: 0 40px 70px -20px rgba(11, 37, 69, .28); opacity: 0; visibility: hidden; transform: translateY(-.6rem); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
.nav__list > li.is-open > .mega, .nav__list > li:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.6fr) minmax(15rem, 1.1fr); gap: clamp(1.5rem, 3vw, 3.5rem); padding-block: 2.2rem 2.6rem; align-items: start; }
.mega__intro { padding: 1.6rem; border-radius: 1.4rem; background: var(--sky); align-self: stretch; display: flex; flex-direction: column; }
.mega__title { font: 800 1.6rem/1.1 var(--head); letter-spacing: -.03em; color: var(--ink); margin: 0 0 .5rem; }
.mega__intro p:not(.mega__title) { font-size: .92rem; line-height: 1.5; color: var(--muted); margin: 0 0 1.2rem; }
.mega__intro .btn { margin-top: auto; align-self: flex-start; }
.mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.2rem 2rem; align-items: start; }
.mega__inner--tree { grid-template-columns: minmax(13rem, .8fr) minmax(0, 3.4fr) minmax(13rem, .9fr); }
.mega__link, .nav__link, .mega a { position: relative; z-index: 1; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li { margin: 0; }
.mega__links--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .3rem 1rem; grid-column: 1 / -1; }
.mega__links a { display: block; padding: .75rem .9rem; border-radius: 1rem; text-decoration: none; transition: background .18s, transform .18s; }
.mega__links a:hover, .mega__links a[aria-current] { background: var(--sky); transform: translateX(.25rem); }
.mega__links strong { display: block; font: 700 1rem/1.3 var(--head); color: var(--ink); }
.mega__links a:hover strong, .mega__links a[aria-current] strong { color: var(--blue); }
.mega__links span { display: block; font-size: .84rem; line-height: 1.4; color: var(--muted); margin-top: .1rem; }
.mega__head { margin: 0 0 .4rem; }
.mega__head a { font: 800 .98rem/1.3 var(--head); color: var(--ink); text-decoration: none; }
.mega__head a:hover, .mega__col li a:hover, .mega__col a[aria-current] { color: var(--blue); }
.mega__col li a { display: block; padding: .28rem 0; font-size: .9rem; line-height: 1.35; color: var(--text); text-decoration: none; }
.mega__col--wide { grid-column: 1 / -1; padding-top: 1rem; }
.mega__col--wide .mega__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .2rem .8rem; margin-inline: -.9rem; }
.mega__feature { position: relative; display: block; border-radius: 1.4rem; overflow: hidden; align-self: stretch; min-height: 14rem; text-decoration: none; background: var(--navy); }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega__feature:hover img { transform: scale(1.06); }
.mega__feature span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.3rem 1.2rem; background: linear-gradient(transparent, rgba(8, 24, 48, .92)); color: #fff; font: 700 1rem/1.3 var(--head); }
.mega__feature small { display: block; font: 700 .7rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: #9cc4f5; margin-bottom: .25rem; }
.mega__feature svg { width: 1em; height: 1em; vertical-align: -.12em; transition: transform .2s; }
.mega__feature:hover svg { transform: translateX(.25rem); }
.scrim { position: absolute; left: 0; right: 0; top: 100%; z-index: -1; height: 100vh; background: rgba(8, 24, 48, .38); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; pointer-events: none; }
.site-header:has(li.is-open:not([data-compact])) .scrim { opacity: 1; visibility: visible; }
.site-header { isolation: isolate; }

@media (max-width: 1180px) {
  .brand__text span { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 5rem); overflow: auto; flex-direction: column; align-items: stretch; gap: 0; padding: .8rem var(--gutter) 1.5rem; background: #fff; border-radius: 0 0 1.6rem 1.6rem; box-shadow: var(--shadow-lg); }
  .nav[data-open="true"] { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .3rem; }
  .nav::before { display: none; }
  .nav__list > li { flex-wrap: wrap; border-radius: 1.1rem; background: var(--sky); padding: 0 .4rem 0 .5rem; }
  .nav__link { flex: 1; padding: 1rem .7rem; font-size: 1.05rem; }
  .nav__link svg, .nav__list > li.is-active > .nav__link::after { display: none; }
  .nav__more { display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%; }
  .nav__more svg { transition: transform .25s var(--ease); }
  .nav__more[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav { position: absolute; }
  .mega { position: static; display: none; width: 100%; max-height: none; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; border-radius: 0; }
  .nav__more[aria-expanded="true"] + .mega { display: block; }
  .mega__inner { display: block; width: auto; padding: 0 .3rem 1rem; }
  .mega__intro, .mega__feature { display: none; }
  .mega__cols, .mega__links--grid, .mega__col--wide .mega__links { display: block; margin: 0; }
  .mega__col { margin-bottom: .8rem; }
  .mega__links a { padding: .6rem .5rem; }
  .mega__links a:hover { background: #fff; }
  .mega__head { padding: 0 .5rem; } .mega__col li a { padding: .35rem .5rem; }
  .nav__tools { padding-top: 1rem; }
  .nav__tools .btn { flex: none; }
  .scrim { display: none; }
}

/* ---------- footer ------------------------------------------------------- */
.site-footer { background: var(--navy); background-image: var(--rauten); color: #c3d2e8; margin-top: 5rem; font-size: .95rem; }
.site-footer a { color: #e6eefa; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer strong { color: #fff; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2.5rem; padding: 4rem 0 3rem; }
.site-footer h2 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #9cc4f5; margin-bottom: 1rem; }
.site-footer h2 a { color: inherit; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer__brand img { margin-bottom: 1rem; }
.site-footer__iso { display: flex; gap: .7rem; align-items: flex-start; }
.site-footer__iso svg { width: 1.8rem; height: 1.8rem; color: #9cc4f5; }
.socials { display: flex; gap: .5rem; margin-top: 1.2rem !important; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.socials a:hover { background: var(--blue-bright); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 2rem; font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: 1.5rem; }
@media (max-width: 1000px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------- page head / sub navigation ---------------------------------- */
.page-head { position: relative; overflow: hidden; background: var(--navy); background-image: var(--rauten), radial-gradient(120% 140% at 85% 0%, #1d5fae 0%, transparent 55%); color: #fff; padding: 2.2rem 0 clamp(3rem, 5vw, 5rem); }
.page-head h1 { color: #fff; margin: 0; max-width: 20ch; font-size: clamp(2.1rem, 1rem + 3.6vw, 4.8rem); line-height: 1.05; }
.page-head .kicker { color: #9cc4f5; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 2rem; padding: 0; font-size: .85rem; color: #a9bcd6; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: #d5e2f4; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.subnav { background: #fff; }
.subnav ul { display: flex; gap: .4rem; list-style: none; margin: 0; padding: .8rem 0; overflow-x: auto; scrollbar-width: none; }
.subnav li { margin: 0; flex: none; }
.subnav a { display: block; padding: .45rem .9rem; border-radius: 999px; font: 600 .88rem/1.3 var(--head); color: var(--text); text-decoration: none; background: var(--sky); }
.subnav a:hover { background: var(--sky-2); color: var(--navy); }
.subnav a[aria-current] { background: var(--blue); color: #fff; }

.with-side { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 5rem); align-items: start; }
.side { position: sticky; top: 6.2rem; max-height: calc(100dvh - 7.4rem); overflow: auto; margin-top: 3rem; }
.side__box { border-radius: var(--radius); padding: 1rem; background: #fff; }
.side__box summary { font: 700 .78rem/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); padding: .3rem .5rem .7rem; cursor: pointer; list-style: none; }
.side__box summary::-webkit-details-marker { display: none; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { margin: 0; }
.side ul ul { margin: .1rem 0 .4rem .7rem; padding-left: .5rem; }
.side a { display: block; padding: .42rem .6rem; border-radius: 8px; font-size: .92rem; line-height: 1.35; color: var(--text); text-decoration: none; }
.side a:hover { background: var(--sky); color: var(--blue); }
.side a[aria-current] { background: var(--blue); color: #fff; font-weight: 600; }
@media (max-width: 960px) {
  .with-side { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; max-height: none; margin-top: 1.5rem; }
  .side__box:not([open]) summary { padding-bottom: .3rem; }
}

/* ---------- home --------------------------------------------------------- */
.hero { background: var(--navy); background-image: var(--rauten), radial-gradient(90% 120% at 90% 10%, #1d5fae 0%, transparent 60%); color: #d6e2f3; padding: clamp(3rem, 5vw, 5.5rem) 0 clamp(5.5rem, 8vw, 8rem); }
.hero__grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1rem + 2.7vw, 4rem); line-height: 1.05; margin-bottom: 1.4rem; hyphens: manual; overflow-wrap: normal; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 58ch; }
.hero__media { margin: 0; position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; }
  .hero__media img { aspect-ratio: 4 / 3; }
}

.stats { margin-top: -3.2rem; position: relative; }
.stats dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stats dl > div { padding: 1.7rem 1.6rem; }
.stats dl > div:first-child { border-left: 0; }
.stats dt { font: 800 clamp(1.5rem, 2.4vw, 2.1rem)/1.1 var(--head); color: var(--blue); letter-spacing: -.02em; margin-bottom: .4rem; }
.stats dd { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 820px) { .stats dl { grid-template-columns: 1fr 1fr; } .stats dl > div:nth-child(odd) { border-left: 0; } .stats dl > div:nth-child(n+3) { } }

.band { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band--tint { background: var(--sky); }
.band--dark { background: var(--navy); background-image: var(--rauten); color: #d6e2f3; }
.band--dark h2, .band--dark h3 { color: #fff; }
.band__head { max-width: 46rem; margin-bottom: clamp(2.2rem, 3.5vw, 3.6rem); }
.band__head p:last-child { margin: 0; font-size: 1.1rem; color: var(--muted); }

.paths, .services, .ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.services { grid-template-columns: repeat(4, 1fr); }
.path, .way, .services article { display: flex; flex-direction: column; padding: 1.9rem; background: #fff; border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.path:hover, .way:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.path__icon, .way__icon, .services span, .mapcard__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sky); color: var(--blue); margin-bottom: 1.3rem; }
.path__icon svg, .way__icon svg, .services span svg, .mapcard__icon svg { width: 26px; height: 26px; }
.path p, .way p, .services p { font-size: .97rem; margin-bottom: 1.3rem; }
.services p { margin: 0; }
.path__more, .way__more, .project__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font: 650 .95rem/1.2 var(--head); color: var(--blue); }
.path:hover svg, .way:hover .way__more svg, .project:hover .project__more svg { transform: translateX(3px); }
.path__more svg, .way__more svg, .project__more svg { transition: transform .18s; width: 1.1em; height: 1.1em; }
@media (max-width: 960px) { .paths, .ways { grid-template-columns: 1fr; } .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem; }
.project { grid-column: span 3; }
.project:nth-child(2) { grid-column: span 4; }
.project { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project > div { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.7rem; }
.project__tag { font: 700 .72rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem; }
.project h3 { margin-bottom: .5rem; }
.project p { font-size: .97rem; }
.project--lead { grid-column: span 8; flex-direction: row; }
.project--lead img { width: 52%; aspect-ratio: auto; }
.project--lead > div { justify-content: center; padding: 2.2rem; }
.project--lead h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
@media (max-width: 1100px) { .project, .project:nth-child(2) { grid-column: span 6; } .project--lead { grid-column: span 12; } }
@media (max-width: 640px) { .project, .project:nth-child(2), .project--lead { grid-column: span 12; } .project--lead { flex-direction: column; } .project--lead img { width: 100%; aspect-ratio: 16 / 10; } }

.academy__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ticks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin: 1.6rem 0; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; color: #fff; font-weight: 500; }
.ticks svg { color: #9cc4f5; margin-top: .2em; }
.academy__steps { padding: 2rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); }
.academy__steps > p { font: 700 .78rem/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #9cc4f5; }
.academy__steps ol { list-style: none; margin: 0; padding: 0; }
.academy__steps li { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; margin: 0; font: 700 1.2rem/1.2 var(--head); color: #fff; }
.academy__steps li span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-bright); font-size: .95rem; }
@media (max-width: 860px) { .academy__grid { grid-template-columns: 1fr; } .ticks { grid-template-columns: 1fr; } }

.prof__grid { display: grid; grid-template-columns: minmax(14rem, 24rem) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.prof__photo { margin: 0; }
.prof__photo img { width: 100%; border-radius: 50%; box-shadow: var(--shadow-lg); }
.prof__role { color: var(--muted); font-size: .97rem; }
.prof blockquote { font: 500 clamp(1.15rem, 1.8vw, 1.4rem)/1.5 var(--head); border-left-color: var(--red); margin: 1.5rem 0; }
.prof blockquote p { margin: 0; }
.prof__note { font-size: .9rem; color: var(--muted); }
@media (max-width: 800px) { .prof__grid { grid-template-columns: 1fr; } .prof__photo { max-width: 220px; } }

.way { position: relative; }
.way--main { background: var(--navy); background-image: var(--rauten); border-color: var(--navy); color: #d6e2f3; }
.way--main:hover { color: #d6e2f3; }
.way--main h3 { color: #fff; }
.way--main .way__icon { background: rgba(255, 255, 255, .12); color: #fff; }
.way--main .way__more { color: #9cc4f5; }
.way__badge { position: absolute; top: 1.4rem; right: 1.4rem; padding: .3rem .7rem; border-radius: 999px; background: var(--red); color: #fff; font: 700 .72rem/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.direct { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); margin-top: 1.4rem; padding: clamp(1.6rem, 4vw, 3rem); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.direct__list { list-style: none; padding: 0; margin-top: 1.6rem; }
.direct__list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; }
.direct__list svg { color: var(--blue); margin-top: .2em; }
@media (max-width: 860px) { .direct { grid-template-columns: 1fr; } }

/* ---------- forms -------------------------------------------------------- */
.form { display: grid; gap: 1rem; max-width: 46rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font: 600 .88rem/1.3 var(--head); color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; padding: .8rem .95rem; border-radius: var(--radius-sm); background: #fff; font: 400 1rem/1.4 var(--body); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(47, 125, 225, .15); }
.form .is-invalid { border-color: var(--red); }
.form__note { font-size: .84rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.mapcard { padding: 1.8rem; border-radius: var(--radius); background: var(--sky); max-width: 46rem; }
.mapcard__icon { background: #fff; }

/* ---------- imported content -------------------------------------------- */
.content { padding: 1rem 0 0; min-width: 0; }
.blk { padding: 2.2rem 0; }
.blk:first-child { padding-top: 3rem; }
.blk > :is(p, ul, ol, h2, h3, h4, h5, h6, blockquote, details, .form, .table-wrap), .col > :is(p, ul, ol) { max-width: 78ch; }
.blk > :last-child, .col > :last-child { margin-bottom: 0; }
.blk h2 { position: relative; padding-top: 1.1rem; }
.blk h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.blk h2 a, .blk h3 a { color: inherit; text-decoration: none; }
.blk h2 a:hover, .blk h3 a:hover { color: var(--blue); }
.blk h2 strong, .blk h3 strong, .blk h4 strong { font-weight: inherit; color: inherit; }
.blk h3 { margin-top: 1.6em; }
.blk > h3:first-child, .col > h3:first-child, .blk h2 + h3 { margin-top: 0; }
.blk ul { list-style: none; padding-left: 0; }
.blk ul > li { position: relative; padding-left: 1.5em; }
.blk ul > li::before { content: ""; position: absolute; left: .25em; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue-bright); transform: rotate(45deg); }

.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem 2.5rem; align-items: start; }
.cols + .cols, .cols + :is(p, h2, h3), :is(p, ul, h2, h3, figure) + .cols { margin-top: 2rem; }
.col { grid-column: span 12; min-width: 0; }
@media (min-width: 760px) {
  .col[data-w="1"] { grid-column: span 2; } .col[data-w="2"] { grid-column: span 2; } .col[data-w="3"] { grid-column: span 3; }
  .col[data-w="4"] { grid-column: span 4; } .col[data-w="5"] { grid-column: span 5; } .col[data-w="6"] { grid-column: span 6; }
  .col[data-w="7"] { grid-column: span 7; } .col[data-w="8"] { grid-column: span 8; } .col[data-w="9"] { grid-column: span 9; }
  .col[data-w="10"] { grid-column: span 10; } .col[data-w="11"] { grid-column: span 10; }
}
@media (min-width: 480px) and (max-width: 759px) { .col[data-w="2"], .col[data-w="3"] { grid-column: span 6; } }

figure { margin: 0 0 1.4rem; }
figure.img img { border-radius: var(--radius-sm); max-height: 44rem; width: auto; }
.col figure.img img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.col[data-w="1"] figure.img img, .col[data-w="2"] figure.img img, .col[data-w="3"] figure.img img { max-height: 12rem; width: auto; }
figure.img a { display: inline-block; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.2rem; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--sky); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery--cards { grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.2rem; }
.gallery--cards figure { background: #fff; border-radius: var(--radius); display: flex; flex-direction: column; }
.gallery--cards img { aspect-ratio: 1; object-position: 50% 20%; }
.gallery--cards figcaption { padding: 1.2rem 1.3rem 1.4rem; font-size: .92rem; line-height: 1.5; }
.gallery--cards figcaption > strong { display: block; font: 750 1.08rem/1.3 var(--head); margin-bottom: .5rem; }
.gallery--cards figcaption p { margin: 0 0 .25em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card { padding: 1.6rem; border-radius: var(--radius); background: #fff; }

details.acc, .tp-detail, .tp-faq details { border-radius: var(--radius-sm); background: #fff; margin-bottom: .7rem; }
details.acc > summary, .tp-detail > summary, .tp-faq details > summary { position: relative; padding: 1.05rem 3.2rem 1.05rem 1.3rem; font: 650 1.02rem/1.4 var(--head); color: var(--ink); cursor: pointer; list-style: none; }
details.acc > summary::-webkit-details-marker, .tp-detail > summary::-webkit-details-marker, .tp-faq details > summary::-webkit-details-marker { display: none; }
details.acc > summary::after, .tp-detail > summary::after, .tp-faq details > summary::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details.acc[open] > summary::after, .tp-detail[open] > summary::after, .tp-faq details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
details.acc[open], .tp-detail[open], .tp-faq details[open] { border-color: var(--sky-2); box-shadow: var(--shadow); }
details.acc > summary:hover, .tp-detail > summary:hover, .tp-faq details > summary:hover { color: var(--blue); }
.acc__body, .tp-detail-body, .tp-faq details > :not(summary) { padding: 0 1.3rem 1.2rem; }
.acc__body > :last-child, .tp-detail-body > :last-child { margin-bottom: 0; }
.acc__body img { border-radius: var(--radius-sm); margin: 0 0 1rem; max-width: min(100%, 420px); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: .8rem 1rem; text-align: left; vertical-align: top; }
tr:first-child td, th { background: var(--sky); font-weight: 650; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

.video { width: 100%; max-width: 60rem; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--navy); display: block; margin-bottom: 1.4rem; }
.yt, .embed { position: relative; width: 100%; max-width: 60rem; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy); background-image: var(--rauten); margin-bottom: 1.4rem; }
.col .yt, .col .video { max-width: none; }
.embed { aspect-ratio: auto; min-height: 320px; max-width: none; }
.embed.is-loaded { min-height: 620px; }
.embed--form.is-loaded { min-height: 760px; background: #fff; }
.yt iframe, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.5rem; text-align: center; color: #d6e2f3; font-size: .88rem; line-height: 1.45; }
.consent p { margin: 0; max-width: 46ch; }
.consent a { color: #fff; }
.consent__play { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.4rem; border: 0; border-radius: 999px; background: #fff; color: var(--navy); font: 700 .98rem/1.2 var(--head); cursor: pointer; box-shadow: var(--shadow-lg); }
.consent__play:hover { background: var(--sky-2); }
.consent__play::before { content: ""; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--red); }

/* ---------- themed topic pages (tp-*) ----------------------------------- */
.content--themed { padding: 0; }
.wrap:has(> .content--themed) { width: 100%; max-width: none; }
.tp-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.tp-inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.tp-light { background: var(--sky); }
.tp-mint { background: var(--mint); }
.tp-hero { background: var(--navy); background-image: var(--rauten), radial-gradient(90% 120% at 90% 10%, #1d5fae 0%, transparent 60%); color: #d6e2f3; }
.tp-hero h1 { color: #fff; }
.tp-hero .tp-kicker { color: #9cc4f5; }
.tp-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tp-hero .tp-button { background: var(--red); border-color: var(--red); }
.tp-hero .tp-button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.tp-hero :is(.tp-outline, .tp-button-outline, .tp-button-secondary) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: #fff; }
.tp-hero :is(.tp-outline, .tp-button-outline, .tp-button-secondary):hover { background: #fff; border-color: #fff; color: var(--navy); }
.tp-hero-aside, .tp-hero-note { padding: 1.8rem; border-radius: var(--radius); background: rgba(255, 255, 255, .07); }
.tp-hero-aside strong, .tp-hero-note strong, .tp-hero-note h2, .tp-hero-note h3 { color: #fff; }
.tp-hero-statement, .tp-note-title { font: 700 1.25rem/1.35 var(--head); color: #fff; }
.tp-hero-small { font-size: .9rem; margin: 0; }
.tp-hero-note ul { list-style: none; padding: 0; margin: 0; }
.tp-hero-note li { display: flex; gap: .6rem; }
.tp-icon { color: #9cc4f5; font-weight: 700; }
.tp-kicker { font: 700 .78rem/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 .9rem; }
.tp-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 62ch; }
.tp-intro { font-size: 1.08rem; color: var(--muted); max-width: 70ch; margin-bottom: 2rem; }
.tp-nav { margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tp-nav a { padding: .4rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #e6eefa; font: 600 .86rem/1.3 var(--head); text-decoration: none; }
.tp-nav a:hover { background: #fff; color: var(--navy); }
.tp-subhead { margin-top: 2.5rem; }
.tp-image-grid, .tp-three, .tp-definition-grid, .tp-cases, .tp-principles, .tp-evidence, .tp-limits, .tp-checklist:not(ol), .tp-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; margin: 1.6rem 0; }
.tp-image-card, .tp-photo-card, .tp-foundation, .tp-case, .tp-project-portrait, .tp-facts, .tp-definition-grid > *, .tp-principles > *, .tp-evidence > *, .tp-limits > *, div.tp-checklist > *, .tp-related > *, .tp-failure, .tp-project, .tp-feature > * { background: #fff; border-radius: var(--radius); padding: 1.6rem; min-width: 0; }
.tp-image-card, .tp-photo-card { padding: 0; overflow: hidden; }
.tp-image-card > img, .tp-photo-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tp-image-card > :not(img), .tp-card-body { padding: 0 1.5rem; }
.tp-image-card > img + *, .tp-card-body { padding-top: 1.4rem; }
.tp-image-card > :last-child, .tp-card-body { padding-bottom: 1.5rem; }
.tp-image-card > :not(img):last-child { margin-bottom: 0; }
.tp-feature, .tp-project { display: grid; grid-template-columns: 1.4fr .9fr; gap: 1.6rem; margin: 1.6rem 0; }
.tp-project { background: #fff; }
.tp-feature > * { background: var(--sky); }
.tp-white .tp-feature > *, .tp-white .tp-project { background: var(--sky); border-color: transparent; }
.tp-project-portrait { margin-bottom: 1.4rem; }
.tp-status, .tp-role, .tp-question { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--sky-2); color: var(--navy); font: 700 .74rem/1.4 var(--head); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .8rem; }
.tp-case-question { font: 700 1.08rem/1.35 var(--head); color: var(--ink); margin-bottom: .7rem; }
.tp-callout { padding: 1.1rem 1.3rem; border-left: 4px solid var(--blue-bright); background: var(--sky); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.tp-light .tp-callout { background: #fff; }
.tp-cite, .tp-footnote, .tp-source, .tp-source-org { font-size: .86rem; color: var(--muted); }
.tp-source-org { font: 700 .74rem/1.4 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .2rem; }
.tp-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.tp-data > div { padding: 1rem; background: var(--sky); border-radius: var(--radius-sm); }
.tp-data dt { font: 700 .74rem/1.4 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tp-data dd { margin: .2rem 0 .8rem; font: 700 1.05rem/1.35 var(--head); color: var(--ink); }
ol.tp-flow, ol.tp-checklist, ol.tp-sources { list-style: none; padding: 0; counter-reset: tp; display: grid; gap: .9rem; margin: 1.6rem 0; }
ol.tp-flow > li, ol.tp-checklist > li, ol.tp-sources > li { counter-increment: tp; position: relative; margin: 0; padding: 1.2rem 1.3rem 1.2rem 4.2rem; background: #fff; border-radius: var(--radius-sm); }
ol.tp-flow > li::before, ol.tp-checklist > li::before, ol.tp-sources > li::before { content: counter(tp); position: absolute; left: 1.2rem; top: 1.1rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 .9rem/1 var(--head); }
ol.tp-flow > li > :last-child, ol.tp-checklist > li > :last-child, ol.tp-sources > li > :last-child { margin-bottom: 0; }
ul.tp-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; }
ul.tp-links > li { margin: 0; padding: 1.2rem 1.3rem; background: #fff; border-radius: var(--radius-sm); }
.tp-faq { max-width: 60rem; }
.tp-contact { background: var(--navy); background-image: var(--rauten); color: #d6e2f3; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); }
section.tp-contact { border-radius: 0; }
.tp-contact h2, .tp-contact h3, .tp-contact strong { color: #fff; }
.tp-contact .tp-kicker { color: #9cc4f5; }
.tp-contact .tp-intro { color: #d6e2f3; }
.tp-contact a:not(.tp-button) { color: #fff; }
.tp-contact .tp-button { background: var(--red); border-color: var(--red); }
.tp-legal { padding: 2rem 0; font-size: .86rem; color: var(--muted); }
.tp-section img { border-radius: var(--radius-sm); }
.tp-image-card img, .tp-photo-card img { border-radius: 0; }
@media (max-width: 860px) { .tp-hero-grid, .tp-feature, .tp-project { grid-template-columns: 1fr; } }
.site-footer { margin-top: 5rem; }
main:has(.content--themed) + .site-footer, main:has(> .band:last-child) + .site-footer { margin-top: 0; }

/* ---------- wide screens: editorial layout for imported content ---------- */
@media (min-width: 1200px) {
  .wrap:not(.with-side) > .content > .blk:has(> h2:first-child) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); column-gap: clamp(2.5rem, 5vw, 6rem); align-items: start; }
  .wrap:not(.with-side) > .content > .blk:has(> h2:first-child) > h2 { grid-column: 1; grid-row: 1 / span 60; position: sticky; top: 7rem; margin: 0; }
  .wrap:not(.with-side) > .content > .blk:has(> h2:first-child) > :not(h2) { grid-column: 2; }
}

@media (min-width: 1750px) {
  .with-side > .content > .blk:has(> h2:first-child) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); column-gap: clamp(2.5rem, 5vw, 6rem); align-items: start; }
  .with-side > .content > .blk:has(> h2:first-child) > h2 { grid-column: 1; grid-row: 1 / span 60; position: sticky; top: 7rem; margin: 0; }
  .with-side > .content > .blk:has(> h2:first-child) > :not(h2) { grid-column: 2; }
}

/* ---------- motion ------------------------------------------------------- */
@view-transition { navigation: auto; }
/* Einblenden beim Scrollen: rein per CSS an die Scrollposition gekoppelt. Es gibt keinen
   versteckten Ausgangszustand, der hängen bleiben könnte – Browser ohne Unterstützung zeigen
   die Inhalte einfach sofort. */
@keyframes rise-in { from { opacity: 0; transform: translateY(2.2rem) scale(.985); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band__head, .paths > *, .projects > *, .services > *, .ways > *, .direct, .academy__grid > *, .prof__grid > *, .explorer,
    .content > .blk, .gallery--cards > figure, .tp-inner > *, .band > .wrap > .embed, .cards > *, .more__card, .cta__box, .pager a, .toc {
      animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 38%;
    }
  }
}

.progress { position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 100%; background: linear-gradient(90deg, var(--blue-bright), var(--red)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; }

/* cards follow the pointer with a soft light */
.path, .way, .services article, .project, .card, .tp-case, .tp-foundation { position: relative; isolation: isolate; }
.path::after, .way::after, .services article::after, .card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgba(47, 125, 225, .13), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.path:hover::after, .way:hover::after, .services article:hover::after, .card:hover::after { opacity: 1; }
.services article { transition: transform .2s, box-shadow .2s, border-color .2s; }
.services article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project img { transition: transform .6s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project { overflow: hidden; }

/* ---------- header tools ------------------------------------------------- */
.icon-btn { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .18s, color .18s, background .18s; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--sky); }
.search-open { display: inline-flex; align-items: center; gap: .6rem; height: 2.6rem; padding: 0 .9rem; border-radius: 999px; background: #fff; color: var(--muted); font: 500 .88rem/1 var(--body); cursor: pointer; transition: border-color .18s, color .18s; }
.search-open:hover { border-color: var(--blue); color: var(--blue); }
.search-open kbd { font: 600 .7rem/1 var(--body); padding: .25rem .4rem; border-radius: 6px; color: var(--muted); }
@media (max-width: 1500px) { .search-open span, .search-open kbd { display: none; } .search-open { width: 2.6rem; padding: 0; justify-content: center; } }
@media (max-width: 1180px) { .search-open { width: auto; flex: 1; padding: 0 1rem; justify-content: flex-start; height: 3rem; } .search-open span { display: inline; } }

/* ---------- search dialog ------------------------------------------------ */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(8, 24, 48, .62); backdrop-filter: blur(6px); }
.search { width: min(46rem, calc(100vw - 2rem)); max-height: min(80vh, 44rem); margin-top: 10vh; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search[open] { display: flex; flex-direction: column; animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-.8rem) scale(.98); } }
.search__bar { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem; }
.search__bar svg { width: 1.4rem; height: 1.4rem; color: var(--blue); }
.search__bar input { flex: 1; border: 0; outline: 0; font: 500 1.15rem/1.3 var(--body); color: var(--ink); background: none; min-width: 0; }
.search__bar button { background: var(--sky); border-radius: 8px; padding: .35rem .6rem; font: 600 .75rem/1 var(--body); color: var(--muted); cursor: pointer; }
.search__results { list-style: none; margin: 0; padding: .5rem; overflow: auto; }
.search__results li { margin: 0; }
.search__results a { display: block; padding: .8rem 1rem; border-radius: 12px; text-decoration: none; color: var(--text); }
.search__results a:hover, .search__results a.is-active { background: var(--sky); }
.search__results strong { display: block; font: 700 1.02rem/1.3 var(--head); color: var(--ink); }
.search__results small { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: .15rem; }
.search__results span { display: block; font-size: .88rem; line-height: 1.45; color: var(--muted); margin-top: .15rem; }
.search__results mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 .1em; }
.search__hint { margin: 0; padding: .9rem 1.4rem 1.1rem; font-size: .85rem; color: var(--muted); }
.search__hint a { margin-right: .5rem; display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--sky); text-decoration: none; font-weight: 600; }

/* ---------- lightbox ----------------------------------------------------- */
.zoomable { cursor: zoom-in; }
.lightbox { background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 15, 32, .92); }
.lightbox img { max-width: min(92vw, 110rem); max-height: 86vh; width: auto; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); animation: pop .25s var(--ease); }
.lightbox p { position: fixed; left: 0; right: 0; bottom: 1.2rem; margin: 0; text-align: center; color: #d6e2f3; font-size: .9rem; }
.lightbox button { position: fixed; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox button svg { width: 1.5rem; height: 1.5rem; }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- floating quick contact + back to top ------------------------- */
.fab { position: fixed; right: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem); z-index: 40; }
.fab > summary { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.3rem; border-radius: 999px; background: var(--red); color: #fff; font: 700 .95rem/1 var(--head); cursor: pointer; list-style: none; box-shadow: 0 10px 30px rgba(215, 38, 61, .35); transition: transform .2s, background .2s; }
.fab > summary::-webkit-details-marker { display: none; }
.fab > summary:hover { background: var(--red-dark); transform: translateY(-2px); }
.fab[open] > summary { background: var(--navy); box-shadow: var(--shadow-lg); }
.fab__panel { position: absolute; right: 0; bottom: calc(100% + .8rem); width: min(21rem, calc(100vw - 2rem)); padding: 1.3rem; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); animation: pop .22s var(--ease); }
.fab__panel p { margin: 0 0 .9rem; font: 700 1.05rem/1.3 var(--head); color: var(--ink); }
.fab__panel a { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.fab__panel a:hover { background: var(--sky); color: var(--blue); }
.fab__panel a svg { color: var(--blue); }
.fab__panel a small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.to-top { position: fixed; left: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem); z-index: 40; opacity: 0; visibility: hidden; transform: translateY(.6rem) rotate(-90deg); transition: opacity .25s, transform .25s, visibility .25s; box-shadow: var(--shadow); }
.to-top.is-on { opacity: 1; visibility: visible; transform: rotate(-90deg); }

/* ---------- home: hero stage -------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before, .page-head::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -18vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(47, 125, 225, .55), transparent 62%); filter: blur(20px); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 38vw; height: 38vw; left: -12vw; bottom: -22vw; border-radius: 50%; background: radial-gradient(circle, rgba(215, 38, 61, .22), transparent 65%); filter: blur(20px); animation: drift 22s ease-in-out infinite alternate-reverse; pointer-events: none; }
@keyframes drift { to { transform: translate3d(-6vw, 5vw, 0) scale(1.15); } }
.hero > .wrap, .page-head > .wrap { position: relative; z-index: 1; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__lead { font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem); }
.hero__media { perspective: 1200px; }
.hero__media > img { transform: rotateY(calc(var(--rx, 0) * 1deg)) rotateX(calc(var(--ry, 0) * 1deg)); transition: transform .3s ease-out; }
.chip { position: absolute; display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); font: 650 .86rem/1.3 var(--head); animation: float 6s ease-in-out infinite; }
.chip small { display: block; font: 400 .76rem/1.3 var(--body); color: var(--muted); }
.chip--call { top: 8%; left: -9%; }
@keyframes float { 50% { transform: translateY(-.7rem); } }
.live { width: .7rem; height: .7rem; border-radius: 50%; background: #1fbf75; box-shadow: 0 0 0 0 rgba(31, 191, 117, .6); animation: ping 1.8s infinite; flex: none; }
@keyframes ping { to { box-shadow: 0 0 0 .7rem rgba(31, 191, 117, 0); } }
/* ---------- home: partner marquee --------------------------------------- */
.marquee { padding: clamp(2.5rem, 4vw, 4rem) 0 0; overflow: hidden; }
.marquee__label { text-align: center; font: 700 .78rem/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; }
.marquee__label a { color: var(--blue); text-decoration: none; }
.marquee__track { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 5rem); width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__view { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee img { height: 2.8rem; width: auto; max-width: 11rem; object-fit: contain; filter: grayscale(1); opacity: .65; mix-blend-mode: multiply; transition: filter .25s, opacity .25s; }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- home: topic explorer ---------------------------------------- */
.explorer { display: grid; grid-template-columns: minmax(16rem, 24rem) 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: stretch; }
.explorer__tabs { display: flex; flex-direction: column; gap: .4rem; }
.explorer__tabs button { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1.2rem; border-radius: 14px; background: none; text-align: left; font: 650 1.02rem/1.3 var(--head); color: var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.explorer__tabs button span { font: 700 .78rem/1 var(--head); color: var(--blue); min-width: 1.6rem; }
.explorer__tabs button:hover { background: rgba(255, 255, 255, .7); }
.explorer__tabs button[aria-selected="true"] { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.explorer__tabs button[aria-selected="true"] span { color: var(--red); }
.explorer__panel { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); min-height: 26rem; }
.explorer__panel[hidden] { display: none; }
.explorer__panel:not([hidden]) { animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateX(1rem); } }
.explorer__panel img { width: 100%; height: 100%; object-fit: cover; }
.explorer__panel > div { padding: clamp(1.6rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.explorer__panel ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.explorer__panel li { position: relative; padding-left: 1.5em; margin-bottom: .6em; font-size: .97rem; }
.explorer__panel li::before { content: ""; position: absolute; left: .25em; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue-bright); transform: rotate(45deg); }
@media (max-width: 1000px) { .explorer { grid-template-columns: 1fr; } .explorer__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: .3rem; } .explorer__tabs button { width: auto; flex: none; padding: .7rem 1rem; font-size: .92rem; } }
@media (max-width: 640px) { .explorer__panel { grid-template-columns: 1fr; } .explorer__panel img { aspect-ratio: 16 / 9; height: auto; } }

.stats dt { font-variant-numeric: tabular-nums; }
.academy__steps li { transition: transform .25s var(--ease), color .25s; }
.academy__steps li:hover { transform: translateX(.5rem); }
.academy__steps li:hover span { background: var(--red); }

/* ---------- surfaces instead of hairlines -------------------------------- */
.btn, .tp-button { border: 0; }
.btn--ghost, .tp-outline, .tp-button-outline, .tp-button-secondary { background: var(--sky); color: var(--blue); }
.btn--ghost:hover, .tp-outline:hover, .tp-button-outline:hover, .tp-button-secondary:hover { background: var(--sky-2); color: var(--navy); }
.band--tint .btn--ghost, .blk .btn--ghost, .tp-light .tp-outline { background: #fff; }
.btn--onDark, .tp-hero :is(.tp-outline, .tp-button-outline, .tp-button-secondary) { background: rgba(255, 255, 255, .14); }
.icon-btn { border: 0; background: var(--sky); }
.search-open { border: 0; background: var(--sky); color: var(--text); }
.search-open:hover { background: var(--sky-2); }
.search-open kbd { background: #fff; }
.subnav { background: var(--paper); }
.subnav a { background: #fff; }
.side__box { background: var(--paper); border-radius: var(--radius); }
.side ul ul { padding-left: .6rem; margin-left: .4rem; }
.form input, .form select, .form textarea { border: 0; background: var(--paper); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .18s, background .18s; }
.form input:focus, .form select:focus, .form textarea:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--blue-bright), 0 0 0 5px rgba(47, 125, 225, .14); }
.form .is-invalid { box-shadow: inset 0 0 0 2px var(--red); }
.direct .form input, .direct .form select, .direct .form textarea { background: var(--paper); }
.table-wrap { border-radius: var(--radius-sm); background: #fff; }
th, td { border: 0; }
tbody tr:nth-child(even) td { background: var(--paper); }
details.acc, .tp-detail, .tp-faq details { background: #fff; border-radius: 1.2rem; transition: box-shadow .25s, background .25s; }
.content--themed .tp-white details, .tp-white .tp-faq details { background: var(--paper); }
details.acc[open], .tp-detail[open], .tp-faq details[open] { background: #fff; box-shadow: var(--shadow); }
.site-footer__bottom { margin-top: 0; padding-top: 2rem; }
.site-footer__bottom ul { background: rgba(255, 255, 255, .08); border-radius: 999px; padding: .5rem 1.3rem; }
.search__bar { background: var(--paper); }
.search__hint { background: var(--paper); }
.search__bar button { border: 0; background: #fff; }
.academy__steps { background: rgba(255, 255, 255, .07); }
.academy__steps li { padding: .8rem 1rem; margin-bottom: .5rem; border-radius: 1rem; background: rgba(255, 255, 255, .07); }
.academy__steps li:last-child { margin-bottom: 0; }
.tp-hero-aside, .tp-hero-note { background: rgba(255, 255, 255, .1); }
.tp-nav { padding-top: 0; }
.tp-image-card, .tp-photo-card, .tp-foundation, .tp-case, .tp-project-portrait, .tp-facts, .tp-definition-grid > *, .tp-principles > *, .tp-evidence > *, .tp-limits > *, div.tp-checklist > *, .tp-related > *, .tp-failure, .tp-project, .tp-feature > *, ol.tp-flow > li, ol.tp-checklist > li, ol.tp-sources > li, ul.tp-links > li { background: #fff; box-shadow: var(--shadow); }
.tp-white :is(.tp-image-card, .tp-photo-card, .tp-foundation, .tp-case, .tp-project-portrait, .tp-facts, .tp-failure, ol.tp-flow > li, ol.tp-checklist > li, ol.tp-sources > li, ul.tp-links > li), .tp-white :is(.tp-definition-grid, .tp-principles, .tp-evidence, .tp-limits, div.tp-checklist, .tp-related) > * { background: var(--paper); box-shadow: none; }

/* ---------- bolder look -------------------------------------------------- */
body { background: #fff; }
.kicker, .tp-kicker { display: inline-flex; align-items: center; gap: .6rem; }
.kicker::before, .tp-kicker::before { content: ""; width: .55rem; height: .55rem; background: var(--red); transform: rotate(45deg); border-radius: 2px; flex: none; }

/* stats: four coloured tiles */
.stats dl { background: none; box-shadow: none; overflow: visible; gap: 1rem; }
.stats dl > div { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.6rem 1.7rem 1.7rem; position: relative; overflow: hidden; transition: transform .3s var(--ease); }
.stats dl > div:hover { transform: translateY(-.4rem); }
.stats dl > div::after { content: ""; position: absolute; right: -1.4rem; top: -1.4rem; width: 5rem; height: 5rem; border-radius: 1rem; transform: rotate(45deg); background: var(--c, var(--blue)); opacity: .12; }
.stats dl > div:nth-child(2) { --c: var(--blue-bright); } .stats dl > div:nth-child(3) { --c: var(--red); } .stats dl > div:nth-child(4) { --c: var(--navy); }
.stats dt { color: var(--c, var(--blue)); font-size: clamp(1.6rem, 1rem + 2vw, 3rem); hyphens: none; overflow-wrap: normal; }
.stats dd { hyphens: auto; }
@media (max-width: 480px) { .stats dl > div { padding: 1.2rem; } .stats dt { font-size: 1.45rem; } }

/* cards: no outline, coloured icon tiles */
.path, .way:not(.way--main), .services article { background: var(--paper); }
.band--tint :is(.path, .way:not(.way--main), .services article) { background: #fff; }
.path:hover, .way:hover, .services article:hover { background: #fff; box-shadow: var(--shadow-lg); }
.path__icon, .way__icon, .services span { border-radius: 1.1rem; width: 3.6rem; height: 3.6rem; background: var(--c, var(--blue)); color: #fff; transition: transform .35s var(--ease); }
:is(.path, .way, .services article):hover :is(.path__icon, .way__icon, span:first-child) { transform: rotate(-8deg) scale(1.08); }
:is(.paths, .ways, .services) > :nth-child(2) { --c: var(--blue-bright); } :is(.paths, .ways, .services) > :nth-child(3) { --c: var(--navy); } .services > :nth-child(4) { --c: var(--red); }
.way--main .way__icon { background: var(--red); }
.path h3, .way h3, .services h3 { font-size: clamp(1.25rem, 1rem + .6vw, 1.6rem); }
.services { counter-reset: svc; }
.services article { counter-increment: svc; overflow: hidden; }
.services article::before { content: "0" counter(svc); position: absolute; right: 1.2rem; top: .4rem; font: 800 4.5rem/1 var(--head); letter-spacing: -.05em; color: var(--c, var(--blue)); opacity: .1; }
.project { box-shadow: none; background: #fff; }
.project:hover { box-shadow: var(--shadow-lg); }
.project__tag { display: inline-block; align-self: flex-start; padding: .3rem .7rem; border-radius: 999px; background: var(--sky); margin-bottom: .8rem; }
.band--dark { background-image: var(--rauten), radial-gradient(60% 90% at 100% 0%, rgba(47, 125, 225, .55), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgba(29, 95, 174, .45), transparent 70%); }
.band__head h2 { font-size: clamp(1.9rem, 1rem + 2.6vw, 3.6rem); }
.explorer__panel { border-radius: 2rem; }
.explorer__tabs button { border: 0; }
.direct { box-shadow: none; background: var(--paper); border-radius: 2rem; }
.direct .form input, .direct .form select, .direct .form textarea, .blk .form input, .blk .form select, .blk .form textarea { background: #fff; }
.prof blockquote { border: 0; padding: 0; position: relative; }
.prof blockquote::before { content: "“"; display: block; font: 800 5rem/.6 var(--head); color: var(--red); margin-bottom: .6rem; }
.prof__photo { position: relative; }
.prof__photo::before { content: ""; position: absolute; inset: 9% -7% -7% 9%; border-radius: 50%; background: var(--navy); background-image: var(--rauten), radial-gradient(circle at 30% 30%, var(--blue-bright), var(--navy) 75%); transition: transform .6s var(--ease); }
.prof__photo::after { content: ""; position: absolute; right: 4%; top: 6%; width: 1.4rem; height: 1.4rem; background: var(--red); border-radius: 4px; transform: rotate(45deg); }
.prof__photo:hover::before { transform: translate(-3%, -3%); }
.prof__photo img { position: relative; box-shadow: 0 0 0 .5rem #fff, var(--shadow-lg); }
.band--tint .direct { background: #fff; }
.band--tint .direct .form :is(input, select, textarea) { background: var(--paper); }

/* page head */
.page-head { border-radius: 0 0 2.4rem 2.4rem; }
.page-head::after { content: ""; position: absolute; right: clamp(1rem, 8vw, 10rem); bottom: -4.5rem; width: 13rem; height: 13rem; border-radius: 2.2rem; transform: rotate(45deg); background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); pointer-events: none; }
.page-head__lead { max-width: 46rem; margin: 1.4rem 0 0; font-size: clamp(1.05rem, .9rem + .45vw, 1.3rem); line-height: 1.55; color: #cfdcf0; }
.subnav { border-radius: 0; background: none; }
.subnav ul { padding: 1.1rem 0 .2rem; }
.subnav a { background: var(--sky); }

/* imported content: every block is a soft panel */
.content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: clamp(1.5rem, 3vw, 3rem); }
.content > .blk, .wrap > .content > .blk { padding: clamp(1.6rem, 3.6vw, 4rem); border-radius: 2rem; background: var(--paper); }
.content > .blk:first-of-type:not(:has(> h2:first-child)) { background: none; padding-block: clamp(1rem, 2vw, 2rem) clamp(.5rem, 1vw, 1rem); padding-inline: 0; }
.content > .blk:first-of-type:not(:has(> h2:first-child)) > p:first-child { font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); line-height: 1.5; color: var(--ink); max-width: 60rem; }
.blk h2::before { height: .45rem; width: 3.2rem; border-radius: 999px; background: var(--red); }
.blk h2 { padding-top: 1.5rem; }
.blk .gallery--cards figure, .blk .card { background: #fff; }
.blk figure.img img { box-shadow: var(--shadow); }
.col[data-w="2"] figure.img img, .col[data-w="3"] figure.img img, .col[data-w="4"] figure.img img { box-shadow: none; background: #fff; padding: .8rem; border-radius: 1rem; }
.gallery figure { border-radius: 1.2rem; }
.gallery--cards figure { border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.gallery--cards figure:hover { transform: translateY(-.4rem); box-shadow: var(--shadow-lg); }
.gallery--cards img { transition: transform .6s var(--ease); }
.gallery--cards figure:hover img { transform: scale(1.04); }
.mapcard { background: #fff; }

.toc { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1rem 1.4rem; border-radius: 1.4rem; background: var(--navy); background-image: var(--rauten); color: #fff; }
.toc p { margin: 0; font: 700 .76rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: #9cc4f5; }
.toc ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: .4rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #e6eefa; font: 600 .86rem/1.3 var(--head); text-decoration: none; transition: background .2s, color .2s; }
.toc a:hover, .toc a.is-current { background: #fff; color: var(--navy); }

.pager { margin-top: clamp(2rem, 4vw, 4rem); }
.pager__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pager a { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.7rem; border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); font: 750 clamp(1.05rem, 1rem + .4vw, 1.35rem)/1.25 var(--head); transition: background .25s, color .25s, transform .25s var(--ease); }
.pager a:hover { background: var(--navy); color: #fff; transform: translateY(-.2rem); }
.pager small { display: block; font: 700 .72rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .3rem; }
.pager a:hover small { color: #9cc4f5; }
.pager__prev svg { transform: rotate(180deg); }
.pager__next { justify-content: flex-end; text-align: right; grid-column: 2; }
.pager svg { width: 1.6rem; height: 1.6rem; color: var(--red); }
@media (max-width: 640px) { .pager__inner { grid-template-columns: 1fr; } .pager__next { grid-column: 1; } }

.more { margin-top: clamp(2.5rem, 5vw, 5rem); }
.more__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; margin-top: .6rem; }
.more__card { position: relative; display: flex; flex-direction: column; gap: .4rem; min-height: 9.5rem; padding: 1.5rem 1.6rem 3.4rem; border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--text); transition: background .25s, color .25s, transform .25s var(--ease); overflow: hidden; }
.more__card strong { font: 750 1.2rem/1.25 var(--head); color: var(--ink); transition: color .25s; }
.more__card span { font-size: .9rem; line-height: 1.45; }
.more__card svg { position: absolute; left: 1.6rem; bottom: 1.4rem; width: 1.5rem; height: 1.5rem; color: var(--red); transition: transform .25s var(--ease); }
.more__card:hover { background: var(--navy); color: #cfdcf0; transform: translateY(-.3rem); }
.more__card:hover strong { color: #fff; }
.more__card:hover svg { transform: translateX(.5rem); }

.cta { margin-top: clamp(2.5rem, 5vw, 5rem); }
.cta__box { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 4.5vw, 4.5rem); border-radius: 2.4rem; background: var(--navy); background-image: var(--rauten), radial-gradient(60% 120% at 100% 0%, rgba(47, 125, 225, .7), transparent 70%), radial-gradient(40% 90% at 0% 100%, rgba(215, 38, 61, .35), transparent 70%); color: #d6e2f3; }
.cta__box h2 { color: #fff; margin-bottom: .5rem; max-width: 22ch; }
.cta__box p { margin: 0; max-width: 40rem; }
.cta__box .actions { margin: 0; flex-direction: column; align-items: stretch; }
.cta__box .btn { justify-content: center; padding: 1em 1.6em; }
@media (max-width: 860px) { .cta__box { grid-template-columns: 1fr; } }
.site-footer { margin-top: clamp(3rem, 5vw, 5rem); border-radius: 2.4rem 2.4rem 0 0; }
main:has(.content--themed) + .site-footer, main:has(> .band:last-child) + .site-footer { margin-top: 0; border-radius: 0; }
.content--themed { display: block; }
.content--themed + .cta, .wrap:has(> .content--themed) + .cta { margin-block: clamp(2rem, 4vw, 4rem); }

.site-footer .btn--light { color: var(--navy); }
.site-footer .btn--light:hover { color: var(--navy); text-decoration: none; }
.site-footer__bottom { padding-bottom: 5.5rem; align-items: center; }
h2, h3, .page-head h1 { hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 1200px) { .content > .blk:has(> h2:first-child) > h2 { font-size: clamp(1.5rem, 1rem + 1.1vw, 2.3rem); } }
.blk h3 { font-size: clamp(1.2rem, 1rem + .5vw, 1.55rem); }
.blk h3 + p, .blk h3 + ul { margin-top: 0; }

/* hero: three verbs as a small switcher instead of a long intro paragraph */
.hero__grid { grid-template-columns: 1.35fr .65fr; }
.hero__media { max-width: 30rem; justify-self: end; width: 100%; }
.verbs { margin-bottom: 2.2rem; }
.verbs__tabs { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; margin-bottom: 1rem; }
.verbs__tabs button { position: relative; padding: .2rem 0 .5rem; border: 0; background: none; cursor: pointer; font: 750 clamp(1.5rem, 1rem + 1.5vw, 2.6rem)/1.15 var(--head); letter-spacing: -.03em; color: rgba(190, 215, 248, .72); transition: color .3s; }
.verbs__tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: .22rem; width: 100%; border-radius: 999px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.verbs__tabs button:hover { color: #cfe2fb; }
.verbs__tabs button[aria-selected="true"] { color: #fff; }
.verbs__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.verbs__panel { max-width: 40rem; min-height: 5.2em; margin: 0; font-size: clamp(1.05rem, .95rem + .35vw, 1.25rem); line-height: 1.6; }
.verbs__panel:not([hidden]) { animation: fade .45s var(--ease); }
.verbs__panel a { display: inline-flex; align-items: center; gap: .35em; color: #fff; font-weight: 650; white-space: nowrap; text-underline-offset: 4px; }
.verbs__panel a svg { width: 1em; height: 1em; transition: transform .2s; }
.verbs__panel a:hover svg { transform: translateX(.25rem); }
.hero .actions { margin-bottom: 0; }
.chip--call { top: auto; bottom: 9%; left: -12%; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__media { justify-self: start; max-width: 26rem; } .chip--call { left: 4%; bottom: 6%; } .verbs__panel { min-height: 0; } }

/* menu groups with only a few links get a small dropdown instead of the full-width panel */
@media (min-width: 1181px) {
  .nav__list > li[data-compact] { position: relative; }
  .mega--compact { position: absolute; left: 0; right: auto; top: calc(100% + .9rem); width: 21rem; max-height: none; overflow: visible; padding: .6rem; border-radius: 1.4rem; box-shadow: var(--shadow-lg); }
  .mega--compact::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }   /* Brücke für den Mauszeiger */
  .nav__list > li[data-compact]:last-child > .mega--compact { left: auto; right: 0; }
  .mega--compact .mega__links a { padding: .8rem 1rem; }
  .mega--compact .mega__links li + li { margin-top: .15rem; }
  .mega__links a.is-cta { display: flex; align-items: center; gap: .8rem; background: var(--navy); background-image: var(--rauten); margin-top: .4rem; }
  .mega__links a.is-cta strong, .mega__links a.is-cta:hover strong { color: #fff; }
  .mega__links a.is-cta span { color: #b9cbe6; }
  .mega__links a.is-cta svg { color: #fff; margin-left: auto; }
  .mega__links a.is-cta:hover { background-color: var(--blue); }
}
@media (max-width: 1180px) { .mega__links a.is-cta svg { display: none; } }

@media (min-width: 1181px) and (max-width: 1480px) { .brand__text span { display: none; } .nav__link { padding-inline: .6rem; } .site-header__inner { gap: .8rem; } .nav { gap: .6rem; } }

/* one loud call-to-action per screen: the floating contact button stays calm */
.fab > summary { background: var(--navy); box-shadow: var(--shadow-lg); padding: .8rem 1.15rem; font-size: .9rem; }
.fab > summary:hover { background: var(--blue); }
.fab[open] > summary { background: var(--blue); }
@media (max-width: 700px) { .fab > summary { font-size: 0; gap: 0; padding: .95rem; } .fab > summary svg { width: 1.4rem; height: 1.4rem; } }

/* ---------- shaped pages: news, directory, video library, events --------- */
.content > .blk--plain, .wrap > .content > .blk--plain { background: none; padding: 0; }
.news__meta { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; padding: .3rem .8rem; border-radius: 999px; background: #fff; font: 700 .76rem/1.3 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.2rem; }
.news__meta::before { content: ""; width: .45rem; height: .45rem; background: var(--red); transform: rotate(45deg); border-radius: 1px; }
.news h2 { font-size: clamp(1.4rem, 1rem + 1vw, 2.1rem); }

.filter { position: relative; margin-bottom: 1.4rem; max-width: 34rem; }
.filter input { width: 100%; padding: 1rem 1.2rem 1rem 3.2rem; border: 0; border-radius: 999px; background: var(--paper); font: 500 1rem/1.3 var(--body); color: var(--ink); transition: box-shadow .18s, background .18s; }
.filter input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--blue-bright), 0 0 0 5px rgba(47, 125, 225, .14); }
.filter svg { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--blue); }
.filter__count { margin: .6rem 0 0 1.2rem; font-size: .85rem; color: var(--muted); }
.directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; align-items: start; }
.entry { background: var(--paper); border-radius: var(--radius); padding: 1.2rem; transition: background .25s, box-shadow .25s; }
.entry:hover, .entry:has(details[open]) { background: #fff; box-shadow: var(--shadow-lg); }
.entry[hidden] { display: none; }
.entry__logo { display: grid; place-items: center; height: 7.5rem; padding: 1.2rem; border-radius: 1.1rem; background: #fff; margin-bottom: 1rem; }
.entry__logo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.entry h3, .vcard h3 { font-size: 1.08rem; line-height: 1.3; margin: 0 0 .5rem; hyphens: auto; }
.entry details > summary, .vcard details > summary, .more-photos > summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; list-style: none; font: 650 .88rem/1.3 var(--head); color: var(--blue); }
.entry summary::-webkit-details-marker, .vcard summary::-webkit-details-marker, .more-photos summary::-webkit-details-marker { display: none; }
.entry summary::after, .vcard summary::after, .more-photos > summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-25%) rotate(45deg); transition: transform .2s; }
.entry details[open] > summary::after, .vcard details[open] > summary::after, .more-photos[open] > summary::after { transform: translateY(15%) rotate(-135deg); }
.entry__text { margin-top: .8rem; font-size: .9rem; line-height: 1.55; }
.entry__text > :last-child { margin-bottom: 0; }
.entry__text p { margin-bottom: .7em; }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.2rem; align-items: start; }
.vcard { background: var(--paper); border-radius: var(--radius); padding: .7rem .7rem 1.2rem; transition: background .25s, box-shadow .25s; }
.vcard:hover, .vcard:has(details[open]) { background: #fff; box-shadow: var(--shadow-lg); }
.vcard .yt, .vcard .video { max-width: none; margin: 0 0 1rem; border-radius: 1.1rem; }
.vcard h3, .vcard details { padding-inline: .6rem; }
.yt img { opacity: 1; transition: transform .6s var(--ease), opacity .3s; }
.yt:hover img { transform: scale(1.04); }
.yt:has(img) .consent { justify-content: flex-end; background: linear-gradient(transparent 35%, rgba(8, 24, 48, .88)); padding-bottom: 1rem; }
.yt:has(img) .consent p { font-size: .72rem; }
.yt.is-loaded img { display: none; }

.event .gallery { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem; }
.event .gallery--single { grid-template-columns: minmax(0, 34rem); }
.event .gallery--single img { aspect-ratio: auto; }
.more-photos { margin-top: 1rem; }
.more-photos > summary { padding: .6rem 1.1rem; border-radius: 999px; background: #fff; }
.more-photos .gallery { margin-top: 1rem; }
.banner .video { max-width: none; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 2rem; margin: 0; }
.minicards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; margin: 1.2rem 0; max-width: none !important; }
.minicards > div { background: #fff; border-radius: 1.1rem; padding: 1.1rem 1.2rem; }
.minicards h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.minicards p { margin: 0; font-size: .92rem; line-height: 1.5; }
a.btn[download]::before { content: "PDF"; padding: .2rem .45rem; border-radius: .4rem; background: rgba(255, 255, 255, .22); font: 800 .66rem/1 var(--head); letter-spacing: .06em; }
.btn--ghost[download]::before { background: var(--blue); color: #fff; }
@media (min-width: 1200px) { .wrap:not(.with-side) > .content > .news:has(> h2:first-child) > .news__meta { grid-column: 1; grid-row: 2; align-self: start; margin-top: 1rem; } .wrap:not(.with-side) > .content > .news:has(> h2:first-child) > h2 { grid-row: 1; position: static; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } @view-transition { navigation: none; } }
@media print { .site-header, .site-footer, .subnav, .side, .skip-link, .fab, .to-top, .progress { display: none; } .page-head { background: none; color: #000; padding: 0; } .page-head h1 { color: #000; } }
