.content-wrapper {
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 0 0 0;
  overflow-x: clip;
}

#noheader .content-wrapper {
  padding-top: calc(var(--header-height) + 5vw);
}

.home #primary {
  margin-top: 0 !important;
}

body:not(.home) #primary {
  padding-top: var(--margin-bottom-row) !important;
}

body:not(.home)
  #primary
  .entry-content
  > .wp-block-uagb-container.alignfull.uagb-is-root-container {
  width: min(1000px, 80%);
  margin: auto;
}

/**-------------------------- KANZLEI ---------------------------*/
.container-1 {
  position: relative;
  margin-bottom: var(--margin-bottom-row);
}

.container-1:after {
  content: "";
  display: block;
  position: absolute;
  background-color: #fff;
  height: 100%;
  width: calc((var(--windowWith) - (var(--windowWith) - 1500px) / 2));
  right: 0;
  z-index: -1;
  top: 0;
}

.container-1-inner {
  display: flex;
  gap: 7.7vw;
  align-items: center;
  padding: 5vw 0;
  padding-right: calc((var(--windowWith) - 1500px) / 2);
  position: relative;
}

.container-1-col.col-1 {
  flex: 1 1 50%;
  max-width: 864px;
}

.container-1-col.col-2 {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.container-1-col.col-2 h2 {
  margin-bottom: 0.8em;
}

.teilbereich-permalenk {
  display: flex;
  align-items: center;
  gap: 19px;
  border-bottom: 1px solid var(--color-1-1);
  padding: 0.7em 0.5em;
}

.teil-bereich-icon {
  max-width: 56px;
}

.teil-bereich-titel {
  width: 100%;
}

.teil-bereich-titel h4 {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.teil-bereich-titel h4:after {
  content: "";
  display: block;
  content: "";
  display: block;
  background-image: url(/wp-content/themes/astra-impuls-child/img/pfeil.svg);
  --my-size: 1em;
  height: var(--my-size);
  width: calc(var(--my-size) / 1.76232741617357);
  background-size: contain;
  background-repeat: no-repeat;
}

.container-2 {
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: var(--margin-bottom-row);
}

.container-3 {
  display: flex;
  justify-content: center;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
}

.container-3 {
  display: flex;
  justify-content: center;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}

.container-3 img {
  max-width: 68px;
}

.container-3 p {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/**-------------------------- POST-GRID ---------------------------*/
.team-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 39px;
}

.team-post-grid-item {
  background-color: #fff;
}

.team-post-grid-item-thumb {
  position: relative;
}

.team-post-grid-item-thumb:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: #000;
  position: absolute;
  top: 0;
  opacity: 0.15;
}

.team-post-grid-info-wrapper-outter {
  padding: 2em 1em;
  text-align: center;
}

.team-post-grid-info-wrappe-2 a {
  background-color: var(--color-2);
  padding: 0.6em 1.3em;
  font-family: var(--headlinefont);
  color: #fff;
  font-weight: 600;
  text-decoration: none !important;
  margin-top: 2.1em !important;
  display: flex;
  width: fit-content;
  margin: 0 auto;
  align-items: center;
  gap: 2.4em;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.team-post-grid-info-wrappe-2 a::after {
  content: "";
  display: block;
  content: "";
  display: block;
  background-image: url(/wp-content/themes/astra-impuls-child/img/arrow-right.svg);
  --my-size: 1em;
  height: var(--my-size);
  width: calc(var(--my-size) / 1.76232741617357);
  background-size: contain;
  background-repeat: no-repeat;
}

/**animation*/
.team-post-grid-item {
  transform: translateY(50px);
  /* Start slightly off-position */
  opacity: 0;
  /* Tiles are initially invisible */
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  /* Smooth transition for sliding up and fading in */
}

/* New class to apply for the transition */
.team-post-grid-item.tile-in-view {
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  opacity: 1;
  transform: translateY(0);
}

/**-------------------------- Fachgebiete ---------------------------*/
.fachgebiet-container-1 {
  position: relative;
  margin-bottom: var(--margin-bottom-row);
}

.fachgebiet-container-1-inner {
  display: flex;
  gap: 7.7vw;
  align-items: center;
  padding: 5vw 0;
  padding-right: calc((var(--windowWith) - 1500px) / 2);
  position: relative;
}

.fachgebiet-container-1-col.col-1 {
  flex: 1 1 50%;
  max-width: 864px;
}

.container-1-col.col-2 {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.fachgebiet-container-1:after {
  content: "";
  display: block;
  position: absolute;
  background-color: #fff;
  height: 100%;
  width: calc((var(--windowWith) - (var(--windowWith) - 1500px) / 2));
  right: 0;
  z-index: -1;
  top: 0;
}

.content-fachgebiete {
  max-width: 1170px;
  margin: 0 auto;
}

.heading-icon-wrapper {
  display: grid;
  grid-template-columns: 138px auto;
  align-items: center;
  gap: 30px;
  transform: translateX(-3%);
  margin-bottom: 3.3em;
}

.heading-icon-wrapper .heading-wrapper h2 {
  margin-bottom: 0.4em;
}

.fachgebiet-icon {
  max-width: 138px;
}

/**-------------------------- MAPRESS ---------------------------*/
.mapp-layout {
  border: none !important;
}

/**------------------------------ FORMULAR --------------------------------*/
.forminator-title {
  font-size: 1.5rem !important;
  font-family: var(--headlinefont) !important;
  font-weight: 500 !important;
  margin-bottom: 0 !important;
  margin-top: 0.7em !important;
}

#forminator-module-4024 * {
  font-family: var(--mainfont);
}

.forminator-field label {
  font-size: 0.9rem !important;
  margin-bottom: 0;
}

/**----------------- SOCIAL WALL -------------*/

.sbsw-item-bottom-content {
  padding: 1.5em 1em;
}

[id^="sb-wall"].sb-wall .sbsw-item-header {
  padding: 1em;
}

/*----------------- TABELLEN -------------*/

.tablepress {
  margin-bottom: 2.5vw !important;
}

.tablepress tbody td,
.tablepress tfoot th {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #e0ddd8;
  padding: 1vw 0;
}

.tablepress tfoot th,
.tablepress thead th {
  background-color: #fff;
}

th.column-2,
th.column-3,
th.column-4,
th.column-5,
td.column-2,
td.column-3,
td.column-4,
td.column-5 {
  text-align: center;
}

/*----------------- END TABELLEN -------------*/

@media (min-width: 1920px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 1500px) {
  .entry-content {
    max-width: var(--content-width-responsive);
    margin: 0 auto;
  }
}

@media (max-width: 1200px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 1024px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 990px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 768px) {
  body:not(.home)
    #primary
    .entry-content
    > .wp-block-uagb-container.alignfull.uagb-is-root-container {
    width: 90%;
  }
}

@media (max-width: 576px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 420px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}

@media (max-width: 320px) {
  /*----------------- ELEMENT -------------*/
  /*----------------- END ELEMENT ---------*/
}
