/*
 * TYPO3 fluid_styled_content spacing classes.
 * Maps "Abstand davor" and "Abstand danach" to visible spacing values.
 */

/* Abstand davor */
.frame-space-before-none { margin-top: 0 !important; padding-top: 0 !important; }
.frame-space-before-extra-small,
.frame-space-before-xs { margin-top: 0.75rem !important; }
.frame-space-before-small,
.frame-space-before-s { margin-top: 1.5rem !important; }
.frame-space-before-medium,
.frame-space-before-m { margin-top: 2.5rem !important; }
.frame-space-before-large,
.frame-space-before-l { margin-top: 4rem !important; }
.frame-space-before-extra-large,
.frame-space-before-xl { margin-top: 6rem !important; }

/* Abstand danach */
.frame-space-after-none { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.frame-space-after-extra-small,
.frame-space-after-xs { margin-bottom: 0.75rem !important; }
.frame-space-after-small,
.frame-space-after-s { margin-bottom: 1.5rem !important; }
.frame-space-after-medium,
.frame-space-after-m { margin-bottom: 2.5rem !important; }
.frame-space-after-large,
.frame-space-after-l { margin-bottom: 4rem !important; }
.frame-space-after-extra-large,
.frame-space-after-xl { margin-bottom: 6rem !important; }

/* Social Media content block spacing overrides. */
.frame-type-pn_reinecker_social_media_links.frame-space-before-none { margin-top: 0 !important; padding-top: 0 !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-before-extra-small,
.frame-type-pn_reinecker_social_media_links.frame-space-before-xs { margin-top: 0.75rem !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-before-small,
.frame-type-pn_reinecker_social_media_links.frame-space-before-s { margin-top: 1.5rem !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-before-medium,
.frame-type-pn_reinecker_social_media_links.frame-space-before-m { margin-top: 2.5rem !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-before-large,
.frame-type-pn_reinecker_social_media_links.frame-space-before-l { margin-top: 4rem !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-before-extra-large,
.frame-type-pn_reinecker_social_media_links.frame-space-before-xl { margin-top: 6rem !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-after-none { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-after-extra-small,
.frame-type-pn_reinecker_social_media_links.frame-space-after-xs { margin-bottom: 0.75rem !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-after-small,
.frame-type-pn_reinecker_social_media_links.frame-space-after-s { margin-bottom: 1.5rem !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-after-medium,
.frame-type-pn_reinecker_social_media_links.frame-space-after-m { margin-bottom: 2.5rem !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-after-large,
.frame-type-pn_reinecker_social_media_links.frame-space-after-l { margin-bottom: 4rem !important; }
.frame-type-pn_reinecker_social_media_links.frame-space-after-extra-large,
.frame-type-pn_reinecker_social_media_links.frame-space-after-xl { margin-bottom: 6rem !important; }

/*
 * TYPO3 content element "Nur Bilder".
 * The grid below intentionally uses the editor-selected imagecols value from
 * the content element. This means: 3 columns + 2 images = two 1/3-width images,
 * not two 1/2-width images.
 */
.frame-type-image .pn-image-grid {
  --pn-image-grid-gap: var(--bs-gutter-x, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--pn-image-grid-gap);
  width: 100%;
  margin: 0;
}

.frame-type-image .pn-image-grid--orient-0,
.frame-type-image .pn-image-grid:not(.pn-image-grid--orient-2) {
  justify-content: center;
}

.frame-type-image .pn-image-grid--orient-2 {
  justify-content: flex-start;
}

.frame-type-image .pn-image-grid__item {
  flex: 0 0 100%;
  max-width: 100%;
  margin: 0;
}

.frame-type-image .pn-image-grid--cols-2 .pn-image-grid__item {
  flex-basis: calc((100% - var(--pn-image-grid-gap)) / 2);
  max-width: calc((100% - var(--pn-image-grid-gap)) / 2);
}

.frame-type-image .pn-image-grid--cols-3 .pn-image-grid__item {
  flex-basis: calc((100% - (2 * var(--pn-image-grid-gap))) / 3);
  max-width: calc((100% - (2 * var(--pn-image-grid-gap))) / 3);
}

.frame-type-image .pn-image-grid__item a,
.frame-type-image .pn-image-grid__item picture,
.frame-type-image .pn-image-grid__item img {
  display: block;
  width: 100%;
}

.frame-type-image .pn-image-grid__item img {
  height: auto;
  max-width: 100%;
}

.frame-type-image .pn-image-grid__item a {
  text-decoration: none;
}

.frame-type-image .pn-image-grid__item a:hover img,
.frame-type-image .pn-image-grid__item a:focus-visible img {
  opacity: .88;
}

.frame-type-image .pn-image-grid__item figcaption {
  margin-top: .5rem;
  font-size: .95rem;
  line-height: 1.35;
}

/* Keep compatibility with already rendered fluid_styled_content gallery markup. */
.frame-type-image .ce-gallery { width: 100%; margin: 0; }
.frame-type-image .ce-outer,
.frame-type-image .ce-inner { width: 100%; float: none; margin: 0; }
.frame-type-image .ce-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bs-gutter-y, var(--bs-gutter-x, 1.5rem)) var(--bs-gutter-x, 1.5rem);
  width: 100%;
  margin: 0;
}
.frame-type-image .ce-gallery[data-ce-columns="2"] .ce-row,
.frame-type-image .ce-gallery.ce-columns-2 .ce-row,
.frame-type-image .ce-columns-2 .ce-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.frame-type-image .ce-gallery[data-ce-columns="3"] .ce-row,
.frame-type-image .ce-gallery.ce-columns-3 .ce-row,
.frame-type-image .ce-columns-3 .ce-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frame-type-image .ce-column { width: auto !important; max-width: none !important; float: none !important; margin: 0 !important; }
.frame-type-image figure.image { margin: 0; width: 100%; }
.frame-type-image figure.image a,
.frame-type-image figure.image picture,
.frame-type-image figure.image img { display: block; width: 100%; }
.frame-type-image figure.image img { max-width: 100%; height: auto; }
.frame-type-image figure.image figcaption { margin-top: .5rem; }

@media (max-width: 767.98px) {
  .frame-type-image .pn-image-grid--cols-2 .pn-image-grid__item,
  .frame-type-image .pn-image-grid--cols-3 .pn-image-grid__item {
    flex-basis: 100%;
    max-width: 100%;
  }

  .frame-type-image .ce-gallery[data-ce-columns="2"] .ce-row,
  .frame-type-image .ce-gallery[data-ce-columns="3"] .ce-row,
  .frame-type-image .ce-gallery.ce-columns-2 .ce-row,
  .frame-type-image .ce-gallery.ce-columns-3 .ce-row,
  .frame-type-image .ce-columns-2 .ce-row,
  .frame-type-image .ce-columns-3 .ce-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/*
 * Shared flowing text heading hierarchy.
 *
 * Scope is deliberately limited to direct content elements rendered inside the
 * sitepackage content column. This covers normal TYPO3 text elements and the
 * eRecht24 plugin/list output without touching nested container content,
 * navigation, footer, cards, sliders or dedicated content-block styling.
 */
.content-area > .frame-type-text .ce-bodytext h1,
.content-area > .frame-type-textpic .ce-bodytext h1,
.content-area > .frame-type-textmedia .ce-bodytext h1,
.content-area > .frame-type-html h1,
.content-area > .frame-type-list h1 {
  margin: 0 0 24px 0;
  font-size: clamp(1.75rem, 2.25vw, 2.35rem);
  line-height: 1.1;
  font-weight: 600;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.content-area > .frame-type-text .ce-bodytext h2,
.content-area > .frame-type-textpic .ce-bodytext h2,
.content-area > .frame-type-textmedia .ce-bodytext h2,
.content-area > .frame-type-html h2,
.content-area > .frame-type-list h2 {
  margin: 38px 0 18px 0;
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  line-height: 1.1;
  font-weight: 600;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.content-area > .frame-type-text .ce-bodytext h3,
.content-area > .frame-type-textpic .ce-bodytext h3,
.content-area > .frame-type-textmedia .ce-bodytext h3,
.content-area > .frame-type-html h3,
.content-area > .frame-type-list h3 {
  margin: 30px 0 16px 0;
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  line-height: 1.15;
  font-weight: 600;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.content-area > .frame-type-text .ce-bodytext h4,
.content-area > .frame-type-textpic .ce-bodytext h4,
.content-area > .frame-type-textmedia .ce-bodytext h4,
.content-area > .frame-type-html h4,
.content-area > .frame-type-list h4 {
  margin: 24px 0 14px 0;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.18;
  font-weight: 600;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.content-area > .frame-type-text .ce-bodytext h5,
.content-area > .frame-type-textpic .ce-bodytext h5,
.content-area > .frame-type-textmedia .ce-bodytext h5,
.content-area > .frame-type-html h5,
.content-area > .frame-type-list h5,
.content-area > .frame-type-text .ce-bodytext h6,
.content-area > .frame-type-textpic .ce-bodytext h6,
.content-area > .frame-type-textmedia .ce-bodytext h6,
.content-area > .frame-type-html h6,
.content-area > .frame-type-list h6 {
  margin: 20px 0 12px 0;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.2;
  font-weight: 600;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.content-area > .frame-type-text .ce-bodytext h1:first-child,
.content-area > .frame-type-textpic .ce-bodytext h1:first-child,
.content-area > .frame-type-textmedia .ce-bodytext h1:first-child,
.content-area > .frame-type-html h1:first-child,
.content-area > .frame-type-list h1:first-child,
.content-area > .frame-type-text .ce-bodytext h2:first-child,
.content-area > .frame-type-textpic .ce-bodytext h2:first-child,
.content-area > .frame-type-textmedia .ce-bodytext h2:first-child,
.content-area > .frame-type-html h2:first-child,
.content-area > .frame-type-list h2:first-child,
.content-area > .frame-type-text .ce-bodytext h3:first-child,
.content-area > .frame-type-textpic .ce-bodytext h3:first-child,
.content-area > .frame-type-textmedia .ce-bodytext h3:first-child,
.content-area > .frame-type-html h3:first-child,
.content-area > .frame-type-list h3:first-child,
.content-area > .frame-type-text .ce-bodytext h4:first-child,
.content-area > .frame-type-textpic .ce-bodytext h4:first-child,
.content-area > .frame-type-textmedia .ce-bodytext h4:first-child,
.content-area > .frame-type-html h4:first-child,
.content-area > .frame-type-list h4:first-child,
.content-area > .frame-type-text .ce-bodytext h5:first-child,
.content-area > .frame-type-textpic .ce-bodytext h5:first-child,
.content-area > .frame-type-textmedia .ce-bodytext h5:first-child,
.content-area > .frame-type-html h5:first-child,
.content-area > .frame-type-list h5:first-child,
.content-area > .frame-type-text .ce-bodytext h6:first-child,
.content-area > .frame-type-textpic .ce-bodytext h6:first-child,
.content-area > .frame-type-textmedia .ce-bodytext h6:first-child,
.content-area > .frame-type-html h6:first-child,
.content-area > .frame-type-list h6:first-child {
  margin-top: 0;
}

/*
 * Shared flowing text link style.
 *
 * Scope matches the flowing text/plugin heading rules above, but the selector is
 * intentionally broader than the first version: some plugins, including legal
 * text plugins, do not render as frame-type-list in every TYPO3 setup. Keep the
 * rule on direct content-area frames and explicitly exclude known non-text
 * layouts/content blocks so navigation, cards, media elements and special
 * components keep their dedicated styling.
 */
.content-area > .frame:not(.frame-layout-110):not(.frame-layout-111):not(.frame-layout-112):not(.frame-layout-120):not(.frame-type-image):not(.frame-type-menu):not(.frame-type-menu_pages):not(.frame-type-menu_subpages):not(.frame-type-menu_abstract):not(.frame-type-menu_section_pages):not(.frame-type-menu_sitemap_pages):not(.frame-type-pn_reinecker_accordion):not(.frame-type-pn_reinecker_accordion_container):not(.frame-type-pn_reinecker_accordion_tab):not(.frame-type-pn_reinecker_accordion_row_1col):not(.frame-type-pn_reinecker_accordion_row_1col_fullwidth):not(.frame-type-pn_reinecker_accordion_row_2col):not(.frame-type-pn_reinecker_accordion_row_3col):not(.frame-type-pn_reinecker_selected_products):not(.frame-type-pn_reinecker_contact_disruptor):not(.frame-type-pn_reinecker_social_media_links):not(.frame-type-pn_reinecker_youtube_video):not(.frame-type-pn_reinecker_home_info_tiles) a:not(.btn):not(.button-link):not(.footer-button-link):not(.page-link),
.content-area > .frame:not(.frame-layout-110):not(.frame-layout-111):not(.frame-layout-112):not(.frame-layout-120):not(.frame-type-image):not(.frame-type-menu):not(.frame-type-menu_pages):not(.frame-type-menu_subpages):not(.frame-type-menu_abstract):not(.frame-type-menu_section_pages):not(.frame-type-menu_sitemap_pages):not(.frame-type-pn_reinecker_accordion):not(.frame-type-pn_reinecker_accordion_container):not(.frame-type-pn_reinecker_accordion_tab):not(.frame-type-pn_reinecker_accordion_row_1col):not(.frame-type-pn_reinecker_accordion_row_1col_fullwidth):not(.frame-type-pn_reinecker_accordion_row_2col):not(.frame-type-pn_reinecker_accordion_row_3col):not(.frame-type-pn_reinecker_selected_products):not(.frame-type-pn_reinecker_contact_disruptor):not(.frame-type-pn_reinecker_social_media_links):not(.frame-type-pn_reinecker_youtube_video):not(.frame-type-pn_reinecker_home_info_tiles) a:not(.btn):not(.button-link):not(.footer-button-link):not(.page-link):visited,
.content-area > .frame:not(.frame-layout-110):not(.frame-layout-111):not(.frame-layout-112):not(.frame-layout-120):not(.frame-type-image):not(.frame-type-menu):not(.frame-type-menu_pages):not(.frame-type-menu_subpages):not(.frame-type-menu_abstract):not(.frame-type-menu_section_pages):not(.frame-type-menu_sitemap_pages):not(.frame-type-pn_reinecker_accordion):not(.frame-type-pn_reinecker_accordion_container):not(.frame-type-pn_reinecker_accordion_tab):not(.frame-type-pn_reinecker_accordion_row_1col):not(.frame-type-pn_reinecker_accordion_row_1col_fullwidth):not(.frame-type-pn_reinecker_accordion_row_2col):not(.frame-type-pn_reinecker_accordion_row_3col):not(.frame-type-pn_reinecker_selected_products):not(.frame-type-pn_reinecker_contact_disruptor):not(.frame-type-pn_reinecker_social_media_links):not(.frame-type-pn_reinecker_youtube_video):not(.frame-type-pn_reinecker_home_info_tiles) a:not(.btn):not(.button-link):not(.footer-button-link):not(.page-link):hover,
.content-area > .frame:not(.frame-layout-110):not(.frame-layout-111):not(.frame-layout-112):not(.frame-layout-120):not(.frame-type-image):not(.frame-type-menu):not(.frame-type-menu_pages):not(.frame-type-menu_subpages):not(.frame-type-menu_abstract):not(.frame-type-menu_section_pages):not(.frame-type-menu_sitemap_pages):not(.frame-type-pn_reinecker_accordion):not(.frame-type-pn_reinecker_accordion_container):not(.frame-type-pn_reinecker_accordion_tab):not(.frame-type-pn_reinecker_accordion_row_1col):not(.frame-type-pn_reinecker_accordion_row_1col_fullwidth):not(.frame-type-pn_reinecker_accordion_row_2col):not(.frame-type-pn_reinecker_accordion_row_3col):not(.frame-type-pn_reinecker_selected_products):not(.frame-type-pn_reinecker_contact_disruptor):not(.frame-type-pn_reinecker_social_media_links):not(.frame-type-pn_reinecker_youtube_video):not(.frame-type-pn_reinecker_home_info_tiles) a:not(.btn):not(.button-link):not(.footer-button-link):not(.page-link):focus,
.content-area > .frame:not(.frame-layout-110):not(.frame-layout-111):not(.frame-layout-112):not(.frame-layout-120):not(.frame-type-image):not(.frame-type-menu):not(.frame-type-menu_pages):not(.frame-type-menu_subpages):not(.frame-type-menu_abstract):not(.frame-type-menu_section_pages):not(.frame-type-menu_sitemap_pages):not(.frame-type-pn_reinecker_accordion):not(.frame-type-pn_reinecker_accordion_container):not(.frame-type-pn_reinecker_accordion_tab):not(.frame-type-pn_reinecker_accordion_row_1col):not(.frame-type-pn_reinecker_accordion_row_1col_fullwidth):not(.frame-type-pn_reinecker_accordion_row_2col):not(.frame-type-pn_reinecker_accordion_row_3col):not(.frame-type-pn_reinecker_selected_products):not(.frame-type-pn_reinecker_contact_disruptor):not(.frame-type-pn_reinecker_social_media_links):not(.frame-type-pn_reinecker_youtube_video):not(.frame-type-pn_reinecker_home_info_tiles) a:not(.btn):not(.button-link):not(.footer-button-link):not(.page-link):focus-visible,
.content-area > .frame:not(.frame-layout-110):not(.frame-layout-111):not(.frame-layout-112):not(.frame-layout-120):not(.frame-type-image):not(.frame-type-menu):not(.frame-type-menu_pages):not(.frame-type-menu_subpages):not(.frame-type-menu_abstract):not(.frame-type-menu_section_pages):not(.frame-type-menu_sitemap_pages):not(.frame-type-pn_reinecker_accordion):not(.frame-type-pn_reinecker_accordion_container):not(.frame-type-pn_reinecker_accordion_tab):not(.frame-type-pn_reinecker_accordion_row_1col):not(.frame-type-pn_reinecker_accordion_row_1col_fullwidth):not(.frame-type-pn_reinecker_accordion_row_2col):not(.frame-type-pn_reinecker_accordion_row_3col):not(.frame-type-pn_reinecker_selected_products):not(.frame-type-pn_reinecker_contact_disruptor):not(.frame-type-pn_reinecker_social_media_links):not(.frame-type-pn_reinecker_youtube_video):not(.frame-type-pn_reinecker_home_info_tiles) a:not(.btn):not(.button-link):not(.footer-button-link):not(.page-link):active {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration-line: underline !important;
  text-decoration-thickness: .06em;
  text-underline-offset: .14em !important;
}


/*
 * TYPO3 standard content element "Trenner".
 * Keep the styling scoped to normal content areas so footer/navigation and
 * special content blocks are not affected.
 */
.content-area > .frame-type-div {
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
}

.content-area > .frame-type-div .ce-div,
.content-area > .frame-type-div hr {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0;
  border: 0;
  background-color: #fdc815;
  color: #fdc815;
  opacity: 1;
}

.theme-mono-light .content-area > .frame-type-div .ce-div,
.theme-mono-light .content-area > .frame-type-div hr,
[data-theme="mono-light"] .content-area > .frame-type-div .ce-div,
[data-theme="mono-light"] .content-area > .frame-type-div hr {
  background-color: #000;
  color: #000;
}

.theme-mono-dark .content-area > .frame-type-div .ce-div,
.theme-mono-dark .content-area > .frame-type-div hr,
[data-theme="mono-dark"] .content-area > .frame-type-div .ce-div,
[data-theme="mono-dark"] .content-area > .frame-type-div hr {
  background-color: #fff;
  color: #fff;
}

/*
 * Unified content heading weights.
 *
 * Some product-detail and custom content elements render headlines through
 * different wrappers (fluid_styled_content header partial, Content Blocks,
 * container children). Keep the visual hierarchy in the font-size rules, but
 * normalize all content-area headline weights to 600.
 */
.frame h1,
.frame h2,
.frame h3,
.frame h4,
.frame h5,
.frame h6,
.frame .ce-header h1,
.frame .ce-header h2,
.frame .ce-header h3,
.frame .ce-header h4,
.frame .ce-header h5,
.frame .ce-header h6,
.frame .frame-header h1,
.frame .frame-header h2,
.frame .frame-header h3,
.frame .frame-header h4,
.frame .frame-header h5,
.frame .frame-header h6,
.product-detail-gallery-header h1,
.product-detail-gallery-header h2,
.product-detail-gallery-header h3,
.product-detail-two-column-section h1,
.product-detail-two-column-section h2,
.product-detail-two-column-section h3,
.product-detail-two-column-section h4,
.product-detail-two-column-section h5,
.product-detail-two-column-section h6,
.product-detail-text-section h1,
.product-detail-text-section h2,
.product-detail-text-section h3,
.product-detail-text-section h4,
.product-detail-text-section h5,
.product-detail-text-section h6,
.product-detail-tech-section h1,
.product-detail-tech-section h2,
.product-detail-tech-section h3,
.product-detail-tech-section h4,
.product-detail-downloads-section h1,
.product-detail-downloads-section h2,
.product-detail-downloads-section h3,
.youtube-video-content-block h1,
.youtube-video-content-block h2,
.youtube-video-content-block h3,
.youtube-video-content-block h4,
.youtube-video-content-block h5,
.youtube-video-content-block h6 {
  font-weight: 600 !important;
}


/*
 * ke_search configuration-only plugin.
 * Keep the searchbox plugin active so the result list can load its FlexForm
 * configuration, but hide its frontend output when editors select the
 * dedicated Appearance > Layout value.
 */
.frame-layout-160,
.layout-160 {
  display: none !important;
}
