html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Nunito Sans', sans-serif; 
    overflow-y: scroll;
    margin-bottom: 1rem; /* Set the height of the footer */
}

h1 {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    line-height: 2.8rem;
    font-weight: 700;
}

h3 {
    font-size: 4.5rem;
}

h4 {
    color: grey;
    font-size: 1.2rem;
    padding: 10px 0 40px 0;
}

p {
    font-size: 0.9rem;
    line-height: 1.2rem;
}

footer p {
    font-size: 0.8rem;
    line-height: 1.2rem;
}

.imgContexter p {
    font-size: 0.8rem;  
}

a {
    color: black;
    text-decoration: none;
}

nav a {
    font-size: 1.1rem;
    padding-right: 8px;
}

nav a:hover {
    text-decoration: underline;
}

.container {
    position: relative;
    max-width: 1024px;
    min-height: 100vh;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px 0 15px;
    width: auto;
    overflow: hidden; /* hides scrollbar*/
}

.contentWrapper {
    padding-bottom: 5rem;   /* Adjusted to accommodate footer height */
}

header {
    padding-top: 30px;
}

nav {
    padding-top: 20px;
    text-align: center;
}

.xContainer {
    z-index: 5;
    position: fixed;
    width: 100%;
    min-width: 50px;
}

.xNav {
    max-width: 10;
    min-height: 50px;
    margin: 0 auto;
}

.xButton {
    padding: 40px 60px 0 0;
    width: 40px;
    float: right;
}

.mybutton {
    background-color: white;
    padding: 9px 25px;
    font-family: 'Nunito Sans', sans-serif; 
    font-weight: 700;
    border-radius: 2px; /* Rundet die Ecken des containers ab*/  
    border-width: 1px; 
    float: right;
}

.ExampleModel {
    width: 100%;
    margin-top: 200px;
}

main {
    margin: 0;
}




footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1rem; /* Set the height of the footer */

    
}




footer p {
    flex: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer p:first-child {
    text-align: left;
}

footer p:last-child {
    text-align: right;
}





/* Add this CSS for the image-changing functionality */
.colContainer {
    padding-top: 15%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;

 
}

.col {
    min-height: 100px;
    width: 20%;
    margin-bottom: 40px;

}
.col div {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.col div:hover {
    /* No need for hover effects here since we handle it dynamically in JavaScript */
}

/* Set default background images for each div */



/*
.col:nth-child(1) {
    background-color: red;
  }
  
  .col:nth-child(2) {
    background-color: blue;
  }
  
  .col:nth-child(3) {
    background-color: green;
  }
  
  .col:nth-child(4) {
    background-color: yellow;
  }
  
  .col:nth-child(5) {
    background-color: orange;
  } */


.pReflexion {
    background-image: url("SVG/Hochbau.svg");
    
    
}

.pWohnbau {
    background-image: url("SVG/Wohnbau.svg");
}

.pRaumgestaltung {
    background-image: url("SVG/Raumgestaltung.svg");
}

.p3dg {
    background-image: url("SVG/3dg.svg");
}

.pSHB {
    background-image: url("SVG/SHB.svg");
}

.pGBL {
    background-image: url("SVG/GBL.svg");
}

.pSTB {
    background-image: url("SVG/STB.svg");
}

.pBAENT {
    background-image: url("SVG/SelfSustain.svg");
}

/* End of image-changing CSS */

/* Original CSS continues below */
/* Add your existing CSS code here */


.herobox {
    display: flex;
    justify-content: center;
    padding: 10vh 0 8vh 0;
}

.heroProfile {
    flex: 1;
}

.heroProfile img {
    width: 100%;
}

.heroText {
    padding: 15px 0px 2px 15px;
    margin-left: 20px;
    flex: 4.5;
    text-align: justify;  /* For Edge */
}

.colContainer {
    padding-top: 15%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.col {
    min-height: 100px;
    width: 20%;
    margin-bottom: 40px;
}

.blogHeader {
    padding-top: 25px;
}

.blogContainer {
    max-width: 1024px;
    margin: 0 auto;
    padding-bottom: 50px;
}

form {
    padding-top: 15%;
}

.inputwrapper {
    margin-bottom: 20px;
}

.newline {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.iconWrapper {
    width: 25%;
}

.iconRotate {
    transform: rotate(90deg);
}

.imgFlexer {
    padding-top: 100px;
    display: flex;
    justify-content: space-around;
}

.imgHolder {
    padding-top: 70px;
}

.imgHolder img {
    width: 100%;
}

.imgContexter {
    display: flex;
    justify-content: space-between;
    padding: 5px 5px 0 5px;
}

.textWrapper {
    display: flex;
    justify-content: space-between; 
    padding: 0 0 0 0;
}

.textHolder {
    text-align: left;
}

span.boldLiner {
    font-weight: 700;
}

span.italicLiner {
    font-style: italic;
}
span.underliner {
    text-decoration: underline;
}

.filletCorner { 
    border-radius: 50px; 
}

.filletCorner2 { 
    border-radius: 30px; 
}

/* Tablet View */
@media (max-width: 800px) {


    
  
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.2rem;
        line-height: 2rem;
    }

    .herotext h2 {
        font-size: 3rem;
        line-height: 3.5rem;
    }

    h3 {
        font-size: 3rem;
    }

    h4 {
        font-size: 1.2rem;
    }
    
    a {
        font-size: 1.1rem;
    }

    nav {
        padding-top: 15px;
    }
  
    .textHolder {
        padding-top: 40px;
    }

    .imgContexter p {
        font-size: 0.3rem;
        line-height: 1rem;  
    }
    
    .colContainer {
        margin: 0 3vh 0 3vh;
 
    }

    .col {
        width: 50%;
      
    }

    .heroProfile {
        margin: 0 0 2rem 0;
    }

    .herobox {
       
        flex-direction: column;
        justify-content: center;
        margin-bottom: 0;
        padding-bottom: 1.5rem;
        padding: 6vh 0 8vh 0;
    }

    .heroText {
        padding:0;
        text-align: left;
        margin: 0;  

    }

    .filletCorner { 
        border-radius: 20px; 
    }

    .textWrapper {
        flex-direction: column;
        padding: 0rem 0 3rem 0;
    }

    .xButton {
        padding: 10px 10px 0 0;
        width: 15px;
        float: right;
    }

    .blogContainer {
        padding: 0 0 0 0;
    }
    
    :root {
        --padding: 4%;
    }
    
    main {
        padding: var(--padding);
    }
    
 :root {
     --padding: 4%;
 }
 
 main {
     padding: 0 var(--padding);
 }
 
 footer {

     width: calc(100% - (2 * var(--padding)));
    height: 1rem;
     padding: 0 var(--padding);
 }


    footer p{
        font-size:   .5rem;
      
        }
    
    
        
    .contentWrapper {
        padding-bottom:  5rem;   /* Footer height mobile*/
       
    }
    
    
    
    
    
        
      
       
    
    
       
     
       
        
        
        
        
    
        /* Mobile View
        
        
        
        @media (max-width: 400px) { 
    
            
            h2{
                font-weight: 700;
            }
            
        } */
    
    
    
    }