
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

// <weight>: Use a value from 100 to 900
// <uniquifier>: Use a unique and descriptive class name

.montserrat-<uniquifier> {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}



* {
  margin: 0;
  padding: 0;
	  font-family: "Montserrat", sans-serif;
}

html {  scroll-padding-top: 200px;}



#pageid1 footer {
  margin-top: 00px !important;
  padding-top: 00px !important;
}
#pageid1 #c205 {min-height: 70vh;}
#pageid1 #c205 h1 {padding-top: 60px;}
#pageid1 #c205 .gallery-item picture {
	width: 90%; padding-top: 8vh;}




.headerimage-inner .slick-dotted.slick-slider {
  margin-bottom: 0px; 
}
#footer .textmedia-gallery img {
        display: block;
    margin: 0;
	margin-bottom: 10px;
}

.hellgrau {background: #f3f3f3 ;}


main p {margin-bottom: 0.2rem;}




.breadcrumps p {text-transform: uppercase;}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    font-weight: bold;
}

/* Nur sichtbar, wenn per Tastatur fokussiert */
.skip-link:focus {
    top: 10px;
}

.contact-bar{
  display:flex;
  align-items:center;
  gap:24px;
  font-size:14px;
  color:#111;
}

.contact-item{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:inherit;
  text-decoration:none;
}

.contact-item i{
  font-size:16px;
  line-height:1;
}


/*
footer p strong,
footer  p i
 {


	font-weight: normal;
	font-style: normal;
	
}
*/


.filelink-list span:before {
  font-family: 'Font Awesome\ 5 Free';
  content: '\f1c1';
  margin: 0 5px 0 0px;
  color: #79ac2b;
  font-size: 30px;
  font-weight: 900;
}



.news-archiv .news-img-wrap img {
  filter: grayscale(100%);
}



.slick-slide figure .caption {
  padding-top: 0.25rem;
  font-size: 5rem;
  word-wrap: break-word;
  opacity: 0.8;
  position: absolute;
  z-index: 10000;
  border: 2;
  top: 35%;
  text-align: center;
  margin: 0 auto;
  width: 100%;
	color:#fff;
	font-weight: bold;
}



main a {
  color:#0b0c0c ;
  text-decoration: none;
}


.frame-custom-22 .gallery-item img {  width: 80%;}
.frame-custom-23 .gallery-item img {  width: 60%;}
.frame-custom-24 .gallery-item img {  width: 40%;}
.frame-custom-25 .gallery-item img {  width: 20%;}
.frame-custom-26 .gallery-item img {  width: 10%;}

.frame-custom-27 .gallery-item img {  width: 80%;float: left;}
.frame-custom-28 .gallery-item img {  width: 60%;float: left;}
.frame-custom-29 .gallery-item img {  width: 40%; float: left;}
.frame-custom-30 .gallery-item img {  width: 20%;float: left;}
.frame-custom-31 .gallery-item img {  width: 10%;float: left;}



.frame a[class=""], .frame a:not([class]) {
  color: #303030;
}

.container .row .col .row .container {padding:0;}
.container .row .col .row .container .row {padding:0; margin:0;}
.container .row .col .row .container .row .col {padding:0; margin:0;}



.powermail_tab_navigation .pull-right {float: right;}
.powermail_tab_navigation .pull-left {float: left;}
.btn-group {width: 100%;}
 legend {
    font-size: 1.5rem;
    margin-top: 40px;
  }

.powermail_fieldset .col-md-6 {    width: 100%; }


.carousel-item-bodytext a {background-color:#216096; color:#fff !important; ; padding: 6px 14px; border-radius: 4px;}
.carousel-item-bodytext a:hover {background-color:#009770 !important; }
/*###SUCHE*/

.kopfbereich .submitbutt {float: left;}

.slick-slide img {
    display: block;
    width: 100%;
	margin: 0 auto;
}

.slider {
	display: table !important;
	table-layout: fixed !important;
	width: 100% !important;
	position: relative;
	background: #888;
}
.slick-prev, .slick-next {z-index: 100000;}
slider .container {max-width: inherit !important; width: 100% !important;}
slider .container .col, slider .container, 
slider .container .row {padding: 0; margin:0;}
slider h2 {display: none !important;}

 .slick-prev {left: 25px !important;}
.slick-next {right: 25px !important;}

.slick-next::before,
.slick-prev::before {color:#0089cc;font-size: 2.5rem;}

ul.slick-dots {
    bottom: 3% !important;
}

span.resetbutt a {max-width: 180px !important;}
/*###SUCHE*/

.copyright p {font-size: 0.8rem;}

.rootline p {margin-bottom: 0; padding: 8px 0;  text-transform: uppercase; font-size: 1rem;}






span.submitbutt input{
  box-sizing: border-box !important;
  display: inline-block!important;
  font-size: .888em!important;
  padding: 0.85em 0.2rem !important;
  line-height: 1em!important;
  color: #262626!important;
  background-color: #fff !important;
  border: 2px solid #262626!important;
  border-radius: 1.5em !important;
  text-decoration: none !important;
  text-align: center !important;
  margin: 0 !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  -webkit-transition: all .15s !important;
  transition: all .15s !important;
  margin-left: 10px !important;
  max-width: 120px !important;
  min-width: 100px !important;
}



.t3s-slickslider .slick-slide {
  padding: 0.1%;
}



/*++++++ Back to top btn Ende ++++*/


.frame-background-primary h2 {color:#fff !important;}


/* =========================================
   Typografie
   ========================================= */

body h1,
body .h1,
body h2,
body .h2,
body h3,
body .h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600 !important;
  font-style: normal;
  color: #111111;
}

body p {
  font-family: "Montserrat", sans-serif;
  font-weight: 500 !important;
  font-style: normal;
  color: #222222;
}

/* H1 */
body h1,
body .h1 {
  position: relative;
  margin: 0 0 1.4rem;
  padding-bottom: 0.75rem;
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

body h1::after,
body .h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 95px;
  height: 3px;
  background: #e31b23;
}

/* H2 */
body h2,
body .h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

/* H3 */
body h3,
body .h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0;
}

/* Paragraph */
body p {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  line-height: 1.55;
}




.kopfbereich .textmedia,
.footertext .textmedia {gap:0;}

.logoimage .gallery-item figure {max-width: 65%;margin: 0 auto;}


.hunderter .megazeil,
.hunderter .ce-outer,
.hunderter .ce-row,
.hunderter .ce-gallery,
.hunderter .ce-textpic,
.hunderter .image { width: 100% !important;}
.hunderter .container {padding: 0 !important;}
.hunderter .frame {width: 100%; height: auto; margin: 0;
padding: 0;}

.hunderter .ce-gallery[data-ce-columns="3"] .ce-column {
    width: 33.33333% !important;}

.hunderter {max-width: 100% !important; padding: 0 !important; z-index: 0;}
.hunderter .ce-gallery img {padding: 0;width: 100%; }
.hunderter .ce-column {padding: 0 !important ;}
.hunderter .textmedia {gap:0;}
.hunderter hr {height: 0; padding: 2% 0; background:none !important;}
.hunderter .frame-container-default {
  max-width: 100%; padding: 0; margin:0;
}


.headerimage {position: relative; width: 100%; overflow: hidden; margin-bottom: 0.5%;}
.headerimage .carousel-image picture {width: 100%;}
.headerimage .carousel .carousel-content-inner,
.headerimage  .frame-container {min-width: 100% !important; max-width: inherit !important; padding: 0; margin:0; }

#pageid1 .headerimage .carousel .carousel-content-inner {min-height: 60vh;}

.headerimage .carousel .carousel-content {  height: inherit;}
.headerimage .carousel-item-type-image .carousel-image img {	width: 100%;}
.headerimage .frame {padding: 0;}
.headerimage .carousel .item {height: auto;}


.headerimage .carousel-image {
  display: block;
	z-index: 1;
  width: 100%;
}

.frame-custom-10 .image {max-width: 50%;}
.frame-custom-11 .image {max-width: 65%;}
.frame-custom-12 .image {max-width: 80%;}


.frame-space-before-extra-small {margin-top:0.5%;display: block;}
.frame-space-before-small {margin-top:3%!important;display: block;}
.frame-space-before-medium {margin-top:6% !important;display: block;}
.frame-space-before-large {margin-top:9%;display: block;}

.frame-space-after-extra-small {margin-bottom:0.5%;display: block;}
.frame-space-after-small {margin-bottom:3%;display: block;}
.frame-space-after-medium {margin-bottom:6%;display: block;}
.frame-space-after-large {margin-bottom:9%; display: block;}

.textmedia, .textpic {
		grid-column-gap: rem;
	gap: 0rem 2rem;
}





/* Optional: Pfeile im Slider auch dunkler (besser lesbar) */
.slick-next::before,
.slick-prev::before{
  color: var(--stwv-blue) !important;
}

/* =========================================
   Hintergründe -  Layout
   ========================================= */

	.grau {
	   background-color: #faf6f7;
		width: 100%;
	}

	.rot {
		background-image: url("/fileadmin/user_upload/header/header-bg.jpg");
		background-size: 100%;
		background-position: center;
		background-repeat: no-repeat;
	}


	.rot h2 , .rot p  {
		color:white;
	}

	.rot .gallery-item img {
  		border: 5px solid #fff;
	}

/* =========================================
   RTE Button-Klassen
   ========================================= */

/* Basis */
a.btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  min-height: 48px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
  box-sizing: border-box;
}

/* Hover/Focus allgemein */
a.btn:hover,
.btn:hover {
  text-decoration: none !important;
  transform: translateY(-1px);
}

a.btn:focus,
.btn:focus {
  outline: none;
}

a.btn:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 2px;
}

/* Rot */
a.btn.btnrot,
.btn.btnrot {
  background: linear-gradient(180deg, #f3282f 0%, #cf1625 100%);
  color: #ffffff !important;
  border-color: #cf1625;
  box-shadow: 0 8px 18px rgba(207, 22, 37, 0.18);
}

a.btn.btnrot:hover,
.btn.btnrot:hover {
  background: linear-gradient(180deg, #ff3138 0%, #b8121f 100%);
  color: #ffffff !important;
  border-color: #b8121f;
}

a.btn.btnrot:active,
.btn.btnrot:active {
  transform: translateY(0);
}

/* Weiß / hellgrau */
a.btn.btnweiss,
.btn.btnweiss {
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
  color: #2f2f2f !important;
  border-color: #d8d8d8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

a.btn.btnweiss:hover,
.btn.btnweiss:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eaeaea 100%);
  color: #111111 !important;
  border-color: #cfcfcf;
}

a.btn.btnweiss:active,
.btn.btnweiss:active {
  transform: translateY(0);
}


/* =========================================
   Hero / Header SE Elektro
   ========================================= */

.slider-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background-color: #0e1f35;
  background-image: url("/fileadmin/user_upload/slider/hero.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.slider-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 22, 39, 0.78) 0%,
      rgba(10, 22, 39, 0.68) 22%,
      rgba(10, 22, 39, 0.42) 45%,
      rgba(10, 22, 39, 0.08) 65%,
      rgba(10, 22, 39, 0.02) 100%
    );
  pointer-events: none;
}

.slider-hero .hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 70px 0 80px;
}

.hero-es {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-es__content {
  max-width: 560px;
  color: #ffffff;
  padding: 10px 0;
}

.hero-es__title {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-es__subtitle {
  margin: 0 0 30px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.35;
}

.hero-es__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 30px;
}

.hero-es__usp {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-es__usp li {
  position: relative;
  padding-left: 18px;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero-es__usp li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffffff;
  font-weight: 700;
}

.slider-hero picture,
.slider-hero img,
.slider-hero video,
.slider-hero .carousel,
.slider-hero .carousel-inner,
.slider-hero .carousel-item {
  min-height: 520px;
}

.slider-hero img,
.slider-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .slider-hero,
  .slider-hero .hero-overlay,
  .slider-hero picture,
  .slider-hero img,
  .slider-hero video,
  .slider-hero .carousel,
  .slider-hero .carousel-inner,
  .slider-hero .carousel-item {
    min-height: 480px;
  }

  .slider-hero .hero-overlay {
    padding: 60px 0 70px;
  }

  .hero-es__content {
    max-width: 520px;
  }

  .hero-es__subtitle {
    font-size: 1.12rem;
  }

  .hero-es__usp {
    gap: 10px 22px;
  }
}

@media (max-width: 767.98px) {
  .slider-hero,
  .slider-hero .hero-overlay,
  .slider-hero picture,
  .slider-hero img,
  .slider-hero video,
  .slider-hero .carousel,
  .slider-hero .carousel-inner,
  .slider-hero .carousel-item {
    min-height: 420px;
  }

  .slider-hero .hero-overlay {
    padding: 50px 0 60px;
    align-items: flex-start;
  }

  .hero-es__content {
    max-width: 100%;
  }

  .hero-es__title {
    margin-bottom: 18px;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-es__subtitle {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .hero-es__buttons {
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-es__usp {
    flex-direction: column;
    gap: 10px;
  }

  .hero-es__usp li {
    font-size: 0.98rem;
  }
}

/* =========================================
   Hero / Header SE Elektro ENDE
   ========================================= */

/* =========================================
   Header / Navigation
   ========================================= */

.kopfbereich {
  position: relative;
  z-index: 50;
  background-color: #c70000;
  background-image: url("/fileadmin/user_upload/header/header-bg.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.kopfbereich .container {
  max-width: 1280px;
}

.kopfbereich .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 110px;
  padding: 0 8px;
}

.kopfbereich .header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.kopfbereich .header-logo a,
.kopfbereich .header-logo picture,
.kopfbereich .header-logo img {
  display: block;
}

.kopfbereich .header-logo img {
  width: auto;
  max-height: 65px;
}

/* Navigation */
.kopfbereich .header-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  margin-left: auto;
}

.kopfbereich .navilo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.kopfbereich .navilo > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.kopfbereich .navilo > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.kopfbereich .navilo > li > a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.kopfbereich .navilo > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.kopfbereich .navilo > li > a:hover::after,
.kopfbereich .navilo > li.active > a::after,
.kopfbereich .navilo > li.current > a::after,
.kopfbereich .navilo > li.act > a::after {
  transform: scaleX(1);
}

.kopfbereich .navilo > li.active > a,
.kopfbereich .navilo > li.current > a,
.kopfbereich .navilo > li.act > a {
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .kopfbereich .header-row {
    min-height: 92px;
    gap: 24px;
  }

  .kopfbereich .header-logo img {
    max-height: 62px;
  }

  .kopfbereich .navilo {
    gap: 28px;
  }

  .kopfbereich .navilo > li > a {
    font-size: 0.98rem;
  }
}

@media (max-width: 767.98px) {
  .kopfbereich .header-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    padding: 18px 8px;
  }

  .kopfbereich .header-logo img {
    max-height: 56px;
  }

  .kopfbereich .header-menu {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .kopfbereich .navilo {
    width: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 22px;
  }

  .kopfbereich .navilo > li > a {
    min-height: 36px;
    font-size: 0.95rem;
  }
}

.kopfbereich nav.header-menu ul.navilo > li > a,
.kopfbereich nav.header-menu ul.navilo > li > a:link,
.kopfbereich nav.header-menu ul.navilo > li > a:visited {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.kopfbereich nav.header-menu ul.navilo > li > a:hover,
.kopfbereich nav.header-menu ul.navilo > li > a:focus,
.kopfbereich nav.header-menu ul.navilo > li > a:active {
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0.9;
  transform: translateY(-1px);
}

/* alte Pseudos neutralisieren */
.kopfbereich nav.header-menu ul.navilo > li > a::before {
  content: none;
}

/* neuer weißer Strich */
.kopfbereich nav.header-menu ul.navilo > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

/* nur bei Hover und aktivem Menüpunkt sichtbar */
.kopfbereich nav.header-menu ul.navilo > li > a:hover::after,
.kopfbereich nav.header-menu ul.navilo > li > a:focus::after,
.kopfbereich nav.header-menu ul.navilo > li.active > a::after,
.kopfbereich nav.header-menu ul.navilo > li.current > a::after,
.kopfbereich nav.header-menu ul.navilo > li.act > a::after,
.kopfbereich nav.header-menu ul.navilo > li.activeItem > a::after {
  transform: scaleX(1);
}

.kopfbereich .header-logo > .frame {
  margin: 0;
  padding: 0;
}



/* =========================================
   Header / Navigation ENDE
   ========================================= */
   
/* =========================================
   Card Group - Referenzen
   Ziel: #c12
   ========================================= */

/* =========================================
   Card Group - Referenzen
   Ziel: #c12
   ========================================= */

#c12 {
  padding: 28px 0 50px;
}

#c12 .frame-header {
  text-align: center;
  margin-bottom: 30px;
}

#c12 .frame-header h1,
#c12 .frame-header h2,
#c12 .frame-header h3 {
  margin-bottom: 0;
}

/* WICHTIG:
   keine eigene Sonderbreite mehr,
   sondern im normalen TYPO3-Contentraster laufen lassen */
#c12 .card-group-element {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 34px;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* 2 Spalten innerhalb der normalen Contentbreite */
#c12 .card-group-element-item {
  flex: 0 0 calc((100% - 34px) / 2);
  max-width: calc((100% - 34px) / 2);
  display: flex;
}

/* Karte */
#c12 .card-group-element-item .card {
  position: relative;
  width: 100%;
  aspect-ratio: 2.25 / 1;
  min-height: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  padding: 0;
  display: block;
  box-shadow: none;
}

/* Bild vollflächig */
#c12 .card-group-element-item .card-img-top {
  position: absolute;
  inset: 0;
  margin: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  display: block;
}

#c12 .card-group-element-item .card-img-top picture,
#c12 .card-group-element-item .card-img-top img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blur bleibt */
#c12 .card-group-element-item .card-img-top img {
  filter: blur(2.4px) brightness(0.62);
  transform: scale(1.05);
}

/* Overlay */
#c12 .card-group-element-item .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  z-index: 1;
}

/* Inhalt */
#c12 .card-group-element-item .card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 24px;
}

/* Titel */
#c12 .card-group-element-item .card-title {
  width: 100%;
  max-width: 34ch;
  margin: 0 0 8px auto;
  align-self: flex-end;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.18;
  text-align: right;
}

/* Text */
#c12 .card-group-element-item .card-text,
#c12 .card-group-element-item .card-body p {
  width: 100%;
  max-width: 34ch;
  margin: 0 0 14px auto;
  color: #ffffff;
}

/* TYPO3 text-right behalten */
#c12 .card-group-element-item .card-body p.text-right {
  text-align: right;
}

/* Links */
#c12 .card-group-element-item .card-body a {
  text-decoration: none;
}

/* Tablet */
@media (max-width: 991.98px) {
  #c12 .card-group-element {
    gap: 22px;
  }

  #c12 .card-group-element-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #c12 .card-group-element-item .card {
    aspect-ratio: 2 / 1;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  #c12 {
    padding: 24px 0 36px;
  }

  #c12 .frame-header {
    margin-bottom: 20px;
  }

  #c12 .card-group-element {
    gap: 18px;
  }

  #c12 .card-group-element-item .card {
    aspect-ratio: 1.9 / 1;
  }

  #c12 .card-group-element-item .card-body {
    padding: 18px 16px;
  }

  #c12 .card-group-element-item .card-title {
    font-size: 0.98rem;
  }

  #c12 .card-group-element-item .card-text,
  #c12 .card-group-element-item .card-body p {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }
}

/* =========================================
   Card Group - Referenzen ENDE
   ========================================= */
/* =========================================
   Card Group - Referenzen ENDE
   ========================================= */

/* =========================================
   Card Group - Leistungen
   ========================================= */

.frame-type-card_group .card-group-element {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 26px;
  margin: 0 auto;
}

.frame-type-card_group .card-group-element-item {
  flex: 0 0 calc(33.333% - 18px);
  max-width: calc(33.333% - 18px);
  display: flex;
}

/* zweite Reihe bei 5 Cards optisch mittiger */
.frame-type-card_group .card-group-element-item:nth-child(4),
.frame-type-card_group .card-group-element-item:nth-child(5) {
  flex: 0 0 calc(29% - 18px);
  max-width: calc(29% - 18px);
}

.frame-type-card_group .card-group-element-item .card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  min-height: 145px;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
  padding: 28px 24px 22px;
}

/* Bild/Icon links */
.frame-type-card_group .card-group-element-item .card-img-top {
  flex: 0 0 64px;
  max-width: 64px;
  margin-right: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.frame-type-card_group .card-group-element-item .card-img-top picture,
.frame-type-card_group .card-group-element-item .card-img-top img {
  display: block;
  width: 100%;
  height: auto;
}

.frame-type-card_group .card-group-element-item .card-body {
  flex: 1 1 auto;
  padding: 0;
}

/* Titel */
.frame-type-card_group .card-group-element-item .card-title {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.15;
  color: #111111;
}

/* Text */
.frame-type-card_group .card-group-element-item .card-text,
.frame-type-card_group .card-group-element-item .card-body p {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.25;
  color: #222222;
}

/* falls Links in der Card sind */
.frame-type-card_group .card-group-element-item .card-body a {
  color: inherit;
  text-decoration: none;
}

/* Wrapper drumherum nicht unnötig aufblasen */
.frame-type-card_group .frame,
.frame-type-card_group .frame-group-container,
.frame-type-card_group .frame-group-inner,
.frame-type-card_group .frame-container,
.frame-type-card_group .frame-inner {
  padding: 0;
}

/* Tablet */
@media (max-width: 991.98px) {
  .frame-type-card_group .card-group-element {
    gap: 24px;
  }

  .frame-type-card_group .card-group-element-item,
  .frame-type-card_group .card-group-element-item:nth-child(4),
  .frame-type-card_group .card-group-element-item:nth-child(5) {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .frame-type-card_group .card-group-element-item .card {
    min-height: 135px;
    padding: 24px 20px 20px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .frame-type-card_group .card-group-element {
    gap: 18px;
  }

  .frame-type-card_group .card-group-element-item,
  .frame-type-card_group .card-group-element-item:nth-child(4),
  .frame-type-card_group .card-group-element-item:nth-child(5) {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .frame-type-card_group .card-group-element-item .card {
    min-height: unset;
    padding: 20px 18px;
  }

  .frame-type-card_group .card-group-element-item .card-img-top {
    flex: 0 0 54px;
    max-width: 54px;
    margin-right: 14px;
  }

  .frame-type-card_group .card-group-element-item .card-title {
    font-size: 1rem;
  }

  .frame-type-card_group .card-group-element-item .card-text,
  .frame-type-card_group .card-group-element-item .card-body p {
    font-size: 0.92rem;
  }
}

/* =========================================
   Card Group - Leistungen ENDE
   ========================================= */

#footer {
  background-image: url("/fileadmin/user_upload/footer.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

#footer h3 {
  color: #ffffff;
  font-size: 1rem
}

#footer p {
  font-size: 0.85rem;
  color: #ffffff
}

#c9 .gallery-row {
  display: flex;
  justify-content: center;
  gap: 3px;
}

#c9 .gallery-item {
  width: auto;
  flex: 0 0 auto;
  margin: 0 !important
}

#c8 .gallery-row {
  display: flex;
  justify-content: center;
}

#c8 .gallery-item {
  flex: 0 0 auto;
  margin: 0 auto !important;
}

#c8 .image,
#c8 figure,
#c8 picture {
  display: flex;
  justify-content: center;
}


#inhalt .frame {
  --frame-outer-spacing-before: 2%;
  --frame-outer-spacing-after: 2%;
}

#inhalt > article > .grau,
#inhalt > article > .rot,
#inhalt > article > .hellgrau {
  padding-top: 1%;
  padding-bottom: 1%;
}

#pageid6 #inhalt .frame {
  --frame-outer-spacing-before: 0%;
  --frame-outer-spacing-after: 0%;
}


/* =========================================
   Links allgemein / Footer
   ========================================= */

/* Links auf der gesamten Seite rot */
main a,
.frame a:not([class]),
.frame a[class=""],
.frame a:not([class]):visited,
.frame a[class=""]:visited {
  color: #e31b23;
  text-decoration: none;
}

/* Hover allgemein */
main a:hover,
main a:focus,
.frame a:not([class]):hover,
.frame a[class=""]:hover,
.frame a:not([class]):focus,
.frame a[class=""]:focus {
  color: #c70000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Links NUR im Footer weiß */
#footer a,
#footer a:link,
#footer a:visited,
#footer .frame a:not([class]),
#footer .frame a[class=""],
#footer .frame a:not([class]):visited,
#footer .frame a[class=""]:visited {
  color: #ffffff;
}

/* Hover NUR im Footer */
#footer a:hover,
#footer a:focus,
#footer .frame a:not([class]):hover,
#footer .frame a[class=""]:hover,
#footer .frame a:not([class]):focus,
#footer .frame a[class=""]:focus {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}