/* ======================================================
-------------------- 6er Referenzkarten -----------------
====================================================== */

.ref-header {
  margin-bottom: var(--sp-lg);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  list-style: none;
}

.ref-card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--br);
  background: var(--white);
  padding: 0;
  display: flex;
}

.ref-card:hover {
  border-color: var(--accent);
}

.ref-card .chevron {
  align-self: flex-end;
  margin-top: auto;
}
.ref-card .chevron path {
  stroke: var(--accent);
}

.ref-card__link {
  color: inherit;
  text-decoration: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ref-card-top {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--navy-dark); /* fallback */
}

.ref-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-card__badge {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--br-sm);
  background: var(--navy-dark);
  color: var(--text-light);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ref-card__caption {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: var(--sp-xs);
  padding: var(--sp-md) var(--sp-md);
}

.ref-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-lg);
}

@media only screen and (max-width: 960px) {
  .ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 520px) {
  .ref-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* ===========================================
----------------- 50/50 LAYOUT ---------------
=========================================== */

.sec-container-text-media {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.container-text-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}

.container-text-media__text {
  display: flex;
  flex-direction: column;
}

.container-text-media>div {
  min-width: 0;
}

.container-text-media .container-text-media__video {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--br);
  overflow: hidden;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.container-text-media .container-text-media__media img {
  width: 100%;
  border-radius: var(--br);
  overflow: hidden;
  padding: 0;
}

.container-text-media iframe {
  display: block;
  width: calc(100% + 2px); /* peertube iframe entfernt irgendwo ein paar pixel */
  height: calc(100% + 2px);
}

.container-text-media .btn-primary, .container-text-media .btn-primary-light {
  margin-top: var(--sp-md);
}

.container-text-media-reverse>div:first-child {
  order: 2;
}

.container-text-media-reverse>div:last-child {
  order: 1;
}

.container-text-media .btn-primary {
  align-self: flex-start;
}

@media only screen and (max-width: 960px) {
  .container-text-media {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: var(--sp-lg);
    align-items: start;
  }
  .container-text-media__text {
    width: 100%;
  }
  .container-text-media .container-text-media__media {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .container-text-media .container-text-media__media .container-text-media__video,
  .container-text-media .container-text-media__media img {
    width: 100%;
    max-width: 480px;
  }

  .container-text-media-reverse>div:first-child { /* no reverse when small */
    order: inherit;
  }
  .container-text-media-reverse>div:last-child {
    order: inherit;
  }

  .container-text-media .btn-primary {
    align-self: center;
  }

  .sec-container-text-media {
    gap: var(--sp-2xl);
  }
}


/* =========================================
-------------- SHOWCASE KUNDEN -------------
========================================= */

.logo-showcase {
  width: calc(100% - var(--sp-2xl) - var(--sp-2xl));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-showcase__header {
  margin-right: auto;
}

.logo-showcase__wrapper {
  position: relative;
  height: 6rem;
  width: 100%;
  overflow: hidden;
  margin-top: var(--sp-lg);
}

.logo-showcase__overlay {
  z-index: 100;
  background: linear-gradient(to right, var(--bg), transparent, var(--bg));
  opacity: .5;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
}

/* Die Icons sind in der HTML doppelt eingetragen für einen klaren fortlauf, der folgende css abschnitt wird benötigt um beide ausgaben in einer zeile nebeneinander zu haben anstatt übereinander */
.logo-showcase__track {
  z-index: 50;
  display: flex;
  width: max-content;
  animation: marquee-animation 20s linear infinite;
  overflow-y: hidden;
  height: 100%;
}

.logo-showcase__list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 5rem;
  margin: 0 2.5rem;
  list-style: none;
  height: 100%;
}

.logo-showcase__item {
  height: 100%;
  background-color: var(--white);
  border-radius: var(--br);
}

.logo-showcase__item img {
  height: 100%;
  width: auto;
  border-radius: var(--br);
}

@keyframes marquee-animation {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-50%);
  }
}

@media only screen and (max-width: 960px) {
  .logo-showcase__wrapper {
    height: 4rem;
  }
  .logo-showcase__list {
    gap: 2.5rem;
    margin: 0 1.25rem;
  }
}


/* =========================================
------------------- FAQ --------------------
========================================= */

.faq-container {
  margin: 0;
  box-sizing: border-box;
}
.sec-dark .faq-container {
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--br);
  margin: var(--sp-lg) var(--sp-md);
  transition: var(--transition);
}

.faq-item:hover {
  background-color: rgba(from var(--black) r g b / 0.1);
  cursor: pointer;
}
.faq-item[open] {
  background-color: rgba(from var(--black) r g b / 0.1);
}
.sec-dark .faq-item:hover {
  background-color: rgba(from var(--black) r g b / 0.2);
  cursor: pointer;
}
.sec-dark .faq-item[open] {
  background-color: rgba(from var(--black) r g b / 0.2);
}
.faq-item[open] .icon {
  transform: rotate(45deg);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-lg);
  list-style: none;
  transition: var(--transition);
}

.faq-item summary span {
  display: flex;
  flex-shrink: 0;
}

.faq-item summary .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
}

.faq-answer {
  padding: var(--sp-lg);
  padding-top: var(--sp-xs);
  padding-bottom: var(--sp-md);
}

@media only screen and (max-width: 520px) {
  .faq-item {
    margin: var(--sp-md) 0;
  }
}


/* =========================================
---------------- Ansprechpartner -----------
========================================= */

.kontakte-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.kontakt-img-wrapper {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1/1;
}

.kontakt img {
  display: block;
  width: 100%;
  object-fit: fill;
}

.kontakt-info {
  padding: var(--sp-lg);
  text-wrap: wrap;
}
.kontakt-info .card-text {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.kontakt-info .icon {
  height: 16px;
  width: 16px;
  margin-right: var(--sp-xs);
  margin-top: var(--sp-xs);
  margin-bottom: auto;
}
.kontakt-info .card-text a {
  color: currentColor;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow: hidden;
}

.sec-kontakt .card-base {
  padding: 0;
}

@media only screen and (max-width: 960px) {
  .kontakte-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media only screen and (max-width: 520px) {
  .kontakte-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* einzelkontakte */
.sec-kontakt.kontakt-single .kontakte-grid {
  display: flex;
  justify-content: center;
}
.sec-kontakt.kontakt-single .kontakt {
  display: flex;
  flex-direction: row;
  width: 60%;
  max-width: 500px;
}
.sec-kontakt.kontakt-single .kontakt-img-wrapper {
  width: 40%;
  height: 100%;
}

@media only screen and (max-width: 768px) {
  .sec-kontakt.kontakt-single .kontakt {
    width: 100%;
    flex-direction: column;
  }
  .sec-kontakt.kontakt-single .kontakt-img-wrapper {
    width: 100%;
  }
}


/* ================================================
-------------------- HERO SIMPLE ------------------
================================================ */

.hero {
  position: relative;
  background: var(--primary);
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero * {
  color: var(--white);
}

.hero .display-heading {
  text-transform: uppercase;
  margin: var(--sp-lg) 0;
}

.hero__schweissen-bg {
  background-image: url('/assets/images/schweissen.gif') !important;
}
.hero__karriere-bg {
  background-image: url('/assets/images/service-hub/karriere-placeholder.webp') !important;
}
.hero__metallbauer-bg {
  background-image: url('/assets/images/service-hub/metallbau-placeholder.webp') !important;
}
.hero__ueberuns-bg {
  background-image: url('/assets/images/Gruppenbild-3-scaled.jpg') !important;
}
.hero__stahllbau-bg {
  background-image: url("/assets/images/service-hub/stahlbau-placeholder.webp") !important;
}
.hero__maschinenbau-bg {
  background-image: url("/assets/images/service-hub/maschinenbau-placeholder.webp") !important;

}
.hero__metallbau-bg {
  background-image: url("/assets/images/service-hub/metallbau-placeholder.webp") !important;
}

.hero::before { /* blue tint */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 50;
  background: var(--primary) !important;
  opacity: 0.7;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-2xl);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md) var(--sp-lg);
}


@media only screen and (max-width: 960px) {
  .hero-content {
    padding: 0;
  }
}
@media only screen and (max-width: 520px) {
  .hero .display-heading {
    font-size: 1.75rem;
  }
}


/* =====================================================
-------------------- HERO 50/50 SPLIT ------------------
===================================================== */

.hero-50-50 { /* similar to sec-dark */
  position: relative;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: var(--content-padding) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  box-sizing: border-box;
  background-color: var(--white);
}

.hero-50-50 .hero-50-50__side {
  position: relative;
  display: flex;
  width: 100%;
  flex-grow: 1;
}
.hero-50-50 .hero-50-50__left {
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: end;
}
.hero-50-50 .hero-50-50__left .text, .hero-50-50 .hero-50-50__left .section-title, .hero-50-50 .hero-50-50__left .display-heading, .hero-50-50 .hero-50-50__left .eyebrow {
  color: var(--white);
}
.hero-50-50 .hero-50-50__left::before { /* blue tint */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 50;
  background: var(--primary) !important;
  opacity: 0.7;
  pointer-events: none;
}

.hero-50-50__side-inner {
  height: 100%;
  width: 100%;
  max-width: calc(var(--max-w-wide) / 2);
  padding: var(--content-padding-topbottom) 0;
  overflow: hidden;
}
.hero-50-50 .hero-50-50__left .hero-50-50__side-inner {
  margin-left: var(--content-padding-leftright);
  padding-right: calc(var(--content-padding-leftright) / 2);
}
.hero-50-50 .hero-50-50__right .hero-50-50__side-inner {
  margin-right: var(--content-padding-leftright);
  padding-left: calc(var(--content-padding-leftright) / 2);
}

.hero-50-50__content {
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-xl);
}
.hero-50-50__content .display-heading {
  font-size: 36px;
}

.hero-50-50__metallbauer-bg {
  background-image: url('/assets/images/service-hub/metallbau-placeholder.webp') !important;
}
.hero-50-50__feinwerkmecahniker-bg {
  background-image: url('/assets/images/service-hub/metallbau-placeholder.webp') !important;
}
.hero-50-50__bsc-eng-bg {
  background-image: url('/assets/images/service-hub/metallbau-placeholder.webp') !important;
}
.hero-50-50__bsc-bauing-bg {
  background-image: url('/assets/images/service-hub/metallbau-placeholder.webp') !important;
}

.hero-50-50__buttons {
  display: flex;
  flex-direction: row;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* little facts with icon and label */
.hero-50-50__facts {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0 var(--sp-sm);
}

.hero-50-50__facts .icon  {
  color: var(--accent);
  margin: var(--sp-sm);
  flex-shrink: 0;
}

.hero-50-50__facts-text {
  display: flex;
  flex-direction: column;
  margin: var(--sp-sm);
}
.hero-50-50__facts-text>a {
  margin: 0;
}
.hero-50-50__facts-text>.eyebrow {
  opacity: .8;
}

.hero-50-50__facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* karrierestufen */
.hero-50-50__careersteps ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.hero-50-50__careersteps li {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--navy-dark);
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 9px;
  padding-right: 6px;
  padding-top: 8px;
  padding-bottom: 6px;
  margin-right: -2px;
  flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%, 6px 50%);
}

@media only screen and (max-width: 1200px) and (min-width: 992px) {
  .hero-50-50__careersteps ul {
    flex-direction: column;
    margin: 0 var(--sp-xl);
    overflow: hidden;
    border-radius: var(--br);
    border: 1px solid var(--border);
  }
  .hero-50-50__careersteps li {
    clip-path: none;
    background-color: transparent;
    color: var(--text);
  }
  .hero-50-50 .hero-50-50__facts-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media only screen and (max-width: 992px) {
  .hero-50-50 {
    flex-direction: column !important;
  }
  .hero-50-50>div {
    justify-content: center !important;
  }
  .hero-50-50 .hero-50-50__side-inner {
    margin: 0 !important;
    padding: var(--content-padding-leftright) var(--content-padding-topbottom) !important;
    max-width: var(--max-w-wide);
  }
}
@media only screen and (max-width: 768px) {
  .hero-50-50__careersteps ul {
    flex-direction: column;
    margin: 0 var(--sp-xl);
    overflow: hidden;
    border-radius: var(--br);
    border: 1px solid var(--border);
  }
  .hero-50-50__careersteps li {
    clip-path: none;
    background-color: transparent;
    color: var(--text);
  }
  .hero-50-50 .hero-50-50__facts-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.hero-50-50__careersteps .hero-50-50__careersteps-current {
  background-color: var(--accent-d);
  color: var(--text-light);
}


/* =========================================
------------ service hub 4 Karten ----------
========================================= */

.service-hub {
  position: relative;
  overflow: hidden;
}

.service-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--sp-lg);
  gap: var(--sp-lg);
}

.service-card {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: var(--sp-lg) var(--sp-xl) var(--sp-sm);
  display: flex;
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
}

.service-card::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: var(--transition);
  background-color: rgba(from var(--card-color) r g b / .8);
}
.service-card.card-red::before {
  --card-color: var(--accent-d)
}
.service-card.card-navy::before {
  --card-color: var(--navy-dark)
}

.service-card:hover::before {
  background-color: rgba(from var(--card-color) r g b / .9);
  backdrop-filter: blur(3px);
}

/* TODO: Bilder ersetzen */
.service-card--stahlbau {
  --card-image: url("/assets/images/service-hub/stahlbau-placeholder.webp");
}
.service-card--maschinenbau {
  --card-image: url("/assets/images/service-hub/maschinenbau-placeholder.webp");
}
.service-card--metallbau {
  --card-image: url("/assets/images/service-hub/metallbau-placeholder.webp");
}
.service-card--karriere {
  --card-image: url("/assets/images/service-hub/karriere-placeholder.webp");
} */


.service-card:hover {
  background-image: none;
}

.service-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  word-wrap: break-word;
}

.service-card-content>* {
  color: var(--white);
}

.service-card .heading-lg a {
  margin: var(--sp-xs) 0 var(--sp-sm);
  color: var(--white);
}

.service-card a {
  text-decoration: none;
}

.service-card .chevron {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.service-card-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: var(--sp-lg) 0;
  flex-grow: 1;
}

.service-card-links .btn-primary, .service-card-links .btn-secondary { /* center buttons */
  margin: 0 auto;
  margin-top: auto;
}


@media only screen and (max-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media only screen and (max-width: 520px) {
  .service-card {
    padding: var(--sp-md) var(--sp-lg) var(--sp-xs);
  }
}


/* ===============================
------------ career-hub ----------
=============================== */

.career-hub__wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.career-hub__content {
  display: flex;
  flex-direction: column;
}

.career-hub__buttons {
  display: flex;
  flex-direction: row;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
  flex-wrap: wrap;
}
.career-hub ::after{
  color: var(--primary);

}

@media only screen and (max-width: 520px) {
  .career-hub__buttons {
    gap: var(--sp-sm);
  }
}


/* =======================================================
------------ Facts Display / Region Wesermarsch ----------
======================================================= */

.facts-display {
  font-size: 1rem;
  line-height: 1.6;
}

.facts-display .facts-display__grid {
  display: grid;
  grid-template-rows: auto;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}
.facts-display .facts-display__grid3 {
  grid-template-columns: repeat(3, 1fr);
}
.facts-display .facts-display__grid4 {
  grid-template-columns: repeat(4, 1fr);
}

.facts-display .facts-display__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--br);
  padding: var(--sp-md) var(--sp-lg);
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.facts-display .icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--sp-sm);
  color: var(--accent);
}

.facts-display .facts-display__card.img-card {
  padding: 0;
  border-radius: var(--br);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.facts-display .facts-display__card.img-card-1 {
  background-image: url(/assets/images/sec-region/house-4028391_1920-1.webp);
}
.facts-display .facts-display__card.img-card-2 {
  background-image: url(/assets/images/sec-region/kite-festival-busum-3380897_1920-1-300x300.webp);
}
.facts-display .facts-display__card.img-card-3 {
  background-image: url(/assets/images/sec-region/wesermarsch_test7-1-300x287.webp);
}

.facts-display .wr-stat-label {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}

.facts-display .facts-display__card.distances {
  display: flex;
  flex-direction: column;
}

.facts-display .facts-display__dist-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.facts-display .facts-display__dist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.facts-display .facts-display__dist-city {
  font-size: .875rem;
  min-width: 100px;
}

.facts-display .facts-display__dist-bar-wrapper {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.facts-display .facts-display__dist-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.facts-display .facts-display__dist-time {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
  min-width: 52px;
}


.facts-display .facts-display__card.facts-display__card-cta {
  background: var(--accent-d);
  border: none;
  display: flex;
  flex-direction: column;
}
.facts-display .facts-display__card.facts-display__card-cta .icon, .facts-display .facts-display__card.facts-display__card-cta .card-heading, .facts-display .facts-display__card.facts-display__card-cta .subtext {
  color: var(--white);
}

.facts-display .facts-display__card.facts-display__card-cta .btn-primary {
  margin-right: auto;
  margin-left: auto;
}

.facts-display .facts-display__card .pill-wrapper {
  margin-top: var(--sp-md);
}

.facts-display__splitview {
  display: flex;
  flex-direction: row;
  gap: var(--sp-md);
}


@media only screen and (max-width: 768px) {
  .facts-display .facts-display__grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .facts-display .facts-display__grid3 {
    grid-template-columns: 1fr;
  }

  .facts-display .facts-display__splitview {
    flex-direction: column;
  }

  .facts-display .col3,
  .facts-display .col4 {
    grid-column: span 2;
  }

  .facts-display .facts-display__card.img-card {
    min-height: 180px;
  }
}

@media only screen and (max-width: 520px) {
  .facts-display .facts-display__grid4 {
    grid-template-columns: 1fr;
  }

  .facts-display .col2,
  .facts-display .col3,
  .facts-display .col4 {
    grid-column: span 1;
  }

  .facts-display .facts-display__card.img-card {
    min-height: 200px;
  }

  .facts-display .facts-display__card.stat {
    display: flex;
    flex-direction: row;
    gap: var(--sp-md);
  }
}


/* ======================================================
-------------------- NEWSLETTER SIGNUP ------------------
====================================================== */

.newsletter {
  position: relative;
  display: flex;
}

/* ─── Form ─── */
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  text-align: left;
}
.newsletter__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.newsletter__checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.newsletter__form .btn-primary {
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-width: 768px) {
  .newsletter__row {
    display: flex;
    flex-direction: column;
  }
}


/* ======================================================
-------------------- CAREER HARD FACTS ------------------
====================================================== */

.career-hardfacts__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.career-hardfacts .card-base {
  display: flex;
  flex-direction: column;
}
.career-hardfacts .card-base .icon {
  align-self: center;
  height: 64px;
  width: 64px;
  margin: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.career-hardfacts .card-base div {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-md);
}
.career-hardfacts .card-base div:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

@media only screen and (max-width: 960px) {
  .career-hardfacts__grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media only screen and (max-width: 960px) and (min-width: 520px) {
  .career-hardfacts .card-base {
    position: relative;
  }
  .career-hardfacts .card-base .icon {
    position: absolute;
    top: 0;
    right: 0;
    margin: var(--sp-md) var(--sp-lg);
  }
}


/* ========================================================
-------------------- CAREER BENEFITS BIG ------------------
======================================================== */

.career-benefit .career-benefit__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  margin-top: var(--sp-md);
}

.career-benefit .career-benefit__card {
  display: flex;
  flex-direction: row;
  gap: var(--sp-lg);
}

.career-benefit .career-benefit__card-reverse {
  flex-direction: row-reverse;
}

.career-benefit .career-benefit__icon {
  flex-shrink: 0;
}
.career-benefit .career-benefit__icon .icon {
  width: 64px;
  height: 64px;
  color: var(--accent);
}

@media only screen and (max-width: 520px) {
  .career-benefit .career-benefit__card {
    flex-direction: column-reverse;
  }
} 


/* ======================================================
-------------------- CAREER 6 BENEFITS ------------------
====================================================== */

.career-benefit-6card .career-benefit-6card__card-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.career-benefit-6card .card-accent-left {
  position: relative;
  display: flex;
  flex-direction: column;
}

.career-benefit-6card .card-accent-left .icon {
  height: 42px;
  width: 42px;
  color: var(--accent);
  margin-bottom: var(--sp-md);
}

@media only screen and (max-width: 768px) {
  .career-benefit-6card .career-benefit-6card__card-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* ================================================================
-------------------- CAREER 3 Schritte Bewerbung ------------------
================================================================ */

.career-3steps {
  display: flex;
  flex-direction: column;
  justify-content: left;
}

.career-3steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  margin-top: var(--sp-xl);
  text-align: center;
}

.career-3steps__line {
  position: absolute;
  height: 3px;
  background-color: var(--primary);
  opacity: 0.5;
  width: calc(100% / 3 * 2);
  z-index: 50;
  top: calc(31px);
  left: calc(100% / 6);
}

.career-3steps__grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

.career-3steps__number {
  height: 64px;
  width: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg);
  border: 3px solid var(--navy-dark);
  outline: 10px solid var(--bg);
  border-radius: var(--circle);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: var(--sp-md);
}

.career-3steps .btn-primary {
  margin-top: var(--sp-lg);
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-width: 768px) {
  .career-3steps__line {
    display: none;
  }
  .career-3steps__grid {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
  }
}


/* ===============================================================
-------------------- CAREER Block Highlight-CTA ------------------
=============================================================== */

.career-highlight__outer {
  min-height: 20rem;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--br-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-md) var(--sp-lg);
  overflow: hidden;
  position: relative;
}
.career-highlight__outer>* {
  z-index: 100;
}

.career-highlight__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 50;
  background-color: rgba(from var(--accent-d) r g b / 0.8);
  backdrop-filter: blur(3px);
}

.career-highlight__text {
  margin: var(--sp-lg) var(--sp-xl);
  margin-top: 0;
}
.career-highlight__text .eyebrow, .career-highlight__text .display-heading, .career-highlight__text .text{
  color: var(--white) !important;
}


/* ==========================================================
-------------------- CAREER Auszeichnungen ------------------
========================================================== */

.career-awards .career-awards__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}

.career-awards .career-awards__item {
  display: flex;
  max-height: 5rem;
}
.career-awards .career-awards__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.career-awards .career-awards__item img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

@media only screen and (max-width: 960px) {
  .career-awards .career-awards__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 520px) {
  .career-awards .career-awards__list {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* ==============================================================
-------------------- CAREER Mitarbeiterstimmen ------------------
============================================================== */

/* employee-videos */

.employee-videos #employee-videos__outer {
  display: flex;
  flex-direction: row;
  gap: var(--sp-md);
  overflow: auto;
  padding: var(--sp-md) 0;
}

.employee-videos .employee-videos__inner {
  width: 24rem;
  aspect-ratio: 16/9;
  border-radius: var(--br);
  overflow: hidden;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.employee-videos .employee-videos__inner iframe {
  display: block;
  width: calc(100% + 2px); /* peertube iframe entfernt irgendwo ein paar pixel */
  height: calc(100% + 2px);
}

.employee-videos .employee-videos__button-wrapper {
  display: flex;
  justify-content: space-between;
}
.employee-videos .employee-videos__button {
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--circle);
  margin: var(--sp-sm);
  transition: var(--transition);
}

.employee-videos .employee-videos__button:hover {
  cursor: pointer;
  background-color: var(--navy-dark);
  color: var(--white);
  border: none;
}

@media only screen and (max-width: 512px) {
  .employee-videos .employee-videos__inner {
    width: 16rem;
  }
}

/* employee-reviews */

.employee-reviews .employee-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.employee-reviews__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  border-radius: var(--br);
}
.employee-reviews__item .card-heading, .employee-reviews__item .text {
  color: var(--text);
}
.employee-reviews__item .subtext {
  color: var(--muted);
  margin-bottom: 0;
}

.employee-reviews__author {
  display: flex;
  flex-direction: row;
  height: 64px;
  width: 100%;
  gap: var(--sp-md);
  align-items: center;
}
.employee-reviews__author img {
  height: 100%;
  border-radius: var(--circle);
}
.employee-reviews__author-text {
  display: flex;
  flex-direction: column;
}

@media only screen and (max-width: 960px) {
  .employee-reviews .employee-reviews__grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* ============================================================
-------------------- CAREER barghorn-familie ------------------
============================================================ */

.career-images .career-images__wrapper {
  margin-top: var(--sp-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}
.career-images .career-images__wrapper img {
  border-radius: var(--br);
  overflow: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media only screen and (max-width: 520px) {
  .career-images .career-images__wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ======================================================
-------------------- Mitarbeiterbilder ----------------
====================================================== */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, auto);
}


/* =====================================================
-------------------- Bewerbungsformular ----------------
===================================================== */

.career-application-form .form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}


/* ============================================================================
-------------------- Block Berufsbild sachlich + Anforderungen ----------------
============================================================================ */

.job-information {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}


/* ========================================================
-------------------- Block Einzelnes Video ----------------
======================================================== */

.single-video .single-video__wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--sp-md);
}

.single-video .single-video__iframe {
  width: 75%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--br-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-video .single-video__iframe iframe {
  display: block;
  width: calc(100% + 3px); /* peertube iframe entfernt irgendwo ein paar pixel */
  height: calc(100% + 3px);
}

@media only screen and (max-width: 520px) {
  .single-video .single-video__iframe {
    width: 100%;
  }
}


/* ======================================================================
-------------------- Block Bausteine des Erfolgs / Werte ----------------
====================================================================== */

.erfolgsbausteine__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.erfolgsbausteine__group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--br);
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
}

.erfolgsbausteine__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

.erfolgsbausteine__card {
  background: var(--bg);
  border-radius: var(--br);
  padding: var(--sp-sm) var(--sp-md);
}

@media only screen and (max-width: 1080px) {
  .erfolgsbausteine__grid {
    gap: var(--sp-sm);
  }
  .erfolgsbausteine__grid {
    grid-template-columns: 1fr;
  }
}
@media only screen and (max-width: 768px) {
  .erfolgsbausteine__pair {
    grid-template-columns: 1fr;
  }
}


/* =======================================================
-------------------- Über Gunnar Barghorn ----------------
======================================================= */

.about-gunnar {
  background-image: url(/assets/images/Group-113-1.webp) !important;
  background-position: top center !important;
}
.about-gunnar .text {
  width: 70%;
}

@media only screen and (max-width: 768px) {
  .about-gunnar .text {
    width: 100%;
  }
}


/* ===================================================================
-------------------- Über uns Geschichte Zeitstrahl ------------------
=================================================================== */

.aboutus-timeline__wrapper {
  position: relative;
  margin-top: var(--sp-md);
  padding-left: var(--sp-lg);
}

.aboutus-timeline__line {
  position: absolute;
  top: 10px;
  left: 0;
  width: 2px;
  height: calc(100% - 20px);
  background-color: var(--border);
  z-index: 50;
}

.aboutus-timeline__item {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-md);
}

.aboutus-timeline__item img {
  height: 16rem;
  border-radius: var(--br);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.aboutus-timeline__date {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent);
  position: relative;
}
.aboutus-timeline__date::before {
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  border: var(--bg) 2px solid;
  background-color: var(--accent);
  border-radius: var(--circle);
  z-index: 100;
  top: .6rem;
  left: calc(-1 * (var(--sp-lg) + 5px));
}

@media only screen and (max-width: 520px) {
  .aboutus-timeline__item img {
    width: 100%;
    height: auto;
  }
}


/* ==================================================================
-------------------- Zertifikate / Download-Center ------------------
================================================================== */

.download-center .download-center__category-select {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.download-center .download-center__search {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.download-center .download-center__search button {
  background-color: transparent;
  border: none;
  flex-grow: 1;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-xs) var(--sp-sm);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-sm);
}

.download-center .download-center__wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: var(--sp-md) 0;
  gap: var(--sp-sm);
  justify-content: center;
}

.download-center .download-center__item {
  height: 12rem;
  background-color: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.download-center .download-center__description {
  display: flex;
  flex-direction: row;
  min-height: 8rem;
  flex-grow: 1;
}

.download-center .download-center__thumbnail {
  width: 30%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.download-center .download-center__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-center .download-center__item-text {
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.download-center .download-center__btn {
  width: 100%;
  height: 2rem;
  display: flex;
  flex-direction: row;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  color: var(--text);
  border-top: solid 1px var(--border);
  transition: var(--transition);
  font-size: .8rem;
  flex-shrink: 0;
}
.download-center .download-center__btn .icon {
  height: 1rem;
  width: 1rem;
}
.download-center .download-center__btn:hover {
  background-color: var(--accent);
  color: var(--white);
}

.download-center .download-center__item-big {
  height: 24rem;
}
.download-center .download-center__item-big .download-center__description {
  flex-direction: column;
}
.download-center .download-center__item-big .download-center__thumbnail {
  width: 100%;
  height: 14rem;
  padding: var(--sp-md);
}


@media only screen and (max-width: 960px) {
  .download-center .download-center__wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 768px) {
  .download-center .download-center__wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* =====================================================================
-------------------- Referenzfilter/suche ---------------------------
===================================================================== */

.search-container{
  display: flex;
  gap: calc(var(--sp-lg) *(5));
  align-items: center;
  
}
.search-field{
  display: flex;
  position: relative;
  gap: var(--sp-md);
  flex-direction: column;
  align-items: center;
  min-width: 15%;
}
.search-field label{
  color: var(--white);
}
.search-field ::after{
  margin-right: 5%;
}
/* ==================================================================
-------------------- Referenzen Tabelle ---------------------------
===================================================================== */

.references-table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

.references-table th {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  border-left: 1px solid black;
  background-color: color-mix(in srgb, var(--grey-dark) 10%, transparent);
}
.references-table th:last-child {
 border-right: 1px solid black;
}

.references-table td:last-child {
  border-right: 1px solid var(--white);
}

.references-table th:first-child {
  border: none;
  background: transparent;
}

.references-table td {
  border-top: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  border-left: 1px solid var(--white);
  padding-left:5px;
}
.references-table td:first-child {
    border-left: 1px solid var(--white);
    width: 0;
    padding:0;
    white-space: nowrap;
}

.references-table img {
  display: block;
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.references-table .bereich-stahlbau td {
  background-color: color-mix(in srgb, var(--navy-dark) 5%, transparent);
  border-color: var(--navy-dark);
}

.references-table .bereich-maschinenbau td {
  background-color: color-mix(in srgb, var(--grey-dark) 5%, transparent);
  border-color: var(--grey-dark);
}

.references-table .bereich-metallbau td {
  background-color: color-mix(in srgb, var(--accent-d) 5%, transparent);
  border-color: var(--accent-d);
}


/* ======================================================================
-------------------- Einzelreferenz Projekt-Kategorien ------------------
====================================================================== */

.reference-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  z-index: 100;
  position: relative;
  margin-top: var(--sp-lg);
}
.reference-categories>div {
  border-radius: var(--br);
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--navy-bg);
  max-width: 100%;
}
.reference-categories>div>strong {
  font-size: 1.5rem;
  text-align: center;
}
.reference-categories>div * {
  color: var(--text);
}
.reference-categories>div>p {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

@media only screen and (max-width: 960px) {
  .reference-categories {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* =========================================================================
-------------------- Einzelreferenz Bilder / Beschreibung ------------------
========================================================================= */

.reference-content>div {
  display: flex;
  flex-direction: row;
  gap: var(--sp-lg);
}

.reference-content .reference-content__images {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.reference-content .reference-content__images-big {
  height: 24rem;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--br);
  flex-shrink: 0;
}
.reference-content .reference-content__images-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-content .reference-content__images-other {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--sp-md);
  flex-grow: 0;
  align-items: start;
  height: min-content;
}
.reference-content .reference-content__images-other>div {
  height: 6rem;
  width: 6rem;
  overflow: hidden;
  border-radius: var(--br-sm);
}
.reference-content .reference-content__images-other img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-content .reference-content__description .btn-primary {
  margin-top: var(--sp-md);
}

@media only screen and (max-width: 992px) {
  .reference-content>div {
    flex-direction: column;
  }
  .reference-content .reference-content__images {
    flex-direction: row;
  }
}
@media only screen and (max-width: 768px) {
  .reference-content .reference-content__images {
    flex-direction: column;
  }
}
@media only screen and (max-width: 520px) {
  .reference-content .reference-content__images-big {
    height: 16rem;
  }
  .reference-content .reference-content__images-other {
    gap: var(--sp-sm);
  }
  .reference-content .reference-content__images-other>div {
    height: 6rem;
    width: 6rem;
  }
}
.search-field .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  color: var(--black);
}

.search-field input {
  width: 100%;
  min-width: 250px;
  padding-left: 45px;
}

