:root{
    --hover-color: #1c2632;
    --background-color: #f2f2f2;
    --navbar-height: 80px;
}
*{
    margin: 0;
    padding: 0;
    font-family: 'Quattrocento','serif';
    scroll-behavior: smooth;

}
html{
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    
}
body{
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}
nav{

    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.logo {
    height: 100px;
    width: 100px;
    position: sticky;
    right: 50%;
    transform: translateX(50%);
    top: 0;
    z-index: 1;
    margin-bottom: 18px;
  }
  
nav ul{
    height: 100%;
    display:flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
}
nav li{
    height: 100%;
    width: 130px;
    text-align: center;

}
nav li:hover{
    background: var(--hover-color);

}
nav input[type="checkbox"]{
    display: none;
}

nav ul a{
    font-size: 20px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgb(0,0,0);
}
nav ul a:hover{
    color: #fbedd9;
}
.opening{
    margin-right: 30px;
    height: 100%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle_button{
    width: 30px;
    height: 23px;
    position: sticky;
    top: 20px;
    left: 25px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    
}

.bar{
    height: 4px;
    width: 100%;
    background: rgb(0,0,0);
    border-radius: 100px;

}
.hidden {
    display: none;
}
@media(max-width: 1250px){
    .toggle_button{
        display:flex;
    }
    nav ul{
        height: min-content;
        width: 100%;
        display: none;
        position: absolute;
        top: var(--navbar-height);
        color: #fbedd9;
        background-color: white;
        z-index: 2;
    }
    nav li{
        height: min-content;
        width: 100%;

    }
    nav ul a{
        padding: 30px 0;
    }
    .opening{
        display: none;
    }
    #toggle_button:checked ~ ul{
        display: block;
    }
    .logo{
        right: 50%;
        transform: translate(50%);
    }
    
}
main{
    width: 100%;

}
section{
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    color: #fbedd9;
    display: flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
}
section::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Pictures/erstes_pic.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(50%);
    z-index: -1;
}
section h2{
    font-weight: 400;
    font-size: 60px;
    z-index: 1;
    margin-left: 10px;
    margin-right: 10px;
    
}
section h3{
    font-weight: 400;
    font-size: 30px;
    z-index: 1;
    margin-right: 10px;
    margin-left: 10px;
}
/* Stil für die Überschrift, um die Animation zu unterstützen */
#wechselndeUeberschrift{
    transition: opacity 0.5s ease-in-out;
}
  
figure{
    position: relative;
    display: flex;
    justify-content: center;
    font-size: 23px;
    margin-top: 30px;
    align-items: center;
}
figure button{
    cursor: pointer;
    transition: 1s;
}

.termin{
    
    border: none;
    margin-right: 30px;
    padding: 10px 20px;
    color: #1c2632;
    background: #fbedd9;
    border-radius: 4%/12%;
}
.termin:hover{
    background: none;
    color: #fbedd9;
    border: 1px solid;
}
.runter{
   
    border: 1px solid;
    padding: 10px 20px;
    border-radius: 4%/12%;
    background: none;
    color: #fbedd9;
}
.runter:hover{
    background-color: #fbedd9;
    color: #1c2632;
}
@media (max-width: 750px) {
    .termin:hover{
        border: 1px solid;
        margin-right: 30px;
        padding: 10px 20px;
        background: none;
        color:#fbedd9;
        border-radius: 4%/12%;
    }
    .runter:hover{
        border: none;
        background: #fbedd9;;
        padding: 10px 20px;
        color: #1c2632;
        border-radius: 4%/12%;
    }
    section h2{
        display: none;
    }
    section h3{
        font-size: 33px;
    }
}
article{
    position: relative;
    width: 100%;
    height: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around; 


}
article h1{
    position: relative;
    font-weight: 590;
    font-size: 70px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    color:#1c2632;
}
.nu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    
}
.boxes_layout{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
}

.blue_box{
    position: relative;
    width : 45%;
    height: 400px;
    border-radius: 25px; 
    background-color: #1c2632;
    color: #fbedd9; 
    box-shadow:
    4.7px 5.1px 95px rgba(0, 0, 0, 0.032),
    9px 9.9px 116.3px rgba(0, 0, 0, 0.036),
    13.8px 15px 123.1px rgba(0, 0, 0, 0.035),
    20px 21.8px 120.2px rgba(0, 0, 0, 0.034),
    29.8px 32.5px 107.7px rgba(0, 0, 0, 0.036),
    55px 60px 80px rgba(0, 0, 0, 0.07)
    ;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    
}
.weiße_pfeile{
    position: absolute;
    height: 50px;
    width: 50px;
    right: 10px;
    top: 345px;
    transform: scaleX(-1) rotate(95deg);

}
.blue_box.reveal.active.flipped {
    transform: rotateY(180deg);
  }
  
.blue_box.reveal.active .front,
.blue_box.reveal.active .back { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s; /* Add transitions for opacity and visibility */
}
  
.blue_box.reveal.active .front {
    transform: rotateY(0deg);
    opacity: 1;
    visibility: visible;
}
  
.blue_box.reveal.active .back {
    transform: rotateY(180deg);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    font-size: 25px;
    width: 98%;
}
  
.blue_box.reveal.active.flipped .front {
    opacity: 0;
    visibility: hidden;
}
  
.blue_box.reveal.active.flipped .back {
    opacity: 1;
    visibility: visible;
}
  
.reveal{
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: all 1.5s ease;
}
.reveal.active{
    position: relative;
    transform: translateY(0px);
    opacity: 1;
}

.blue_box h2 {
    
    font-weight: 600;
    font-size: 60px;
    margin-bottom: 10px;

}
.blue_box p {
    position: relative;
    font-weight: 400;
    font-size: 30px;
    margin-top: 0;

    justify-content: center;
    margin-right: 10px;
    margin-left: 10px; 
}
.blue_box.reveal.active ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    
}
.point {
    width: 10px;
    height: 10px;
    margin-top: 20px;
    margin-right: 70%;
  }

@media (max-width: 1250px) {
    .boxes_layout{
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        
    }
    .blue_box{
        width: 80%;
        height: 400px;
    }
    
    article {
        height: 2000px;
    }
}

@media (max-width: 950px) {
    .blue_box h2{
        font-size: 50px;
    }
    
}
@media (max-width: 750px) {
    .blue_box h2{
        font-size: 40px;
    }
    
}
@media (max-width: 580px) {
    .blue_box h2{
        font-size: 30px;
    }
    .blue_box.reveal.active.flipped .back {
        font-size: 25px;
    }
     
}
@media (max-width: 450px) {
    .blue_box h2{
        font-size: 20px;
    }
    .blue_box.reveal.active.flipped .back {
        font-size: 20px;
    }
     
}
.third_bit{
    position: relative;
    height: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}
.third_bit h1{
    color:#1c2632;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;

}
.box{
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 75%;
    width: 90%;
    border-radius: 30px/35px;
    box-shadow:
    0px 0px 30.8px rgba(0, 0, 0, 0.056),
    0px 0px 49.7px rgba(0, 0, 0, 0.08),
    0px 0px 58.5px rgba(0, 0, 0, 0.1),
    0px 0px 62.1px rgba(0, 0, 0, 0.124),
    0px 0px 94px rgba(0, 0, 0, 0.18)
    ;
 
}
.box.reveal {
    transform: translateY(150px);
    opacity: 0;
    transition: all 1.5s ease;
  }
  
  .box.reveal.active {
    transform: translateY(0);
    opacity: 1;
  }
.box iframe{
    position: relative;
    display: none;
    justify-content: center;
    height: 500px;
    width: 500px;
    border: 1px solid;
}
.iframe_ersatz{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: #E6E2E1;
    height: 500px;
    width: 500px;
    border: 1px solid;
    font-size: 35px;
}
.oeffi{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color:#1c2632;
    width: 40%;
    font-size: 35px;
}
.box h2{
    display: flex;
    justify-content: center;
}
.fourth_bit h1{
    display: flex;
    justify-content: center;
    font-size: 70px;
}

@media(max-width: 1000px){
    .third_bit{
        height: 1300px;
    }
    .box{
        display: flex;
        flex-direction: column;
    }
    .oeffi{
        width: 100%;
    }
}
@media(max-width: 850px){
    .third_bit h1,.fourth_bit h1
    {
        text-align: center;
    }
    
}
@media(max-width: 700px){
    
    .box iframe, .iframe_ersatz{
        height: 400px;
        width: 400px;
    }

    .third_bit{
        height: 1000px;
    }
}
@media(max-width: 500px){
    .third_bit{
        height: 850px;
    }
    .third_bit h1{
        font-size: 35px;
        margin-bottom: 80px;
        
    }
    .box h2{
        font-size: 40px;
    }
    .box iframe, .iframe_ersatz{
        height: 300px;
        width: 300px;
    }
    .fourth_bit h1{
        font-size: 35px;
    }

}
.fourth_bit{
    width: 100%;
    height: 800px;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    
}
.contact{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}
 
form{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
textarea{
    text-align: center;
    height: 96px;
    width: 480px;
    margin: 15px;
    padding: 0px 25px;
}
input{
    text-align: center;
    height: 64px;
    width: 480px;
    margin: 15px;
    padding: 0px 25px;
}
#message{
    max-width: 480px;
    max-height: 300px;
}
.senden{
    background-color: #1c2632;
    color: #fbedd9;
}
.number{
    display: flex;
    flex-direction: column;
    font-size: 30px;
    text-align: center;
    margin: 20px;
}
@media(max-width: 1000px){
    .fourth_bit{
        height: 700px;
        
    }
    .contact{
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: -100px;
    }
   
}

@media(max-width: 550px){
    .fourth_bit{
        height: 1000px;
    }
    textarea{
        text-align: center;
        height: 96px;
        width: 270px;
        margin: 15px;
        padding: 0px 25px;
    }
    input{
        text-align: center;
        height: 64px;
        width: 270px;
        margin: 15px;
        padding: 0px 25px;
    }

}
.fourth_bit.reveal {
    transform: translateY(150px);
    opacity: 0;
    transition: all 1.5s ease;
  }
  
  .fourth_bit.reveal.active {
    transform: translateY(0);
    opacity: 1;
  }
  .contact.reveal {
    transform: translateY(150px);
    opacity: 0;
    transition: all 1.5s ease;
  }
  
  .contact.reveal.active {
    transform: translateY(0);
    opacity: 1;
  }

.prv_number{
    height: 800px;
    font-size: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
}
.prv_number_pers{
    width: 100%;
    display: flex;
    justify-content: space-around;

}
.white_box{
    width: 400px;
    height: 500px;
    border-radius: 10px;
    box-shadow:
    4.7px 5.1px 95px rgba(0, 0, 0, 0.032),
    9px 9.9px 116.3px rgba(0, 0, 0, 0.036),
    13.8px 15px 123.1px rgba(0, 0, 0, 0.035),
    20px 21.8px 120.2px rgba(0, 0, 0, 0.034),
    29.8px 32.5px 107.7px rgba(0, 0, 0, 0.036),
    55px 60px 80px rgba(0, 0, 0, 0.07)
    ;
    
    
}

.pers_header{
    font-size: 25px;
}
.pers_header hr{

    height: 1px;
    background-color: #1c2632; 
    border: none;

}
.pers_text h3{
    margin-top: 100px;
}
.pers_text h4{
    margin-top: 130px;
}
.prv_number.reveal {
    transform: translateY(150px);
    opacity: 0;
    transition: all 1.5s ease;
}
  
.prv_number.reveal.active {
    transform: translateY(0);
    opacity: 1;
}
.white_box.reveal {
    transform: translateY(150px);
    opacity: 0;
    transition: all 1.5s ease;
}
  
.white_box.reveal.active {
    transform: translateY(0);
    opacity: 1;
}
.white_box.reveal-slow {
    transition-duration: 3s; /* Adjust the duration to a slower value */
}
.pers_text a,.number a{
    color: black;
}
@media(max-width: 1000px){
    .prv_number{
        height: 1300px;
    }
    .prv_number_pers{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        
    }
    .white_box{
        margin-top: 50px;
    }
   
}
@media(max-width: 550px){
    .white_box{
        width: 90%;
    }
    .pers_header h1{
        margin-bottom: 10px;
        margin-top: 10px;
    }

}
.downloads{
    height: 200px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.downloads li{
    margin-top: 5px;
}
.downloads a{
    color: black; 
}
.pic_formular{
    height: 20px;
    width: 20px;
}
footer{
    height: 200px;
    background-color: #1c2632;
    color:#fbedd9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
footer a{
    color: #fbedd9;
    margin-left: 20px;
    
}
.links{
    display: flex;
    
}
.last_text{
    margin-top: 30px;
}
.cookie_banner{
    position: fixed;
    border-radius: 10px;
    bottom: 20px;
    left: 20px;
    height: 400px;
    width: 300px;
    background-color: #2D2D2D;
    color: #FAFAFA;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    z-index: 2;
}
.buttns{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.button_1 ,.button_2{
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 80%;
    margin-top: 10px;
    
}
.button_1{
    border: none;
    background-color: #6BBE6B; 
    color: #2D2D2D;
}
.button_1:hover{
    background-color: #5ba15b;
}
.button_2{
    background-color: white;
    color: #1c2632;
}
.button_2:hover{
    background-color: #fbedd9;
    
} 
.cookie_text{
    padding: 10px;
    font-size: 25px;
}
.cookie_text a{
    text-decoration: none;
    color: yellow;
}
.vollmacht{
    color: inherit;
    text-decoration: none; 
    background-color: transparent;
}
.vollmacht:hover{
    font-weight: 600;
}
.accept_cookie{
    text-decoration: underline;
    cursor: pointer;
}
.accept_cookie:hover{
    font-weight: 600;
}