/* Bau-Konfigurator integration, using the existing company palette and typography. */
.cfg-promo.section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(76px, 7.5vw, 112px);
  background: var(--ink, #0a0d13);
  color: #fff;
  border-top: 1px solid #283448;
  border-bottom: 1px solid #283448;
}

.cfg-promo-grid,
.cfg-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(38px, 6vw, 86px);
}

.cfg-promo-grid > *,
.cfg-page-grid > *,
.cfg-access-grid > *,
.cfg-step-grid > *,
.cfg-module-grid > * {
  min-width: 0;
}

.cfg-eyebrow,
.cfg-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--pale, #aabaff);
  font: 700 .75rem/1.6 var(--mono, "Courier New", monospace);
  letter-spacing: .07em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cfg-eyebrow::before,
.cfg-label::before {
  content: "";
  flex: 0 0 32px;
  height: 2px;
  background: var(--blue, #2f5cff);
}

.cfg-title {
  max-width: 760px;
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(2.65rem, 4.7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cfg-title span {
  color: #91a8ff;
}

.cfg-copy {
  min-width: 0;
  max-width: 650px;
  color: #b3bfd1;
  font-size: 1.02rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.cfg-copy p,
.cfg-promo-grid > div > p:not(.cfg-eyebrow):not(.cfg-access-note),
.cfg-page-grid > div > p:not(.cfg-label):not(.cfg-access-note) {
  max-width: 600px;
  color: #b3bfd1;
  font-size: 1.02rem;
  line-height: 1.8;
}

.cfg-features {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px 20px;
  margin: 29px 0 32px;
  padding: 0;
  list-style: none;
}

.cfg-features > * {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding-right: 20px;
  border-right: 1px solid #354055;
  color: #b4c2d8;
  font-size: .78rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.cfg-features > :last-child {
  padding-right: 0;
  border-right: 0;
}

.cfg-features strong,
.cfg-features b {
  color: #eef2ff;
  font-weight: 700;
}

.cfg-features svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  color: #93aaff;
}

.cfg-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.cfg-actions > * {
  min-width: 0;
  max-width: 100%;
}

.cfg-actions .button {
  gap: 10px;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.cfg-access-note,
.cfg-copy .cfg-access-note {
  max-width: 640px;
  margin: 22px 0 0;
  padding-left: 15px;
  border-left: 2px solid #6281ef;
  color: #95a6c0;
  font-size: .79rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.cfg-access-note strong,
.cfg-access-note b {
  color: #cfdaee;
  font-weight: 700;
}

.cfg-access-note a {
  color: #b6c7ff;
  text-underline-offset: 3px;
}

.cfg-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  background: #131d2d;
  border: 1px solid #34435a;
  box-shadow: 18px 20px 0 #142035;
}

.cfg-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 44%;
}

.cfg-visual figcaption {
  margin: 0;
  padding: 15px 18px;
  border-top: 1px solid #34435a;
  color: #9aabc5;
  font-size: .75rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.cfg-page-hero {
  padding-block: 43px 92px;
  background: var(--ink, #0a0d13);
  color: #fff;
  border-bottom: 1px solid #2a364c;
}

.cfg-page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9caecb;
}

.cfg-page-grid {
  padding-top: 50px;
}

.cfg-page-hero .cfg-title {
  font-size: clamp(2.85rem, 5.3vw, 5rem);
  line-height: 1.02;
}

.cfg-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.cfg-step {
  padding: 28px 27px 30px;
  background: #fff;
  border: 1px solid #d6deeb;
  border-top: 3px solid var(--blue, #2f5cff);
}

.cfg-step > span:first-child,
.cfg-step > small:first-child,
.cfg-step > b:first-child {
  display: block;
  margin-bottom: 25px;
  color: #315cff;
  font: 700 .77rem/1.5 var(--mono, "Courier New", monospace);
  letter-spacing: .045em;
}

.cfg-step h3 {
  margin: 0 0 17px;
  color: #182338;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cfg-step p {
  margin: 0;
  color: #65758b;
  font-size: .94rem;
  line-height: 1.75;
}

.cfg-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.cfg-module {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 195px;
  padding: 27px 23px;
  background: #fff;
  border: 1px solid #d4ddeb;
  border-bottom: 3px solid #c6d2e6;
  color: #172338;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.cfg-module:hover {
  transform: translateY(-3px);
  background: #f7f9ff;
  border-color: #8fa5ed;
  border-bottom-color: var(--blue, #2f5cff);
}

.cfg-module h3,
.cfg-module strong {
  display: block;
  margin: 0 0 15px;
  color: #172338;
  font-size: 1.27rem;
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.cfg-module p {
  margin: 0 0 20px;
  color: #6d7d92;
  font-size: .86rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.cfg-module > span:first-child,
.cfg-module > small:first-child {
  margin-bottom: 22px;
  color: #4b6cbe;
  font: 700 .7rem/1.6 var(--mono, "Courier New", monospace);
  letter-spacing: .04em;
}

.cfg-module > span:last-child:not(:first-child),
.cfg-module > small:last-child:not(:first-child) {
  margin-top: auto;
  color: #315cff;
  font-size: .79rem;
  line-height: 1.6;
}

.cfg-module svg {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  margin-bottom: 24px;
  color: #315cff;
}

.cfg-access-panel {
  padding: clamp(28px, 4.2vw, 52px);
  background: #15233b;
  border: 1px solid #354b70;
  border-top: 3px solid var(--blue, #2f5cff);
  color: #fff;
}

.cfg-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(30px, 5vw, 65px);
  align-items: center;
}

.cfg-access-panel h2,
.cfg-access-panel h3 {
  margin: 0 0 20px;
  color: #f2f5ff;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.13;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.cfg-access-panel p,
.cfg-access-panel li {
  color: #afc0dc;
  font-size: .94rem;
  line-height: 1.8;
}

.cfg-access-panel p:last-child {
  margin-bottom: 0;
}

.cfg-access-panel ul {
  margin: 0;
  padding-left: 20px;
}

.cfg-access-panel li + li {
  margin-top: 10px;
}

.cfg-access-panel .cfg-actions {
  margin-top: 24px;
}

.cfg-access-panel .cfg-access-note {
  margin-top: 22px;
  color: #97add0;
  font-size: .79rem;
}

.cfg-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d0dcff;
  white-space: nowrap;
}

.header-inner nav > a.cfg-nav-link:not(.button) {
  color: #b9caff;
  font-weight: 700;
}

.header-inner nav > a.cfg-nav-link:not(.button):hover {
  color: #fff;
}

.cfg-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px 5px;
  background: #203565;
  border: 1px solid #4d67a8;
  color: #c4d2ff;
  font: 700 .58rem/1.1 var(--mono, "Courier New", monospace);
  letter-spacing: .025em;
  text-transform: uppercase;
}

.cfg-module:focus-visible,
.cfg-nav-link:focus-visible,
.cfg-actions a:focus-visible,
.cfg-access-note a:focus-visible {
  outline: 3px solid #f8b936;
  outline-offset: 5px;
}

@media (max-width: 1100px) {
  .cfg-promo-grid,
  .cfg-page-grid {
    gap: 38px;
  }

  .cfg-title {
    font-size: clamp(2.6rem, 4.9vw, 3.7rem);
  }

  .cfg-features {
    gap: 12px 14px;
  }

  .cfg-features > * {
    padding-right: 14px;
    font-size: .74rem;
  }

  .cfg-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cfg-visual {
    box-shadow: 10px 12px 0 #142035;
  }

  .cfg-step {
    padding-inline: 22px;
  }
}

@media (max-width: 900px) {
  .cfg-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfg-promo-grid,
  .cfg-page-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 30px;
  }

  .cfg-title,
  .cfg-page-hero .cfg-title {
    font-size: clamp(2.5rem, 5.2vw, 3.5rem);
  }

  .cfg-copy,
  .cfg-copy p,
  .cfg-promo-grid > div > p:not(.cfg-eyebrow):not(.cfg-access-note),
  .cfg-page-grid > div > p:not(.cfg-label):not(.cfg-access-note) {
    font-size: .95rem;
  }

  .cfg-features > * {
    border-right: 0;
    padding-right: 0;
  }

  .cfg-step-grid {
    gap: 15px;
  }

  .cfg-step {
    padding: 25px 20px;
  }

  .cfg-step h3 {
    font-size: 1.3rem;
  }

  .cfg-access-grid {
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .cfg-promo.section {
    padding-block: 70px 80px;
  }

  .cfg-promo-grid,
  .cfg-page-grid,
  .cfg-step-grid,
  .cfg-module-grid,
  .cfg-access-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cfg-promo-grid,
  .cfg-page-grid {
    gap: 38px;
  }

  .cfg-eyebrow,
  .cfg-label {
    gap: 10px;
    margin-bottom: 21px;
    font-size: .7rem;
    letter-spacing: .04em;
  }

  .cfg-eyebrow::before,
  .cfg-label::before {
    flex-basis: 26px;
  }

  .cfg-title,
  .cfg-page-hero .cfg-title {
    max-width: 650px;
    font-size: clamp(2.35rem, 9.2vw, 3.7rem);
    line-height: 1.04;
    margin-bottom: 24px;
  }

  .cfg-copy,
  .cfg-copy p,
  .cfg-promo-grid > div > p:not(.cfg-eyebrow):not(.cfg-access-note),
  .cfg-page-grid > div > p:not(.cfg-label):not(.cfg-access-note) {
    font-size: .98rem;
    line-height: 1.8;
  }

  .cfg-features {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 24px 0 27px;
    border-top: 1px solid #303e55;
  }

  .cfg-features > * {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid #303e55;
    font-size: .82rem;
  }

  .cfg-actions {
    align-items: stretch;
    gap: 11px;
  }

  .cfg-actions .button {
    flex: 1 1 180px;
    min-height: 50px;
  }

  .cfg-access-note {
    margin-top: 20px;
    font-size: .78rem;
    line-height: 1.8;
  }

  .cfg-visual {
    margin-right: 6px;
    box-shadow: 6px 8px 0 #142035;
  }

  .cfg-visual img {
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 44%;
  }

  .cfg-visual figcaption {
    padding: 14px 15px;
    font-size: .75rem;
  }

  .cfg-page-hero {
    padding-block: 28px 63px;
  }

  .cfg-page-grid {
    padding-top: 37px;
  }

  .cfg-step-grid,
  .cfg-module-grid {
    gap: 17px;
    margin-top: 32px;
  }

  .cfg-step {
    padding: 27px 24px;
  }

  .cfg-step h3 {
    font-size: 1.5rem;
  }

  .cfg-step > span:first-child,
  .cfg-step > small:first-child,
  .cfg-step > b:first-child {
    margin-bottom: 20px;
  }

  .cfg-module {
    min-height: 0;
    padding: 26px 24px;
  }

  .cfg-module h3,
  .cfg-module strong {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  .cfg-module p {
    max-width: 550px;
    font-size: .94rem;
    margin-bottom: 20px;
  }

  .cfg-module > span:first-child,
  .cfg-module > small:first-child {
    margin-bottom: 18px;
  }

  .cfg-module > span:last-child:not(:first-child),
  .cfg-module > small:last-child:not(:first-child) {
    font-size: .84rem;
  }

  .cfg-access-panel {
    padding: 28px 23px;
  }

  .cfg-access-grid {
    gap: 27px;
  }

  .cfg-access-panel h2,
  .cfg-access-panel h3 {
    font-size: clamp(1.85rem, 7.7vw, 2.6rem);
  }

  .cfg-access-panel p,
  .cfg-access-panel li {
    font-size: .94rem;
  }

  .cfg-nav-link {
    gap: 9px;
    white-space: normal;
  }

  .cfg-nav-badge {
    font-size: .63rem;
    padding: 4px 6px;
  }
}

@media (max-width: 400px) {
  .cfg-actions .button {
    flex-basis: 100%;
    width: 100%;
  }

  .cfg-eyebrow,
  .cfg-label {
    font-size: .66rem;
    gap: 8px;
  }

  .cfg-eyebrow::before,
  .cfg-label::before {
    flex-basis: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfg-module {
    transition: none;
  }

  .cfg-module:hover {
    transform: none;
  }
}
