@font-face {
    font-family: Social Regular;
    src: url(../fonts/ABC-Social/ABCSocialEdu-Regular.woff2), format(".woff2");
}

@font-face {
    font-family: Necto;
    src: url(../fonts/Necto/NectoMono-Regular.woff2), format(".woff2");
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::selection{
    background-color: yellow;
    color: black;
}

html,body{
    overflow-x: hidden;
}

.text-nav{
    background-color: rgb(234, 234, 234);
    padding-left: 0.5vw;
    height: 3vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: Social Regular;
    font-size: 20px;
    text-decoration: none;
    color: black;
}

.logo:visited{
    color: black;
}

.logo:hover {
    color: white;
    background-color: grey;
}

.kapitel-wrapper{
    display: flex;
}

.kapitel-wrapper > a {
    font-weight: lighter;
    font-family: Necto;
    font-size: 20px;
    margin-right: 0.5vw;
    padding: 5px;
}

.kapitel-aktiv{
    background-color: white;
}


h1{
    font-size: 2vw;
    font-family: Social Regular;
    /* font-weight: lighter; */
    padding-left: 2vw;
    padding-top: 2vh;
    width: 100vw;
    height: 10vh;
    background-color: white;
    -webkit-box-shadow: 0px 5px 15px 5px rgba(0,0,0,0.15); 
    box-shadow: 0px 5px 15px 5px rgba(0,0,0,0.15);
    text-align: left;
}

header{
    position: fixed;
    z-index: 3;
}

.master-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12vh;
}

.text-wrapper{
    width: 60vw;
    /* height: 86vh; */
    padding-left: 1vw;
    padding-top: 3vh;
    /* overflow-y: scroll; */
}

.text-wrapper > a{
    color: rgb(88, 44, 232);
    font-size: 20px;
    font-family: Necto;
    text-decoration: none;
}

.text-wrapper > p {
    font-family: Social Regular;
    font-size: 1.1vw;
    margin-bottom: 20px;
    line-height: 140%;
    margin-top: 20px;
}

.text-wrapper > h2 {
    font-family: Social Regular;
    font-size: 1.5vw;
    margin-top: 70px;
}

.text-quelle{
    /* background-color: rgb(209, 209, 209); */
    color: rgb(88, 44, 232);
    font-family: Necto;
}

#image-box{
    /* background-color: red; */
    width: 40vw;
    height: 75vh;
    border: 2px solid rgb(206, 206, 206);
    border-style: dashed;
    margin-right: 1vw;
    margin-bottom: 1vw;
    margin-left: 1vw;
    margin-top: 3vh;
}

#bildunterschrift{
    font-family: Necto;
    margin-left: 1vw;
    margin-right: 2vw;
    font-weight: lighter;
    font-size: 15px;
}

.quellen-tabelle-wrapper{
    width: 40vw;
    margin-left: 1vw;
}

.text-image-wrapper{
    /* display: flex; */
    justify-content: center ;
    flex-direction: column;
    text-align: center;
}

figure{
    margin-top: 40px;
    margin-bottom: 40px;
    background-color: rgb(234, 234, 234);
    padding: 10px;
}

figcaption{
    text-align: left;
    font-family: Necto;
    /* border-top: 1px solid black; */
    padding-top: 5px;
    color: black;
    
}

.text-image{
    width: auto;
    margin-top: 10px;
    max-height: 500px;
    margin-bottom: 20px;
    /* float: right; */
    /* margin-top: 50px;
    margin-bottom: 50px; */
    /* transform: translateX(200px); */
}

.quellen-wrapper{
    margin-top: 5vh;
    margin-bottom: 5vh;
    display: flex;
    justify-content: center;
    width: 50vw;
    height: auto;
    font-family: Necto;
    font-size: 0.7vw;
}

tr{
    background-color: rgb(234, 234, 234);
}

td{
    width: 48vw;
}

.number{
    width: 2vw;
    text-align: center;
    color: rgb(88, 44, 232);
}

#kapitel{
    display: none;
}

.kapitel-wrapper > a {
    display: flex;
    align-items: center;
    color: black;
    text-decoration: none;
    font-size: 1vw;
    line-height: 3vh;
    height: 3vh;
    padding-right: 10px;
    padding-left: 10px;
}



.kapitel-wrapper > a:visited {
    color: black;
    text-decoration: none;
}

.kapitel-wrapper > a:hover {
    color: white;
    background-color: grey;
}


.active-kapitel{
    background-color: white;
    
}

.active-kapitel:hover{
    /* pointer-events: none; */
    background-color: white !important; 
    color: black !important;
}

.mobil{
    display: none;
}

.desktop{
    display: block;
}

@media (max-width: 1000px) {
.desktop{
    display: none;
}

.mobil{
    display: block;
}

    .text-wrapper{
        width: 90vw;
        padding-top: 8vh;
    }

    .text-image{
        max-height: 30vh;
    }

    .text-wrapper > p {
        font-size: 5vw;
    }

    .text-wrapper > h2 {
        font-size: 5vw;
        
    }

    .quellen-wrapper {
        font-size: 2.1vw;
        
    }
    .quellen-wrapper {
        width: 100vw; /* Vollständige Breite des Bildschirms auf Mobilgeräten */
        font-size: 2.1vw; /* Größere Schriftgröße für Mobilgeräte */
    }

    table {
        table-layout: fixed; /* Feste Breite für mobile Ansicht */
        width: 90%;
    }

    td.number {
        width: 10px; /* 10% Breite für die Zahlen auf mobilen Geräten */
    }

    td:not(.number) {
        overflow: scroll; /* 90% Breite für den Text auf mobilen Geräten */
    }

    .text-nav{
        height: 6vh;
    }

    h1{
        font-size: 6vw;
        padding-left: 5vw;
        padding-top: 5vw;
        height: auto;
        padding-bottom: 5vw;
    }
    .text-wrapper > h2{
        font-size: 6vw;
    }

    .logo{
        height: 6vh;
        text-align: center;
        line-height: 6vh;
        width: 6vh;
        font-size: 5vw;
    }

    #kapitel{
        display: block;
        width: 70vw;
        margin-right: 3vw;
        height: 3vh;
        font-family: Necto;
        font-size: 2vh;
    }

    .kapitel-wrapper > a {
        display: none;
    }

}

@media screen and (min-width: 700px) and (max-width: 1000px) {
    .text-wrapper > p {
        font-size: 3vw;
    }

    .text-wrapper{
        padding-top: 8vh;
    }
    .quellen-wrapper{
        font-size: 2vw;
    }

    #kapitel{
        font-size: 3vw;
    }

    h1{
        font-size: 5vw;
        padding: 4vw;
    }
}