@font-face {
    font-display: swap;
    font-family: 'Carme';
    font-style: normal;
    font-weight: 400;
    src: url('./carme-v16-latin-regular.woff2') format('woff2'); 
}

*,
*::before,
*::after {
    padding: 0;
    margin:0;
    box-sizing: border-box;
    font-family: "Carme", sans-serif;
    transition: all 0.5s !important;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 15em;
    scroll-behavior: smooth;
}

a.blueLink {
    color: skyblue;
}

a {
    text-decoration: none;
    color: black;
}

a.specialA {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.firstImpression {
    height: 98dvh;
    width: 99%;
    background-image: url(./Img/Subtract_sharp.png);
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    flex-direction: column;
    margin-top: .5em;
    border-radius: 50px;
    padding: 5em;
    position: relative;
    color: white;
}

.grosser {
    font-size: 250px;
    margin-top: -100em;
    letter-spacing: 20px;
}

.firstImpression > h1 {
    font-size: 48px;
    text-align: left;
}

h1 {
    font-size: 76.27px;
    text-align: center;
}

.bigWidthH1 {
    width: 70%; 
    
}

.undertitle {
    width: 35%;
    line-height: 1.5em;
    font-weight: 300;
    margin-left: 10em;
    font-size: 20.36px;
}

p {
    line-height: 1.5em;
    font-size: 18px;
}

.infoBox {
    position: absolute;
    bottom: 1.5em;
    left: 1.5em;
    height: 170px;
    width: 240px;
    border-radius: 15px;
    background-color: black;
    backdrop-filter: blur(206px);
    -webkit-backdrop-filter:blur(206px);
    background-color: #ffffff20;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-direction: column;
    color: white;
    padding: 1em;
    border: #979797 2px solid;
}

.infoBox h2 {
    font-weight: 400;
    letter-spacing: 1px;
}

h2 {
    font-size: 35px;
}

.arrow {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: transparent;
    position: absolute;
    bottom: 149px;
    right: 39px;
    border: solid white 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mehrInfos {
    position: absolute;
    bottom: .001em;
    right: 0;
    width: 367px;
    height: 99px;
    border-radius: 15px;
    background-color: white;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-left: solid white 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black  !important;
    padding: 0.6em;
}

.informationButton, .informationButton > button {
    height: 100%;
    width: 100%;
    border-radius: 15px;
}

.informationButton > button {
    background-color: white;
    border: black solid 2px;
    font-size: 25px;
}

.schenken {
    height: fit-content;
    display: flex;
    width: 70%;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 44px;
}

img[alt='schenken'] {
    width: 100%;
    height: auto;
}

.resilienz {
    height: 74dvh;
    display: flex;
    width: 90%;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 3em;
}

.resilienzTitle {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5em;
}

.resilienzTitle > * {
    flex: 50%;
    width: 100%;
    text-align: left;
}

.resilienzTitle > h1 {
    text-wrap: nowrap;
}

.resilienzBaeume {
    /* width: 100%; */
    display: flex;
    flex-direction: row;
    height: 56dvh;
    gap: 1em;
}

.resilienzBaeumeDiv {
    flex: 1;
    height: 100%;
    border-radius: 15px;
    background-color: beige;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    padding: 3em;
    color: white;
    text-align: left;
    flex-direction: column;
}

.resilienzBaeumeDiv > h2 {
    letter-spacing: 0.3em;
    font-size: 50px;
    /* -webkit-text-stroke: 0.3em green;  */
}

.resilienzBaeumeDiv:first-of-type {
    background-image: url(Img/buche.avif);
    background-position: center;
    background-size: cover;
}

.resilienzBaeumeDiv:nth-child(2) {
    background-image: url(Img/lärche.webp);
    background-position: center;
    background-size: cover;
}

.resilienzBaeumeDiv:nth-child(3) {
    background-image: url(Img/ahorn.jpg);
    background-position: center;
    background-size: cover;
}

.resilienzBaeumeDiv::after {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    backdrop-filter: grayscale(1);
    -webkit-backdrop-filter: grayscale(1);
    border-radius: 15px;
    top: 0;
    left: 0;
}

.resilienzBaeumeDiv:hover::after {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    backdrop-filter: grayscale(0);
    -webkit-backdrop-filter: grayscale(0);
    border-radius: 15px;
    top: 0;
    left: 0;
}

.vorteile {
    width: 90%;
    gap: 5em;
}

img[alt='vorteile'] {
    width: 40%;
    height: auto;
}

.resilienzBaeume_neu {
    justify-content: space-between;
    width: 80%;
    gap: 2em;
}

.resilienzBaeumeDiv_neu {
    flex: 0.4;
    height: 100%;
    border-radius: 15px;
    background-color: white;
    border: #cfcfcf solid 1px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 3em;
    color: black;
    text-align: center;
    flex-direction: column;
    gap: 2em;
}

.resilienzBaeumeDiv_neu > h2 {
    letter-spacing: 0.3em;
    font-size: 50px;
    /* -webkit-text-stroke: 0.3em green;  */
}

h3 {
    font-size: 24px;
}

.timeline {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    height: 100dvh;
    overflow: visible;
}

.timeline > div {
    flex: 1;
    width: 100%;
    height: 100%;
    border: black 1px solid;
    display: flex;
    justify-content: center;
    align-items: baseline;
    overflow: visible;
}

.timeline > div img {
    height: 100%;
    width: auto;
}

.div_with_background {
    background-image: url(./Img/timeline.png);
    background-position: top center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    overflow: visible;
    background-attachment: scroll;
}

.testDiv {
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.test {
    height: 100dvh;
}

.faq {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 73%;
    flex-direction: column;
    gap: 1em;
    transition: 0.4s;
}


.faqBox {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 40px;
    gap: 10px;
    border: solid #585858 2px;
    width: 90%;
    border-radius: 15px;
    transition: 0.4s;
}

.faqBox:first-of-type {
    margin-top: 3em;
}

hr {
    width: 90dvw;
    height: 1px;
}


.impressum {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 3em;
    border-top: solid 1px #9a9a9a;
    margin-bottom: 1em;
}

.impressum > h4 {
    color: #585858;
}

.impressum > h5 {
    text-align: center;
    padding: 0 10px;
}

.subFlex {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.4s;
}

.subFlex > img {
    height: 50px;
    width: 50px;
    
}

.clicked {
    rotate: -90deg;
    transition: 0.4s;
}

.hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}


.visible {
    max-height: 500px; /* Wählen Sie eine ausreichend große Höhe, die den gesamten Inhalt abdecken kann */
    transition: max-height 0.4s ease;
}


.faqBox > h3 {
    font-size: 37px;
    font-weight: 500;
}

.bereitsGesammelt {
    display: flex;
    flex-direction: column;
    gap: 70px;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    margin-top: 5em;
}


.faqBox {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 40px;
    gap: 0px;
    border: solid #585858 2px;
    width: 90%;
    border-radius: 15px;
    transition: 0.4s;
}

.gap {
    gap: 10px;
}

.faqBox:first-of-type {
    margin-top: 3em;
}

.subFlex {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.4s;
}

.subFlex > img {
    height: 50px;
    width: 50px;
}

.content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.hidden {
    max-height: 0;
}

.visible {
    max-height: 500px;
}


.wrapperForBackground {
    position: absolute;
    top: -15%;
    left: -20%;
    width: 140%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    /* overflow: hidden; */
    /* gap: 10px; */
}

.beschriftung {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.spendenStand {
    position: absolute;
    top: 0;
    left: 0%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.miniPointer {
    height: 10px;
    width: 2px;
    background-color: #e8e8e8;
}

.zielLeiste {
    width: 100%;
    height: 2px;
    background-color: #e8e8e8;
    border-radius: 15px;
    margin-top: 10px;
}

.extraGroßh1 {
    font-size: 1200%;
    letter-spacing: 10px;
}

.backgroundCounter {
    display: flex;
    width: 100%;
    height: 83%;
    /* border: solid black 1px; */

    gap: 1em;
    overflow: hidden;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.fadeIn {
    opacity: 1;
    transform: translateY(0);
}

.backgroundCounterDiv {
    flex: 1;
    width: 100%;
    background-color: transparent;
    z-index: -1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.backgroundCounterDiv img {
    width: auto;
    height: 3%;
}

.grayTree {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.grayBox > img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    opacity: .5;
}

span.greenWords {
    color: #33983c30;
}

mark {
    background: #33983c85;
    border-radius: 5px;
    padding: 0px 13px;
}

span.black {
    font-weight: 600;
    color: black;
}

.mehr {
    font-size: 170px;
}

.slide-gallery .scroll-container {
    
}

.slide-gallery .item-container {
    padding: 0;
    margin: 25px 0 0;
    display: grid;
    grid-gap: var(--grid-gap);
    grid-auto-flow: column;
    width: -moz-fit-content;
    width: fit-content;
    padding-left: 10px;
    padding-right: 10px;
}

.slide-gallery .item-container .gallery-item {
    width: 372px;
    display: flex;
    
}

.vorteileUpdated {
    width: 100%;
    height: fit-content;
    overflow-x: scroll;
    scrollbar-width: none;
    padding-left: 5%;
    padding-right: 15%;
    scroll-snap-type: x mandatory;
    scroll-padding: 100px; 
    padding-bottom: 1em;
}

.weirdmargin {
    text-align: left;
    margin-bottom: -2em;
    width: 100%;
    padding-left: 5%;
    padding-right: 15%;
}

.vorteileUpdated > h1 {
    text-align: left !important;
    margin-bottom: .7em;
}

ul {
    display: grid;
    scroll-snap-align: start;
    grid-auto-flow: column;
    will-change: transform;
    grid-gap: 2em;
    padding-right: 10%;
}

.resilienzBaeumeDiv_neu {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    width: 372px;
    height: 350px;
    border-radius: 28px;
    background-color: white;
    border: #cfcfcf solid 1px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px;
    color: black;
    text-align: center;
    flex-direction: column;
    gap: 2em;
    scroll-snap-align: center; 
    scroll-snap-stop: always; 
    text-align: left !important;
}

.resilienzBaeumeDiv_neu > img {
    height: 55px;
    width: 55px;
}



/* For Chrome/Edge/Safari, hiding scrollbar */
.vorteileUpdated::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1360px) {
    .grosser {
        font-size: 200px;
    }

    .undertitle {
        font-size: 17.36px;
    }

    .mehrInfos {
        width: 297px;
        height: 87px;
    }

    .infoBox {
        height: 147px;
        width: 198px;
    }

    
}

@media (min-width: 1400px) {
    .mehr {
        font-size: 200px;
    }
}

@media (max-width: 1211px) {
    .resilienzTitle > h1 {
        font-size: 32px;
    }

    .resilienz {
        height: fit-content;
    }

    .resilienzBaeume {
        flex-direction: column;
        width: 100%;
        height: fit-content;
    }

    /* .extraGroßh1 {
        font-size: 212px;
    } */

    /* .backgroundCounter, .zielLeiste, .beschriftung {
        width: 89%;
    } */
}

@media (max-width: 1101px) {
    .grosser {
        font-size: 160px;
    }

    .undertitle {
        font-size: 16px;
    }

    .mehrInfos {
        width: 250px;
        height: 85px;
    }

    .infoBox {
        height: 120px;
        width: 170px;
    }

    h2 {
        font-size: 25px;
    }

    button {
        font-size: 19px !important;
    }

    .resilienzBaeumeDiv_neu {
        width: 322px;
        height: 300px;
    }

    .resilienzBaeumeDiv_neu > p, .resilienzBaeumeDiv > p  {
        font-size: 16px;
    }

    .resilienzBaeumeDiv {
        gap: 10px;
    }
}

@media (max-width: 1051px) {
    .extraGroßh1 {
        font-size: 1000%;
    }
}

@media (max-width: 980px) {
    .bigWidthH1 {
        width: 81%;
    }

    .extraGroßh1 {
        font-size: 900%;
    }

    .undertitle {
        font-size: 14px;
    }

    .resilienzTitle {
        flex-direction: column;
        gap: 5em;
    }
}


@media (max-width: 810px) {

    .extraGroßh1 {
        font-size: 800%;
    }

    .bigWidthH1 {
        width: 100%;
        
    }

    .grosser {
        font-size: 120px;
    }

    .undertitle {
        font-size: 14px;
    }

    .undertitle {
        width: 70%;
        margin-left: 15em;
    }

    .mehrInfos {
        width: 200px;
        height: 70px;
    }

    .infoBox {
        height: 100px;
        width: 150px;
    }

    button {
        font-size: 14px !important;
    }

    h2 {
        font-size: 20px;
    }

    .firstImpression {
        padding: 2em;
        background-position: 50%;
    }

    .weirdmargin, .faq > h1 {
        font-size: 60px;
    }
}

@media (max-width: 751px) {
    .extraGroßh1 {
        font-size: 650%;
    }
}

@media (max-width:601px) {
    .extraGroßh1 {
        font-size: 575%;
    }

    .hiddenSmall {
        display: none;
    }

    .mehr {
        font-size: 100px;
        text-align: center;
        width: 100%;
    }

    .undertitle {
        width: 70%;
        margin-left: 7em;
    }

    .resilienzBaeumeDiv_neu {
        width: 290px;
        height: 260px;
    }

    .resilienzBaeumeDiv_neu > p, .resilienzBaeumeDiv > p {
        font-size: 12px;
    }

    .resilienzBaeumeDiv_neu > h3 {
        font-size: 20px;
    }

    .resilienzBaeumeDiv_neu > img {
        width: 40px;
        height: 40px;
    }

    .weirdmargin, .faq > h1 {
        font-size: 50px;
    }

    .subFlex > img {
        height: 35px;
        width: 35px;
    }

    .subFlex > h3 {
        font-size: 20px;
    }

    .resilienzBaeumeDiv > h2 {
        font-size: 35px;
    }


}

@media (max-width:556px) {

    .extraGroßh1 {
        font-size: 450%;
    }

    .grosser {
        font-size: 90px;
    }

    h1 {
        font-size: 50px;
    }

    p {
        font-size: 15px;
    }

    .schenken {
        width: 88%;
    }

    .faq {
        width: 88%;
    }
}

@media (max-width: 501px) {

    .hideWhen500 {
        display: none;
    }

    .backgroundCounterDiv img {
        height: 5%;
    }

    .backgroundCounterDiv {
        gap: 4px;
    }

    .wrapperForBackground {
        top: -30%;
        width: 90%;
        left: 4%;
        height: 105%;
    }
}


@media (max-width: 460px) {

    .backgroundCounter {
        width: 111%;
    }
    

    .mehr {
        font-size: 65px;
        text-align: center;
        width: 100%;
    }


    .grosser {
        font-size: 70px;
    }

    .undertitle {
        font-size: 12px;
        margin-top: 3em;
    }

    .weirdmargin, .faq > h1 {
        font-size: 40px;
    }

    .weirdmargin {
        margin-bottom: -4em;
    }
}

@media (max-width: 450px) {
    .undertitle {
        width: 100%;
        margin: 0;
        text-align: center;
        margin-top: 1.5em;
    }

    .grosser {
        text-align: center;
        font-size: 50px;
    }

    .bigWidthH1 {
        text-align: center !important;
    }

    .infoBox {
        display: none;
    }

    .mehrInfos {
        width: 100%;
        border-radius: 0;
        background: transparent;
        bottom: 1.5em;
        border-left: none;
    }

    button {
        font-size: 17px !important;
    }

    .firstImpression {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }


    .resilienzBaeumeDiv_neu {
        width: 250px;
        height: 220px;
        gap: 1.5em;
    }

    .resilienzBaeumeDiv_neu > p, .resilienzBaeumeDiv > p  {
        font-size: 11px;
    }

    .resilienzBaeumeDiv_neu > h3 {
        font-size: 17px;
    }

    .resilienzBaeumeDiv_neu > img {
        width: 30px;
        height: 30px;
    }

    .subFlex {
        flex-direction: column;
        gap: 1em;
    }
}



@media (max-width: 373px) {

    .bereitsGesammelt > h2 {
        text-align: center !important;
    }
    
    .backgroundCounter {
        width: 61%;
    }

    .wrapperForBackground {
        top: -36%;
    }

    /* .extraGroßh1 {
        font-size: 101px;
    } */
}

@media (max-width: 360px) {
    .mehr {
        font-size: 48px;
        text-align: center;
        width: 100%;
    }
    .weirdmargin {
        font-size: 33px;
        margin-bottom: -5em;
    }
}

@media (min-width: 1650px) {
    p {
        font-size: 23px;
    }
}

@media (min-width: 1720px) {
    .resilienzTitle {
        width: 98%;
    }
}

@media (min-width: 1740px) {
    .resilienzTitle {
        width: 96%;  
    }


}

@media (min-width: 1790px) {
    .resilienzTitle {
        width: 95%;
       
    }
}

@media (min-width: 1800px) {
    .resilienzTitle {
        width: 93%;
       
    }
}

@media (min-width: 1820px) {
    .resilienzTitle {
        width: 94%;
       
    }
}

@media (min-width: 1830px) {
    .resilienzTitle {
        width: 90%;
       
    }
}

@media (min-width: 1850px) {
    .resilienzTitle {
        width: 100%;
       
    }
}