#institutionen.fm-flow-open .fm-views > .fm-switch,
#institutionen.fm-flow-open .fm-views > figure,
#institutionen.fm-flow-open .fm-views > .fm-preview-cta,
#institutionen.fm-flow-open .fm-titles,
#institutionen.fm-flow-open .fm-progress-intro,
#institutionen.fm-flow-open .fm-flow-open-button,
#institutionen .fm-flow-tabs[hidden],
#institutionen .fm-flow-left[hidden],
#institutionen .fm-flow-image[hidden],
#institutionen #fm-peer-flow[hidden],
#institutionen .fm-flow-panel[hidden] {
  display: none !important;
}

#institutionen.fm-flow-open {
  --fm-flow-row-gap: 1.5rem;
  align-items: start;
  row-gap: var(--fm-flow-row-gap);
}

#institutionen.fm-flow-open > .fm-views,
#institutionen.fm-flow-open > .copy {
  align-self: start;
}

#institutionen.fm-flow-open > .copy {
  grid-row: auto;
}

#institutionen .fm-flow-left {
  min-width: 0;
}

#institutionen .fm-flow-tabs {
  grid-column: 1 / -1;
}

#fm-peer-flow {
  position: relative;
}

#fm-peer-flow::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--fm-flow-row-gap)) 0 auto;
  border-top: 1px solid #c3d4df;
}

#institutionen :is(.fm-switch, .fm-flow-tabs) {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(.9rem, 2.2vw, 2.5rem);
}

#institutionen :is(.fm-switch, .fm-flow-tabs) button {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  padding: .35em 0 .6em;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

#institutionen :is(.fm-switch, .fm-flow-tabs) button > span {
  grid-area: 1 / 1;
}

#institutionen .fm-switch button::before {
  grid-area: 1 / 1;
}

#institutionen .fm-switch button > span {
  grid-column: 2;
}

/* Reserve the bold label width before the tab is selected. */
#institutionen .fm-flow-tab-measure {
  visibility: hidden;
  font-weight: 700;
}

#institutionen :is(.fm-switch, .fm-flow-tabs) button[aria-pressed="true"] {
  background: transparent;
  color: inherit;
  box-shadow: none;
  font-weight: 700;
}

#institutionen :is(.fm-switch, .fm-flow-tabs) button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: #00857d;
}

#institutionen .fm-switch button[aria-pressed="true"]::after {
  inset-inline-start: calc(1.12em + .45em);
}

#institutionen .fm-flow-image-frame {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  aspect-ratio: 1453 / 961;
  border: 1px solid #c3d4df;
  border-radius: .65rem;
  overflow: hidden;
}

#institutionen .fm-flow-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

#institutionen .fm-flow-panel h2 {
  margin-block-start: 0;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.12;
}

#institutionen .fm-flow-toggle {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-block-start: 1.3rem;
  border: 0;
  border-top: 1px solid #c3d4df;
  background: transparent;
  color: #013666;
  padding: .5rem 0;
  text-align: start;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

#institutionen .fm-flow-toggle-arrow {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1em;
  margin-inline-end: .45em;
  vertical-align: middle;
}

#institutionen .fm-flow-toggle-arrow::before {
  content: "";
  width: .625rem;
  height: .625rem;
  box-sizing: border-box;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-bottom-right-radius: 1px;
  transform: translateY(-.125rem) rotate(45deg);
}

#institutionen .fm-flow-close-button .fm-flow-toggle-arrow::before {
  transform: translateY(.125rem) rotate(225deg);
}

#institutionen :is(.fm-flow-tabs button, .fm-flow-open-button)[aria-busy="true"] {
  cursor: progress;
}

@media (max-width: 700px) {
  #fm-peer-flow::before {
    inset-block-start: calc(-.5 * var(--fm-flow-row-gap));
  }

  #institutionen :is(.fm-switch, .fm-flow-tabs) {
    column-gap: .75rem;
  }
}

@media (max-width: 380px) {
  #institutionen :is(.fm-switch, .fm-flow-tabs) {
    column-gap: .4rem;
  }

  #institutionen :is(.fm-switch, .fm-flow-tabs) button {
    font-size: .85em;
  }
}
