/*
 * Laborprofil-Auswahltool - Labor Dr. Bayer - Contao-Build v2.21
 * Erzeugt aus assets/css/styles.css. Aenderungen dort vornehmen, siehe dist/README_rescript.md.
 * Alle Regeln sind auf #profile-tool-root begrenzt. Seitenhuelle der Demo
 * (Header, Hero, Footer) und Container-Begrenzung sind entfernt.
 */
:root {
  --lb-green: #afca0b;
  --lb-green-dark: #839900;
  --lb-green-pale: #f2f7d7;
  --lb-blue: #003865;
  --lb-blue-soft: #e8f0f5;
  --lb-red: #ae2135;
  --lb-ink: #25323b;
  --lb-muted: #000000;
  --lb-border: #d8e0e4;
  --lb-surface: #ffffff;
  --lb-bg: #f5f7f7;
  --lb-focus: #1769aa;
  --lb-success: #376b11;
  --lb-shadow: 0 12px 34px rgba(0, 56, 101, .10);
  --lb-radius: 2px;
  --lb-font: "Noto Sans Display", Arial, Helvetica, sans-serif;
}

#profile-tool-root { max-width:1200px; margin:0 auto; }
#profile-tool-root, #profile-tool-root *, #profile-tool-root *::before, #profile-tool-root *::after { box-sizing: border-box; }
#profile-tool-root {
  /* Hintergrund bleibt transparent, der Contao-Seitenhintergrund ist sichtbar.
     Fuer die graue Flaeche der Demo hier 'background: var(--lb-bg);' ergaenzen. */
  color: var(--lb-ink);
  font-family: var(--lb-font);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
#profile-tool-root button, #profile-tool-root input, #profile-tool-root select { font: inherit; }
#profile-tool-root a { color: var(--lb-blue); }
#profile-tool-root a:hover { color: var(--lb-red); }
#profile-tool-root button { cursor: pointer; }
#profile-tool-root button:focus-visible, #profile-tool-root a:focus-visible, #profile-tool-root input:focus-visible {
  outline: 3px solid rgba(23, 105, 170, .38);
  outline-offset: 3px;
}
#profile-tool-root [hidden] { display: none !important; }

#profile-tool-root .eyebrow {
  margin: 0 0 8px;
  color: var(--lb-green);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#profile-tool-root h1, #profile-tool-root h2, #profile-tool-root h3 { color: var(--lb-blue); line-height: 1.18; margin-top: 0; }

#profile-tool-root .breadcrumbs { margin-bottom: 18px; color: var(--lb-muted); font-size: .88rem; }
#profile-tool-root .breadcrumbs button { padding: 0; border: 0; background: transparent; color: var(--lb-blue); text-decoration: underline; }
#profile-tool-root .tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; align-items: start; }
#profile-tool-root .tool-panel { min-height: 560px; outline: none; background: var(--lb-surface); border-top: 6px solid var(--lb-green); box-shadow: var(--lb-shadow); }
#profile-tool-root .tool-panel-inner { padding: clamp(24px, 4vw, 49px); }
#profile-tool-root .side-panel { position: sticky; top: 22px; }
#profile-tool-root .side-card { background: #fff; border-left: 5px solid var(--lb-green); padding: 22px; box-shadow: 0 8px 24px rgba(0, 56, 101, .07); }
#profile-tool-root .side-card + .side-card { margin-top: 18px; }
#profile-tool-root .side-card h3 { margin-bottom: 9px; font-size: 1.08rem; }
#profile-tool-root .side-card p, #profile-tool-root .side-card li { font-size: .9rem; color: var(--lb-muted); }
#profile-tool-root .side-card ul { margin: 9px 0 0; padding-left: 19px; }

#profile-tool-root .section-kicker { color: var(--lb-red); font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
#profile-tool-root .lead { max-width: 760px; color: #000000; font-size: 1.06rem; }

#profile-tool-root .disease-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 31px; }
#profile-tool-root .disease-card {
  position: relative;
  min-height: 225px;
  padding: 27px;
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#profile-tool-root .disease-card.is-active:hover { transform: translateY(-3px); box-shadow: var(--lb-shadow); border-color: var(--lb-green); }
#profile-tool-root .disease-card h3 { margin: 9px 0 11px; font-size: 1.35rem; }
#profile-tool-root .disease-card p { color: var(--lb-muted); }
#profile-tool-root .disease-card .status { display: inline-flex; padding: 4px 9px; background: var(--lb-green-pale); color: var(--lb-success); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
#profile-tool-root .disease-card.is-disabled { background: #f5f6f6; color: #88939a; }
#profile-tool-root .disease-card.is-disabled h3 { color: #75818a; }
#profile-tool-root .disease-card.is-disabled .status { background: #e6eaec; color: #75818a; }

#profile-tool-root .btn-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
#profile-tool-root .btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 0;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
#profile-tool-root .btn-primary { background: var(--lb-green); color: var(--lb-blue); }
#profile-tool-root .btn-primary:hover { background: var(--lb-green-dark); color: #fff; }
#profile-tool-root .btn-secondary { background: #fff; color: var(--lb-blue); border-color: var(--lb-blue); }
#profile-tool-root .btn-secondary:hover { background: var(--lb-blue); color: #fff; }
#profile-tool-root .btn-quiet { background: transparent; color: var(--lb-blue); border-color: var(--lb-border); }
#profile-tool-root .btn-quiet:hover { border-color: var(--lb-blue); }
#profile-tool-root .btn[disabled] { cursor: not-allowed; opacity: .48; }

#profile-tool-root .confirmation-box { margin: 26px 0 0; padding: 20px; background: var(--lb-blue-soft); border-left: 5px solid var(--lb-blue); }
#profile-tool-root .check-line { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
#profile-tool-root .check-line input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--lb-green-dark); }

#profile-tool-root .progress-wrap { margin-bottom: 31px; }
#profile-tool-root .progress-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; color: var(--lb-muted); font-size: .84rem; font-weight: 700; }
#profile-tool-root .progress-track { height: 8px; overflow: hidden; background: #e7ebed; }
#profile-tool-root .progress-bar { height: 100%; width: 0; background: var(--lb-green); transition: width .22s ease; }
#profile-tool-root .question-title { margin-bottom: 14px; font-size: clamp(1.55rem, 3vw, 2.15rem); }
#profile-tool-root .help-box { margin: 22px 0; padding: 21px 23px; background: var(--lb-green-pale); border-left: 5px solid var(--lb-green); }
#profile-tool-root .help-box h3 { margin-bottom: 8px; font-size: 1.02rem; }
#profile-tool-root .help-box ul { margin: 0; padding-left: 20px; }
#profile-tool-root .help-box li + li { margin-top: 5px; }
#profile-tool-root .answer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 29px; }
#profile-tool-root .answer-btn {
  min-height: 76px;
  padding: 14px;
  border: 2px solid var(--lb-border);
  background: #fff;
  color: var(--lb-blue);
  font-weight: 800;
}
#profile-tool-root .answer-btn:hover, #profile-tool-root .answer-btn[aria-pressed="true"] { border-color: var(--lb-green-dark); background: var(--lb-green-pale); }
#profile-tool-root .answer-btn small { display: block; margin-top: 3px; color: var(--lb-muted); font-weight: 400; }

#profile-tool-root .patient-field + .patient-field { margin-top: 30px; }
#profile-tool-root .patient-answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#profile-tool-root .privacy-inline { margin: 22px 0 0; color: var(--lb-muted); font-size: .88rem; }

#profile-tool-root .multi-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 24px; }
#profile-tool-root .multi-option { position: relative; display: block; }
#profile-tool-root .multi-option input { position: absolute; opacity: 0; pointer-events: none; }
#profile-tool-root .multi-option-body { display: block; min-height: 130px; padding: 18px; border: 2px solid var(--lb-border); background: #fff; }
#profile-tool-root .multi-option input:checked + .multi-option-body { border-color: var(--lb-green-dark); background: var(--lb-green-pale); }
#profile-tool-root .multi-option input:focus-visible + .multi-option-body { outline: 3px solid rgba(23, 105, 170, .38); outline-offset: 3px; }
#profile-tool-root .multi-option strong { display: block; color: var(--lb-blue); }
#profile-tool-root .multi-option span { display: block; margin-top: 7px; color: var(--lb-muted); font-size: .89rem; }

#profile-tool-root .sige-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 24px; }
#profile-tool-root .sige-option { position: relative; display: block; }
#profile-tool-root .sige-option input { position: absolute; opacity: 0; pointer-events: none; }
#profile-tool-root .sige-option-body { min-height: 143px; padding: 18px; border: 2px solid var(--lb-border); background: #fff; }
#profile-tool-root .sige-option input:checked + .sige-option-body { border-color: var(--lb-green-dark); background: var(--lb-green-pale); }
#profile-tool-root .sige-option input:focus-visible + .sige-option-body { outline: 3px solid rgba(23, 105, 170, .38); outline-offset: 3px; }
#profile-tool-root .sige-option strong { display: block; color: var(--lb-blue); }
#profile-tool-root .sige-option span { display: block; margin-top: 7px; color: var(--lb-muted); font-size: .89rem; }
#profile-tool-root .selection-counter { margin: 14px 0 0; color: var(--lb-blue); font-weight: 800; }
#profile-tool-root .selection-counter.is-limit { color: var(--lb-red); }
#profile-tool-root .inline-warning { margin-top: 12px; padding: 12px 15px; background: #fff4f5; border-left: 4px solid var(--lb-red); color: #732333; }

#profile-tool-root .result-banner { margin: -1px -1px 30px; padding: 25px 28px; background: var(--lb-blue); color: #fff; }
#profile-tool-root .result-banner .eyebrow { color: #eaf2af; }
#profile-tool-root .result-banner h2 { margin: 2px 0 7px; color: #fff; }
#profile-tool-root .result-banner p { margin: 0; }
#profile-tool-root .result-banner .result-count { margin: 2px 0 4px; color: #fff; font-size: .9rem; font-weight: 800; letter-spacing: .025em; }
#profile-tool-root .result-banner .result-secondary-summary { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.32); color: #fff; font-size: 1rem; }
#profile-tool-root .profile-stack { display: grid; gap: 19px; }
#profile-tool-root .profile-card { padding: 25px; border: 1px solid var(--lb-border); border-left: 7px solid var(--lb-green); background: #fff; }
#profile-tool-root .profile-card.secondary { border-left-color: var(--lb-blue); background: #f8fafb; }
#profile-tool-root .profile-label { color: var(--lb-red); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
#profile-tool-root .profile-card h3 { margin: 4px 0 10px; font-size: 1.35rem; }
#profile-tool-root .parameter-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
#profile-tool-root .parameter-list span { padding: 5px 9px; background: #edf2f4; color: #42515a; font-size: .82rem; }
#profile-tool-root .reason-card { margin-top: 22px; padding: 22px; background: var(--lb-green-pale); border-left: 5px solid var(--lb-green); }
#profile-tool-root .reason-card h3 { margin-bottom: 8px; }
#profile-tool-root .result-sige { margin-top: 22px; padding: 22px; border: 1px solid var(--lb-border); }
#profile-tool-root .result-sige h3 { margin-bottom: 10px; }
#profile-tool-root .result-sige ul { margin-bottom: 0; }
#profile-tool-root .disclaimer { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--lb-border); color: var(--lb-muted); font-size: .88rem; }

#profile-tool-root .noscript { margin: 30px 0; padding: 18px; background: #fff4f5; border-left: 5px solid var(--lb-red); }

@media (max-width: 900px) {
  #profile-tool-root .tool-layout { grid-template-columns: 1fr; }
  #profile-tool-root .side-panel { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  #profile-tool-root .side-card + .side-card { margin-top: 0; }
}
@media (max-width: 640px) {
  #profile-tool-root .tool-panel-inner { padding: 24px 19px; }
  #profile-tool-root .disease-grid, #profile-tool-root .answer-grid, #profile-tool-root .sige-grid, #profile-tool-root .multi-option-grid, #profile-tool-root .side-panel { grid-template-columns: 1fr; }
  #profile-tool-root .answer-btn { min-height: 62px; }
}

@media print {
  #profile-tool-root .side-panel, #profile-tool-root .breadcrumbs, #profile-tool-root .result-actions { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  #profile-tool-root .tool-layout { display: block; }
  #profile-tool-root .tool-panel { box-shadow: none; border: 0; }
  #profile-tool-root .tool-panel-inner { padding: 0; }
  #profile-tool-root .profile-card, #profile-tool-root .reason-card, #profile-tool-root .result-sige { break-inside: avoid; }
}

/* Anschlussdiagnostik bei Modulen mit nachgelagerter Add-on-Logik */
#profile-tool-root .followup-card { margin-top: 22px; padding: 22px; border: 1px solid var(--lb-border); border-left: 5px solid var(--lb-blue); background: #f7fafc; }
#profile-tool-root .followup-card h3 { margin: 5px 0 9px; }
#profile-tool-root .selection-note { margin-top: 14px; padding: 14px 16px; background: #f4f7f8; border-left: 4px solid var(--lb-blue); color: var(--lb-ink); }
@media print { #profile-tool-root .followup-card, #profile-tool-root .selection-note { break-inside: avoid; } }

/* Einfachauswahl und ärztliche Reflexlogik */
#profile-tool-root .single-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#profile-tool-root .single-choice-btn { min-height: 116px; text-align: left; align-items: flex-start; }
#profile-tool-root .single-choice-btn small { margin-top: 8px; line-height: 1.42; }
#profile-tool-root .reflex-guidance { margin-top: 22px; padding: 22px; border: 1px solid var(--lb-border); background: #fff; }
#profile-tool-root .reflex-guidance h3 { margin: 5px 0 16px; }
#profile-tool-root .reflex-grid { display: grid; gap: 12px; }
#profile-tool-root .reflex-item { padding: 17px 18px; border-left: 4px solid var(--lb-blue); background: #f7fafc; }
#profile-tool-root .reflex-item p { margin: 0; }
#profile-tool-root .reflex-item p + p { margin-top: 7px; }
#profile-tool-root .reflex-trigger { color: var(--lb-ink); }
#profile-tool-root .reflex-recommendation { color: var(--lb-blue); font-weight: 800; }
@media (max-width: 640px) { #profile-tool-root .single-choice-grid { grid-template-columns: 1fr; } }
@media print { #profile-tool-root .reflex-guidance, #profile-tool-root .reflex-item { break-inside: avoid; } }


/* ------------------------------------------------------------------------
   Einzige Regel ausserhalb von #profile-tool-root.

   Das Theme macht den <body> zu einem eigenen Scroll-Container:
   overflow-x: hidden (vom Off-Canvas-Menue mmenu) und overflow-y: auto.
   Da <html> bereits ein eigenes Overflow besitzt, wird das des <body> nicht
   mehr an den Viewport durchgereicht - der <body> scrollt deshalb nie und
   position: sticky der seitlichen Hinweisboxen bleibt wirkungslos.

   'clip' unterbindet horizontales Scrollen genauso wie 'hidden', erzeugt
   aber keinen Scroll-Container. Die Regel greift nur auf Seiten, auf denen
   das Tool steht, und pausiert bei geoeffnetem Off-Canvas-Menue, damit
   dessen Scroll-Sperre weiter funktioniert.
   ------------------------------------------------------------------------ */
html:not(.mm-wrapper--opened) body:not(.mm-wrapper--opened):has(#profile-tool-root) {
  overflow-x: clip;
  overflow-y: visible;
}
