/* BR-Gründung — centered on the site frame (--frame / .container) */

.page-brg .nav__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  font-synthesis: none;
  line-height: 1.2;
  letter-spacing: normal;
  white-space: nowrap;
  cursor: pointer;
}

.page-brg .nav__item:hover {
  color: var(--blue-2);
}

.page-brg .nav__item svg {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.brg-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-brg .brg-tools--menu {
  display: none;
}

.brg-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.brg-tool:hover {
  background: var(--light-gray-50);
}

.brg-tool img,
.brg-tool svg {
  display: block;
}

/* Same horizontal edges as .header__inner: 1440 frame, clamp(16px, 4vw, 100px). */
.brg-align {
  width: min(100%, var(--frame));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 100px);
  box-sizing: border-box;
}

/* Equal halves across the viewport: blue to the left edge, photo to the right edge. Text stays on the header line. */
.brg-hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  background: var(--blue-light-400);
  min-height: 713px;
  overflow: hidden;
}

.brg-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 48px 48px 48px calc(max(0px, (100vw - var(--frame)) / 2) + clamp(16px, 4vw, 100px));
}

.brg-hero .eyebrow {
  margin-bottom: 20px;
}

.brg-hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.brg-hero h1 em {
  display: block;
  margin-top: 2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1em;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--blue-2);
}

.brg-hero__lead {
  margin: 0 0 28px;
  max-width: 420px;
  color: rgba(84, 83, 98, 1);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.brg-hero__need {
  margin: 0 0 10px;
  color: rgba(84, 83, 98, 1);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.brg-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brg-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.brg-checks img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.brg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  /* margin-top: 8px; */
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  background: var(--blue-1);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

.brg-btn:hover {
  background: #001845;
}

.brg-btn--light {
  background: var(--white);
  color: var(--blue-2);
}

.brg-btn--light:hover {
  background: var(--blue-light-200);
}

.brg-btn--success {
  background: var(--success);
  color: var(--white);
}

.brg-btn--success:hover {
  background: #027a48;
}

.brg-hero .brg-checks {
  gap: 6px;
  margin-bottom: 22px;
}

.brg-hero .brg-checks li {
  font-size: 16px;
  line-height: 1.3;
}

.brg-tick {
  display: block;
  flex-shrink: 0;
}

.brg-hero .brg-btn {
  margin-top: 0;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow);
}

.brg-hero__media {
  height: 713px;
  min-height: 713px;
  background: #dcecff;
  overflow: hidden;
  position: relative;
}

.brg-hero__media img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center center;
  display: block;
  will-change: transform;
  transform: translate3d(0, -8%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .brg-hero__media img {
    height: 100%;
    transform: none !important;
    will-change: auto;
  }
}

.brg-center {
  text-align: center;
}

.brg-center .eyebrow {
  justify-content: center;
}

.brg-lead {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--copy);
  font-size: 16px;
  line-height: 1.5;
}

.brg-center > .brg-lead {
  text-align: center;
}

.brg-basics h2 {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin-top: -5px;
}

.brg-basics .brg-lead {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.brg-basics .brg-lead--note {
  margin-top: 22px;
}

.brg-basics__grid {
  font-family: initial;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 80px;
  margin-top: 64px;
  text-align: left;
}

.brg-point__icon {
  display: block;
  margin-bottom: 16px;
  color: rgba(22, 67, 213, 1);
}

.brg-point__kicker {
  line-height: 1;
  margin: 0 0 8px;
  font-size: 12px;
  /* font-weight: 600; */
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  color: var(--gray-500);
}

.brg-point h3 {
  margin: 16px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.20;
  color: var(--text);
}

.brg-point p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.8;
}

.brg-perks-pin > .brg-perks {
  position: sticky;
  top: 0;
  z-index: 1;
}

.brg-how-pin > .brg-how.is-scrub {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
}

.brg-perks.is-scrub {
  min-height: 0;
}

.brg-perks {
  display: flex;
  align-items: center;
  min-height: 625px;
  padding: 72px 0;
  /* background-color: #f3f7ff; */
  background-image: url("../assets/vision-open.png");
  /* background-repeat: no-repeat; */
  background-position: center top;
  background-size: 100% auto;
}

.brg-perks__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.05fr);
  /* gap: 48px; */
  /* align-items: center; */
}

.brg-perks h2 {
  margin-bottom: 16px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.brg-perks__lead {
  margin: 0;
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.8;
}

.brg-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  /* max-width: 420px; */
  margin-top: 20px;
  padding: 10px 30px 10px 10px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.brg-note svg {
  display: block;
  flex-shrink: 0;
  margin-top: 3px;
}

.brg-note p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.brg-note strong {
  font-weight: 600;
  color: var(--blue-2);
}

.brg-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brg-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 3px 7px rgba(16, 24, 40, 0.11);
  /*! transform: rotate; */
  border: 1px solid rgba(233, 234, 235, 1);
  margin-left: 13%;
}

.brg-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--blue-light-200);
}

.brg-card__icon svg {
  display: block;
}

.brg-card h3 {
  margin: 0 0 4px;
  font-family: initial;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.brg-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.45;
}

.brg-fold {
  overflow: visible;
  transition: height 0.55s ease;
}

.brg-fold__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brg-fold .brg-card {
  transition: transform 0.55s ease;
  transform-origin: center top;
}

.brg-perks:not(.is-open) .brg-fold .brg-card:not(:first-child) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.brg-perks:not(.is-ready) .brg-fold,
.brg-perks:not(.is-ready) .brg-fold .brg-card {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .brg-fold,
  .brg-fold .brg-card {
    transition: none;
  }
}

.brg-how h2 {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 24px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.brg-how .brg-lead {
  max-width: 448px;
  margin-bottom: 56px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.brg-timeline {
  --brg-tl-gap: 36px;
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: var(--brg-tl-gap);
  text-align: left;
}

.brg-tl {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}

.brg-tl:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 20px;
  bottom: calc(-1 * (var(--brg-tl-gap) + 20px));
  left: 50%;
  width: 2px;
  background: #e4e7ec;
  transform: translateX(-50%);
  pointer-events: none;
}

.brg-tl.is-open:has(+ .brg-tl.is-open)::after {
  background: var(--blue-2);
}

.brg-tl:last-child::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -8px;
  height: 48px;
  left: 50%;
  width: 2px;
  background: #e4e7ec;
  transform: translateX(-50%);
  pointer-events: none;
}

.brg-tl:last-child.is-open::before {
  background: var(--blue-2);
}

.brg-tl:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 50%;
  width: 2px;
  height: 0;
  background: var(--blue-2);
  transform: translateX(-50%);
  pointer-events: none;
}

.brg-tl.is-open:not(:has(+ .brg-tl.is-open)):not(:last-child)::before {
  height: 96px;
}

.brg-timeline:has(.brg-tl:last-child.is-open) .brg-tl:not(:last-child)::after {
  bottom: calc(-1 * (var(--brg-tl-gap) + 20px));
  background: var(--blue-2);
}

.brg-timeline:has(.brg-tl:last-child.is-open) .brg-tl:last-child::before {
  top: calc(-1 * var(--brg-tl-gap));
  height: calc(var(--brg-tl-gap) + 20px);
}

.brg-tl__toggle {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.brg-tl__icon {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  justify-self: center;
  border-radius: 50%;
  background: #98a2b3;
  color: #fff;
  position: relative;
  z-index: 2;
}

.brg-tl__icon svg {
  display: block;
}

.brg-tl__icon .brg-tl__glyph--active {
  display: none;
}

.brg-tl.is-open .brg-tl__icon .brg-tl__glyph--idle {
  display: none;
}

.brg-tl.is-open .brg-tl__icon .brg-tl__glyph--active {
  display: block;
}

.brg-tl.is-open .brg-tl__icon {
  background: var(--blue-2);
  color: var(--white);
}

.brg-tl__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gray-600);
}

.brg-tl.is-open .brg-tl__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.brg-tl:nth-child(odd) .brg-tl__title {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.brg-tl:nth-child(even) .brg-tl__title {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.brg-tl__panel {
  grid-column: 3;
  grid-row: 2;
  max-width: 516px;
  min-width: 0;
  margin-top: 8px;
}

.brg-tl:nth-child(even) .brg-tl__panel {
  grid-column: 1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.brg-tl:not(.is-open) .brg-tl__panel {
  display: none;
}

.brg-how.is-scrub .brg-tl .brg-tl__panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}

.brg-how.is-scrub .brg-tl__toggle {
  cursor: default;
}

.brg-how.is-scrub .brg-tl::before,
.brg-how.is-scrub .brg-tl::after {
  content: none;
}

.brg-how.is-scrub .brg-timeline::before,
.brg-how.is-scrub .brg-timeline::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: var(--brg-line-top, 20px);
  width: 2px;
  height: var(--brg-line-height, 0px);
  pointer-events: none;
}

.brg-how.is-scrub .brg-timeline::before {
  background: #e4e7ec;
  transform: translateX(-50%);
}

.brg-how.is-scrub .brg-timeline::after {
  z-index: 1;
  background: var(--blue-2);
  transform: translateX(-50%) scaleY(var(--brg-line, 0));
  transform-origin: top center;
}

.brg-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(229, 241, 255, 1);
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.brg-timeline p:nth-of-type(1) {
  margin-bottom: 16px;
  color: var(--blue-2) !important;
}

.brg-timeline p,
.brg-sizes {
  margin: 0;
  /* color: var(--gray-600); */
  font-size: 14px;
  line-height: 1.5;
}

.brg-timeline p {
  color: var(--gray-600); 
}

.brg-sizes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  color: var(--gray-600);
}

.brg-sizes strong {
  font-weight: 600;
  color: var(--gray-600);
}

.brg-done {
  gap: 16px;
  color: var(--gray-600);
}

.brg-done > p.brg-badge {
  margin: 0;
}

.brg-ticks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
}

.brg-btn--wa {
  margin-top: 0;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #25cf43 0%, #61fd7d 100%);
  color: var(--text);
  font-weight: 600;
}

.brg-btn--wa:hover {
  background: linear-gradient(90deg, #25cf43 0%, #61fd7d 100%);
}

.brg-btn--wa svg {
  display: block;
  flex-shrink: 0;
}

.brg-downloads {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 16px;
}

.brg-tl:nth-child(even) .brg-checks {
  align-items: flex-end;
}

.brg-tl:nth-child(even) .brg-btn {
  align-self: flex-end;
}

.brg-how .brg-checks {
  margin-top: 14px;
}

.brg-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.brg-how .brg-file,
.brg-docs .brg-file {
  gap: 12px;
  width: 100%;
  padding: 20px 14px;
  border-radius: 10px;
  border-color: #eaecf0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  text-align: left;
}

.brg-file strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.brg-how .brg-file strong,
.brg-docs .brg-file strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.brg-file strong + span {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 400;
}

.brg-how .brg-file strong + span {
  font-size: 12px;
  line-height: 1.3;
}

.brg-file img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.brg-file__pdf {
  width: 26.67px;
  height: 22px;
  flex-shrink: 0;
}

.brg-how .brg-file > span,
.brg-docs .brg-file > span {
  flex: 1;
  min-width: 0;
}

@media (max-width: 720px) {
  .brg-tl:not(:last-child)::after,
  .brg-tl:not(:last-child)::before,
  .brg-tl:last-child::before {
    left: 20px;
    transform: none;
  }

  .brg-how.is-scrub .brg-timeline::before,
  .brg-how.is-scrub .brg-timeline::after {
    left: 20px;
  }

  .brg-how.is-scrub .brg-timeline::before {
    transform: none;
  }

  .brg-how.is-scrub .brg-timeline::after {
    transform: scaleY(var(--brg-line, 0));
  }

  .brg-tl,
  .brg-tl__toggle {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
  }

  .brg-tl__icon,
  .brg-tl:nth-child(odd) .brg-tl__title,
  .brg-tl:nth-child(even) .brg-tl__title {
    grid-column: 1;
    justify-self: center;
    text-align: left;
  }

  .brg-tl:nth-child(odd) .brg-tl__title,
  .brg-tl:nth-child(even) .brg-tl__title {
    grid-column: 2;
    justify-self: start;
  }

  .brg-tl__panel,
  .brg-tl:nth-child(even) .brg-tl__panel {
    grid-column: 2;
    justify-self: stretch;
    align-items: flex-start;
    text-align: left;
    max-width: none;
  }

  .brg-tl:nth-child(even) .brg-checks,
  .brg-tl:nth-child(even) .brg-btn {
    align-items: flex-start;
    align-self: flex-start;
  }
}

.brg-docs h2 {
  max-width: 560px;
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: -20px;
}

.brg-docs__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 360px);
  column-gap: 48px;
  row-gap: 16px;
  align-items: center;
}

.brg-docs__top .eyebrow,
.brg-docs__top h2 {
  grid-column: 1;
}

.brg-docs__copy {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.brg-doclist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.brg-docs-title h2 {
  margin-bottom: 0;
}

.brg-help h2 {
  /* letter-spacing: -0.1rem; */
}

.brg-help {
  padding: 0 0 100px;
  margin-top: 40px;
}
.br-help .container {
  margin-top: -40px;
}

.brg-help__banner {
  padding: 50px 32px;
  border-radius: 20px;
  background: var(--blue-1);
  color: var(--white);
  text-align: center;
}

.brg-help__banner .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  opacity: 0.6;
}

.brg-help__banner h2 {
  margin-bottom: 12px;
}

.brg-help__banner p {
  margin: 0 auto 24px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.86);
}

.brg-flow__layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  column-gap: 48px;
  align-items: start;
}

.brg-flow h2 {
  margin: 0 0 20px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.15;
}
.brg-flow em {
  font-weight: 610;
}

.brg-flow__intro p {
  /* margin: 0 0 16px; */
  max-width: 269px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.brg-flow__intro p:last-child {
  margin-bottom: 0;
}

.brg-flow__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 40px;
}

.brg-step img {
  display: block;
  width: 100%;
  height: auto;
}

.brg-step h3 {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  /* font-family: initial; */
}

.brg-step p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 936px) {
  .page-brg .brg-align,
  .page-brg .container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 16px;
    box-sizing: border-box;
    /* gap: 20px; */
  }

  .brg-perks .brg-note {
    margin-bottom: 20px;
  }

  .page-brg .brg-hero__content {
    padding-inline: 16px;
  }

  .page-brg .brg-card {
    margin-left: 0;
  }

  .page-brg .topbar {
    display: none;
  }

  .page-brg .header__inner {
    min-height: 64px;
    padding: 10px 16px;
    gap: 8px;
  }

  .page-brg .header__left {
    width: auto;
    flex: 1;
    min-width: 0;
    gap: 12px;
  }

  .page-brg .header__right {
    gap: 12px;
    flex-shrink: 0;
  }

  .page-brg .logo__img--full {
    display: none;
  }

  .page-brg .logo__img--mark {
    display: block;
  }

  .page-brg .nav {
    display: none;
  }

  .page-brg .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 45px;
    min-width: 45px;
    height: 45px;
    min-height: 45px;
    padding: 0;
    flex-shrink: 0;
  }

  .page-brg .menu-toggle span {
    width: 18px;
    margin: 3px 0;
  }

  .page-brg .header.is-open .nav {
    display: flex;
    position: absolute;
    inset: 64px 0 auto;
    z-index: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
  }
}

@media (max-width: 476px) {
  .page-brg .header__right > .brg-tools {
    display: none;
  }

  .page-brg .header.is-open .brg-tools--menu {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    align-self: stretch;
    width: 100%;
    gap: 0;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
  }
}

@media (max-width: 1100px) {
  .brg-hero {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    padding-inline: 0;
    min-height: 0;
  }

  .brg-hero__content {
    max-width: none;
    padding: 48px clamp(16px, 4vw, 100px) 24px;
  }

  .brg-hero__media {
    height: 360px;
    min-height: 360px;
  }
}

@media (max-width: 410px) {
  .section.brg-perks {
    min-height: 720px;
  }
}

@media (min-width: 411px) and (max-width: 609px) {
  .section.brg-perks {
    min-height: 679px;
  }
}

@media (min-width: 610px) and (max-width: 900px) {
  .section.brg-perks {
    min-height: 648px;
  } 
}

@media (max-width: 900px) {

  .brg-flow__intro p:last-child {
    margin-bottom: 24px;
  }

  .brg-hero,
  .brg-basics__grid,
  .brg-perks__layout,
  .brg-docs__top,
  .brg-doclist,
  .brg-flow__layout,
  .brg-start__layout {
    grid-template-columns: 1fr;
  }

  .brg-start__steps {
    max-width: none;
  }

  .section.brg-start {
    padding-bottom: 64px;
  }

  .brg-start__layout {
    padding-top: 48px;
  }

  .brg-flow__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brg-flow__intro p {
    max-width: none;
  }

  .brg-docs__copy {
    grid-column: 1;
    grid-row: auto;
  }

  .brg-note {
    margin-bottom: 20px;
  }

  .brg-hero {
    height: auto;
    width: 100%;
    padding-inline: 0;
    gap: 0;
  }

  .brg-hero__content {
    max-width: none;
    height: auto;
    margin-left: 0;
    padding: 48px clamp(16px, 4vw, 100px) 40px;
  }

  .brg-hero__media {
    height: 320px;
  }

  .brg-perks {
    min-height: 0;
    padding: 64px 0;
    align-items: flex-start;
  }

  .brg-perks-pin > .brg-perks {
    position: static;
  }

  .brg-help {
    padding-bottom: 64px;
  }
}

#ablauf .brg-file {
  padding: 10px 14px;
}

@media (max-width: 640px) {
  .brg-flow__cards {
    grid-template-columns: 1fr;
  }

  .brg-panel__actions {
    flex-wrap: wrap;
  }
}

.section.brg-start {
  padding: 0 0 100px;
  background: #f4f9ff;
  scroll-margin-top: 140px;
}

.brg-start__bar {
  width: 100%;
  height: 8px;
  /* margin-inline: auto; */
}

.brg-start__bar > span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--blue-2);
}

.brg-start__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 560px);
  column-gap: 48px;
  align-items: start;
  padding-top: 72px;
}

.brg-start h2 {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.brg-start__intro > p {
  margin: 0 0 16px;
  max-width: 392px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.brg-start__contact {
  margin-bottom: 8px;
}

.brg-start__contact a {
  color: var(--blue-2);
  font-weight: 600;
  text-decoration: underline;
}

.brg-start__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 140%;
  max-width: 774px;
  justify-self: end;
  overflow-anchor: none;
}

.brg-panel {
  background: var(--white);
  border: 2.5px solid #eaecf0;
  border-radius: 12px;
}

.brg-panel.is-open {
  border-color: var(--blue-1);
  padding: 20px 24px 24px;
}

.brg-panel__toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.brg-panel.is-open .brg-panel__toggle {
  padding: 0 0 24px;
}

.brg-panel__titles {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brg-panel__kicker {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-family: initial;
  max-width: 177px;
}

.brg-panel__summary {
  display: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.brg-panel__check {
  display: none;
  flex-shrink: 0;
  color: var(--success);
}

.brg-panel.is-valid:not(.is-open) .brg-panel__check,
.brg-panel.is-done:not(.is-open) .brg-panel__summary {
  display: flex;
}

.brg-panel.is-done:not(.is-open) .brg-panel__kicker {
  color: var(--gray-400);
  font-size: 12px;
  font-weight: initial;
}

.brg-panel.is-done:not(.is-open) .brg-panel__summary:empty {
  display: none;
}

.brg-panel__chevron {
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.brg-panel.is-open .brg-panel__chevron {
  transform: none;
}

.brg-panel.is-locked .brg-panel__kicker {
  color: #98a2b3;
}

.brg-panel.is-locked .brg-panel__chevron path {
  stroke: #98a2b3;
}

.brg-panel.is-locked .brg-panel__toggle {
  cursor: default;
}

.brg-panel:not(.is-open) .brg-panel__body {
  display: none;
}

.brg-people,
.brg-person {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brg-people {
  gap: 28px;
}

.brg-person__title {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.brg-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.4;
}

.brg-check input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  border: 1.5px solid var(--blue-2);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
}

.brg-check input:checked {
  border-color: var(--blue-2);
  background: var(--blue-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.brg-field {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.brg-field::placeholder {
  color: #98a2b3;
}

.brg-field:focus {
  outline: 2px solid var(--blue-2);
  outline-offset: 1px;
}

.brg-field.is-invalid {
  border-color: #d92d20;
}

.brg-field.is-invalid:focus {
  outline-color: #d92d20;
}

.brg-check--confirm.is-invalid {
  color: #d92d20;
}

.brg-check--confirm.is-invalid input {
  border-color: #d92d20;
}

.brg-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brg-error {
  margin: 0;
  color: #d92d20;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.brg-panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.brg-panel__actions--end {
  justify-content: flex-end;
}

.brg-add,
.brg-next,
.brg-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.brg-add {
  padding: 0;
  color: var(--blue-2);
  font-weight: initial !important;
}

.brg-next,
.brg-back {
  padding: 10px 16px;
  border-radius: 8px;
}

.brg-next {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--blue-1);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 600;
}

.brg-next:hover:not(:disabled):not([aria-disabled="true"]) {
  background: #001845;
}

.brg-next:disabled,
.brg-next[aria-disabled="true"] {
  background: rgba(204, 210, 222, 1);
  color: #fffae6;
  cursor: default;
}

.brg-next:disabled svg path,
.brg-next[aria-disabled="true"] svg path {
  stroke: #fffae6;
}

.brg-back {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--blue-1);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-1);
  font-size: 14px;
  font-weight: 600;
}

.brg-back svg {
  transform: scaleX(-1);
}

.brg-review {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
}

.brg-review p {
  margin: 0;
}

.brg-review strong {
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: 8px;
}

.brg-employer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brg-note {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--blue-light-200);
  color: var(--blue-2);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}


.brg-field-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
}

.brg-suggest {
  position: relative;
}

.brg-suggest__list {
  position: absolute;
  z-index: 40;
  top: 48px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  max-height: 280px;
  overflow-y: auto;
}

.brg-suggest__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.brg-suggest__item.is-active,
.brg-suggest__item:hover {
  background: var(--blue-light-400);
}

.brg-suggest__place {
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 400;
}

.brg-suggest__empty {
  padding: 8px 10px;
  color: var(--gray-400);
  font-size: 14px;
}

.brg-review__lead {
  margin: 0;
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.5;
}

.brg-review__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brg-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brg-review__head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.brg-review__person {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brg-review__person + .brg-review__person {
  margin-top: 14px;
}

.brg-edit {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
}

.brg-check--confirm {
  align-items: flex-start;
  color: var(--gray-600);
}

.brg-check--confirm input {
  margin-top: 2px;
}

.brg-panel--result.is-open .brg-panel__toggle {
  display: none;
}

.brg-started__title {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brg-started__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brg-started__list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.brg-started__list p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
}

.brg-started__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin-top: 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, #23ce41 0%, #36db54 100%);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.brg-started__wa:hover {
  background: linear-gradient(90deg, #23ce41 0%, #36db54 100%);
}

.brg-started__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
}

.brg-started__foot .brg-file {
  width: 100%;
  gap: 12px;
  padding: 16px 14px;
  border: 1.5px solid #eaecf0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  cursor: pointer;
}

.brg-started__foot .brg-file > span:not(.brg-file__actions) {
  flex: 1;
  min-width: 0;
}

.brg-file__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.brg-file__actions button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brg-started__foot .brg-back {
  align-self: flex-end;
  border-width: 1.9px;
}

.brg-perks__copy .brg-note {
  background: #fff;
  margin-top: 12px;
}

@media (max-width: 1358px) {
  .brg-start__layout {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .brg-start__steps {
    width: 100%;
    max-width: initial;
  }

  .brg-start__intro {
    display: flex;
    align-items:center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .section.brg-start {
    padding-bottom: 64px;
  }



  .brg-start__steps {
    max-width: none;
    justify-self: stretch;
  }

  .brg-field-row,
  .brg-started__foot {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

.section.brg-ask {
  --brg-ask-gap: 210px;
  --brg-ask-stop: 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: url("../assets/ai-bg.png") center / cover no-repeat;
}

.brg-ask__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  text-align: center;
}

.brg-ask__gap {
  flex: 0 100 var(--brg-ask-gap);
  width: 100%;
  min-height: var(--brg-ask-stop);
}

.brg-ask__lead {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
}

.brg-ask h2 {
  margin: 0 0 48px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.brg-ask h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--blue-2);
}

.brg-ask__stage {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: stretch;
  width: min(934px, 100%);
  min-height: 0;
  overflow: hidden;
  text-align: left;
}

.brg-ask__hint {
  margin: 0 0 12px;
  color: var(--copy);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.brg-ask__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.brg-ask__chips button {
  padding: 10px 14px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #50576b00;
  color: var(--copy);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}


.brg-ask__chips button:hover {
  border-color: var(--blue-2);
}

.brg-start-error {
  width: 100%;
  margin: 12px 0 0;
  color: #d92d20;
  font-size: 14px;
  line-height: 1.4;
}

.brg-start-error[hidden] {
  display: none;
}

.brg-ask.is-chatting .brg-ask__stage,
.brg-ask.is-measuring .brg-ask__log {
  display: none;
}

.brg-ask__log {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  width: min(934px, 100%);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 14, 38, 0.35) transparent;
}

.brg-ask__log > :first-child {
  margin-top: auto;
}

.brg-ask__log > :last-child {
  margin-bottom: 16px;
}

.brg-ask__log:empty {
  display: none;
}

.brg-ask__user {
  align-self: flex-end;
  max-width: min(520px, 86%);
  margin: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f2f4f7;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  animation: brg-ask-in 0.45s ease both;
}

.brg-ask__answer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  padding: 20px 22px;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  animation: brg-ask-in 0.55s ease both;
}

.brg-ask__answer ul li {
  /* line-height: 0.95; */
}

.brg-ask__thinking {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 12px 16px;
  color: var(--gray-600);
}

.brg-ask__dots {
  display: inline-flex;
  gap: 4px;
}

.brg-ask__dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: brg-ask-dot 1.05s ease-in-out infinite;
}

.brg-ask__dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.brg-ask__dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes brg-ask-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes brg-ask-dot {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.brg-ask__answer p,
.brg-ask__answer h3,
.brg-ask__answer ul {
  margin: 0;
}

.brg-ask__answer h3 {
  font-size: 15px;
  font-weight: 600;
}

.brg-ask__answer h3 + ul {
  /* margin-top: -10px; */
}

.brg-ask__answer ul {
  padding-left: 18px;
}

.brg-ask__answer li + li {
  /* margin-top: 8px; */
}

.brg-ask__answer .is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: text-bottom;
  animation: brg-ask-caret 1s steps(1) infinite;
}

@keyframes brg-ask-caret {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.brg-ask__box {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  width: min(934px, 100%);
  height: 60px;
  padding: 0 10px 0 16px;
  border: 1px solid #d5d7da;
  border-radius: 12px;
  background: var(--white);
}

.brg-ask__box:focus-within {
  border-color: var(--blue-2);
}

.brg-ask__box.is-over {
  border-color: #d92d20;
}

.brg-ask__limit {
  width: min(934px, 100%);
  margin: 8px 0 0;
  color: #d92d20;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.brg-ask__limit[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .brg-ask__user,
  .brg-ask__answer,
  .brg-ask__dots i,
  .brg-ask__answer .is-typing::after {
    animation: none;
  }
}

.brg-ask__plus {
  flex-shrink: 0;
}

.brg-ask__box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.brg-ask__box input::placeholder {
  color: #98a2b3;
}

.brg-ask__mic,
.brg-ask__send {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
}

.brg-ask__send {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-1);
}

.brg-ask__send svg {
  /* transform: rotate(-90deg); */
}

.brg-ask__box.is-ready .brg-ask__send {
  display: inline-flex;
}

@media (max-width: 900px) {
  .section.brg-ask {
    --brg-ask-gap: 48px;
    --brg-ask-stop: 24px;
  }

  .brg-ask h2 {
    margin-bottom: 32px;
    font-size: 32px;
  }
}
