*{
    box-sizing: border-box;
}
body{
    margin: 0;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}
header{
    padding: 1px;
    border-bottom: 1.5px solid;
    background-color: #007bb9;
}
header h1{
    font-family: "Permanent Marker", cursive;
    font-weight: 400;
    margin-left: 50px;
    text-align: left;
    font-size: 50px;
    padding: 1px;
}
nav{
    display: flex;
    justify-content: space-between;
    background-color: #0097cd;
}
nav ul{
    display: flex;
    list-style: none;
}
nav li a{
    text-decoration: none;
    padding: 20px;
    color: black;
    position: relative;
}
.aktiv::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: rgb(0, 221, 0);
    border-radius: 2px;
}
nav li a:hover{
    color:  white;
}
#tekniker{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #48c5e4;
    padding: 40px 20px;
}
.box{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}
.rubrik{
    height: 200px;
    display: flex;
    background-color: #21ff9f;
    border: 2px solid #1c1ca0;
    border-radius: 10px;
    gap: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.rubrik:hover{
    transform: translateY(5px);
    height: 250px;
    background-color: #0097cd;
    cursor: pointer;
}
.rubrik .text_2{
    flex: 1;
    padding: 20px;
}
.rubrik .text_2 h2{
    font-family: "Permanent Marker", cursive;
}
.rubrik .bild_2{
    width: 200px;
    display: flex;
}
.rubrik .bild_2 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(60%);
    transition: 0.3s ease;
}
.rubrik:hover .bild_2 img{
    filter: brightness(100%);
    transform: scale(1.05);
}
#projekt{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #48c5e4;
    padding: 40px 20px;
}
.projekt_box{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    justify-items: center;
    align-items: stretch;
    -webkit-tap-highlight-color: transparent;
}
.projekt_box .rad{
    grid-column: 1 / 3;
    justify-self: center;
    width: 50%;
}
.projekt_ruta{
    background-color: #21ff9f;
    border: 2px solid #1c1ca0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    max-height: 320px;
    cursor: pointer;
    position: relative;

    transition: 
    max-height 1.4s ease,
    transform 0.3s ease;
}
.projekt_ruta.open{
    max-height: 700px;
}
.projekt_ruta img{
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
    transition: 1s ease;
    border-bottom: 2px solid #1c1ca0;
}
.projekt_ruta h2{
    margin: 10px 0 1px 0;
    font-size: 24px;
    font-family: "Permanent Marker", cursive;
}
.projekt_ruta p{
    font-size: 16px;
    padding: 20px;
    min-height: 180px;
    max-height: 180px;
}
#om{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: #48c5e4;
    padding: 20px;
}
.ruta_om{
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    width: 60%;
    max-width: 700px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
}
.ruta_om h2{
    font-size: 22px;
    font-family: "Permanent Marker", cursive;
}
.text_om{
    font-size: 20px;
    line-height: 1.4;
}
.kontakt{
    background: #e8ffff;
    border: 2px solid #1c1ca0;
    border-radius: 10px;
    padding: 10px;
}
.kontakt p{
    font-size: 16px;
}
main{
    display: flex;
    background-color: #C9FBFF;
    flex: 1;
    padding: 20px;
    gap: 20px;
    align-items: center;
}
.text{
    padding: 20px;
    align-items: center;
    justify-content: center;
    width: 50%;
    display: flex;
}
main .text p{
    font-size: 35px;
    text-align: center;
    max-width: 500px;
}
.bild{
    width: 50%;
    display: flex;
    padding: 20px;
    justify-content: center;
    align-items: center;
    object-fit: cover;
}
main .bild img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

footer{
    background-color: #007bb9;
    padding: 10px;
    text-align: center;
}
footer a{
    text-decoration: none;
    color: #ffffff;
}
footer a:hover{
    text-decoration: underline;
}


@media (max-width: 750px){

    header h1{
        font-size: 35px;
        margin-left: 20px;
    }

    nav ul{
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 20px;
    }

    main{
        flex-direction: column;
    }

    .text,
    .bild{
        width: 100%;
    }

    .rubrik{
        flex-direction: column;
        height: auto;
    }

    .rubrik:hover{
        transform: none;
        height: auto;
        background-color: #21ff9f;
    }

    .rubrik .bild_2{
        width: 100%;
        height: 300px;
    }

    .rubrik .bild_2 img{
        filter: brightness(100%);
    }

    .rubrik:hover .bild_2 img{
        transform: none;
    }

    .projekt_box{
        grid-template-columns: 1fr;
        width: 100%;
    }

    .projekt_box .rad{
        grid-column: auto;
        width: 100%;
    }

    .projekt_ruta{
        width: 100%;
        max-height: 550px;
        overflow: hidden;
        transition: none;
    }

    .projekt_ruta.open{
        max-height: none;
    }

    .projekt_ruta img{
        width: 100%;
        max-height: 90vh;
        height: auto;
        object-fit: cover;
        display: block;
        transition: none;
    }

    .projekt_ruta h2{
        margin-top: 10px;

    }
    .ruta_om{
        width: 100%;
    }
        main .text p{
        font-size: 28px;
    }
    .projekt_ruta p{
        font-size: 16px;
    }
}
@media (max-width: 1100px ){
    main .text p{
        font-size: 28px;
    }

}
@media (max-width: 1000px ){
    main .text p{
        font-size: 24px;
    }
    .rubrik .bild_2 img{
        filter: brightness(100%);
    }
}
@media (max-width: 900px ){
    main .text p{
        font-size: 20px;
    }
    .projekt_ruta p{
        font-size: 14px;
    }
}
@media (max-width: 750px ){
    main .text p{
        font-size: 28px;
    }
    .projekt_ruta p{
        font-size: 16px;
    }
}
@media (max-width: 450px ){
    .projekt_ruta p{
        font-size: 12px;
    }
    main .text p{
        font-size: 24px;
    }
}
    