/* Grundlayout */
body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;
    background: black;
    color: red;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Navigation */
nav {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1;
    font-size: 16pt;
    line-height: 120%;
    color: red;
}

/* Video-Hintergrund */
#video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
}

#video-wrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;

}

#meinVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;

}



#meinVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


#meinVideo iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Verhältnis → 9/16*100 = 56.25 */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16/9*100 = 177.77 */
    transform: translate(-50%, -50%);
    border: 0;
}


.unterkategorie {
    font-size: 16pt;
    position: absolute;
    left: 100px;
    top: 0;
    width: 100vw;
    display: none;
}


.unterkategorie.show {
    display: block;
    /* sichtbar wenn die Klasse "show" aktiv ist */
}



.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

a links {
    line-height: 120%;
}

.menu a {
    color: red;
    text-decoration: none;
    font-size: 16pt;
    font-weight: 500;
    line-height: 120%;
}

.menu a:hover {
    font-style: italic;
}

/* Hauptinhalt */
.container {
    margin: 120px 30px 30px 30px;
    width: 100%;
    display: flex;
    gap: 50px;
}


.text {
    position: relative;
    font-size: 16pt;
    text-align: left;
    justify-content: center;
    line-height: 120%;
    width: 100%;
}

/* Beschreibung */



/*.beschreibung {
  margin: 100vh 30px 15% 30px;
  line-height: 120%;
  font-size: 16pt;
  color: white;
  mix-blend-mode: difference;
}}*/

.beschreibung_klein {
    font-size: 10pt;
    line-height: 120%;
}

/* Links */
.links {
    font-style: italic;
    font-size: 10pt;
    color: white;
    text-decoration: none;
    line-height: 120%;
}

.links:hover {
    cursor: pointer;
    text-decoration: underline;
}
/* Timeline unten */



/* Overlay für Geschwindigkeit oder andere Steuerung */
#speed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    touch-action: none;
}

#speed-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 11;
    font-family: sans-serif;
}

#pointerdown {
    width: 100%;
    height: 100%;
}

/* Sonstige */

#beschreibung {
    position: relative;
    /* oder absolute, wenn du es vom Viewport abhängig machen willst */
    top: 60px;
    left: 00px;
    /* Position 50% vom linken Rand */
    width: 70%;
    /* Breite des Containers */
    padding: 100vh 0px 30px 30px;
    display: block;
}

#beschreibung h1 {


    font-size: 10pt;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-weight: 400;
    text-decoration: none;
    line-height: 120%;

}

#beschreibung h2 {

    margin-top: 14pt;
    line-height: 120%;
    font-size: 16pt;
    color: white;
    margin-bottom: 14pt;
    font-weight: 400;

}

#beschreibung p {

    margin-top: 14pt;
    line-height: 120%;
    font-size: 16pt;
    color: white;
}

#beschreibung a {
    font-size: 10pt;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-weight: 400;
    text-decoration: none;
    line-height: 120%;
}

#beschreibung a:hover {
    cursor: pointer;
    font-style: italic;
    text-decoration: underline;
}



.hidden-vimeo-id {
    display: none;
    /* Element ist komplett weg */
}

.grid {
    column-count: 3;
    column-gap: 14px;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 30px;
    margin-top: 30px;
}

.grid img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    break-inside: avoid;
    /* sorgt dafür, dass Bilder nicht zerschnitten werden */
}


.about_text {
    line-height: 120%;
    font-size: 16pt;
    color: white;
    mix-blend-mode: difference;
    margin-left: 50%;
    padding-right: 50px;
    margin-top: 30px;
    width: 50%;
}

@media (max-width: 1000px) {

    /* Beschreibung */
    #beschreibung {
        position: relative;
        width: 100%;
        margin-top: 90vh;
        /* schiebt den Block nach dem Video */
        padding: 20px 20px;
         word-break: normal;
  overflow-wrap: normal;
    }



    #beschreibung p,
    #beschreibung h2 {
         word-break:normal;
  overflow-wrap: normal;
    }


    /* Grid */
    .grid {
        column-count: 1;
        padding: 20px;
        column-gap: 20px;
    }

    /* Container */
    .container {
        flex-direction: column;
        position: relative;
        gap: 20px;
        margin: 20px 20px 20px 20px;
    }

    /* About Text */
    .about_text {
        width: 100%;
        position: absolute;
  margin-left: 20px;
  margin-top: 80px;
  padding-bottom: 20px;
  margin-right: 20px;

        /* Abstand zum Video */
    }

    /* Video Wrapper */
    #video-wrapper {
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: auto;
        margin-bottom: 0;
    }

    #meinVideo {
        position: relative;
        
        top: 50%;
        left: 50%;
        width: 100vh;
        height: 100vw;
        
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
    }

    #meinVideo iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        height: 100vw;
        width: 56.25vw;
        /* 16:9 Verhältnis → 9/16*100 = 56.25 */
        min-width: 100vh;
        min-height: 177.77vh;
        /* 16/9*100 = 177.77 */
        transform: translate(-50%, -50%);
        border: 0;
    }

    /* Body */
    body {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    /* Menü */


    /* Speed Overlay */
    #speed-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 1%;
        height: 1%;
        z-index: 10;
        cursor: pointer;
        touch-action: none;
    }

}


#speed-badge {
    display: none;
}

/* Desktop Navigation */
.desktop-menu {
    display: block;
}

.desktop-menu .unterkategorie {
    display: none;
    position: absolute;
    top: 0;
    left: 80px;
    list-style: none;
    margin: 0;
}

.desktop-menu .unterkategorie.show {
    display: block;
}

.desktop-menu a {
    color: red;
    text-decoration: none;
}

/* Mobile Navigation */
.menu-toggle,
.menu-overlay {
    display: none;
}
/*
/* Mobile unter 1000px */
@media (max-width: 1000px) {

    /* Desktop verstecken */
    .desktop-menu {
        display: none;
    }


    /* Rotes Quadrat */
    .menu-toggle {
        display: block !important;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: red;
        border: none;
        cursor: pointer;
        z-index: 10002;
        border-radius: 50%;
    }

    /* Overlay unsichtbar standardmäßig */
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: black;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 20px;
        z-index: 10001;
        max-width: 100%;
        font-size: 16px;
        line-height: 22px;
    }

    /* Overlay sichtbar bei .open */
    .menu-overlay.open {
        display: flex;
    }

    /* Menü-Liste */
    .menu-overlay ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        font-size: 20px;
        line-height: 22px;
    }

    .work-label {
        color: red;
        display: block;
        position: absolute;
        top: 80px;
        left: 20px;
    }

    .menu-overlay .unterkategorie {
        display: block;
        padding: 0;
        position: absolute;
        top: 140px;
        left: 20px;
    }


    .menu-overlay .unterkategorie li a {
        color: red;
        text-decoration: none;
        display: block;
    }

    .menu-overlay>ul>li:last-child>a {
        color: red;
        text-decoration: none;
    }


    .overlay-link {
        position: absolute;
        bottom: 20px;
        left: 20px;
    }
}
