/* CareApo look for the installation configurator. The tool's own styles are in configurator.css (generated);
   this file is written by hand and loaded after it. */

/* 1. Keep the site's general text and layout rules out of the tool. */
.cfg :where(section, article, details) { padding: 0; border: 0; scroll-margin: 0; }
.cfg :where(h1, h2, h3, h4, p, ul, ol, li) {
  margin: revert; padding: revert; font-size: revert; line-height: inherit; letter-spacing: normal; color: inherit; text-wrap: wrap;
}
.cfg li::marker { color: inherit; }
.cfg :where(.actions) { flex-wrap: nowrap; margin: 0; align-items: normal; }
.cfg :where(.secondary) { font-weight: inherit; }
.cfg :where(.split) { align-items: normal; }

/* 2. Page frame */
.cfg-page { width: min(92%, 76rem); margin: auto; padding: clamp(1.8rem, 4vw, 3.2rem) 0 clamp(3rem, 5vw, 5rem); }
.cfg-page > .secondary { display: inline-block; margin-bottom: 1.2rem; }

/* 3. Theme */
.cfg {
  --ink: #281e21; --muted: #605558; --accent: #a41335; --accent-dark: #80102b; --light: #fbf2f4; --bg: transparent; --line: #e8dddf;
  font-family: inherit;
}
.cfg .cfg-header { position: static; border: 0; background: none; box-shadow: none; }
.cfg .top { max-width: none; padding: 0 0 .4rem; justify-content: flex-end; }
.cfg .top .brand { display: none; }                      /* the site header already shows the logo */
.cfg .cfg-main { width: auto; max-width: none; margin: 0; padding: 0; }
.cfg .intro { margin-bottom: 1.6rem; }
.cfg .intro .eyebrow {
  display: inline-flex; padding: .35rem 1rem; border: 1px solid #ddafbc; border-radius: 2rem;
  background: linear-gradient(170deg, #fff, #fbebef); box-shadow: 0 2px 4px #541d3014;
  color: var(--accent); font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none;
}
.cfg .intro h1 { margin: .8rem 0 .5rem; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.cfg .intro p { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); }
.cfg .wizard { border-color: #e9dce1; border-radius: 1.15rem; box-shadow: 0 5px 16px #48172a0f, 0 1px 3px #48172a06; }
.cfg .maincol h2 { letter-spacing: -.035em; }
.cfg .btn {
  padding: .8rem 1.5rem; border: 1.5px solid transparent; border-radius: 2rem;
  background: linear-gradient(120deg, #6b102b, #a41335 65%, #82334b); font-weight: 700;
}
.cfg .btn:hover { background: linear-gradient(120deg, #5a0d24, #8c102d); }
.cfg .btn.secondary { border-color: #ddafbc; background: white; color: var(--accent); }
.cfg .btn.secondary:hover { background: #fbf2f4; }
.cfg .btn:disabled { opacity: .45; cursor: default; }
.cfg .choice, .cfg .pickcard { border-radius: 1rem; }
.cfg .field input, .cfg .field textarea, .cfg .field select { border-radius: .7rem; }
/* Language is chosen with the site's DE | EN switch in the header; the tool's own dropdown stays in the page
   for its script but is not shown. */
.cfg #language-select, .cfg label[for="language-select"] { display: none; }
.cfg .result-workspace-preview { top: calc(var(--bar-height) + 1rem); }   /* stay below the sticky site header */
.cfg .footbar { margin: 1.4rem 0 0; }

/* 4. Printing the result: only the tool's report, not the site header, footer or banners. */
@media print {
  body > header, body > footer, #mobile-menu, .cookie-banner, .scroll-thumb, .cfg-page > .secondary { display: none !important; }
  .cfg-page { width: auto; padding: 0; }
}

/* Number field beside a slider: wide enough for four digits plus the browser's step arrows */
.cfg .placeinputs input[type=number], .cfg .result-workspace-controls .placeinputs input[type=number] { width: 6.5rem; flex: none; box-sizing: border-box; }
.cfg .result-workspace-controls .placeinputs { grid-template-columns: minmax(0, 1fr) 6.5rem auto; }

/* PDF enquiry dialog: compact fields so it fits a laptop screen without scrolling */
.cfg .pdf-dialog { width: min(100%, 40rem); padding: 1.5rem 1.75rem; border-radius: 1.25rem; scrollbar-width: thin; }
.cfg .pdf-dialog .field { margin: .6rem 0; }
.cfg .pdf-dialog .field input { min-height: 2.5rem; padding: .4rem .7rem; }
.cfg .pdf-dialog .field textarea { min-height: 3.5rem; height: 3.5rem; padding: .4rem .7rem; }
