
@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 .simple-hero {
	min-height: 900px;}

#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;}



/* =========================================
   Einfacher Header / Hero
   ========================================= */

#pageid21 .simple-hero {
  background-image: url("https://host52.ssl-net.net/acham_co.at/fileadmin/_processed_/2/2/csm_schaetzgutachten_c169add9d7.jpg");
}

#pageid20 .simple-hero {
  background-image: url("https://host52.ssl-net.net/acham_co.at/fileadmin/_processed_/7/d/csm_energieausweis_691dbcb0cf.jpg");
}

#pageid19 .simple-hero {
  background-image: url("https://host52.ssl-net.net/acham_co.at/fileadmin/_processed_/4/8/csm_bodengutachten_d0ffb69f44.jpg");
}

#pageid18 .simple-hero {
  background-image: url("https://host52.ssl-net.net/acham_co.at/fileadmin/_processed_/8/1/csm_bauaufsicht_cb19791512.jpg");
}

#pageid17 .simple-hero {
  background-image: url("https://host52.ssl-net.net/acham_co.at/fileadmin/_processed_/b/6/csm_acham-1_a7b6c7b83b.jpg");
}

.simple-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("https://host52.ssl-net.net/acham_co.at/fileadmin/user_upload/Leistungen/010_.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.simple-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;
  transform: scale(1);
  animation: simpleHeroZoom 18s ease-in-out infinite alternate;
  will-change: transform;
}

.simple-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.simple-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 24px;
  color: #ffffff;
}

.simple-hero__kicker {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.simple-hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 600;
  color: #ffffff;
}

.simple-hero h1::after {
  content: "";
  display: block;
  width: 82px;
  height: 3px;
  margin-top: 28px;
  background-color: #e20613;
}

.simple-hero__content > p:not(.simple-hero__kicker) {
  max-width: 620px;
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  color: #ffffff;
}

.simple-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.simple-hero__button:hover,
.simple-hero__button:focus {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #1f1f1f;
  text-decoration: none;
}

@keyframes simpleHeroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* =========================================
   Mobil
   ========================================= */

@media (max-width: 991.98px) {
  .simple-hero {
    min-height: 460px;
  }

  .simple-hero__content {
    padding: 76px 22px;
  }

  .simple-hero__content > p:not(.simple-hero__kicker) {
    font-size: 17px;
  }
}

@media (max-width: 767.98px) {
  .simple-hero {
    min-height: 420px;
    align-items: flex-end;
  }

  .simple-hero::before {
    animation-duration: 22s;
  }

  .simple-hero__overlay {
    background: rgba(0, 0, 0, 0.52);
  }

  .simple-hero__content {
    padding: 90px 20px 54px;
  }

  .simple-hero h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .simple-hero h1::after {
    width: 68px;
    margin-top: 22px;
  }

  .simple-hero__content > p:not(.simple-hero__kicker) {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 28px;
  }

  .simple-hero__button {
    width: 100%;
    max-width: 280px;
  }
}

.headerimage-inner .slick-dotted.slick-slider {
  margin-bottom: 0px; 
}
#footer .textmedia-gallery img {
    height: 70px;
    width: auto;
    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;
padding:5px 0;
  color:#111;
	  justify-content: flex-end; 
}

.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;}


.kopfbereich {background:#fff;}
.mobilehead {display: none;}
.kopfbereich .logo {  margin-top: 0.4%;   }
.kopfbereich .menu { }
.kopfbereich .headerright {float: right; padding-top: 22px;direction: ltr;   }
.kopfbereich  .textmedia  {gap:0;}
.kopfbereich .frame {padding: 0; }
.kopfbereich .row {--bs-gutter-x: 0px;}
.kopfbereich {  z-index: 100;  position: fixed;   width: 100%;  transform: none; position: sticky;  top: 0;  }
.kopfbereich .rechterbereich {float: right; margin-left: 10px; padding-top: 0.2%;}
.kopfbereich .sprachenbereich {float: right; margin-left: 10px;}
footer {
  margin-top: 50px;
  padding-top: 60px;

  background-color: #f3f3f3 ;
}



/* 1) Flex-Header */
.header-row{
  display:flex;
  align-items:center;
  width:100%;
  gap: 0;             
	padding: 20px 0;/* kein extra Abstand zwischen Blöcken */
}
.header-row{
  position: relative;
  z-index: 5000;
  overflow: visible;   /* wichtig: darf nicht hidden sein */
}

.header-menu.menu{
  position: relative;
  z-index: 6000;
  overflow: visible;   /* wichtig */
}

.logomenu {padding-bottom: 20px;}
.header-logo { flex: 0 0 250px; display:flex; align-items:center; }

.logosmenu {
  display: flex;
  justify-content: flex-end; /* rechtsbündig */
  align-items: center;
  gap: 20px;                 /* Abstand zwischen Logos */
}

.logosmenu img {
  height: 40px;              /* FIX: 40px Höhe */
  width: auto;
  display: block;
}

/* 4) Menü nimmt den Rest und startet links (nicht zentriert) */
.header-menu{
  flex: 1 1 auto;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-width: 0;        /* verhindert komische Überläufe */
}

/* 5) Menü-UL resetten (hier entsteht oft der große Abstand) */
.header-menu ul.navilo{
  margin: 0;
  padding: 0;
  list-style: none;
  display:flex;
  align-items:center;
  gap: 40px;           /* Abstand zwischen Menüpunkten (anpassen) */
}

/* falls irgendwo margins auf li/a sind */
.header-menu ul.navilo > li{
  margin: 0;
  padding: 0;
}

/* 6) Social immer ganz rechts */
.header-social{
  flex: 0 0 auto;
  margin-left: auto;
  display:flex;
  align-items:center;
}

/* Optional: auf kleineren Screens untereinander */
@media (max-width: 768px){
  .header-row{ flex-direction:column; align-items:stretch; }
  .header-logo{ flex: 0 0 auto; max-width: 200px; margin-right: 0; }
  .header-menu{ justify-content:center; }
  .header-social{ margin-left: 0; justify-content:center; }
}

.kopfbereichr + main {
  padding-top: 80px;
}


.tx-powermail   .col-sm-2 {    width: 100%;  }



/* Außenbereich: Hintergrund + Luft */
.headerimage-outer{
  background: #e5e5e5;   /* hellgrau */
  padding: 10px 0 60px;
}

.headerimage-inner{
  width: 80%;
  margin: 0 auto;
  max-width: 1800px;

  border-radius: 0;
  overflow: hidden;

  /* Schatten nur unten, schmal */
  box-shadow:
    0 18px 22px -14px rgba(0,0,0,0.35);
}
/* TYPO3-Wrapper sollen die Höhe nicht sprengen */
.headerimage-inner .frame,
.headerimage-inner .frame-container,
.headerimage-inner .frame-inner,
.headerimage-inner .textmedia,
.headerimage-inner .textmedia-item,
.headerimage-inner .gallery-row,
.headerimage-inner figure,
.headerimage-inner picture{
  display: block;
  width: 100%;
  max-height: 550px;
}

/* Das Bild: maximal 550px hoch, dynamisch zuschneiden */
.headerimage-inner img{
  display: block;
  width: 100%;
  height: 550px;        /* feste Höhe für sauberen Look */
  max-height: 550px;
  object-fit: cover;    /* crop statt verzerren */
}

/* Handy: 100% */
@media (max-width: 768px){
  .headerimage-outer{ padding: 24px 0; }
  .headerimage-inner{ width: 100%; }
}

/* Große Desktops / 4K: 60% */
@media (min-width: 2000px){
  .headerimage-inner{ width: 60%; }
}


.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;
  }

.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;}




 /* =========================================
   H1 - angelehnt an alte WordPress-Seite
   ========================================= */

main h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #000000;
  margin: 30px 0;
  padding-bottom: 0;
  position: relative;
}

main h1::after {
  content: "";
  display: block;
  width: 75px;
  height: 2px;
  background-color: #e20613;
  margin: 20px auto 0;
}
/* =========================================
   H2 - neuer Basisstil
   ========================================= */



main h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 35px;
  line-height: 50px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: #000000;
  margin: 30px 0;
  padding: 0;
  position: relative;
}

main h2::after {
  content: "";
  width: 75px;
  height: 2px;
  background-color: #e20613;
  display: block;
  margin-top: 10px;
}

main h2 a,
main h2 a:hover {
  color: inherit;
  text-decoration: none;
}

.frame-background-primary h2 {
  color: #ffffff;
}

.frame-background-primary h2::after {
  background-color: #e20613;
}

@media (max-width: 991.98px) {
  main h2 {
    font-size: 30px;
    line-height: 42px;
    margin: 24px 0;
  }

  main h2::after {
    margin-top: 24px;
  }
}

@media (max-width: 767.98px) {
  main h2 {
    font-size: 26px;
    line-height: 36px;
    margin: 20px 0;
  }

  main h2::after {
    width: 60px;
    margin-top: 20px;
  }
}
main h2.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

main h2.text-right::after {
  margin-left: auto;
}

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

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


/* =========================================
   Hunderter - echter sitewide Fullwidth-Wrapper
   ========================================= */

.hunderter,
.container.hunderter,
.container-fluid.hunderter {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  left: auto;
  right: auto;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible;
  z-index: 0;
}

.hunderter > .container,
.hunderter > .container-fluid,
.hunderter > .frame-container,
.hunderter > .frame-container-default,
.hunderter > .frame-group-container,
.hunderter > .frame-group-inner,
.hunderter > .frame-inner,
.hunderter > .frame,
.container.hunderter > .frame-container,
.container.hunderter > .frame-container-default,
.container.hunderter > .frame-group-container,
.container.hunderter > .frame-group-inner,
.container.hunderter > .frame-inner,
.container.hunderter > .frame {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hunderter .container,
.hunderter .container-fluid,
.hunderter .frame-container,
.hunderter .frame-container-default,
.hunderter .frame-group-container,
.hunderter .frame-group-inner,
.hunderter .frame-inner,
.hunderter .frame,
.hunderter .megazeil,
.hunderter .ce-outer,
.hunderter .ce-row,
.hunderter .ce-gallery,
.hunderter .ce-textpic,
.hunderter .image {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hunderter .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hunderter [class*="col-"],
.hunderter .ce-column {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

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

.hunderter .ce-gallery img,
.hunderter .gallery-item img {
  width: 100%;
  display: block;
  padding: 0;
}

.hunderter .textmedia {
  gap: 0;
}

.hunderter hr {
  height: 0;
  padding: 2% 0;
  background: none !important;
}

.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;
}


/* =========================================
   STARTGRID
   Klasse auf das 3-Columns-Element setzen
   ========================================= */

.startgrid {
  margin-top: 24px;
}

/* Vorhandene Seitenbreite NICHT ändern */
.startgrid .container,
.startgrid .container-fluid,
.startgrid .frame-container,
.startgrid .frame-container-default {
  max-width: inherit;
}

/* Alle TYPO3-Abstände innerhalb des Grids neutralisieren */
.startgrid .row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin-left: 0;
  margin-right: 0;
}

.startgrid [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}



/* Jede Kachel */
.startgrid .frame-type-textmedia {

}
.startgrid .frame {padding-top: 16px;}

.startgrid .padding-grid {padding: 10px;}

/* Bildfläche */
.startgrid .textmedia {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(250px, 20vw, 315px);
  min-height: 0;
  overflow: hidden;
  gap: 0;
}

/* TYPO3 Bild-Wrapper sauber geradeziehen */
.startgrid .textmedia-item,
.startgrid .textmedia-gallery,
.startgrid .gallery-row,
.startgrid .gallery,
.startgrid .gallery-item,
.startgrid .gallery-item figure,
.startgrid .gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.startgrid .gallery-row {
  display: block;
}

.startgrid .gallery-item {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.startgrid .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

/* dunkler Verlauf */
.startgrid .textmedia::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.48) 23%,
    rgba(0, 0, 0, 0.16) 52%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* =========================================
   Textoverlay - sauber mittig in der Kachel
   ========================================= */

.startgrid .textmedia-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  text-align: center !important;
}

.startgrid .textmedia-text .ce-bodytext,
.startgrid .textmedia-text .bodytext,
.startgrid .textmedia-text > p,
.startgrid .textmedia-text header,
.startgrid .textmedia-text .header {
  width: 100%;
  text-align: center !important;
}

/* Reihenfolge:
   Text = rotes Label
   Header = großer weißer Titel */
.startgrid .textmedia-text .ce-bodytext,
.startgrid .textmedia-text .bodytext,
.startgrid .textmedia-text > p {
  order: 1;
  margin: 0 0 12px 0;
}

.startgrid .textmedia-text header,
.startgrid .textmedia-text .header,
.startgrid .textmedia-text h1,
.startgrid .textmedia-text h2,
.startgrid .textmedia-text h3 {
  order: 2;
}

/* Rotes Label */
.startgrid .textmedia-text .ce-bodytext p,
.startgrid .textmedia-text .bodytext p,
.startgrid .textmedia-text > p {
  display: inline-block;
  margin: 0 auto;
  padding: 8px 16px;
  background: #ef0b14;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center !important;
}

/* nur erster Absatz als Label */
.startgrid .textmedia-text .ce-bodytext p + p,
.startgrid .textmedia-text .bodytext p + p {
  display: none;
}

/* Titel */
.startgrid .textmedia-text header .header,
.startgrid .textmedia-text header .header a,
.startgrid .textmedia-text h1,
.startgrid .textmedia-text h2,
.startgrid .textmedia-text h3,
.startgrid .textmedia-text .header,
.startgrid .textmedia-text .header a {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.95rem, 1.45vw, 1.55rem);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  text-align: center !important;
}

/* globale Unterstriche im Grid deaktivieren */
.startgrid .textmedia-text h1::after,
.startgrid .textmedia-text h2::after,
.startgrid .textmedia-text h3::after,
.startgrid .textmedia-text .header::after,
.startgrid .textmedia-text .header a::after,
.startgrid .textmedia-text header .header::after,
.startgrid .textmedia-text header .header a::after {
  display: none;
  content: none;
}

/* Hover */
.startgrid .frame-type-textmedia:hover .gallery-item img {
  transform: scale(1.04);
}

/* Tablet */
@media (max-width: 991.98px) {
  .startgrid .textmedia {
    height: 260px;
  }

  .startgrid .textmedia-text {
    padding: 18px;
  }

  .startgrid .textmedia-text .ce-bodytext,
  .startgrid .textmedia-text .bodytext,
  .startgrid .textmedia-text > p {
    margin-bottom: 10px;
  }

  .startgrid .textmedia-text .ce-bodytext p,
  .startgrid .textmedia-text .bodytext p,
  .startgrid .textmedia-text > p {
    font-size: 0.78rem;
    padding: 7px 12px;
  }

  .startgrid .textmedia-text header .header,
  .startgrid .textmedia-text header .header a,
  .startgrid .textmedia-text h1,
  .startgrid .textmedia-text h2,
  .startgrid .textmedia-text h3,
  .startgrid .textmedia-text .header,
  .startgrid .textmedia-text .header a {
    font-size: clamp(0.9rem, 2.2vw, 1.3rem);
  }
}

/* Mobil */
@media (max-width: 767.98px) {
  .startgrid .frame-type-textmedia {
    margin-bottom: 0;
  }

  .startgrid .textmedia {
    height: 280px;
  }

  .startgrid .textmedia-text {
    padding: 16px;
  }

  .startgrid .textmedia-text .ce-bodytext,
  .startgrid .textmedia-text .bodytext,
  .startgrid .textmedia-text > p {
    margin-bottom: 9px;
  }

  .startgrid .textmedia-text .ce-bodytext p,
  .startgrid .textmedia-text .bodytext p,
  .startgrid .textmedia-text > p {
    font-size: 0.76rem;
    padding: 7px 11px;
  }

  .startgrid .textmedia-text header .header,
  .startgrid .textmedia-text header .header a,
  .startgrid .textmedia-text h1,
  .startgrid .textmedia-text h2,
  .startgrid .textmedia-text h3,
  .startgrid .textmedia-text .header,
  .startgrid .textmedia-text .header a {
    font-size: 1.2rem;
    line-height: 1.1;
  }
}

/* =========================================
   Startgrid - rotes Label nur so breit wie der Text
   ========================================= */

.startgrid .textmedia-text .ce-bodytext,
.startgrid .textmedia-text .bodytext,
.startgrid .textmedia-text > p {
  width: auto !important;
  max-width: 100%;
  align-self: center;
}

.startgrid .textmedia-text .ce-bodytext p,
.startgrid .textmedia-text .bodytext p,
.startgrid .textmedia-text > p {
  display: inline-block;
  width: auto !important;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 16px;
}

/* =========================================
   Buttons - wirklich schlank
   ========================================= */

main .btn,
main a.btn,
main button.btn,
main input.btn,
main .btn-primary,
main .btn-secondary,
main .btn-danger {
  display: inline-block;
  padding: 8px 16px;
  min-height: 0;
  height: auto;
  border: 0;
  border-radius: 0;
  background: #ef0b14;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.2s ease;
  vertical-align: middle;
  white-space: nowrap;
}

main .btn:hover,
main a.btn:hover,
main button.btn:hover,
main input.btn:hover,
main .btn-primary:hover,
main .btn-secondary:hover,
main .btn-danger:hover {
  background: #c90910;
  color: #ffffff;
  text-decoration: none;
}

main .btn:focus,
main a.btn:focus,
main button.btn:focus,
main input.btn:focus {
  outline: none;
  box-shadow: none;
}

/* Abstand zwischen Buttons */
main .btn + .btn,
main a.btn + a.btn,
main a.btn + .btn,
main .btn + a.btn {
  margin-left: 12px;
}

/* Falls sie in einer Bootstrap btn-group sitzen */
main .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: auto;
}

main .btn-group > .btn,
main .btn-group > a.btn,
main .btn-group > button.btn,
main .btn-group > input.btn {
  margin: 0 !important;
  flex: 0 0 auto;
}


/* =========================================
   Hintergründe
   ========================================= */

.grauhintergrund {
    background-color: #f6f6f6;
}

/* =========================================
   Team - Textgestaltung
   ========================================= */

.team {
  text-align: center;
}

.team h3 {
  margin: 0 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f1f1f;
}

.team h4 {
  margin: 0 0 18px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 300;
  color: #b3b3b3;
}

.team p {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
  color: #4a4a4a;
}

.team p a {
  color: #e20613;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.team p a:hover {
  color: #e20613;
  text-decoration: none;
  border-bottom-color: #e20613;
}

.team p:last-of-type::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 16px auto 0;
  background-color: #e20613;
}

@media (max-width: 991.98px) {
  .team h3 {
    font-size: 22px;
  }

  .team h4 {
    font-size: 12px;
  }

  .team p {
    font-size: 11px;
  }
}

@media (max-width: 767.98px) {
  .team h3 {
    font-size: 20px;
  }

  .team h4 {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .team p {
    font-size: 10px;
  }

  .team p:last-of-type::after {
    width: 40px;
    margin-top: 14px;
  }
}


///*LINKS*///
main a:not(.btn):not([class*="btn"]),
main a:not(.btn):not([class*="btn"]):visited {
  color: #e20613;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

main a:not(.btn):not([class*="btn"]):hover,
main a:not(.btn):not([class*="btn"]):focus {
  color: #e20613;
  text-decoration: none;
  border-bottom-color: #e20613;
}


/* =========================================
   Powermail - kompletter sauberer Formularblock
   ========================================= */

.tx-powermail {
  max-width: 920px;
  margin: 0 auto;
}

.tx-powermail .container-fluid {
  padding: 0;
}

.tx-powermail h3,
.tx-powermail legend {
  display: none;
}

.tx-powermail .powermail_form {
  background: #f3f3f3;
  padding: 34px 42px;
}

.tx-powermail .powermail_fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* Jede Powermail-Reihe als sauberes 2-Spalten-Grid */
.tx-powermail .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 18px;
  margin: 0;
}

/* Abstand zwischen mehreren Reihen */
.tx-powermail .row + .row {
  margin-top: 18px;
}

/* Bootstrap/Powermail-Breiten neutralisieren */
.tx-powermail .powermail_fieldset .col-md-6,
.tx-powermail .powermail_fieldwrap,
.tx-powermail .powermail_fieldwrap.col-md-6 {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Feldaufbau */
.tx-powermail .powermail_field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

/* Labels */
.tx-powermail .powermail_label {
  display: block;
  margin: 0 0 8px;
  min-height: 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 300;
  color: #a8a8a8;
}

/* E-Mail und Nachricht immer volle Breite */
.tx-powermail .powermail_fieldwrap_e_mail,
.tx-powermail .powermail_fieldwrap_ihrenachricht {
  grid-column: 1 / -1;
}

/* Eingabefelder */
.tx-powermail .powermail_input,
.tx-powermail .powermail_textarea,
.tx-powermail .form-control,
.tx-powermail input[type="text"],
.tx-powermail input[type="email"],
.tx-powermail textarea {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #d7d7d7;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  appearance: none;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 400;
  color: #303030;
}

/* Fokus */
.tx-powermail .powermail_input:focus,
.tx-powermail .powermail_textarea:focus,
.tx-powermail .form-control:focus,
.tx-powermail input[type="text"]:focus,
.tx-powermail input[type="email"]:focus,
.tx-powermail textarea:focus {
  border-color: #e20613;
  outline: none;
  box-shadow: none;
}

/* Nachrichtfeld */
.tx-powermail .powermail_fieldwrap_ihrenachricht textarea,
.tx-powermail .powermail_fieldwrap_ihrenachricht .powermail_textarea {
  height: 180px;
  min-height: 180px;
  resize: vertical;
}

/* Falls "Ihre Nachricht" NOCH als normales Textfeld angelegt ist */
.tx-powermail .powermail_fieldwrap_ihrenachricht input[type="text"] {
  height: 180px;
  min-height: 180px;
  padding-top: 12px;
}

/* Submit */
.tx-powermail input[type="submit"],
.tx-powermail button[type="submit"],
.tx-powermail .powermail_submit {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  background: #e20613;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.tx-powermail input[type="submit"]:hover,
.tx-powermail button[type="submit"]:hover,
.tx-powermail .powermail_submit:hover {
  background: #c40511;
}

/* Honeypot sauber weg */
.tx-powermail [style*="-99999px"] {
  display: none;
}

/* Mobil */
@media (max-width: 767.98px) {
  .tx-powermail .powermail_form {
    padding: 24px 20px;
  }

  .tx-powermail .row {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 14px;
  }

  .tx-powermail .row + .row {
    margin-top: 14px;
  }

  .tx-powermail .powermail_fieldwrap_e_mail,
  .tx-powermail .powermail_fieldwrap_ihrenachricht {
    grid-column: auto;
  }

  .tx-powermail .powermail_label {
    margin-bottom: 6px;
  }

  .tx-powermail .powermail_input,
  .tx-powermail .powermail_textarea,
  .tx-powermail .form-control,
  .tx-powermail input[type="text"],
  .tx-powermail input[type="email"],
  .tx-powermail textarea {
    font-size: 15px;
  }
}

.fusszeile a[href^="tel:"],
.fusszeile a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.fusszeile a[href^="tel:"]::before,
.fusszeile a[href^="mailto:"]::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #e20613;
  color: #ffffff;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 9px;
  line-height: 1;
  flex: 0 0 18px;
  text-decoration: none;
  box-shadow: 0 0 0 4px #f2f2f2;
}

.fusszeile a[href^="tel:"] {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: calc(100% - 26px) 1px;
  background-position: right calc(100% - 1px);
}

.fusszeile a[href^="mailto:"] {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: calc(100% - 26px) 1px;
  background-position: right calc(100% - 1px);
}

.fusszeile a[href^="tel:"]::before {
  content: "\f095";
}

.fusszeile a[href^="mailto:"]::before {
  content: "\f0e0";
}


/* =========================================
   Footer - Service & Leistungen als rote Tags
   ========================================= */

.fusszeile #c89 .textmedia-text > ul.list-normal {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border: 0;
}

.fusszeile #c89 .textmedia-text > ul.list-normal > li {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 7px 12px;
  background-color: #e20613;
  color: #ffffff;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

.fusszeile #c89 .textmedia-text > ul.list-normal > li::marker {
  content: "";
}

.fusszeile #c89 .textmedia-text > ul.list-normal > li::before,
.fusszeile #c89 .textmedia-text > ul.list-normal > li::after {
  content: none;
}

.fusszeile #c89 .textmedia-text > ul.list-normal > li br {
  display: none;
}