/* ==========================================================================
   Content-Seiten (Template content + Subseiten der Inhaltsbereiche)
   Blog-, Service- und Team-Detailseiten sowie Layout-Builder-Blöcke
   ========================================================================== */

.page-template--content .site-main {
  min-height: 16rem;
}

.page-template--content .bg-gradient-very-light-gray {
  background-color: #fafafa;
  border-radius: 0.25rem;
  padding: 1rem;
}

/* Layout-Builder: Überschriften */
.page-template--content .conent_h1 {
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  line-height: 1.25;
  margin: 0 0 2.5rem;
  hyphens: auto;
  overflow-wrap: break-word;
}

.page-template--content .conent_h2,
.page-template--content .conent_h3,
.page-template--content .conent_h4,
.page-template--content .conent_h5,
.page-template--content .conent_h6 {
  font-size: clamp(1.3125rem, 2.1vw, 1.8125rem);
  line-height: 1.3;
  font-weight: 700;
  hyphens: auto;
  overflow-wrap: break-word;
}

.page-template--content .conent_h2 { margin: 3.5rem 0 0; }
.page-template--content .conent_h3 { margin: 3rem 0 0; font-size: clamp(1.25rem, 1.95vw, 1.6875rem); line-height: 1.32; }
.page-template--content .conent_h4 { margin: 2.5rem 0 0; font-size: clamp(1.1875rem, 1.8vw, 1.5625rem); line-height: 1.34; }
.page-template--content .conent_h5 { margin: 2rem 0 0; font-size: clamp(1.125rem, 1.65vw, 1.4375rem); line-height: 1.36; }
.page-template--content .conent_h6 { margin: 1.5rem 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.38; }

/* Layout-Builder: Fliesstext */
.page-template--content .conent_p {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.5;
  margin: 1.5rem 0 0;
}

.page-template--content .conent_p > :last-child {
  margin-bottom: 0;
}

/* Layout-Builder: Ausrichtung */
.page-template--content .block-align--left {
  text-align: left;
}

.page-template--content .block-align--center {
  text-align: center;
}

.page-template--content .block-align--right {
  text-align: right;
}

.page-template--content .block-align--center .block-image__media,
.page-template--content .block-image.block-align--center .block-image__media,
.page-template--content .block-image.block-align--center .block-image__caption {
  margin-inline: auto;
}

.page-template--content .block-align--right .block-image__media,
.page-template--content .block-image.block-align--right .block-image__media,
.page-template--content .block-image.block-align--right .block-image__caption {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

.page-template--content .block-button {
  margin-top: 1.5rem;
}

/* Layout-Builder: Listen */
.page-template--content .conent_list {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.5;
  margin: 1.5rem 0 0;
}

.page-template--content .conent_list ul,
.page-template--content .conent_list ol {
  margin: 0;
  padding-left: 1rem;
  list-style-position: outside;
}

.page-template--content .conent_list li + li {
  margin-top: 0.35rem;
}

.page-template--content .conent_list li > ul,
.page-template--content .conent_list li > ol {
  margin-top: 0.35rem;
  padding-left: 1rem;
  list-style-position: outside;
}

/* Layout-Builder: Zitat (quote) */
.page-template--content .quote-block {
  position: relative;
  margin: 3.4rem auto;
  max-width: 1000px;
  padding: clamp(1.8rem, 3vw, 2.8rem) clamp(1.35rem, 2.7vw, 2.7rem) clamp(1.7rem, 2.6vw, 2.3rem);
  border-radius: 16px;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.page-template--content .quote-block::after {
  content: none;
  position: absolute;
  left: 0.95rem;
  bottom: -30px;
  width: 88px;
  height: 30px;
  border-left: 2px solid rgba(0, 0, 0, 0.9);
  border-bottom: 2px solid rgba(0, 0, 0, 0.9);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 20px;
  pointer-events: none;
}

.page-template--content .quote-block__mark {
  position: absolute;
  top: 0.65rem;
  left: 1.15rem;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.92);
  pointer-events: none;
}

.page-template--content .quote-block__text {
  position: relative;
  z-index: 1;
  color: #000;
  text-align: left;
}

.page-template--content .quote-block__text p {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 3.15rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-template--content .quote-block__text p:first-child {
  padding-left: 1.05rem;
}

.page-template--content .quote-block__text strong,
.page-template--content .quote-block__text b {
  color: #000;
  font-weight: 700;
}

.page-template--content .quote-block__text em,
.page-template--content .quote-block__text i {
  color: #000;
  font-style: italic;
}

.page-template--content .quote-block__footer {
  margin-top: 1rem;
  margin-left: clamp(0.8rem, 1.8vw, 1.6rem);
  padding-top: 0.8rem;
  border-top: 2px solid rgba(0, 0, 0, 0.9);
  color: #000;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-style: normal;
  font-weight: 500;
  width: fit-content;
  max-width: 85%;
}

.page-template--content .quote-block__footer p {
  margin: 0;
  line-height: 1.25;
}

.page-template--content .quote-block__footer em,
.page-template--content .quote-block__footer i {
  font-style: normal;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .page-template--content .quote-block {
    border-radius: 14px;
    padding: 1.35rem 0.95rem 1.25rem;
    margin: 2.1rem 0 3rem;
  }

  .page-template--content .quote-block::after {
    left: 0.75rem;
    bottom: -24px;
    width: 62px;
    height: 24px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 14px;
  }

  .page-template--content .quote-block__mark {
    top: 0.45rem;
    left: 0.62rem;
  }

  .page-template--content .quote-block__text p {
    font-size: clamp(1.1rem, 5.75vw, 1.65rem);
    line-height: 1.2;
  }

  .page-template--content .quote-block__footer {
    margin-left: 0.65rem;
    max-width: calc(100% - 1.2rem);
    font-size: 1rem;
  }
}

/* Layout-Builder: Accordion / FAQ */
.page-template--content .block-accordion {
  margin: 1.5rem 0 0;
}

.page-template--content .block-accordion__header {
  margin: 0 0 1.5rem;
}

.page-template--content .block-accordion__header .conent_h2 {
  margin-top: 0;
}

.page-template--content .block-accordion__header .conent_p {
  margin-top: 0.75rem;
}

.page-template--content .block-accordion__list {
  --block-accordion-border: 2.5px;
}

.page-template--content .block-accordion__item {
  border-top: var(--block-accordion-border) solid #000;
  background-color: var(--site-accordion-bg, transparent);
}

.page-template--content .block-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border: 0;
  background: transparent;
  color: #000;
  text-align: left;
  font-weight: 500;
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
}

.page-template--content .block-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.25s ease;
}

.page-template--content .block-accordion__item.is-open .block-accordion__panel {
  grid-template-rows: 1fr;
}

.page-template--content .block-accordion__content {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  visibility: hidden;
}

/* conent_p-Margin würde beim Zuklappen aus dem Grid ausbrechen */
.page-template--content .block-accordion__content.conent_p {
  margin: 0;
}

.page-template--content .block-accordion__item.is-open .block-accordion__content {
  visibility: visible;
  padding-bottom: 1.25rem;
}

.page-template--content .block-accordion__content p,
.page-template--content .block-accordion__content ul,
.page-template--content .block-accordion__content ol {
  margin: 1.5rem 0 0;
}

.page-template--content .block-accordion__content > :first-child {
  margin-top: 0;
}

.page-template--content .block-accordion__content > :last-child {
  margin-bottom: 0;
}

.page-template--content .block-accordion__content h4,
.page-template--content .block-accordion__content h5,
.page-template--content .block-accordion__content h6 {
  font-weight: 700;
  line-height: 1.35;
}

.page-template--content .block-accordion__content h4 {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
}

.page-template--content .block-accordion__content h5 {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
}

.page-template--content .block-accordion__content h6 {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}

.page-template--content .block-accordion__content ul,
.page-template--content .block-accordion__content ol {
  padding-left: 1.35rem;
  list-style-position: outside;
}

.page-template--content .block-accordion__content li + li {
  margin-top: 0.35rem;
}

.page-template--content .block-accordion__content blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid #000;
}

.page-template--content .block-accordion__content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.page-template--content .block-accordion__content a:hover {
  opacity: 0.75;
}

.page-template--content .block-accordion__number {
  flex-shrink: 0;
  min-width: 2.5rem;
  margin-right: 0.25rem;
  font-weight: 500;
}

.page-template--content .block-accordion__title {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.page-template--content .block-accordion__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 5vw, 3.25rem);
  height: clamp(2.5rem, 5vw, 3.25rem);
  margin-left: auto;
  background-color: #000;
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.page-template--content .block-accordion__icon .ti-minus {
  display: none;
}

.page-template--content .block-accordion__item.is-open .block-accordion__icon .ti-plus {
  display: none;
}

.page-template--content .block-accordion__item.is-open .block-accordion__icon .ti-minus {
  display: inline-flex;
}

@media (max-width: 767.98px) {
  .page-template--content .block-accordion__trigger {
    font-size: 1.125rem;
  }

  .page-template--content .block-accordion__item.is-open .block-accordion__content {
    padding-bottom: 1rem;
  }
}

/* Layout-Builder: Bild */
.page-template--content .block-image {
  margin: 1.5rem 0 0;
}

.page-template--content .block-image__media {
  width: 100%;
  max-width: var(--block-image-max-width, 100%);
}

.page-template--content .block-image__caption {
  max-width: var(--block-image-max-width, 100%);
}

.page-template--content .block-image__img {
  border: 1px solid #80808030;
}

.page-template--content .block-image__img--placeholder {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f0f0f0;
}

/* Layout-Builder: Video (lightGallery) */
.page-template--content .block-video {
  margin: 1.5rem 0 0;
}

.page-template--content .block-align--center .block-video__media,
.page-template--content .block-video.block-align--center .block-video__media,
.page-template--content .block-video.block-align--center .block-video__caption {
  margin-inline: auto;
}

.page-template--content .block-align--right .block-video__media,
.page-template--content .block-video.block-align--right .block-video__media,
.page-template--content .block-video.block-align--right .block-video__caption {
  margin-inline: auto 0;
}

.page-template--content .block-video__media {
  position: relative;
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #0a0a0a;
}

.page-template--content .block-video__poster,
.page-template--content .block-video__poster-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border: none;
}

.page-template--content .block-video__poster-video {
  pointer-events: none;
}

.page-template--content .block-video__trigger--overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-template--content .block-video__trigger--overlay:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.page-template--content .block-video__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  background: #f5f5f5;
  padding: 1.5rem;
  text-align: center;
}

.page-template--content .block-video__placeholder-text {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-template--content .block-video__trigger {
  display: block;
  color: inherit;
  text-decoration: none;
}

.page-template--content .block-video__poster {
  /* Häufig bei YouTube-/JPEG-Thumbnails: 1px-Zeile am rechten Rand nach Skalierung */
  clip-path: inset(0 1px 0 0);
}

/* lightGallery: halbtransparenter Hintergrund, kein Seiten-Overflow */
.lg-outer {
  max-width: 100%;
}

.lg-backdrop {
  background-color: rgba(0, 0, 0, 0.65) !important;
}

/* lightGallery Video: kein Springen zwischen Poster und Player */
.lg-video-lightbox.lg-outer,
.lg-video-lightbox .lg-backdrop,
.lg-video-lightbox .lg-item,
.lg-video-lightbox .lg-content,
.lg-video-lightbox .lg-video-cont,
.lg-video-lightbox .lg-video-play-button,
.lg-video-lightbox .lg-video-poster,
.lg-video-lightbox .lg-img-wrap,
.lg-video-lightbox .lg-image {
  transition: none !important;
  animation: none !important;
}

.lg-video-lightbox .lg-item {
  opacity: 1 !important;
  transform: none !important;
}

.lg-video-lightbox .lg-video-poster,
.lg-video-lightbox .lg-video-play-button {
  display: none !important;
  pointer-events: none !important;
}

/* Lightbox: gleiche 16:9-Box für YouTube-, Mux- und HTML5-Videos */
.lg-video-lightbox .lg-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.lg-video-lightbox .lg-content {
  width: min(1280px, calc(100vw - 2rem));
  max-width: 100%;
  margin-inline: auto;
}

/* HTML5: Poster in der Lightbox erlauben */
.lg-video-lightbox:not(.lg-slide-iframe) .lg-item .lg-img-wrap,
.lg-video-lightbox:not(.lg-slide-iframe) .lg-item .lg-image {
  max-width: min(1280px, calc(100vw - 2rem));
  max-height: min(72vh, calc((100vw - 2rem) * 9 / 16));
  width: auto !important;
  height: auto !important;
  margin-inline: auto;
  object-fit: contain;
}

/* Mux/YouTube (iframe): kein Zwischen-Poster in der Lightbox */
.lg-video-lightbox.lg-slide-iframe .lg-item .lg-img-wrap,
.lg-video-lightbox.lg-slide-iframe .lg-item .lg-image,
.lg-video-lightbox.lg-slide-iframe .lg-video-poster {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.lg-video-lightbox .lg-video-cont {
  position: relative;
  width: min(1280px, calc(100vw - 2rem));
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, calc((100vw - 2rem) * 9 / 16));
  height: auto !important;
  margin-inline: auto;
  overflow: hidden;
  background: #000;
}

.lg-video-lightbox .lg-video-cont iframe,
.lg-video-lightbox .lg-video-cont video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.lg-video-lightbox.lg-slide-iframe .lg-video-cont iframe {
  opacity: 0;
}

.lg-video-lightbox.lg-slide-iframe .lg-video-cont.lg-iframe-ready iframe {
  opacity: 1;
}

.lg-video-lightbox.lg-show-after .lg-item.lg-complete .lg-img-wrap,
.lg-video-lightbox .lg-item.lg-complete .lg-img-wrap {
  display: none !important;
}

.page-template--content .block-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.page-template--content .block-video__play i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 2rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.page-template--content .block-video__trigger:hover .block-video__play i,
.page-template--content .block-video__trigger:focus-visible .block-video__play i {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.8);
}

.page-template--content .block-video__caption {
  max-width: 720px;
}

/* Layout-Builder: Tabellen (table_content) */
.page-template--content .block-table {
  margin: 1.5rem 0 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-template--content .table-desktop {
  width: 100%;
}

.page-template--content .table-mobile {
  display: none;
}

.page-template--content .table-card {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.4rem 1.6rem;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.page-template--content .table-card + .table-card {
  margin-top: 1rem;
}

.page-template--content .table-card-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.page-template--content .table-card-row + .table-card-row {
  margin-top: 0.25rem;
}

.page-template--content .table-card-label {
  font-weight: 600;
  color: var(--site-text, #1a1a1a);
  flex: 0 0 40%;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}

.page-template--content .table-card-value {
  flex: 1 1 auto;
  hyphens: auto;
}

.page-template--content .block-table .nowrap {
  white-space: nowrap;
}

.page-template--content .block-table .bold {
  font-weight: 600;
}

.page-template--content .block-table table.table {
  border-collapse: separate;
  width: 100%;
}

/* Toggle: Tabelle mit Titelzeile */
.page-template--content .block-table table.table.with-title thead th {
  background-color: #000;
  color: #fff;
  font-weight: 600;
  text-align: left;
}

.page-template--content .block-table table.table.with-title thead th a {
  color: #fff;
}

.page-template--content .block-table table.table th,
.page-template--content .block-table table.table td {
  padding: 0.6rem 0.9rem;
}

/* Toggle: Erste Spalte als Titelspalte */
.page-template--content .block-table table.table td.title-col {
  background-color: #000;
  color: #fff;
  font-weight: 600;
}

.page-template--content .block-table table.table td.title-col a {
  color: #fff;
}

.page-template--content .block-table .table-card-row.title-col .table-card-value {
  background-color: #000;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}

.page-template--content .block-table .table-card-row.title-col .table-card-value a {
  color: #fff;
}

.page-template--content .block-table table.table tbody tr:nth-child(odd) td:not(.title-col) {
  background-color: #f7f7f7;
}

.page-template--content .block-table table.table tbody tr:nth-child(even) td:not(.title-col) {
  background-color: #ededed;
}

@media (max-width: 1024px) {
  .page-template--content .table-desktop {
    display: none;
  }

  .page-template--content .table-mobile {
    display: block;
  }

  .page-template--content .mobile-label-row {
    display: none;
  }
}
