/* Unterüberschrift */
.is-style-subline {
  color: var(--wp--preset--color--samt-gruen);
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  font-size: clamp(26px, 3vw, 35px);
  line-height: 120%;
  text-transform: none;
  letter-spacing: unset;
}
.is-style-uppercase,
.is-style-subline.wp-block-query-title,
.wp-block-post-date,
.metafield[data-metafield-name="service_realtion-projects"],
.metafield[data-metafield-name="project_relation-service"],
.metafield[data-metafield-name="news_subline"],
.wp-block-categories-list,
.taxonomy-category a,
.is-style-category-link {
  color: var(--wp--preset--color--samt-gruen);
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  font-size: clamp(26px, 3vw, 35px);
  line-height: 120%;
  text-transform: none;
  letter-spacing: unset;
  font-size: 1rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-top: 2.5rem;
  text-decoration: none;
}
.wp-block-heading + .is-style-subline,
.wp-block-heading + .is-style-uppercase {
  margin-top: 2rem;
}
h1:has(+ .is-style-subline),
h1:has(+ .is-style-uppercase) {
  margin-bottom: 2rem;
}
.is-style-subline + *,
.wp-block-categories-list + *,
.is-style-uppercase + * {
  margin-top: 1rem;
}
.is-style-subline + h3,
.wp-block-categories-list + h3,
.is-style-uppercase + h3 {
  margin-top: 0.5rem;
}
.wp-block-post .metafield[data-metafield-name="project_relation-service"],
.wp-block-post .metafield[data-metafield-name="service_realtion-projects"] {
  margin-top: 1rem;
}
.is-style-teaser .wp-block-post-date,
.single-post .wp-block-categories-list {
  margin-top: 0;
}
.metafield[data-metafield-name="service_realtion-projects"] + .wp-block-heading,
.metafield[data-metafield-name="project_relation-service"] + .wp-block-heading {
  margin-top: 1rem;
}

/* category link */
.is-style-category-link {
  margin-top: 0 !important;
}
.wp-block-navigation
  .has-child
  .wp-block-navigation__submenu-container
  > li.is-style-category-link
  > a.wp-block-navigation-item__content {
  padding-block: 0.5rem 0 !important;
  font-weight: 400 !important;
  font-size: 1rem;
}
.wp-block-navigation
  .has-child
  .wp-block-navigation__submenu-container
  > li.is-style-category-link:not(:first-child)
  > a.wp-block-navigation-item__content {
  padding-block: 1.5rem 0 !important;
}

/* backlink post templates */
.arrow-backlink {
  margin-top: 0;
  padding-inline: min(4.375rem, 5vw);
}
.arrow-backlink a {
  --bg-color: #9ba9af;
  position: relative;
  font-weight: 400;
  color: #9ba9af;
}
.arrow-backlink a:hover {
  text-decoration: none !important;
  color: var(--wp--preset--color--samt-gruen);
  --bg-color: var(--wp--preset--color--samt-gruen);
  transition: all ease 100ms;
}
.arrow-backlink a::before {
  background-color: var(--bg-color);
  content: "";
  width: 8px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  transition: all ease 100ms;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M6.66667 13.3333L0 6.66667L6.66667 0L7.6 0.95L1.88333 6.66667L7.6 12.3833L6.66667 13.3333Z' fill='%239BA9AF'/%3E%3C/svg%3E");
}

/* Kategorienliste nebeneinander mit Trenner | */
.wp-block-categories-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.is-style-subline a,
.metafield[data-metafield-name="service_realtion-projects"] a,
.metafield[data-metafield-name="project_relation-service"] a,
.wp-block-categories-list a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.wp-block-categories-list li {
  display: inline-flex;
  align-items: center;
}
.wp-block-categories-list li + li::before {
  content: "|";
  margin-inline: 0.5rem;
}

/* Großer Text */
.is-style-large-text {
  font-size: 20px;
  line-height: 130%;
  font-style: normal;
  font-weight: 400;
}

/* XXL Text */
.is-style-xxl-text {
  color: var(--wp--preset--color--yellow);
  font-size: 4rem;
  font-style: italic;
  font-weight: 400;
  line-height: 130%;
  font-variant-numeric: tabular-nums;
}
.is-style-xxl-text + p {
  margin-top: 0;
}
@media only screen and (max-width: 989px) {
  .wp-block-cover:has(.is-style-xxl-text) .wp-block-heading {
    text-align: center;
  }
}

/* Linie für Headings */
.is-style-line::after {
  content: "";
  display: block;
  width: 150px;
  height: 5px;
  margin-top: 11px;
  background-color: rgb(0 189 112 / 80%);
  background-image: linear-gradient(
    90deg,
    var(--wp--preset--color--smaragd-gruen, #00bd70) 0%,
    var(--wp--preset--color--yellow, #fdf4a2) 100%
  );
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: heading-line-fill 1s ease-out 0.15s forwards;
}
h1.is-style-line::after {
  width: 250px;
  height: 7px;
}
.home h1.is-style-line::after {
  width: 350px;
}
.is-style-line.has-text-align-center::after,
.is-style-line.is-line-centered::after {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Teaser Group */
figure.wp-block-post-featured-image:has(+ .is-style-teaser) {
  margin-bottom: 0;
}
.is-style-teaser {
  position: relative;
  width: calc(100% - 3.5rem);
  margin-left: 3.5rem;
  margin-top: -5.25rem;
  background: #fff;
  border-bottom: 3px solid var(--hellgrau, #f5f5f5);
  padding-top: var(--wp--preset--spacing--two);
  padding-right: var(--wp--preset--spacing--two);
  padding-bottom: var(--wp--preset--spacing--two);
  padding-left: var(--wp--preset--spacing--two);
  outline: 2px solid #ffffff;
  outline-offset: -1px;
}
.has-off-white-background-color .is-style-teaser {
  outline: unset;
  outline-offset: unset;
  border-color: #e9e8e8;
}
.is-style-teaser .wp-block-post-excerpt,
.is-style-teaser .wp-block-post-excerpt__more-text {
  margin-top: 1rem;
}

.is-style-teaser .metafield[data-metafield-name="service_icon"] figure {
  margin-bottom: 0;
}

/* list & checklist & timeline */
.wp-block-list {
  padding-left: 1rem;
  margin-block-start: 2.5rem;
}
.wp-block-list strong {
  color: var(--wp--preset--color--samt-gruen);
  padding-right: 0.5rem;
}
.wp-block-list li {
  position: relative;
  margin-bottom: 1rem;
}

.is-style-check_list {
  padding-left: 2.25rem;
}
.is-style-check_list {
  list-style: none;
}
.is-style-check_list li::marker {
  display: none;
}
.is-style-check_list li::before {
  content: "";
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cmask id='mask0_39_114' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='40' height='40'%3E%3Crect width='40' height='40' fill='%23D9D9D9'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_39_114)'%3E%3Cpath d='M15.8055 29.8333L6.41675 20.4445L8.403 18.4583L15.8055 25.8612L31.5697 10.097L33.5555 12.0833L15.8055 29.8333Z' fill='white'/%3E%3C/g%3E%3C/svg%3E");
  width: 30px;
  height: 30px;
  display: inline-block;
  background-color: var(--wp--preset--color--samt-gruen);
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  position: absolute;
  left: -40px;
  top: -5px;
}
.has-samt-gruen-background-color .is-style-check_list li::before,
.has-samt-gruen-background .is-style-check_list li::before {
  background-color: #ffffff;
}

.is-style-timeline {
  list-style: outside none none;
  padding-left: 2.5rem;
}
.is-style-timeline > li {
  position: relative;
}
.is-style-timeline li::before {
  content: "";
  display: block;
  width: 2px;
  height: 40px;
  background-color: green;
  position: absolute;
  left: -2rem;
  top: -8px;
}
.is-style-timeline > li::after {
  background: #fff none repeat scroll 0 0;
  border-color: #006547;
  border-radius: 50%;
  border-style: solid;
  border-width: 2px;
  content: "";
  height: 10px;
  left: -2.25rem;
  position: absolute;
  top: 6.25px;
  width: 10px;
}

/* Linkwrapper */
a.link_wrapper.is-style-arrow-box .acf-innerblocks-container,
a.link_wrapper.is-style-arrow-box .wp-block-group.has-background {
  height: 100%;
}

a.link_wrapper.is-style-arrow-box .wp-block-group.has-background::after {
  content: "";
  display: block;
  width: 67px;
  height: 30px;
  position: absolute;
  right: 3rem;
  bottom: 3rem;
  transition: all 0.3s ease;
  background-color: var(--wp--preset--color--samt-gruen);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='67' height='30' viewBox='0 0 67 30' fill='none'%3E%3Cpath d='M65 14.728L65 12.728L1.74846e-07 12.728L0 14.728L-1.74846e-07 16.728L65 16.728L65 14.728ZM66.4142 16.1422C67.1953 15.3612 67.1953 14.0949 66.4142 13.3138L53.6863 0.585891C52.9052 -0.195158 51.6389 -0.195158 50.8579 0.58589C50.0768 1.36694 50.0768 2.63327 50.8579 3.41432L62.1716 14.728L50.8579 26.0417C50.0768 26.8228 50.0768 28.0891 50.8579 28.8702C51.6389 29.6512 52.9052 29.6512 53.6863 28.8702L66.4142 16.1422Z' fill='%23006647'/%3E%3C/svg%3E");
}
a.link_wrapper.is-style-arrow-box .wp-block-group.has-samt-gruen-background-color::after {
  background: var(--wp--preset--color--smaragd-gruen);
}
a.link_wrapper.is-style-arrow-box .wp-block-group.has-background:hover::after {
  right: 2.5rem;
}

/* Service */
.service-hero {
  gap: 0;
  margin-bottom: 6rem !important;
}
.service-hero > .wp-block-column:has(> figure) {
  position: relative;
  z-index: 1;
}
.service-hero > .wp-block-column:has(> figure) figure,
.service-hero > .wp-block-column:has(> figure) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  height: 50vh;
}
.service-hero > .wp-block-column:has(.wp-block-post-title) {
  background-color: #fff;
  position: relative;
  z-index: 2;
  padding: 2rem;
}
.service-hero .wp-block-columns:has(.wp-block-column > .wp-block-post-title) {
  position: relative;
}
.service-hero .wp-block-columns:has(.wp-block-column > .wp-block-post-title)::after {
  content: "";
  display: block;
  width: 350px;
  height: 5px;
  margin-top: 11px;
  background-color: rgb(0 189 112 / 80%);
  background-image: linear-gradient(
    90deg,
    var(--wp--preset--color--smaragd-gruen, #00bd70) 0%,
    var(--wp--preset--color--yellow, #fdf4a2) 100%
  );
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: heading-line-fill 1s ease-out 0.15s forwards;
  position: absolute;
  bottom: -16px;
}

@keyframes heading-line-fill {
  to {
    background-size: 100% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-style-line::after,
  .service-hero .wp-block-columns:has(.wp-block-column > .wp-block-post-title)::after {
    animation: none;
    background-size: 100% 100%;
  }
}
.service-hero .metafield[data-metafield-name="service_short"] {
  color: var(--wp--preset--color--samt-gruen);
  font-size: clamp(26px, 3vw, 35px);
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  margin-block-start: calc(11px + 1.5rem);
}
/* Wide Column (sofortige CSS-Berechnung gegen Layout-Springen beim Laden) */
@media only screen and (min-width: 990px) {
  .wp-block-columns:not(.service-hero) > .wp-block-column.is-style-wide-column:first-child {
    margin-left: calc((100vw - 100%) / -2);
    flex-basis: calc(50vw - (var(--wp--style--block-gap, 2rem) / 2));
    max-width: calc(50vw - (var(--wp--style--block-gap, 2rem) / 2));
    flex-grow: 0;
    flex-shrink: 0;
  }
  .wp-block-columns:not(.service-hero) > .wp-block-column.is-style-wide-column:last-child {
    margin-right: calc((100vw - 100%) / -2);
    flex-basis: calc(50vw - (var(--wp--style--block-gap, 2rem) / 2));
    max-width: calc(50vw - (var(--wp--style--block-gap, 2rem) / 2));
    flex-grow: 0;
    flex-shrink: 0;
  }
}

@media only screen and (min-width: 1250px) {
  .service-hero > .wp-block-column.is-style-wide-column:first-child {
    margin-left: calc((100vw - 100%) / -2);
    flex-basis: calc(50vw + 75px);
    max-width: calc(50vw + 75px);
    flex-grow: 0;
    flex-shrink: 0;
  }
  .service-hero > .wp-block-column.is-style-wide-column:last-child {
    margin-right: calc((100vw - 100%) / -2);
    flex-basis: calc(50vw + 75px);
    max-width: calc(50vw + 75px);
    flex-grow: 0;
    flex-shrink: 0;
  }
  .service-hero > .wp-block-column:has(.wp-block-post-title) {
    margin-left: -200px;
    padding: 3rem 0 3rem 4rem;
    outline: 2px solid #ffffff;
    outline-offset: -1px;
  }
}
@media only screen and (max-width: 1249px) {
  .service-hero {
    flex-direction: column;
    margin-bottom: 3rem !important;
    width: 100% !important;
  }
  .service-hero > .is-style-wide-column {
    width: 100vw;
  }
  .service-hero > .wp-block-column:not(.is-style-wide-column) {
    margin-top: -10vw;
    padding: 3rem 5vw 0 5vw;
    max-width: calc(900px + 10vw);
    margin-inline: auto !important;
  }
  .service-hero > .wp-block-column:has(> figure) figure,
  .service-hero > .wp-block-column:has(> figure) img {
    height: 40vh;
  }
}
@media only screen and (max-width: 989px) {
  .service-hero > .wp-block-column:has(> figure) figure,
  .service-hero > .wp-block-column:has(> figure) img {
    height: 30vh;
  }
  .service-hero > .wp-block-column:not(.is-style-wide-column) {
    width: 100vw;
    margin-top: 0;
    padding-inline: 5vw;
  }
}

.more-projects-title {
  flex-wrap: wrap !important;
}

/* Team Images / Grid */
.is-style-team-images figure {
  position: relative;
}
.team-images__details {
  opacity: 0;
  position: absolute;
  z-index: 1;
  bottom: 1rem;
  left: 1rem;
  background: #fff;
  color: var(--wp--preset--color--samt-gruen);
  padding: 1rem;
  transition: opacity 0.3s ease;
}
.is-style-team-images figure:hover .team-images__details {
  opacity: 1;
}
.team-images__details p,
.team-images__details p + p {
  margin-block: 0 !important;
}
.team-images__details strong {
  display: block;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: 2.7px;
  text-transform: uppercase;
}
.team-images__details::after {
  content: "";
  display: block;
  height: 100%;
  width: auto;
  aspect-ratio: 12 / 41;
  background-color: #ffffff;
  clip-path: polygon(0 0, 1px 0, 100% 50%, 1px 100%, 0 100%);
  position: absolute;
  left: calc(100% - 1px);
  top: 0;
}
