/**
 * Grundsaetzliche Format-Anweisungen für alle Seiten.
 */

 *, *::before, *::after {
  box-sizing: border-box;
}

@font-face { 
font-family: "Itim"; 
src: url("../fonts/Itim-Regular.ttf");
font-display: swap;
}

html {   
  background: #ECEBE9;  /*    Farbton: Grau #ECEBE9;   */
  font-family: "Open Sans", Georgia, "Palatino Linotype", "Times New Roman", serif;  
  color:#3B3B3B; 
  font-size:clamp(16px, 1vw + 0.5rem, 18px);                                   
  }
  
h1 { font-size: clamp(1.8rem, 2.5vw, 2.0rem);}
h2 { font-size: clamp(1.5rem, 2vw, 1.8rem);}
h3 { font-size: clamp(1.3rem, 1.5vw, 1.5rem);}
h4 { font-size: clamp(1.1rem, 1.2vw, 1.3rem); margin-top: 1.33em; margin-bottom: 1.33em; }
h5 { font-size: clamp(1rem, 1vw, 1.1rem);margin-top: 1.67em; margin-bottom: 1.67em; }
h6 { font-size: clamp(0.9rem, 0.8vw, 1rem); margin-top: 2.33em; margin-bottom: 2.33em; }

h3, p  {
   margin-top: 1em;
   margin-bottom: 1em;
}

h1, h2, h3, h4, h5, h6, p {
   hyphens: auto;
 }

h2, h3 {
  font-family: "Itim", cursive;
  color:#DC143C;
  }   
p {
 line-height: 1.5em; 
} 
/* Überarbeitet am 30.04. wegen dachimpraegnierung - kopf */
#top .header-inner {
  max-width: 1080px;
  width:100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
#top .header {
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
/* Ende: Überarbeitet am 30.04. wegen dachimpraegnierung - kopf */
/* Bereiche */
.header-left,
.header-right {
  flex: 1;
 }

.header-center {
  flex: 1;
  text-align: center;
}
.header-right {
  text-align:center;
}
/* Logo */
.header-center img {
  max-width: 100%;
  height: auto;
}
/* Telefon */
.header-left p {
  margin: 0.2em 0;
  padding-left:15%;
  line-height:1.5em;
  font-weight:600;
}
.header-left a {
  text-decoration: none;
  color: #000;
}
/* Button */
.cta-header {
  display: inline-block;
  padding: 0.5em 1em;
  border: 2px solid #DC143C;
  color: #DC143C;
  text-decoration: none;
  border-radius: 1.2em;
  font-weight: bold;
}
.cta-header:hover {
  background: #DC143C;
  color: #fff;
}

/* MOBILE */
@media (max-width: 799px) {
  .header {
    flex-direction: column;
    text-align: center;
  }
  .header-left p {
    padding:0 0 0 1em;
  }
  .header-left {
    order: 2;
    display: flex;
    width:100%;
    flex-direction: row;
    justify-content: center;  
  }
  .header-center {
    order: 1;
  }
  .cta-header {
    display:none;
  }
  .rufen-sie-an {
    display:none;
  }
  .box-item {
    padding: 5px 20px;
    box-sizing: border-box;
  }
}
/*Navigation */
.nav {
  width: 100%;              
  background-color: #DC143C; 
  position: sticky;         /* fixiert die Navigation oben */
  top: 0;
  z-index: 9999;
  }
/* obere Leiste */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;  
}
/* CTA */
.cta {
  color: #fff;
  border: 1px solid #fff;
  padding: 0.4em 0.8em;
  border-radius: 1em;
  text-decoration: none;
  font-weight: bold;
  margin-left:1em;
}
/* Hamburger */
.nav-toggle {
  width: 45px;
  height: 40px;
  background: #fff;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin: .25em 1em;
}
.nav-toggle span {
  height: 3px;
  background: #DC143C;
  display: block;
}
/* ===== MENU ===== */
.nav-menu {
  display: none;
  flex-direction: column;
  list-style: none;
  font-weight: bold;
  margin: 0;
  padding: 0;
  position: relative;
  top: 100%;                /* Position unter der Navbar */
  left: 0;
  width: 100%;
  background: #DC143C !important;
  z-index: 9998;
}
.nav-menu.active {
  display: flex;
}
.nav-menu li {
  position: relative;
}
.nav-menu a {
  display: block;
  padding: 0.8em 1em;
  color: #fff;
  text-decoration: none;
  border-top: 1px dotted #fff;
}
.nav-menu a:hover {
  color: #DC143C;
  background-color: #FFF;
}
/* ===== DROPDOWN ===== */
.dropdown {
  max-height: 0;
  overflow: hidden;
  list-style:none;
  margin:0;padding:0;
  background: #6495ed;  /* Cornflowerblue */
  transition: max-height 0.3s ease;
}
.has-dropdown.open .dropdown {
  max-height: 500px; /* reicht für Animation */
}
.dropdown a {
  padding-left: 1.5em;
  font-weight: normal;
}
/* ===== DESKTOP ===== */
@media (min-width: 800px) {
  .cta {
    display: none;
  }
  .nav-toggle {
    display: none;
  }
  .nav-menu {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0; /* Entfernt unnötige Abstände */
  }
  .nav-menu > li > a {
    border: none;
    padding: 1em 1.5em;
  }
  /* Dropdown Desktop */
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    max-height: none;
    display: none;
    min-width: 220px;
  }
  .has-dropdown:hover .dropdown {
    display: block;
  }
}
@media (min-width: 800px) {
  .nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    position: relative;
  }
}
/* Ende - Navigation */


.seitenueberschrift-rahmen {
   border:1px solid #D8D8D8;
   background-color:#FAFAFA;
   border-radius:1em;
   padding-left: .5em;
   padding-right: .5em;
   overflow:hidden;
   }  
.seitenueberschrift-rahmen .untertitel {
   padding-right:1em;
   } 
   
@media (min-width: 800px) {
    .page-content {
        max-width: 1080px;
        margin: 0 auto;
        width: 100%;
        position: relative;
    }
    .fusszeile {
        max-width: 1080px;
        margin: 0 auto;
        width: 100%;
        position: relative;
    }
    #backToTop {
        position: fixed;
        bottom: 30px;
        right: 30px;
        opacity: 0;    
        transition: opacity 0.3s;
        padding: 10px 15px;
        font-size: 18px;
        cursor: pointer;
        pointer-events: none;   
    }
    #backToTop.show {
        opacity:.5;
        pointer-events: auto;
    }    
}  

.content-block {
  max-width: 1080px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.content-block:nth-child(even) {
  background-color: #fff;
}

@media (min-width: 768px) {
  .content-block {
    margin-bottom: 4rem;
  }
}

.media img {
   border:5px solid #FFF;
   max-width:100%;
   height:auto;
   }
   
img {
  max-inline-size: 100%;
  block-size: auto;
  }   
hr {
  clear:both;
  margin:1.5em;
  border: 3px dashed #DC143C;
  }  
.bild {
    text-align:center;   
}  

.service {
   padding:0 1em;
   overflow:hidden;
   }  
.leistungen { 
    margin:0 auto;
    display: flex; 
       flex-basis: 100%;
       flex-direction:row;   
       flex-wrap: wrap;
       justify-content:center;
    text-align:center;
    }
.leistungen div {
   flex-basis: 25%;
   min-height:12em;
   margin:.5em 2em;
   padding: .5em;
   overflow:hidden;  
}       
.leistungen img {
   border-radius: 50%;
   width: 14em;
   height: 14em;
   border:8px dotted #3B3B3b;
}
#foot {
   clear:both;
   width:100%;
   height:auto;
   overflow:hidden;        
   background-color:#232F3E;                    
   font-family: Verdana, Arial;
   padding-bottom:1em;
   border-top:4px solid #DC143C;
   }
* html #foot {
   bottom:2px; 
   width:100%; 
   height:auto;
   }
#foot .service p {
   color:#FFF;
   }
            
.fusszeile-soziale {
    display: flex; 
       flex-basis: 100%;
       flex-direction:row;   
       flex-wrap: wrap;
       justify-content:center;
     }       
.fusszeile-soziale div {
   min-width: 33.5%;
   padding:0 .5em 0 .5em;
} 
.fusszeile-soziale div img {
   padding:0 .75em;
   }             

#foot .service a:link {color:#ECEBE9;border-bottom:2px solid #ECEBE9;}
#foot .service a:hover {border-bottom:2px dotted #ECEBE9;}
#foot .fusszeile-soziale div a:link {border-bottom:none;}
#foot .fusszeile-soziale div a:hover {border-bottom:2px dotted #ECEBE9;}

#foot .impressum {text-align:center;color:#ECEBE9;}
#foot .impressum a {color:#ECEBE9;}

.service a:link {color: #ff0000; text-decoration: none}
.service a:visited {color: #0000FF; text-decoration: none}
.service a:active {color: #000000;  text-decoration: none}
.service a:hover {color: #FF0000;  border-bottom: 2px dotted rgba(0,0,0,.65);  /*  #8B4513  */ }   



#content {
        width:100%;
        max-width:1080px;
        margin:0 auto;
        padding-top:1em;
        padding-bottom:3.5em; 
        overflow:hidden;     
        }

* html #content {
        width:1082px;
        }


         

       


/* Anfang - Spezielle Formatierungen für Texte */
.fett {
      font-weight:bold;
      }

.unterstreichen 
   {
   text-decoration:underline;
   }
/* Ende - Spezielle Formatierungen für Texte */


/* Anfang - Spezielle Formatierung für eine hr-Linie */
div.hr {
  clear:both;
  height: 15px;
  background: #ecebe9 url(../images/hr-trenner.gif) no-repeat scroll center;
}
div.hr hr {
  display: none;
}
/* Ende - Spezielle Formatierung für eine hr-Linie */


/* Anfang Bilder-Show auf der Startseite */                  
#foto-show {
   width:100%;
   margin: 0 auto;
   height:auto;
   padding:0 0 2em 0;
   overflow:hidden;
   } 
.w3-black, .w3-hover-black:hover {
    color: #fff !important;
    background-color: rgba(0,0,0,.45) !important;
}
.w3-large {
    font-size: 85% !important;
}
.w3-container, .w3-panel {
    padding: 0.01em .5em;
    padding-top: 0.01em;
    padding-bottom: 0.01em;
}
.w3-padding-16 {
    padding-top: .5em !important;
    padding-bottom: .5em !important;
}
.w3-display-bottomleft {
    position: absolute;
    left: 0;
    bottom: 0;
}
.w3-display-topleft {
    position: absolute;
    left: 0;
    top: 0;
}
.w3-display-topright {
    position: absolute;
    right: 0;
    top: 0;
}
.w3-display-bottomright {
   position:absolute;
   right:0;
   bottom:.3em
   } 
/* Anfang Bilder-Show auf html/dach-vorbereiten-photovoltaik-installation.html  */
.w3-display-right {
    position:absolute;
    top:50%;
    right:0%;
    transform:translate(0%,-50%);
    }
/* Ende Bilder-Show auf html/dach-vorbereiten-photovoltaik-installation.html */
 
/* Ende Bilder-Show auf der Startseite */     
   


@media screen and (min-width:1080px) {

  .willkommen {
     display:block;
     width:1080px;
     margin:0 auto;
     overflow:hidden;
     }
     
.arbeitsfelder {
   text-align:center;
   margin:1em auto;
   padding:0;
   width:100%;
   width:1080px;
   display:block;
}     
     
  #rahmen {
    display:block;
    width:1080px;  
    margin:0 auto;
    background-color:#ecebe9;                     
    padding: 12px 12px 0px 12px;  
    }
   
   #foot .service {
      display:block;
      width:1080px;
      margin:0 auto;
     } 
 } 
 
 
@media screen and (max-width:799px) {
   #top {
      display:block;
      margin:0 auto;
      overflow:hidden; 
      padding: 0em 1em 0 1em;
   }
      
   .w3-large {
    font-size: 80% !important;
   }    
   .service {
      width: auto;
      position: relative;
      margin: 0;
      padding:0.5em;
      text-align: left;
   }  
   .leistungen {
      display: flex; 
         flex-basis: 100%;
         flex-direction:column;   
   }
   .leistungen div {
      margin: .5em;
   }
   #foot p {    
      padding: 0 0.25em 0 0.75em; 
      margin:0;
   } 
   #foot .impressum {padding:1em 0;}

   #content {
        width:100%;
        margin:0 auto;   
        } 
}     


@media screen and (max-width:800px) {
   .fusszeile-soziale div {
      min-width: 100%;
      padding:.75em .5em 0 .5em;  
   }
}
@media only screen and (min-width:768px) and (max-width:1024px){
   .leistungen div {
      flex-basis: 33.3%
   }
}     
/* Neu ab 23. April */

/* ===== EINLEITUNG ===== */
.intro-lead {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color:#3B3B3B;
}

.text,
.media {
    min-width: 0;
}
/* ===== TEXT ===== */
.text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}


/* ===== CTA TEXT ===== */
.cta-text {
    font-weight: 600;
    color: #DC143C;
    margin-top: 1.5rem;
}

/* ===== BILD ===== */
.media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Optional: leichter Hover-Effekt */
.media a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.media a:hover img {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* etwas größer auf Desktop */
@media (min-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

/* ===== FULL WIDTH TEXT ===== */
.full-text {
    margin-top: 1.5rem;
}

.full-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}


/* ===== PROCESS SECTION ===== */
.process-step {
    margin-bottom: 2.5rem;
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Desktop etwas größer */
@media (min-width: 768px) {
    .step-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* ===== BILDBESCHRIFTUNG ===== */
.image-caption {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #666;
}

.image-caption.center {
    text-align: center;
}

/* ===== SLIDER ANPASSUNG ===== */
.media-slider img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.media-slider {
    overflow: hidden;
}
.media {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.media a {
    display: block;
}

.image-caption {
    margin-top: 0.5rem;
}

/* Neu ab 24. April */
.pricing-section {
    background: #fff;
    padding: 3rem 1rem;
}

.pricing-section .section-title {
    text-align: center;
}

.price-table {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .price-table {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .price-table {
        grid-template-columns: repeat(4, 1fr);
    }
}

.price-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.price-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #DC143C;
}

.pricing-media-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem;
    background: #fafafa;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
}

@media (min-width: 640px) {
    .pricing-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .pricing-media-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.media-card {
    margin: 0;
    text-align: center;
}
.media-card a {
    display: block;
}
.media-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.media-card figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #555;
}
.nowrap {
    white-space: nowrap;
}
.pricing-cta {
    text-align: center;
    margin-top: 2.5rem;
}
.cta-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #DC143C;
    margin-top: 1.5rem;
}
.cta-button {
    display: inline-block;
    padding: .85rem 1.4rem;
    background-color: #DC143C;
    color: #FFF;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #DC143C;
    border-radius: 8px;
    margin-top: 2rem;
}
.cta-button:hover {
    background: #fff;
    color:#DC143C;
}
/* ===== FAQ STYLE ===== */
details {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    transition: background-color 0.3s;
}
details summary {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 0.5rem 0;
}
details summary:hover {
    color: #DC143C; /* Farbe bei Hover */
}
details p {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #555;
}
details.open {
    background-color: #f1f1f1;
}
details[open] summary {
    color: #DC143C;
}


/* Startseite neu ab 26.04.26    */
.home-main {
  width: 100%;
}
.home-intro {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 1rem;
    }
.home-intro .seitenueberschrift-rahmen h1 {
    text-align:center;
    }


.home-cta {
  margin: 1rem auto 0;
  padding: 1rem;
  text-align: center;
}

.home-cta p {
  margin: 0 0 0rem;
  font-weight: 600;
}
/*
.cta-button {
  display: inline-block;
  padding: .85rem 1.4rem;
  background: #DC143C;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
}
*/
.cta-link {
  display: block;
  margin-top: .8rem;
  color: #333;
  font-weight: 600;
}

.home-cta-soft {
  background: #fafafa;
}

.final-cta {
  text-align: center;
  margin-top: 2rem;
}
.content-block-blank {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1rem;
}
.homeservices {
  max-width: 1080px;
  margin-bottom: 3rem;
  padding: 2.5rem 1rem;
}


/* Info Ablauf + Preise */

.impregnation-info .two-col {
  align-items: stretch;
}

.highlight-price {
  display: flex;
  flex-direction: column;
  justify-content: center; /* zentriert Inhalt vertikal */
}

.info-card,
.highlight-price {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  padding: 1.5rem;
}

.info-card {
  display: flex;
  flex-direction: column;
}

.info-icon,
.price-icon {
  max-width: 260px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.highlight-price {
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.offer-label {
  margin: 1rem 0;
  font-size: 1.1rem;
  text-decoration: underline;
}

.price-main {
  font-weight: 700;
  line-height: 1.45;
  margin: 1.5rem 0 1rem;
}

.price-value {
  background: #fafafa;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1.25rem;
  line-height: 1.35;
  color: #DC143C;
  margin-bottom: 1.5rem;
}

.price-value strong {
  font-size: 1.8rem;
}
/* Ergänzung Wärmereflektierende Dachbeschichtung 3.5.26 */
.price-card-wide {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
}
.price-card-wide .price-value {
  font-size: 1.4rem;
}
.process-section .media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-section .media img {
  max-width: 220px; 
}
.process-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  padding: 1.5rem;
}
.process-icon {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 180px;
  height: auto;
}
/* optional schöner Rahmen */
.process-icon {
  padding: 1rem;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 12px;
}
/* Ende - Ergänzung Wärmereflektierende Dachbeschichtung 3.5.26 */
.visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}