html{
    background-color: #010101;
    scroll-behavior: smooth;

}

/* Text */
mb1{
    color: #ffcc00;
     font-weight: bolder;
}

mb2{
    color: #ffcc00;
}

p, a, h1, h2, h3{
    color: #f1f1f1;
}

h1, h2, h3 ,a{
    text-transform: uppercase;
}

h1, h2, a{
    font-family: massilia, sans-serif;
    font-weight: 900;

}

h1, h2, h3{
    text-align: center;
    margin: 0;
    text-shadow: 0px 0px 100px rgba(0, 0, 0, 0.5);
}

h1{
    font-size: calc(var(--tausend) * 0.12);
}


h2{
    font-size: calc(var(--tausend) * 0.11);
}

h3{
    font-family: massilia, sans-serif;
    font-weight: 700;
    font-size: calc(var(--tausend) * 0.054);
}

p{
    font-family: neue-haas-grotesk-display, sans-serif;
    font-size: 1.1em;
    line-height: 1.3em;
}

#project p{
    margin-top: 10px;
}
.project p{
    margin-top: 10px;
}

a{ 
    text-decoration: none;
    transition: 0.5s color;
}

#project a{
    margin-top: 10px;
}

.project a{
    margin-top: 10px;
}

a:hover{
    color: /*#5D6CEB; #5D6CEB;*/ #ffcc00;
} 


::selection {
    background-color: #ffcc00; /* Hintergrundfarbe des markierten Texts */
    color: #010101;              /* Textfarbe des markierten Texts */
}

.smallbox1 h2, .smallbox2 h2{
    font-size: calc(var(--tausend) * 0.06);
    
}

.smallbox1 h3, .smallbox2 h3{
    font-size: calc(var(--tausend) * 0.025);
}




/*Nav*/

nav{
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #010101;

}

ul{
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;

}

.nav2{
    justify-content: flex-start;

}

li{
    padding: 2em;
}

.scroll{
    margin-top: 100px;
}

/*Header, Main, Body*/

header{
    height:75vh;
    margin-bottom: 10vh;
}



main, header{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}
body{
    margin: 0;
    padding: 0;
}

#work{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}



/*BOX*/

.box{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    border: 2px solid #f1f1f1;

}

.videobox{
    aspect-ratio: 16/9!important;
    padding: 0!important;
}

.videovertical{
    aspect-ratio: 9/16!important;
    padding: 0!important;

    width: 40vh;
}


.projectinfo_vertical{
    width: 40vh;
    margin-bottom: 10vh;
}

.projectinfo_horizontal{
    width: var(--tausend);
    max-width: var(--tausend);
    margin-bottom: 10vh;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;

}

.projectinfo_horizontal p{
    padding: 0 2em 0 2em;
}



.bigbox{
    width: var(--tausend);
    max-width: var(--tausend);
    margin-bottom: 6px;

}


.smallbox1, .smallbox2{
   width: calc(var(--smallboxes) - 10px);
   margin-top: 12px;
   margin-bottom: 12px;

}
.smallbox1{
    margin-right: 5px;
}
.smallbox2{
    margin-left: 5px;
}

.twoboxes{
    display: flex;
    justify-content: space-between;
}

.otherbox{
    padding-top: 9%;
    padding-bottom: 15%;
}

.content{
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(var(--tausend) * 0.8);
}


/*IMG*/
.box{
    position: relative;
}
.box img {
    position: absolute;
    width: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.box:hover img {
    opacity: 1;
}

/*PROJEKTE*/
#project{
    height: 80vh;
    overflow: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.project{
    display: flex;
    justify-content: center;
    flex-direction: column;
}


#smbox{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

#smmiddle{
    margin-left: 1em !important;
    margin-right: 1em !important;
}

.bottomrow{
    margin-top: 1em!important;
}


#projectfooter{
    position: static;
    bottom: 0;
    right: 0;
    left: 0;
    margin-top: 0;

}

/*FOOTER*/

.button{
    background-color: #010101;
    border: #f1f1f1 solid 2px;
    margin: 10px;
    padding: 0px 20px 5px 20px;
    transition: background-color 0.5s ease, border 0.5s ease, color 0.5s ease;
}

.button:hover{
    background-color: #ffcc00;
    border: #ffcc00 solid 2px;
    color: #010101;
}

.button {
    font-size: 2em;
    font-weight: 500;
}


/*FOOTER*/

footer{
    margin-top: 40vh;
}

footer a{
    font-weight: 900;
    font-size: 1em;
}

:root{
    --tausend: 1000px;
    --smallboxes: calc(var(--tausend) / 2);

}


/*TEXTCONTENT*/
#textcontent{
    width: var(--tausend);
    margin-top: 100px;
}


/*MOBILE*/

@media (hover: none) {
    .box img {
        position: absolute;
        width: 100%;
        z-index: -1;
        opacity: 1!important;
        transition: opacity 0.5s ease;
    }

}


@media screen and (max-width: 1600px) {
    :root{
        --tausend: 950px;
    }
}

@media screen and (max-width: 1500px) {
    :root{
        --tausend: 900px;
    }
}

@media screen and (max-width: 1400px) {
    :root{
        --tausend: 850px;
    }
}

@media screen and (max-width: 1350px) {

    .smbox{
        width: 38vh!important;
    }
}

@media screen and (max-width: 1300px) {
    :root{
        --tausend: 800px;
    }

    .button {
        font-size: 1.5em;
        font-weight: 500;
    }

    .smbox{
        width: 35vh!important;
    }

}

@media screen and (max-width: 1200px) {
    :root{
        --tausend: 750px;
    }

    .smbox{
        width: 33vh!important;
    }
}

@media screen and (max-width: 1150px) {

    .smbox{
        width: 30vh!important;
    }
}

@media screen and (max-width: 1100px) {
    :root{
        --tausend: 700px;
    }

    .smbox{
        width: 28vh!important;
    }

    
}

@media screen and (max-width: 1000px) {
    :root{
        --tausend: 650px;
    }

    .smbox{
        width: 26vh!important;
    }
    
}

@media screen and (max-width: 900px) {
    :root{
        --tausend: 600px;
    }

    .smbox{
        width: 25vh!important;
    }
}

@media screen and (max-width: 850px) {

    .smbox{
        width: 40vh!important;
    }

    #smbox{
        flex-direction: column!important;
    }
    
    #smmiddle{
        margin-left: 0em !important;
        margin-right: 0em !important;
    }

    .toprow{
        margin-top: 1em!important;
    }

}

@media screen and (max-width: 800px) {
    :root{
        --tausend: 550px;
    }

    .button {
        font-size: 1.2em;
        font-weight: 500;
    }


}

@media screen and (max-width: 750px) {
    :root{
        --tausend: 525px;
    }
}

@media screen and (max-width: 700px) {
    :root{
        --tausend: 500px;
    }

    .twoboxes{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .smallbox1, .smallbox2{
        width: var(--tausend);
        max-width: var(--tausend);
    }
    .smallbox1{
        margin-top: 12px;

        margin-right: 0px;
    }
    .smallbox2{
        margin-left: 0px;
        margin-top: 0px;
    }

    .smallbox1 h2, .smallbox2 h2{
        font-size: calc(var(--tausend) * 0.13);
     
    }
 
    .smallbox1 h3, .smallbox2 h3{
         font-size: calc(var(--tausend) * 0.054);
    }
 

.projectinfo_horizontal{
    width: var(--tausend);
    max-width: var(--tausend);
    margin-bottom: 10vh;

    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;

}

.projectinfo_horizontal p{
    padding: 0 0 0 0;
}


}

@media screen and (max-width: 650px) {
    :root{
        --tausend: 475px;
    }
}

@media screen and (max-width: 600px) {
    :root{
        --tausend: 450px;
    }

    footer a{
        font-size: 0.8em;
    }

    footer li{
        padding: 1em;
    }




}

@media screen and (max-width: 575px) {
    :root{
        --tausend: 440px;
    }
}

@media screen and (max-width: 550px) {
    :root{
        --tausend: 430px;
    }
}

@media screen and (max-width: 525px) {
    :root{
        --tausend: 420px;
    }
}

@media screen and (max-width: 500px) {
    :root{
        --tausend: 410px;
    }

   
}

@media screen and (max-width: 475px) {
    :root{
        --tausend: 400px;
    }
}

@media screen and (max-width: 450px) {
    :root{
        --tausend: 380px;
    }
}

@media screen and (max-width: 425px) {
    :root{
        --tausend: 370px;
    }
}

@media screen and (max-width: 400px) {
    :root{
        --tausend: 360px;
    }
}

@media screen and (max-width: 385px){
    footer a{
        font-size: 0.6em;
    }
}

@media screen and (max-width: 375px) {
    :root{
        --tausend: 340px;
    }
}

@media screen and (max-width: 350px) {
    :root{
        --tausend: 330px;
    }
}

@media screen and (max-width: 300px) {
    :root{
        --tausend: 320px;
    }
}

/* CONTACT HOVER POPUPS */
.contact-item{
    position: relative;
    display: inline-flex;
}

.contact-popup{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding-top: 12px;                 /* transparente Brücke: Hover bleibt durchgehend */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1001;
    transition: opacity 0.3s ease,
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0.3s;
}

.contact-item:hover .contact-popup,
.contact-item:focus-within .contact-popup{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.3s ease,
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0s;
}

.contact-popup-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background-color: #010101;
    border: 2px solid #f1f1f1;
    padding: 16px 22px;
    width: max-content;
    max-width: 80vw;
}

.contact-popup-value{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: neue-haas-grotesk-display, sans-serif;
    font-size: 1.1em;
    color: #f1f1f1;
    text-transform: none;              /* Email nicht uppercase */
    white-space: nowrap;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: color 0.15s ease, transform 0.12s ease-out;
}

@media (hover: hover) and (pointer: fine){
    .contact-popup-value:hover{ color: #ffcc00; }
}

.contact-popup-value:active{ transform: scale(0.97); }

.cpv-text,
.cpv-copied{
    transition: opacity 0.16s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.16s cubic-bezier(0.23, 1, 0.32, 1);
}

.cpv-copied{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcc00;
    opacity: 0;
    pointer-events: none;
}

.contact-popup-value.is-copied .cpv-text{ opacity: 0; filter: blur(2px); }
.contact-popup-value.is-copied .cpv-copied{ opacity: 1; }

@media (prefers-reduced-motion: reduce){
    .contact-popup-value{ transition: color 0.15s ease; }
    .contact-popup-value:active{ transform: none; }
    .cpv-text, .cpv-copied{ transition: opacity 0.15s ease; }
    .contact-popup-value.is-copied .cpv-text{ filter: none; }
}

.contact-popup-action{
    font-family: massilia, sans-serif;
    font-weight: 900;
    font-size: 1em;                    /* NICHT .button (dessen 2em wäre zu groß) */
    padding: 0px 20px 5px 20px;
    background-color: #010101;
    border: 2px solid #f1f1f1;
    color: #f1f1f1;
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.contact-popup-action:hover{
    background-color: #ffcc00;
    border-color: #ffcc00;
    color: #010101;                    /* Spezifität 0,2,0 schlägt globales a:hover 0,1,1 */
}

@media (prefers-reduced-motion: reduce){
    .contact-popup{
        transform: translateX(-50%);
        transition: opacity 0.2s ease, visibility 0s 0.2s;
    }
    .contact-item:hover .contact-popup,
    .contact-item:focus-within .contact-popup{
        transform: translateX(-50%);
        transition: opacity 0.2s ease, visibility 0s 0s;
    }
}

@media (hover: none){
    .contact-popup{ display: none; }   /* Touch: direkte Button-Links nutzen */
}