/* =========================================================
   Leben mit Lungenkrebs – HTML-Prototyp
   Design tokens derived from Figma file nypOWzLLbzUdL1xndrhuxm
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face { font-family: "BI Forward Head"; src: url("../fonts/BoehringerForwardHead.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BI Forward Head"; src: url("../fonts/BoehringerForwardHead-It.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "BI Forward Head"; src: url("../fonts/BoehringerForwardHead-Md.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "BI Forward Head"; src: url("../fonts/BoehringerForwardHead-Bd.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "BI Forward Head"; src: url("../fonts/BoehringerForwardHead-BdIt.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "BI Forward Text"; src: url("../fonts/BoehringerForwardText.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BI Forward Text"; src: url("../fonts/BoehringerForwardText-It.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "BI Forward Text"; src: url("../fonts/BoehringerForwardText-Md.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "BI Forward Text"; src: url("../fonts/BoehringerForwardText-Bd.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --green-100: #08312A;   /* Primary-1-100 */
  --green-140: #051D19;   /* Primary-1-140 */
  --green-3: #B6CDBF;     /* Primary-3-100 */
  --yellow: #FCFBB8;      /* Secondary-1-40 */
  --teal: #076D7E;        /* Secondary-3-80 */
  --accent: #00E47C;      /* Accent-1-100 */
  --warm-gray: #E5E3DE;
  --light-gray: #F6F5F3;
  --gray-50: #B7B6B2;
  --gray-60: #898885;
  --gray-80: #2E2D2C;
  --black: #191919;       /* Web Black */
  --white: #FFFFFF;
  --info-bg: #C6E0FF;
  --info: #003471;

  --font-head: "BI Forward Head", "Helvetica Neue", Arial, sans-serif;
  --font-text: "BI Forward Text", "Helvetica Neue", Arial, sans-serif;

  --content: 1216px;
  --gutter: 75px;
  --section-y: 75px;
  --header-h: 96px;
}

@media (max-width: 1279px) { :root { --gutter: 40px; --section-y: 64px; } }
@media (max-width: 767px)  { :root { --gutter: 20px; --section-y: 48px; --header-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px; line-height: 24px;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
p { margin: 0; }
p + p { margin-top: 20px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; }
strong, b { font-weight: 700; }
sup.ref { font-size: .645em; line-height: 0; vertical-align: super; margin-left: 1px; }
.u { text-decoration: underline; text-decoration-color: var(--green-100); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section--tight { padding-block: 40px; }
.section--top0 { padding-top: 0; }
.wrap { max-width: var(--content); margin-inline: auto; }
.bg-white { background: var(--white); }
.bg-light { background: var(--light-gray); }
.bg-warm { background: var(--warm-gray); }
.bg-yellow { background: var(--yellow); }
.indent { padding-inline: 150px; }          /* 916px reading column inside 1216 */
.measure { max-width: 901px; }              /* left-aligned text column */
.measure-wide { max-width: 976px; }
.stack > * + * { margin-top: 24px; }
.stack-32 > * + * { margin-top: 32px; }
.stack-16 > * + * { margin-top: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }

@media (max-width: 1023px) { .indent { padding-inline: 0; } }

/* ---------- Typography ---------- */
.t-display { font-family: var(--font-head); font-weight: 500; font-size: 48px; line-height: 60px; color: var(--green-140); }
.t-l  { font-family: var(--font-head); font-weight: 500; font-size: 33px; line-height: 44px; color: var(--green-100); }
.t-m  { font-family: var(--font-head); font-weight: 500; font-size: 28px; line-height: 40px; color: var(--green-100); }
.t-s  { font-family: var(--font-head); font-weight: 500; font-size: 23px; line-height: 28px; color: var(--green-140); }
.t-s32{ font-family: var(--font-head); font-weight: 500; font-size: 23px; line-height: 32px; color: var(--black); }
.t-xs { font-family: var(--font-head); font-weight: 500; font-size: 19px; line-height: 28px; color: var(--black); }
.t-xxs{ font-family: var(--font-head); font-weight: 500; font-size: 16px; line-height: 24px; color: var(--black); }
.t-lead { font-size: 22px; line-height: 32px; color: var(--green-140); }
.body-l { font-size: 18px; line-height: 24px; }
.body-l p + p { margin-top: 20px; }
.body-s { font-size: 14px; line-height: 20px; }
.body-xs { font-size: 12px; line-height: 16px; }
.disclaimer { font-size: 12px; line-height: 16px; font-style: italic; }
.c-green { color: var(--green-100); }
.c-teal { color: var(--teal); }
.c-gray80 { color: var(--gray-80); }
.center { text-align: center; }

@media (max-width: 767px) {
  .t-display { font-size: 32px; line-height: 40px; }
  .t-l { font-size: 26px; line-height: 34px; }
  .t-m { font-size: 23px; line-height: 32px; }
  .t-s { font-size: 20px; line-height: 28px; }
  .t-lead { font-size: 18px; line-height: 26px; }
  .body-l { font-size: 16px; line-height: 24px; }
}

/* ---------- Lists ---------- */
.dots { list-style: none; padding: 0; display: grid; gap: 8px; }
.dots li { position: relative; padding-left: 18px; }
.dots li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dots.body-l li::before { top: 9px; }
.disc { padding-left: 27px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px 15px; border-radius: 2px;
  font-family: var(--font-text); font-weight: 500; font-size: 16px; line-height: 20px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn--green  { background: var(--green-100); color: var(--white); }
.btn--green:hover { background: var(--green-140); }
.btn--yellow { background: var(--yellow); color: var(--green-140); }
.btn--yellow:hover { box-shadow: inset 0 0 0 2px var(--green-100); }
.btn--white  { background: var(--white); color: var(--green-100); }
.btn--white:hover { box-shadow: inset 0 0 0 2px var(--green-100); }
.btn--outline { box-shadow: inset 0 0 0 2px var(--green-100); color: var(--green-100); }
.btn--outline:hover { background: var(--light-gray); }
.btn--accent { background: var(--accent); color: var(--green-100); }
.btn--accent:hover { filter: brightness(.95); }
.btn-round { display: inline-flex; padding: 16px; border-radius: 38px; background: var(--white); transition: transform .15s; }
.btn-round:hover { transform: translateX(4px); }
@media (max-width: 479px) { .btn { white-space: normal; text-align: left; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 16px; line-height: 24px; color: var(--gray-80);
  text-decoration: none;
}
.link-arrow img { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover span { text-decoration: underline; }
.link-arrow:hover img { transform: translateX(3px); }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 40; background: var(--green-100); padding-inline: var(--gutter); }
.site-header--transparent { background: transparent; position: absolute; inset: 0 0 auto 0; }
.site-header__bar { max-width: var(--content); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; gap: 56px; }
.site-header__logo { flex: none; width: 160px; height: 80px; display: block; }
.site-header__logo img { width: 100%; height: 100%; object-fit: contain; }
.site-nav { flex: 1; display: flex; align-items: center; gap: 32px; }
.site-nav > a {
  position: relative; font-family: var(--font-head); font-weight: 500; font-size: 16px; line-height: 24px;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.site-nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.site-nav > a:hover::after, .site-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav > a[aria-current="page"] { color: var(--yellow); }
.site-header__tools { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.icon-btn { display: inline-flex; width: 24px; height: 24px; }
.icon-btn img { width: 24px; height: 24px; }
.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; margin-right: -8px; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--white); position: relative; transition: transform .2s, background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .site-header__bar { gap: 16px; }
  .site-header__logo { width: 120px; height: 60px; }
  .burger { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-100); padding: 8px var(--gutter) 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav > a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 19px; }
  .site-nav > a::after { display: none; }
  .nav-open .site-header--transparent { background: var(--green-100); }
}
@media (max-width: 767px) { .site-header__logo { width: 100px; height: 50px; } }

/* ---------- Secondary navigation ---------- */
.subnav { position: relative; z-index: 30; background: var(--yellow); padding-inline: var(--gutter); }
.subnav__inner { max-width: var(--content); margin-inline: auto; height: 56px; display: flex; align-items: center; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; position: relative; color: var(--gray-80); text-decoration: none; white-space: nowrap; padding-block: 4px; }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green-100); transform: scaleX(0); transition: transform .2s; }
.subnav a:hover::after, .subnav a.is-active::after { transform: scaleX(1); }
.subnav a.is-active { color: var(--green-100); font-weight: 700; }
[id] { scroll-margin-top: 16px; }

/* ---------- Hero (split) ---------- */
.hero-split { display: grid; grid-template-columns: 699fr 667fr; min-height: 376px; }
.hero-split__text { background: var(--warm-gray); padding: 56px 32px 56px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.hero-split__text > * { max-width: calc(var(--content) / 2); margin-left: auto; width: 100%; }
.hero-split__media { position: relative; min-height: 300px; }
.hero-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1367px) { .hero-split__text > * { margin-left: max(0px, calc((100vw - var(--content)) / 2 - var(--gutter))); margin-right: 0; } }
@media (max-width: 899px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .hero-split__text { padding: 40px var(--gutter); }
}

/* ---------- Landing hero ---------- */
.landing-top { position: relative; isolation: isolate; }
.landing-top__bg { position: absolute; inset: 0 0 auto 0; height: 757px; z-index: -1; overflow: hidden; }
.landing-top__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.landing-hero { height: calc(478px + var(--header-h)); padding: calc(var(--header-h) + 50px) var(--gutter) 0; display: flex; align-items: center; }
.landing-hero__title { max-width: var(--content); margin-inline: auto; width: 100%; font-family: var(--font-head); font-style: italic; font-size: 54px; line-height: 56px; color: var(--yellow); text-shadow: 0 1px 12px rgba(5,29,25,.15); }
.landing-hero__title b { display: block; font-weight: 700; }
.landing-hero__title span { display: block; font-weight: 400; padding-left: 250px; }
@media (max-width: 1023px) {
  .landing-top__bg { height: 640px; }
  .landing-hero { height: calc(380px + var(--header-h)); }
  .landing-hero__title { font-size: 44px; line-height: 48px; }
  .landing-hero__title span { padding-left: 120px; }
}
@media (max-width: 767px) {
  .landing-top__bg { height: 520px; }
  .landing-top__bg img { object-position: 70% center; }
  .landing-hero { height: calc(320px + var(--header-h)); padding-top: calc(var(--header-h) + 24px); }
  .landing-hero__title { font-size: 34px; line-height: 40px; }
  .landing-hero__title span { padding-left: 0; }
}

/* ---------- Carousel ---------- */
.carousel { padding: var(--section-y) var(--gutter); }
.carousel__inner { position: relative; max-width: var(--content); margin-inline: auto; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.carousel__slide { flex: 0 0 100%; display: grid; grid-template-columns: 330px 1fr; min-height: 403px; }
.carousel__slide-media { position: relative; }
.carousel__slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel__slide-body { background: var(--yellow); padding: 40px 214px 56px 32px; display: flex; flex-direction: column; justify-content: center; }
.carousel__slide-body h2 { font-family: var(--font-head); font-weight: 500; font-size: 32px; line-height: 40px; color: var(--green-100); }
.carousel__slide-body p { font-size: 18px; line-height: 24px; padding-top: 24px; }
.carousel__slide-body .link-arrow { margin-top: 24px; }
.carousel__sep { height: 1px; background: var(--gray-50); }
.carousel__dots { display: flex; justify-content: center; gap: 8px; padding-top: 32px; }
.carousel__dots button { width: 32px; height: 14px; position: relative; }
.carousel__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--gray-50); transition: background-color .2s; }
.carousel__dots button[aria-current="true"]::before { background: var(--green-100); }
.carousel__controls { position: absolute; right: 21px; top: 380px; display: flex; z-index: 2; }
.carousel__controls button { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--green-100); margin-right: -1px; transition: background-color .15s; }
.carousel__controls button:first-child { border-radius: 2px 0 0 2px; }
.carousel__controls button:last-child { border-radius: 0 2px 2px 0; margin-right: 0; }
.carousel__controls button:hover { background: var(--light-gray); }
.carousel__controls img { width: 16px; height: 16px; }
.carousel__controls .ic-play { display: none; }
.carousel.is-paused .ic-pause { display: none; }
.carousel.is-paused .ic-play { display: block; }
@media (max-width: 1023px) { .carousel__slide-body { padding-right: 32px; } }
@media (max-width: 767px) {
  .carousel__slide { grid-template-columns: 1fr; min-height: 0; }
  .carousel__slide-media { aspect-ratio: 4 / 3; }
  .carousel__slide-media img { object-position: center 20%; }
  .carousel__slide-body { padding: 24px 20px 32px; }
  .carousel__slide-body h2 { font-size: 24px; line-height: 32px; }
  .carousel__controls { position: static; justify-content: flex-end; margin-top: 16px; }
}

/* ---------- Cards (image on top) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; }
.card { display: flex; flex-direction: column; border-bottom: 1px solid var(--green-3); color: inherit; text-decoration: none; }
.card__media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--warm-gray); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card__media img + img { mix-blend-mode: normal; }
a.card:hover .card__media img, .card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 16px 0 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-family: var(--font-head); font-weight: 500; font-size: 19px; line-height: 28px; color: var(--black); }
.card__body > p { padding-top: 8px; }
.card__body .links-row, .card__body > .link-arrow { margin-top: auto; padding-top: 20px; }
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; } }
@media (max-width: 639px)  { .cards { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Image + text (side by side) ---------- */
.media-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.media-side__img { position: relative; aspect-ratio: 608 / 325; overflow: hidden; }
.media-side__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-side__body { padding: 16px 24px 24px; align-self: center; }
.media-gap { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: 32px; align-items: start; }
.img-fill { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .media-side, .media-gap { grid-template-columns: 1fr; gap: 24px; }
  .media-side__body { padding: 0; }
}

/* ---------- Boxes ---------- */
.box-yellow { background: var(--yellow); padding: 32px; }
.box-warm { background: var(--warm-gray); padding: 32px 40px; }
.box-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.box-grid-3 .dots { padding-top: 16px; }
@media (max-width: 1023px) { .box-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px)  { .box-grid-3 { grid-template-columns: 1fr; gap: 16px; } .box-yellow { padding: 24px; } .box-warm { padding: 24px 20px; } }

/* Feature (checklist style) */
.feature { background: var(--warm-gray); padding: 32px 40px; display: grid; grid-template-columns: 551fr 545fr; gap: 40px; align-items: start; }
.feature + .feature { margin-top: 30px; }
.feature__media { position: relative; aspect-ratio: 545 / 362; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__body h2, .feature__body h3 { font-family: var(--font-head); font-weight: 500; font-size: 23px; line-height: 32px; color: var(--black); }
.feature__body .body-l { padding-top: 8px; }
.feature__body .btn { margin-top: 32px; }
.feature__note { grid-column: 1 / -1; }
@media (max-width: 899px) {
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .feature__media { order: -1; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dtable { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; color: var(--gray-80); }
.dtable th, .dtable td { padding: 16px; text-align: left; vertical-align: middle; border-top: 1.2px solid var(--black); border-bottom: 1.2px solid var(--black); }
.dtable th { background: var(--yellow); color: var(--green-100); font-weight: 700; }
.dtable td { vertical-align: top; }
.dtable--mid-rule th:nth-child(2), .dtable--mid-rule td:nth-child(2) { border-left: 1px solid var(--black); border-right: 1px solid var(--black); }
.dtable--cols3 th, .dtable--cols3 td { width: 33.333%; height: 80px; vertical-align: middle; }
.dtable .col-narrow { width: 98px; }
.dtable .col-stage { width: 162px; }
@media (max-width: 767px) { .dtable--cols3 { min-width: 640px; } .dtable th, .dtable td { padding: 12px; } }

/* ---------- Accordion ---------- */
.acc { border-bottom: 1.2px solid var(--gray-50); }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 0; }
.acc__title { flex: 1; font-family: var(--font-head); font-weight: 500; font-size: 28px; line-height: 40px; color: var(--green-100); }
.acc__icon { flex: none; width: 20px; display: flex; justify-content: center; }
.acc__icon img { width: 16px; height: 16px; transition: transform .25s; transform: rotate(180deg); } /* svg points up → closed = down */
.acc.is-open .acc__icon img { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__content { padding: 8px 0 40px; }
.acc__content > * + * { margin-top: 24px; }
.acc--small { border-top: 1.2px solid var(--gray-50); margin-top: -1.2px; }
.acc--small .acc__btn { padding: 24px 0; }
.acc--small .acc__title { font-size: 16px; line-height: 24px; color: var(--black); }
.acc--small .acc__content { padding: 16px 0 32px; }
@media (max-width: 767px) { .acc__title { font-size: 21px; line-height: 30px; } }

.refs { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 12px; line-height: 16px; counter-reset: ref; }
.refs li { display: flex; gap: 8px; counter-increment: ref; overflow-wrap: anywhere; }
.refs li::before { content: counter(ref) "."; flex: none; }

/* T/N/M illustrations inside accordion */
.tnm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tnm-grid figure { margin: 0; }
.tnm-grid figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--warm-gray); }
.tnm-grid figcaption { padding-top: 16px; font-size: 14px; line-height: 20px; }
@media (max-width: 767px) { .tnm-grid { grid-template-columns: 1fr; } }

/* ---------- Highlight banner ---------- */
.highlight { background: var(--yellow); padding: 40px var(--gutter); text-align: center; }
.highlight--lg { padding-block: 75px; }
.highlight__inner { max-width: 800px; margin-inline: auto; }
.highlight__big { font-family: var(--font-head); font-size: 48px; line-height: 60px; color: var(--green-140); }
.highlight__big b { font-weight: 700; }
.highlight .t-lead { padding-top: 24px; }
.highlight .cta { padding-top: 32px; display: flex; justify-content: center; }
@media (max-width: 767px) { .highlight__big { font-size: 32px; line-height: 40px; } }

/* ---------- Footnotes / abbreviations ---------- */
.foot-row { display: flex; gap: 10px; align-items: flex-start; }
.foot-row > * { flex: 1; }
.abbr-list { display: grid; gap: 8px; padding-top: 16px; font-size: 12px; line-height: 16px; color: var(--gray-80); }
.social { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 16px 0; }
.social__icons { display: flex; gap: 24px; }
.social__icons a { display: block; width: 32px; height: 32px; transition: opacity .15s; }
.social__icons a:hover { opacity: .7; }
@media (max-width: 767px) { .foot-row { flex-direction: column; gap: 24px; } .social { justify-content: flex-start; padding: 0; flex-wrap: wrap; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-100); color: var(--white); padding: 75px var(--gutter); }
.site-footer__inner { max-width: var(--content); margin-inline: auto; }
.site-footer__row { display: flex; gap: 56px; align-items: center; }
.site-footer__logo { flex: none; width: 154px; height: 56px; }
.site-footer__logo img { width: 100%; height: 100%; object-fit: contain; }
.site-footer__links { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 32px; }
.site-footer__links a { color: var(--white); text-underline-position: from-font; }
.site-footer__links a:hover { color: var(--yellow); }
.site-footer__copy { text-align: right; }
@media (max-width: 767px) {
  .site-footer { padding-block: 48px; }
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-footer__links { justify-content: flex-start; flex-direction: column; }
  .site-footer__copy { text-align: left; margin-top: 24px; font-size: 14px; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 13px; bottom: 24px; z-index: 35;
  display: flex; padding: 16px; border: 1px solid var(--gray-60); border-radius: 2px; background: var(--white);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top img { width: 16px; height: 16px; }

/* ---------- Toast (Function-Message) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  width: min(296px, calc(100vw - 32px)); display: flex; align-items: flex-start;
  background: var(--info-bg); box-shadow: 0 4px 16px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s, visibility .2s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast img { width: 24px; height: 24px; margin: 16px 0 0 16px; flex: none; }
.toast p { padding: 16px; font-family: var(--font-head); font-weight: 500; font-size: 16px; line-height: 24px; color: var(--info); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,29,25,.6); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog { position: relative; width: min(672px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); padding: 40px; transform: translateY(12px); transition: transform .2s; }
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 24px; right: 24px; width: 20px; height: 20px; }
.modal__close img { width: 20px; height: 20px; }
.modal h2 { font-family: var(--font-head); font-weight: 500; font-size: 28px; line-height: 40px; color: var(--green-100); padding-right: 32px; }
.modal__body { padding-top: 8px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 40px; flex-wrap: wrap; }
@media (max-width: 479px) { .modal__dialog { padding: 32px 20px 24px; } .modal__actions .btn { flex: 1; justify-content: center; } }
body.modal-lock { overflow: hidden; }

/* ---------- Page-specific components ---------- */
.placeholder { font-style: italic; color: var(--gray-60); background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(183,182,178,.12) 8px 16px); padding: 16px; border: 1px dashed var(--gray-50); }
.acc__figure { width: 100%; max-width: 800px; height: auto; }

.crop { position: relative; overflow: hidden; align-self: stretch; min-height: 280px; }
.crop img { position: absolute; max-width: none; }
.crop--lungs1 img { width: 139.96%; height: 102.85%; left: -19.91%; top: .03%; }
.crop--lungs2 { aspect-ratio: 602 / 339; min-height: 0; align-self: start; }
.crop--lungs2 img { width: 100%; height: 119.14%; left: .07%; top: -4.5%; }
@media (max-width: 899px) { .crop--lungs1 { aspect-ratio: 584 / 447; min-height: 0; } }

.exam-list { margin: 0; background: var(--warm-gray); padding: 32px; display: grid; gap: 16px; }
.exam-list > div + div { border-top: 1px solid var(--green-3); padding-top: 16px; }
.exam-list dt { font-family: var(--font-head); font-weight: 500; font-size: 19px; line-height: 28px; }
.exam-list dd { margin: 8px 0 0; }
@media (max-width: 639px) { .exam-list { padding: 24px 20px; } }

.arztbrief { padding: 32px var(--gutter); }
.arztbrief__inner { max-width: 1152px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.arztbrief__img { aspect-ratio: 560 / 315; overflow: hidden; position: relative; }
.arztbrief__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .arztbrief { padding-block: 40px; } .arztbrief__inner { grid-template-columns: 1fr; } }

.faq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.link-expand { font-weight: 700; color: var(--gray-80); text-decoration: underline; text-underline-offset: 4px; }
.link-expand:hover { color: var(--green-100); }
.acc--faq { border-top: 1.2px solid var(--gray-50); margin-top: -1.2px; }
.acc--faq .acc__btn { padding: 24px 0; align-items: flex-start; }
.acc--faq .acc__icon { padding-top: 6px; }
.acc--faq .acc__title { font-size: 19px; line-height: 28px; color: var(--green-100); }
.acc--faq .acc__content { padding: 0 0 32px; }

.page-intro { max-width: 916px; }
.hero-split__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.media-gap > div > p + p, .media-gap > div > ul + p { margin-top: 20px; }
.indent.body-l > p + p { margin-top: 20px; }
.abbr-list p + p { margin-top: 0; }

/* ---------- Accordion content (Figma update) ---------- */
.rich p + p, .rich ul + p, .rich p + ul { margin-top: 24px; }
.rich > p:first-child + p { margin-top: 20px; }
.measure.rich, .acc__content .measure { max-width: 901px; }
.acc__figure--wide { max-width: 100%; }
.c-coral { color: #EE6541; }
.faq-answer { padding-right: 16px; }
.tnm-grid figure img { object-fit: cover; }
.tnm-grid figcaption { font-size: 18px; line-height: 24px; }

/* ---------- Mega menu (Boehringer-style flyout) ---------- */
.nav-item { display: flex; }
.nav-item__btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 16px; line-height: 24px; color: var(--white); white-space: nowrap;
}
.nav-item__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.nav-item__btn:hover::after, .nav-item__btn[aria-expanded="true"]::after, .nav-item__btn.is-current::after { transform: scaleX(1); }
.nav-item__btn.is-current, .nav-item__btn[aria-expanded="true"] { color: var(--yellow); }
.nav-item__chev { width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; display: none; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: var(--white); color: var(--black);
  border-top: 1px solid var(--green-3);
  box-shadow: 0 24px 40px -16px rgba(5,29,25,.25);
  padding: 48px var(--gutter) 56px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__inner { position: relative; max-width: var(--content); margin-inline: auto; display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
.mega__title { font-family: var(--font-head); font-weight: 500; font-size: 33px; line-height: 44px; color: var(--green-100); }
.mega__desc { margin-top: 16px; font-size: 18px; line-height: 24px; }
.mega__intro .link-arrow { margin-top: 24px; }
.mega__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-content: start; }
.mega__links a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--green-3);
  font-family: var(--font-head); font-weight: 500; font-size: 19px; line-height: 28px; color: var(--green-100); text-decoration: none;
}
.mega__links a img { width: 16px; height: 16px; flex: none; transition: transform .15s; }
.mega__links a:hover { color: var(--green-140); }
.mega__links a:hover img { transform: translateX(4px); }
.mega__links--empty { display: flex; align-items: flex-start; }
.mega__close { position: absolute; top: -24px; right: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.mega__close img { width: 20px; height: 20px; }
.mega-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(5,29,25,.35); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.mega-open .mega-backdrop { opacity: 1; visibility: visible; }
.mega-open .site-header--transparent { background: var(--green-100); }

@media (max-width: 1099px) {
  .site-nav .nav-item { flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav-item__btn { justify-content: space-between; width: 100%; padding: 14px 0; font-size: 19px; }
  .nav-item__btn::after { display: none; }
  .nav-item__chev { display: block; }
  .nav-item__btn[aria-expanded="true"] .nav-item__chev { transform: translateY(2px) rotate(-135deg); }
  .mega { position: static; background: transparent; color: var(--white); border: 0; box-shadow: none; padding: 0; transform: none; display: none; }
  .mega.is-open { display: block; }
  .mega__inner { grid-template-columns: 1fr; gap: 8px; padding-bottom: 20px; }
  .mega__title, .mega__close { display: none; }
  .mega__desc { margin-top: 0; font-size: 15px; line-height: 22px; opacity: .85; }
  .mega__intro .link-arrow { margin-top: 12px; color: var(--yellow); }
  .mega__intro .link-arrow img { filter: brightness(0) invert(1); }
  .mega__links { grid-template-columns: 1fr; }
  .mega__links a { color: var(--white); font-size: 16px; line-height: 24px; padding: 10px 0; border-color: rgba(255,255,255,.15); }
  .mega__links a img { filter: brightness(0) invert(1); }
  .mega-backdrop { display: none; }
  .site-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
}

/* ---------- Mega menu: dark green variant ---------- */
.mega { background: var(--green-100); color: var(--white); border-top: 1px solid rgba(255,255,255,.15); box-shadow: 0 24px 40px -16px rgba(0,0,0,.45); }
.mega__title { color: var(--white); }
.mega__desc { color: rgba(255,255,255,.88); }
.mega__intro .link-arrow { color: var(--white); }
.mega__intro .link-arrow img { filter: brightness(0) invert(1); }
.mega__intro .link-arrow:hover { color: var(--yellow); }
.mega__intro .link-arrow:hover img { filter: brightness(0) saturate(100%) invert(96%) sepia(17%) saturate(631%) hue-rotate(6deg) brightness(104%); }
.mega__links a { color: var(--white); border-bottom-color: rgba(255,255,255,.2); transition: color .15s; }
.mega__links a:hover, .mega__links a:focus-visible, .mega__links a.is-active { color: var(--yellow); }
.mega__links a.is-active { border-bottom-color: var(--yellow); }
.mega__chev { flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.mega__links a:hover .mega__chev { transform: translateX(4px) rotate(-45deg); }
.mega__close img { filter: brightness(0) invert(1); }
.mega__close:hover img { filter: brightness(0) saturate(100%) invert(96%) sepia(17%) saturate(631%) hue-rotate(6deg) brightness(104%); }
.mega-open .site-header__bar { border-bottom: 0; }
@media (max-width: 1099px) {
  .mega { background: transparent; border: 0; box-shadow: none; }
  .mega__intro .link-arrow { color: var(--yellow); }
  .mega__links a { border-bottom-color: rgba(255,255,255,.15); }
}
