[data-theme="dark"]{

    --bg-img: url("/img/dark_bg_desktop.webp");
    --font-color: #fff;
    --bt-hover: #222;
    --bg-color: rgba(34, 34, 34, 0.7);
    --bg-trans: rgba(34, 34, 34, 0.4);
    --logo: url("/img/mavel_light.svg");
    --top: url("/img/top_div.svg");
    --btm: url("/img/btm_div.svg");
    --footer: url("/img/bottombar_bg.svg");
    --sun_moon: url("/img/icon/sun.svg");
    --instagram: url("/img/icon/Instagram_Glyph_White.svg");
    --mail: url("/img/icon/mail_dark.svg");

}

[data-theme="light"]{
    --bg-img: url("/img/light_bg_desktop.webp");
    --font-color: #222;
    --bt-hover: #fff;
    --bg-color: rgba(255, 255, 255, 0.7);
    --bg-trans: rgba(255, 255, 255, 0.4);
    --logo: url("/img/mavel.svg");
    --top: url("/img/top_light.svg");
    --btm: url("/img/btm_light.svg");
    --footer: url("/img/bottombar_light.svg");
    --sun_moon: url("/img/icon/moon.svg");
    --instagram: url("/img/icon/Instagram_Glyph_Black.svg");
    --mail: url("/img/icon/mail_light.svg");
}

@font-face {
    font-family: "Inter";
    font-weight: 100 900;
    font-style: normal;
    src: url(fonts/Inter-VariableFont_opsz\,wght.ttf) format('truetype');
} 

* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter";
    font-weight: 400;
    
}

/* :root { 
    background: var(--bg-img) fixed center/cover;
    min-height: 100%;
} */

/* .body {
    position: absolute;
    left: 50%; 
    margin-top: 5rem;
    transform: translateX(-50%);
    width: 80%;
} */

.body {
    width: 100vw;
    min-height: 100%;
    /* height: 100svh; */
    display: flex;
    flex-direction: column;
    /* background: var(--bg-img) fixed center/cover;  */
    align-items: center; 
    position: relative;
    overflow-x: hidden;
    /* backdrop-filter: blur(60px); */
    /* background: url("/img/gradient_light.svg") fixed center; */
    /* background-size: cover; */
} 

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  /* height: 100dvh; Dynamische Viewport-Höhe */
  height: 100vh; /* Fallback */
  background: var(--bg-img) center/cover no-repeat;
  z-index: -20; /* Hintergrund bleibt hinter dem Inhalt */
  will-change: transform; /* Optimiert die Performance */
}

/* .bgimage{
    background: var(--bg-img) no-repeat center/cover;
    position: fixed;
    height: 100vh;
    width: 100vw;
} */

a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 0;
    font-size: 14pt;
    text-decoration: none;
    color: var(--font-color);
}

li a::after{
    content: attr(data-label);
    height:0;
    visibility: hidden;
    font-weight: 700;
    overflow: hidden;
    display: block;
}

a:hover {
    font-weight: 700;
}

ul {
    list-style: none;
    gap: min(3vw,40px);
    padding: 0;
}

h1{
    padding-bottom: 20px;
    font-weight: 600;
    color: var(--font-color);
}

h2{
    /* genutzt in tour grafik */
    text-transform: uppercase;
    font-size: max(20pt, 3vw);
    font-weight: 600;
    text-align: center;
    color: var(--font-color);
}

h3{
    color: var(--font-color);
    font-weight: 600;
}

h4{
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
    color: var(--font-color);
}

h5{
    font-size: 16px;
    color: var(--font-color);
}

p{
    font-size: 16px;
    margin-top: 10px;
    color: var(--font-color)
}

b {
    font-weight: 700;
}

hr{
    background-color: var(--font-color);
    border: none;
    height: 4px;
    width: 50%;
    margin: 0 auto;
}

button {
    padding:5px 30px;
    border-radius: 90px;
    color: var(--font-color);
    background-color: rgba(0, 0, 0, 0);
    border: 3px solid var(--font-color);
    font-size: 12pt;
    font-weight: 600;
    transition: all .3s ease-in-out;

}

button:hover:enabled {
    color: var(--bt-hover);
    background-color: var(--font-color);
    transition: all .3s ease-in-out;
}

/* HEADER */

.spacer{
    height: 58px;
}

/* header nav {

    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-img) center top / cover no-repeat;
    background-attachment: fixed;
    padding-left: 5vw;
    will-change: tranform;

} */

header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 0 50px; */
    height: 58px;
    z-index: 100;
}


header nav {
    width: 100%;
    height: 100%;
    background: transparent !important;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 5vw;
}

header::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-img) center/ cover no-repeat;
    z-index: -1;
    will-change: transform;
    clip-path: inset(0 0 calc(100vh - 58px) 0);
}


header ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 50px;
}

header ul span{
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo {
    display: block;
    height: 29px;
    width: auto;
    background: var(--logo) no-repeat center / cover;
    background-size: auto 29px;
    flex: 0 0 auto;
    aspect-ratio: 311/82;
}

.logo img{
    max-height: 29px;
}

.insta{
    width: 29px;
    height: 29px;
    background: var(--instagram) no-repeat center / cover;
}

nav label{
    display: inline-block;
    height: 29px;
    width: 29px;
    background: var(--sun_moon)no-repeat center / cover;
    transition: all 0.6s ease-out;
    transform: rotate(90deg);
    cursor: pointer;
    /* overflow: hidden; */

}

input:checked + label {
    transform: rotate(0deg);
}

input[type="checkbox"]{
    appearance: none;
    display: none;
}

.burger{
    display: none;
    margin-right: 50px;
}

/* WELCOME */

#welcome {
    height: calc(100dvh - 58px);
    display: flex;
    justify-content: center;
    align-items: center;
}

#welcome img{
    height: 40vh;
}


/* MAIN CONTENT */
.main{
    flex: 1 0 auto;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.divider {
    background: var(--top) no-repeat;
    background-position: center;
    background-size: auto 220px;
    width: 100%;
    height: 220px;

}

.bottom{
    background: var(--btm) no-repeat;
    background-position: center;
    background-size: auto 220px;
}

.main-bg {
    height: 100%;
    width: 100vw;
    /* background: var(--divider) no-repeat;
    background-size: cover;  */
    overflow: hidden;
    background-color: var(--bg-color);

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 10vw;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0px);
}

.main-bg h1{
    padding-left: 3vw;
}

/* 3D-RUNDGANG */

.tour{
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    width: 100%;
    height: 70vh;
    margin-bottom:10vh;
}

.description {
    width: 25%;
    display: flex;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    padding: 2vw;
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(255, 252, 252, 0), rgba(29, 100, 242, 0.678));
}

.description h3 {
    
    text-align: center;
    padding: 0px 2vw;
}

.tour .picture {
    height: 100%;
    width: 75%;
    overflow: hidden;
    object-fit: contain;
}

.tour .picture img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}


/* AKTUELLES */ /* responsive Design mit javascript und grid-verschiebungen */

.grid-container{
    display: flex;
    justify-content: center;
    gap: 50px;
    width: 100%;
    height: 65vh;
    margin-bottom: 100px;
    overflow: hidden;
}

.news{
    display: grid;
    /* da es bei der animation des linearen gradient backgrounds zu flackernden artefakten kommt folgender workaround */
    background-size: 101% 100%;
    overflow: hidden;
}

.news .text {
    height: 100%;
    padding: 30px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end:3;
}

.news .bild {
    max-height: 100%;
    grid-row-start: 2;
    grid-column-start: 2;

}

.news img {
    width: 100%;
    height: 100%;
    vertical-align: bottom;
    object-fit: cover;
    object-position: center;
}

.news button {
    margin-top: 3vh;
    align-self: flex-end;
    margin-bottom: 10px;
}

.news h1 {
    padding: 0px;
    padding-bottom: 5px;
    font-size: clamp(16pt, 2vw, 28pt);
    text-align: left;
}

.news h4 {
    width: 80%;
    line-height:  1.1em;
    /* padding-bottom: 20px; */
}

.news p {
    color: var(--font-color);
    width: 100%;
    hyphens: auto;
} 


.first{
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(255, 252, 252, 0), rgba(115,235,175,0.373));
}

.second {
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(255, 252, 252, 0), rgba(242, 145, 49, 0.723));
}


.border{
    border-left: 5px solid var(--font-color);
    border-top: 5px solid var(--font-color);
}

/* animation-classes */

.aktiv {
    width: 200%;
    grid: 0% 100% / 1fr 1fr;
    transition: all .9s ease 500ms, grid .6s ease;
}

.aktiv .text {
    width: 45%;
    justify-content: space-between;
}

.aktiv p {
    opacity: 1;
    max-height: auto;
    transition: all 0.2s ease 0.7s;
}

.passiv {
    width: 100%;
    grid: 40% 60% / 0fr 1fr;
    transition: all .9s ease 500ms;
}

.passiv .text {
    width: 100%;
    height: 40%;
    justify-content: flex-start;
    transition: all .9s ease 500ms;
}

.passiv p {
    max-height: 0;
    opacity: 0;
    /* transition: all 0.3s ease; */
}


/* CONTACT */

#socials{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px 9vw;
    gap: 35px;
}

.instagram {
    max-height: 60vh;
    overflow-y: scroll;
    border-radius: 20px;
    flex-shrink: 0;
}

form, .contact {
    background-color:var(--bg-color);
    height: 70vh;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 70px 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.contact {
    max-width: 450px;
    width: auto;
    height: 60vh;
}

.contact button {
    margin-top: 20px;
    align-self: flex-end;
    width: auto;
}

.icongroup {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    cursor: default;
}

.contact p{
    margin: 0px;
    font-size: 14pt;
}

.mailicon {
    width: 24px;
    height: 18px;
    background: var(--mail) no-repeat center/contain;
}


form span {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

input, textarea {
    font-size: 17px;
    background-color: var(--bg-color);
    color: var(--font-color);
    padding: 5px 10px;
    border-radius: 5px;
    border: 3px solid var(--font-color);
    width: 100%;
}

.error-message {
    display: none;
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
}

.form-group {
    height: 100%;
}

.error-border {
    border: 3px solid red !important; /* !important überschreibt Standard-Border */
}

/* #mail{
    width: 120%;
} */

#ref{
    width: 44.5%;
}

textarea {
    height: 100%;
    max-width: 100%;
    resize: none;
}

form button{
    width: 200px;
    align-self: flex-end;
    justify-self: flex-end;
}


/* FOOTER */

.btm{
    /* SPACER */
    min-height: 200px;
}

footer{
    position: relative;
    margin-top:auto;
    height: 400px;
    width: 100%;
    background: var(--footer) no-repeat;
    background-size: auto 400px;
    /* margin-top: auto; */
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

footer nav{
    width: 100%;
    color:#fff;
    display: grid;
    grid-template: min-content / 1fr auto 1fr;
    padding: 5vh 5vw;
    justify-items: center;
    align-items: center;
}

footer li {
    width: 110%;
}

/* footer nav .logo, .hshl {
    display: flex;
    justify-content: center;
    align-items: center;
} */

footer li:last-child {
    grid-column: 4/5;
    grid-row: 1/3;
    display: flex;
    align-items: center;

}

footer ul {
    padding: 0px 10px;
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-template-rows:repeat(2, auto);
    grid-auto-flow: column;
    overflow: hidden;
    gap: 0px;
    column-gap: 2vw;
    padding: 0px 2vw;

}

footer a {
    padding: 0px;
}

footer li a{
    font-size: 14pt;
    align-items: start;
}

footer .logo{
    height: 40px;
    background-size: auto 40px;
}

.hshl img{
    height: 70px;

}


/* PROJECTS */

.gallery, .recommendations {
    background-color:var(--bg-color);
    backdrop-filter: blur(10px);
    margin: 70px 9vw;
    border-radius: 20px;
    padding: 70px 7vw;
}

.gallery ul{
    margin-top: 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
}

.filter {
    color: var(--font-color);
    gap: 10px;
}

.filter button {
    padding: 0px 5px;
    width: 5vw;
    min-width: max-content;
}

.selected {
    border-radius: 3px;
    background-color: var(--font-color);
    color: var(--bt-hover);
}

.projects {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    /* grid-template-rows: 32% 32% 32%; */
    gap: 10px;
    justify-content: center;
    width:100%;
    height: 100%;
}

.project {
    aspect-ratio: 1/1;
    background-color: rgba(34, 34, 34, 0.7);
    overflow: hidden;
    position: relative;
    padding: 0px;
}

.project img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
    transition: transform .7s ease;
}

.project:hover img {
    transform: scale(1.07);
}

.project div{
    position: absolute;
    background-color: rgba(34, 34, 34, 0.9);
    bottom: 0;
    left: 0;
    width: 100%;
    padding: .5vw clamp(10px, 1.5vw, 30px);
    max-height: 15%;
    transition: max-height .7s ease;
}

.project span {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.project span span {
    display: flex;
    gap: 5px;
}

.project h4 {
    color: #fff;
    font-size:clamp(12pt, 1vw 16pt);

}

.project p {
    color: #fff;
    opacity: 0;
    transition: all .5s ease;
}

.project button {
    font-size:clamp(12pt, 1vw 16pt);
    padding: 0px 10px;
    color: #fff;
    border: 3px solid #fff;
}

.project:hover div {
    max-height: 100%;
}

.project:hover p {
    opacity: 1;
}

/* PROJECT-TEMPLATE */

.template p {
    color: var(--font-color);
    line-height:1.6em;
    width: 100%;
    text-align: justify; 
    hyphens: auto;
    margin: 0px;
}

.flexcontainer .content {
    columns: 2;
    gap: 30px;
}

/* .flexcontainer {
    display: flex;
    align-items: space-between;
    gap: 30px;
    width: 100%;
    margin: 10px 0px 40px 30px;
    padding-right: 30px;
} */

.flexcontainer {
    display: grid;
    grid-template: auto auto auto auto 1fr/ 1fr 1fr 1fr;
    align-items: space-between;
    gap: 30px;
    width: 100%;
    margin: 10px 0px 40px 30px;
    padding-right: 30px;
}

.template img{
    width: 100%;
    border-radius: 15px;
}

.template .head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* flex-wrap: wrap; */
    grid-row: 1/2;
    grid-column: 1/4;
    gap: 15px;
    width: 100%;
}

.template .head .titel {
    min-width: 0;
    flex-shrink: 1;
}

.flexcontainer .text{
    gap: 10px;
    display: flex;
    flex-direction: column;
    grid-column: 1/3;
    grid-row: 2/5;
}

.projectimg {
    grid-row: 2/3;
    grid-column: 3/4;

}

.template h1 {
    padding: 0px;
}

.template hr {
    display: none;
}

/* .flexcontainer span {
    flex-direction: column;
    width: 230%;
    gap: 20px;
} */

.img-title{

    grid-row: 3/4;
    grid-column: 3/4;
    text-align: center;
    padding: 10px;
}

.margin {
    border-left: 5px solid var(--font-color);
    padding: 20px 30px;
    margin: 30px 40px 30px 40px;
    display: flex;
    gap: 30px;

    grid-column: 1/3;
    grid-row: 5/6;
    
}

.margin div {
    flex: 1;
}

.margin p {
    padding: 0px;
    line-height: 1.3em;
    text-align: start;
}

.carousel{
    padding-top: 40px;
}

.carousel-flex{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.carousel-mask {
  width: 100%;
  overflow: hidden;
  height: 100%;
  border-radius: 5px;
  background-color: #222;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  aspect-ratio: 16 / 9; 
  background-color: #222;
}

.carousel-item {
  height: 100%;
  flex: 0 0 100%;
}

.carousel img {
  max-height: 100%;
  max-width: 100%;
  display: block;
  border-radius: 0px;
  object-fit: contain;
  margin: auto;
  
}

.carousel-control {
    position: relative;
    cursor: pointer;
    bottom: 0%;
}

.carousel .arrow-container {
    background-color: rgba(34, 34, 34, 0.7);
    padding: 25px;
    margin: 10px;
    border-radius: 50%;
}

.drawer .arrow {
    display:none;
}

.arrow{
    border: solid #fff;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 3px;
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    position: absolute;
    transition: all .3s ease-out;
}

.prev {
    rotate: 90deg;
    left: 0%;
}

.prev .arrow {
    top: 25%;
    left: 30%;
}

.next {
    rotate: -90deg;
    right: 0%;
}

.next .arrow {
    top: 25%;
    right: 30%;
}

.carousel-preview {
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3vw;
    overflow: hidden;

}

.carousel-preview img {
    margin: 0px;
    min-width: 80px;
    max-width: 150px; /* Oder ein anderer angemessener Wert */
    max-height: 100px; /* Oder ein anderer angemessener Wert */
    object-fit: cover; /* Dies sorgt dafür, dass das Bildverhältnis erhalten bleibt */
    /* flex-grow: 1;  */
    transition: transform .1s ease-in-out;
    filter: grayscale(100%);
}

img.in-color {
    filter: grayscale(0%);
    transform: scale(1.07);
}

.carousel-preview img:hover {
    transform: scale(1.07);
}


/* TEAM */

.members {
    display: grid;
    grid-template: 1fr 1fr / 1fr 1fr;
    min-height: 80vh;
    gap: 40px;
    margin: 5vh 0px;
}

.e-mail > span:nth-child(2){
    display: none;

}

.members section{
    display: flex;
}

.members img {
    width: clamp(100px,55%, 300px);
    height: auto;
    object-fit: cover;
    overflow: hidden;
}

.members div {
    padding: 20px 5px 20px 20px;
}

/* .members .one div{
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(15, 33, 154, 0.344));
}

.members .two div{
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(15, 154, 40, 0.404));
}

.members .three div{
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(160, 54, 54, 0.382));
}

.members .four div{
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(154, 131, 15, 0.486));
} */




/* BLOG */


.blog .gallery {
    min-height: 100vh;
    
}

.blog .post {
    margin-top:20px;
    background-color: var(--bg-color);
    height: 300px;
    display: flex;
    gap: 20px;
    /* padding: 20px 20px 20px 20px; */
}

.blog .text {
    max-height: 300px;
    /* height: 100%; */
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 3vw 20px 0px;
}

.blog .text div {
    overflow-y: auto;
}

.blog section {
    padding: 20px 80px 20px 20px;
}

.blog .gallery img {
    height: 100%;
    object-fit: contain;
}


/* BLOGPOSTS */

.blogpost .gallery {
    padding:0px;
    overflow: hidden;
}

.blogpost .gallery .headerimg{
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0px;
}

.blogpost .gridcontainer{
    margin: 30px 7vw;
    padding: 0px 30px 40px 30px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows:repeat(5, auto);
    column-gap: 30px;
    row-gap: 20px;

}

.blogpost .head{
    display: flex;
    flex-direction: column;
    grid-row: 1/2;
    grid-column:1/4;
}

.blogpost h1 {
    padding-bottom: 0px;
}

.blogpost .text {
    text-align: justify;
    hyphens: auto;
}

.blogpost .intro {
    grid-row: 2/3;
    grid-column: 1/3;
}

.blogpost .content {
    grid-row: 3/4;
    grid-column: 2/4;
}

.blogpost #Img-1 {
    grid-row:1/3;
    grid-column: 3/4;
}

.blogpost #Img-2 {
    grid-row: 3/4;
    grid-column:1/2;
    margin-top: 10px;
}

.blogpost .gallery img {
    height: 300px;
    width: auto;
    border-radius: 15px;
}

.blogpost .gallery .Img-3 {
    grid-row: 4/5;
    grid-column: 1/4;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.blogpost #subtext {
    grid-row: 5/6;
    grid-column: 1/4;
    margin: 0 auto;
}

/* IMPRESSUM */

.impressum .gallery {
    margin: 70px auto;
    width: min(800px, 82vw)
}

.impressum h5 {
    margin-top: 10px;
    font-weight: 700;
}

.impressum h4 {
    margin-bottom: 10px;
}

.impressum p{
    margin: 0px;
}








/* MEDIA QUERYS */









@media (max-width: 1200px) {

    .members {
        grid-template: 1fr 1fr 1fr 1fr/ 1fr;

    }
    .projects {
        grid-template-columns: 1fr 1fr;
    }

    .margin {
        margin: 0px;
        padding-right: 0px;
        flex-direction: column;
        grid-column: 3/4;
        grid-row: 4/5;
    }

    .flexcontainer .text {
        grid-row: 2/6;
    }
}

@media (max-width:960px) {

       .template .head {
        flex-direction: column;
        gap: 0px;
    }

    .template .subtitel {
        font-size: 16pt;
    }

    .template #line {
        display: none;
    }

    .flexcontainer .content {
        columns: 1;
    }   
    .grid-container {
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .news p {
        display: none;
    }

    .news .bild {
        height: 30vh;
        width: 70vw;
        object-position: center;
        transition: none;
    }

    .news .text {
        padding: 20px;
        height: 30vh;
        width: 30vw;;
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end:3;
        transition: none;
        justify-content: space-between;
    }
}

@media (max-width: 800px){

    /* INDEX PAGE */

    #welcome img{
        height:39vw;
    }

    .tour {
        flex-direction: column-reverse;
    }

    .tour .picture {
        width: 100%;
    }

    .description {
        width: 100%;
        align-items: flex-start;
        gap: 5px;
        padding: 20px;
    }

    .tour hr {
        display: none;
    }

    .description h3 {
        font-size: 12pt;
        padding: 0px 0px 10px 0px;
        text-align: left;
    }
    
    .description button {
        font-size: 12pt;
        align-self: flex-end;
        margin: 10px;
    }

    #socials {
        flex-direction: column;
        height: 100%;

    }

    /* FOOTER */

    footer ul {
        grid-template-columns: repeat(3, auto);
        grid-template-rows: repeat(3, auto);
    }

    footer li:last-child {
    grid-row: 1/4;
}

}

/* BURGER MENU */

@media (max-width: 680px){

    .burger{
        cursor: pointer;
        display: block;
        width: 29px;
        height:29px;
        position: relative;
    }

    .burger hr {
        position: absolute;
        top: 44%;
        width: 100%;
        transition: all .6s ease-in-out;
    }
    
    #line1{
        top: 0%;
    }

    #line3 {
        top:88%;
    }

    .x #line1 {
        transform: rotate(45deg);
        top: 44%;
        width: 120%;
    }

    .x #line3 {
        transform: rotate(-45deg);
        top: 44%;
        width: 120%;
    }

    .x #line2{
        opacity: 0%;
    }
    
    .open {
        height: 30vh;
        left: 0%;
        width: 100%;
        top: 58px;

    }

    .closed {
        top: -1000%;
        left: 0%;
        height: 28vh;
        width: 100vw;
        
    }
    .menu{
        position: absolute;
        transition: top .3s ease-in;
        z-index: -10;
    }

    header {
        overflow: visible;
    }

    header ul {
        height: 100%;
        width: 40vw;
        margin-left: 60vw;
        padding-right: 50px;
        display: flex;
        flex-direction: column;
        align-items:flex-end;
        gap: 0px;
        justify-content: center;
        background: var(--bg-img) fixed center / cover;
        background-size: cover;
        border-radius: 0px 0px 0px 20px ;
        box-shadow:-3px 10px 10px #22222275;
    }

    li a{
        font-size: 16pt;
    }

    /* MAIN CONTENT */

    .news {
        grid-template-rows: auto 1fr;
    }

    .news .text {
        grid-column-end: 3;
        grid-row-end: 2;
        width: 80vw;
        height: 100%;
    }

    .news .bild {
        grid-column-start: 1;
        grid-row-start: 2;
        width: 80vw;

    }

    .icongroup {
        pointer-events: auto;
        cursor: pointer;
    }

    /* FOOTER */

    footer nav {
        padding: 3vh 3vw;
        width: 100%;
        margin: 0 auto;
        column-gap: 3vw;
        grid-template: min-content auto/ 1fr 1fr;
    }

    footer ul {
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(6, auto);
        grid-row: 1/3;
        grid-column: 2/3;
    }

    footer li:last-child {
        grid-row: 1/7; 
    }

    footer a:has(.hshl) {
        grid-column: 1/2;
        grid-row: 2/3;
    }

    footer.hshl {
        display: flex;
        justify-content: flex-end;
    }

    .gallery {
        padding: 70px 9vw;
    }
    .projects {
        grid-template-columns: 1fr;
    }

    .projects div {
        padding: 3vw;
    }

    /* TEMPLATE */

    .template {
        padding: 0px;
    }

    .flexcontainer{
        margin: 0px;
        padding: 0px;
        row-gap: 15px;
    }

    .flexcontainer hr {
        margin-left: 0;
        margin-top: 20px;
    }

    .flexcontainer .text{
        grid-row: 4/5;
        grid-column: 1/4;
        padding: 0px 9vw;
    }

    .template .head {
        grid-row: 2/3;
        /* flex-direction: column;
        gap: 0px; */
        padding: 0px 9vw;
    }

    .template span{
        flex-direction: column;
        gap: 0px;
    }

    .template h1 {
        padding: 0px;
    }
/* 
    .template #line {
        display: none;
    } */

    .template hr {
        display: block;
    }

    .projectimg {
        grid-column: 1/4;
        grid-row: 1/2; 
    }

    .projectimg img {
        border-radius: 15px 15px 0px 0px;
        max-height: 40vh;
        object-fit: cover;
        object-position: center;
    }

    .img-title{
        grid-column: 1/4;
        text-align: left;
        margin: 0px 9vw;
        padding: 0px;
        /* padding-left: 20px; */
        /* border-left: 5px solid var(--font-color); */
    }

    /* .template hr{
        margin: none;
        margin-bottom: 10px;
        margin-left: 0 auto;
    } */

    .margin {

        margin: 0px 9vw;
        grid-row: 5/6;
        grid-column: 1/4;
    }

    /* DRAWER */

    .content {
        display: none;
        padding: 10px  20px;
    }

    .drawer {
        cursor: pointer;
        display:flex;
        justify-content: space-between;
        margin: 10px 20px;
    }

    .drawer-container {
        background-color: var(--bg-trans);
        border-radius: 15px;

    }

    .drawer .arrow-container{
        display: block;
        height: 29px;
        width: 29px;
        position: relative;
    }

    .drawer .arrow {
        display: block;
        border: solid var(--font-color);
        border-width: 0 4px 4px 0;
    }

    .up .arrow {
        border-width: 4px 0 0 4px;
        top: 10%;
    }

    .up .content {
        display: block;
        padding-left:20px;
        
    }


    /* CAROUSEL */

    .carousel-mask {
        border-radius: 0px;
    }

    .carousel-control {
        position: absolute;
    }

    .prev {
        z-index: 100;
    }

    /* BLOG */

    .blog .post {
        height: auto;
        width: 100%;
        flex-direction: column;
    }

    .blog .gallery img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .blog .text {
        padding-left:20px;
    }


}
/* @media (max-width: 680px){ */

@media (max-width: 580px){

    .gallery {
        margin: 70px 5vw;
    }

    .members section {
        flex-direction: column;
    }

    .members img {
        width: 100%;
    }
} 







