/*ANIMATION Menu ENTER/EXIT*/
body.page-enter .projects,
body.page-enter .flipped {
  padding-left: 0;
}

body.page-enter-active .projects,
body.page-enter-active .flipped {
  padding-left: 230px;
}

body.page-exit .projects,
body.page-exit .flipped {
  padding-left: 0;
}

.projects h3,
    .projects h4{
        transform-origin: left center;
        transform: scaleX(1);
         transition: transform .4s ease-out;
    }
    .flipped h3,
    .flipped h4 {
        transform-origin: left center; 
        transform: scaleX(1);  
        transition: transform .4s ease-out;   
    } 


body.page-enter .projects h3,
body.page-enter .flipped h3,
body.page-enter .projects h4,
body.page-enter .flipped h4
{
  transform: scaleX(0);
}

body.page-enter-active .projects h3,
body.page-enter-active .flipped h3,
body.page-enter-active .projects h4,
body.page-enter-active .flipped h4
{
  transform: scaleX(1);
}

body.page-exit .projects h3,
body.page-exit .flipped h3,
body.page-exit .projects h4,
body.page-exit .flipped h4
{
  transform: scaleX(0);
}
body.page-enter a h2 {
  color: var(--ultra-light-text); 
  text-shadow: none;   
  transition: color .3s ease, text-shadow .3s ease;
}
body.page-enter-active a h2 {
  color: var(--ultra-light-text);  
  text-shadow: none;  
}
body.page-exit a h2 {
  color: var(--ultra-light-text);
  text-shadow: none;
  transition: color .3s ease, text-shadow .3s ease;
}
body.page-enter a.active h2 {
  color: var(--ultra-light-text); 
  text-shadow: none;
  transition: color .3s ease, text-shadow .3s ease;   
}
body.page-enter-active a.active h2 {
  color: var(--middle-text); 
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);   
}
body.page-exit a.active h2 {
  color: var(--ultra-light-text);
  text-shadow: none;
  transition: color .3s ease, text-shadow .3s ease;
  
}
body.page-enter .section-line {
    opacity: 0;
    transition: opacity .8s ease;
}
body.page-enter-active .section-line {
    opacity: 1;
    transition: opacity .8s ease;
}
body.page-exit .section-line {
    opacity: 0;
    transition: opacity .8s ease;
}   

body.page-exit #about-speak {
    transform: scale(0);
    transform-origin: 82% 99%;
    transition: transform 0.25s ease;
}   

/*END OF ANIMATION SETTINGS*/

.container {
    height:100%;
    width:100%;    
}
.header-wrapper {    
    position: fixed;
    top: 50vw;
    left: 50vw;
    transform-origin: center center;
    transform: translate(-50%, -50%) scale(var(--header-scale));
    z-index: 1000;
    
}

.projects-list {
    position: fixed;
    top: 50vw;
    left: 50vw;
    scale: var(--header-scale); 
    transform-origin: center center;
}
.about-list {
    position: fixed;
    top: 50vw;
    left: 50vw;
    scale: var(--header-scale); 
    transform-origin: center center;
}

.projects {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: left center;
    padding-left: 218px;
    white-space: nowrap;
    color: hsl(var(--index), 85%, 50%);
    transform: translate(0%, -50%) rotate(var(--angle));
    transition: padding-left 0.8s ease-in-out;
}

.flipped {
    
    transform-origin: left center;
    padding-left: 211px;
    padding-right: 0px;
    transform: translate(0%, -50%) rotate(var(--angle));
    transition: padding-left 0.8s ease-in-out;
}

.snapped {
    padding-left: 227px;
    transition: padding-left 0.2s ease-in-out;
}

.snapped h3 {
    transform: scale(1.15);
    transition: transform .5s ease-out
}

#category-1 {
    
    letter-spacing: 1px;
    
}

#category-3 {  
    
    letter-spacing: 1px;
    
}

.section-line {
    position: absolute;
    display:block;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 3px;
    transform-origin: left center;
    padding-left: 212px;
    transform: translate(0%, -50%) rotate(var(--angle));
    transition: padding-left 0.8s ease-in-out;
    opacity: 1;
}
.section-line-inner {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background-color: var(--ultra-dark-background);
}

img {
    height:100%;
    width:100%;
    
    object-fit: cover;
    object-position: center;
}

header {  
    position: relative;
    grid-area: 1 / 1;
    aspect-ratio: 1 / 1;
    height: 400px;
    display: flex;
    justify-content: center;
    align-content: center;
    background-color: var(--ultra-dark-background);
    border-radius: 50%;
    border: 0px solid;
    border-color: var(--light-background);
    transform-origin: center center; 
    
    z-index: 1000;
    
        box-shadow: 
        0px 1px 1px var(--bevel-bottom), /*unten*/
        0px -1px 1px var(--bevel-top),  /*oben*/
        -1px -1px 1px var(--bevel-left), /*links*/
        1px -1px 1px var(--bevel-right); /*rechts*/

    --shadow-color: var(--ultra-dark-shadow);  
}

header::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 50%;    
    box-shadow: inset 0 0 19px var(--shadow-color); /* deine Werte anpassen */ 
    transition: box-shadow .5s ease;      
    pointer-events: none; /* damit Klicks durchgehen */
    z-index: 1001;
}
header.light
{  
    @media (prefers-color-scheme: dark) {
    --shadow-color: hsl(var(--index) 80% 55% / .8);
    }
}
header.header-pointer{
    cursor: pointer;
}

.header-inner {
    position: absolute;
    top: 0;
    width:100%;
    height:100%;
    border-radius: 50%;
    overflow: hidden;
}



/*header .header-title {
    
    display:block;
    margin: 0 auto;
    text-align: left;
    position:absolute;
    top:35%;
    left: 200px;
    padding-left: 15px;
}*/

.header-title-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Header bleibt klickbar */
}

.header-title-top,
.header-title-bottom {
    position: absolute;
    width: 100%;
    height: 49.88%;
    background-color: var(--dark-background);
    
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;

       box-shadow: 
        0px 0px 1px var(--ultra-dark-shadow),
        0px 2px 0px var(--dark-background);
    
        @media (prefers-color-scheme: dark) {
            height: 49.85%;
        }
} 

.header-title-top::before,
.header-title-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  
    
  pointer-events: none;
  z-index: 2;

  box-shadow:
  inset 0px 1px 1px var(--light-shadow), /*unten*/
  inset 0px -1px 1px var(--bevel-right); /*oben*/ 

  @media (prefers-color-scheme: dark) {
  box-shadow:
    inset 0px 1px 2px var(--bevel-left), /*unten*/
    inset 0px -1px 3px var(--bevel-top); /*oben*/ 
  }    
}

.header-title-top {
    top: 0;
    align-items: flex-end; /* Text ans untere Ende */
    padding-bottom: 0px; /* kleiner Abstand */  
    transition: top .5s ease; 

}

.header-title-bottom {
    bottom: 0;
    align-items: flex-start; /* Text ans obere Ende */
    padding-top: 0px; /* kleiner Abstand */
    transition: bottom .5s ease;  
    
}

.header-title-top.hide {
    top: var(--hide-value-header); 
}

.header-title-bottom.hide {
    bottom: var(--hide-value-header);
}

/* Text Clipping für obere Hälfte */
.header-title-top h1 {
    transform: translateY(37%); 
    @media (prefers-color-scheme: dark) {
    transform: translateY(45%);
    }
}

/* Text Clipping für untere Hälfte */
.header-title-bottom h1 {
    
    transform: translateY(-63%); 
    @media (prefers-color-scheme: dark) {
    transform: translateY(-64%); 
    }
}

header nav {
    position: absolute;
    left: -50%;
    
    width: 100%;
    justify-content: center;
    /*height: 60px;
    overflow: visible;*/
}

.nav-bar {
    position: relative;
        
    list-style: none;
    /*border:2px solid;
    border-color: var(--dark-background);*/
    background-color: var(--dark-background);
    padding: 0;
    border-radius: 0;
    
    display: flex;
    justify-content: center;
}

.nav-top {
    top: 0;
}

    
.nav-bottom {
    bottom: 0;  
}

#nav-bar-top,
#nav-bar-bottom {
    width: 100%;
    height: 65px; 
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 15px;
    background-color: var(--middle-background);
    box-shadow: 0px 0px 13px var(--middle-shadow);
    
    display: flex;
    justify-content: center;

    z-index: 3;
    
}

#nav-bar-top {
    align-items: flex-end; /* Text ans untere Ende */
    padding-bottom: 13px; /* etwas Abstand */
    top: 0;
    align-items: bottom;
    transition: top .4s ease; 
}

#nav-bar-top::before {

  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0px -2px 2px var(--bevel-top), /*oben*/  
    0px 0px 16px var(--light-shadow); 


  pointer-events: none;
  z-index: 3;
}

#nav-bar-bottom {
    align-items: flex-start; /* Text ans obere Ende */
    padding-top: 13px; /* etwas Abstand */
    bottom: 0;
    align-items: top;
    transition: bottom .4s ease; 
}


#nav-bar-bottom::before {
  content: "";
  position: absolute;
  inset: 0;


    box-shadow:
    inset 0px 2px 3px var(--bevel-bottom), /*unten*/
    0px 0px 16px var(--light-shadow);

    
  pointer-events: none;
  z-index: 3;
}

#nav-bar-top.hide {
    top: var(--hide-value-nav);
}


#nav-bar-bottom.hide {
    bottom: var(--hide-value-nav);
}



#nav-bar-top li,
#nav-bar-bottom li {
    display: inline-block;
    list-style: none;
}


.nav-bar li {
    display: inline-block;
    list-style: none;
}

.nav-bar li a {
    margin: 0 auto;
    text-align: center;
}


header nav ul {
    display: block;
    margin: 55% auto;
    width: fit-content;
    position:absolute;
    left: 200px;
    padding-left: 15px; 
}  



header nav ul li {
    display: inline-block;
    list-style:none;
}  
header nav ul li a{   
    margin: 0 auto;
    text-align: center;
} 

header ul li{
    list-style:none;
    
}

/* copy einpflegen*/
#about-preview {
    
    position: absolute;
    bottom: 15px;          /* Am unteren Rand */
    left: 13%;
    bottom: var(--hide-value-about);
    margin-bottom: 18px;
    width: 75%;
    height: 80.5%;          
    transition: bottom 0.5s ease;
        /*pointer-events: none; /* Verhindert das Blockieren von Klicks */
    justify-content: center;
    z-index: 1;  
    filter: brightness(.9);
    }

#about-preview.active {
    bottom: 0px;
    transition: bottom 0.5s ease;
    }

#about-preview img {
    filter: 
    drop-shadow(0px 0px 12px var(--middle-shadow));
}

#about-preview-image {
    position: absolute;
    display: block;
    transform: rotate(-2deg);
    }

#about-speak-container {
    position: absolute;
    height: 100%;
    width:100%;
    pointer-events: none;
    z-index: 3; 
}
#about-speak {
    position: absolute;
    pointer-events: none;
    top:20px;
    left: 19px;
    right: 5px;
    height: fit-content;
    display: grid;
    align-items: start;
     
    transform: scale(0);
    transform-origin: 82% 99%;
    transition: transform 0.25s ease;
}
#about-speak.active {
    transform: scale(1);
    transition: transform 0.25s ease;   
}
   
#about-speak-bubble {
    display: block;
    grid-area: 1 / 1;
    
    width: 100%;  /* oder feste Breite */
    height: auto;
  }

 #about-speak-wrapper { 
    padding-top: 25px;
    padding-left:5px;
    grid-area: 1 / 1;
    display: grid;
    place-items: center; 
    z-index: 3;  
    
  }
  #about-speak-text {
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid;

    font-family: 'Source Code Pro', monospace;
    color:black;
    font-size:18px;
    font-weight: 300;
    line-height: 1.6;   
    letter-spacing: -1px;

  }

  #about-speak-text.typing {
    width: 21ch;
    animation: typing 1.5s steps(22), blink .5s step-end infinite alternate;
  }

  @keyframes typing {
  from {
    width: 0;
  }
}
    
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/*#about-preview-bubble.active {
    position: absolute;
    bottom: 80px;
    height: 27px;
    width: 65px;
    z-index: 2; 
  }*/

   
/*bis hier copy*/

.preview-frame {
    display: block;
    position: absolute;
    width: 100%;/*calc(100% - 4px);  /* 2px auf jeder Seite */
    height: 100%;/*calc(100% - 4px); /* 2px auf jeder Seite */
    overflow: hidden;
    border-radius: 50%;
    z-index: -1;
    --shadow-color: var(--ultra-dark-shadow);
}
.preview-frame.light {
    
    @media (prefers-color-scheme: dark) {
    --shadow-color: hsl(var(--index) 80% 55% / .8);
    }
}

.preview-frame::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 50%;
    /* Inset Schatten für Vignette */
    box-shadow: inset 0 0 20px var(--shadow-color);   
    transition: box-shadow .5s ease;         
    pointer-events: none;
    
}

#preview-image {
    
    opacity: 0;
    transition: all .05s ease;      
    filter: brightness(0.80);
}
#preview-text {
    
    position:absolute;
    bottom: var(--hide-value-preview);
    left:0;
    width: 100%;
    height: 170px;
    background-color: var(--dark-alpha);
    border:0px solid;
    border-color: var(--light-alpha);
    
    box-shadow: 0 0 13px var(--dark-shadow), /* deine Werte anpassen */
    inset 0px 1px 1px var(--bevel-alpha);
    transition: bottom .4s ease;
    
    text-align: center;
    padding: 5px 30px;
    color: var(--dark-text);

}

#preview-text.open {
    bottom: 0;
}
 
#preview-text h3 {
    font-size:25px;
    margin: 10px 0; 
} 
#preview-text p {
    font-family: 'Source Code Pro', monospace;
    color: var(--light-text);
    font-size:16px;
    font-weight: 200;
    padding: 0px 30px;
    margin: 10px 0; 
}

#preview-text h3.header-hover{
    transform: scale(1.15);
    transition: transform .3s ease-out;
    cursor:pointer;
} 



#info-text {
    
    position:relative;
    bottom: 100%;
    display: flex;  
    align-items: top;
    flex-flow: column;
    width: 100%;
    height: 100%;   
    text-align: center;
    padding: 30% 30px;
    opacity: 0;
    transition: opacity .2s ease;   
    z-index: -2;
}
 
#info-text h4 {
    margin: 0px 0; 
} 

#info-text p {  
    font-size: 16px;
    margin: 10px 0; 
}

#info-text p.comment {  
    font-size: 14px;
    margin: 10px 0; 
}

.indicator {
    
  display: flex;
  position:absolute;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); /* Glow/Schlagschatten */
  transition: opacity 0.3s ease;
  opacity: 0.3;
  top: 100%; 
@media (prefers-color-scheme: dark){
  opacity: .2;  
}

}

.indicator.active {
  opacity: 1;
}


.indicator polygon { 
  fill: var(--light-text); /* Farbe des Dreiecks */
  /*stroke: #000; /* Randfarbe */
  /*stroke-width: 1; /* Randbreite */
  /*filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7)); /* Glow/Schlagschatten */
  transition: fill 0.5s ease;
}


@media (orientation: landscape) {

.header-wrapper {       
    top: 50dvh;
    left: 50dvh;
}
.projects-list { 
    top: 50dvh;
    left: 50dvh;
}
.about-list {
    top: 50dvh;
    left: 50dvh;
}

.indicator {
    top: 45%; 
    left: 100%;
    transform: rotate(-90deg);
}
}

@media only screen and (min-width: 1081px) and (hover: hover) and (pointer: fine){

    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width:100vw;   
        overflow: visible;
    }

    .header-wrapper {       
    top: 50vh;
    left: 50vw;
    }
    .projects-list { 
    top: 50vh;
    left: 50vw;
    }
    .about-list {
    top: 50vh;
    left: 50vw;
    }
    
    .projects {
        padding-left: 211px;
        transition: padding-left 0.8s ease-in-out;
    }
    .flipped {
        transform-origin: right center;
        padding-left: 0px;
        padding-right: 211px;
        transition: padding-right 0.8s ease-in-out;
        transform: translate(-100%, -50%) rotate(var(--angle));     
    } 

    .projects h3,
    .projects h4{
        transform-origin: left center;
        transform: scaleX(1);
         transition: transform .4s ease-out;
    }
    .flipped h3,
    .flipped h4 {
        transform-origin: right center; 
        transform: scaleX(1);  
        transition: transform .4s ease-out;   
    } 

    body.page-enter .projects {
        padding-left: 0px;
    }
    body.page-enter .flipped {
        padding-right: 0px;
    }

    body.page-enter-active .projects {
        padding-left: 230px;
    }

    body.page-enter-active .flipped {
        padding-right: 230px;
    }

    body.page-exit .projects {
        padding-left: 0px;
    }
    body.page-exit .flipped {
        padding-right: 0px;
    }

    body.page-enter .projects h3,
    body.page-enter .flipped h3,
    body.page-enter .projects h4,
    body.page-enter .flipped h4
    {
        transform: scaleX(0);
    }

    body.page-enter-active .projects h3,
    body.page-enter-active .flipped h3,
    body.page-enter-active .projects h4,
    body.page-enter-active .flipped h4
    {
        transform: scaleX(1);
    }

    body.page-exit .projects h3,
    body.page-exit .flipped h3,
    body.page-exit .projects h4,
    body.page-exit .flipped h4
    {
        transform: scaleX(0);
    }

    header {  
        position:relative;
        top:0;
        left:0;
        aspect-ratio: 1 / 1;
        height: 400px;
        display: block; 
        background-color: var(--ultra-dark-background);
        border-radius: 50%;
        transform-origin: center; 
        scale: 1;  
    }



    /* Navbars positionieren */
    header nav {
        position: absolute;
        left: -50%;
        width: 100%;
        justify-content: center;
    }

    .nav-top {
        top: 0;
    }

    
    .nav-bottom {
        bottom: 0;  
    }

    #nav-bar-top,
    #nav-bar-bottom {
        width: 100%;
        height: 65px; 
        margin: 0;
        padding: 0;
        list-style: none;
        border-radius: 15px;
        background-color: var(--middle-background);
        box-shadow: 0px 0px 13px var(--middle-shadow);
        
        display: flex;
        justify-content: center;

    }
    

    #nav-bar-top {
        align-items: flex-end; /* Text ans untere Ende */
        padding-bottom: 13px; /* etwas Abstand */
    }
    
    #nav-bar-bottom {
        align-items: flex-start; /* Text ans obere Ende */
        padding-top: 13px; /* etwas Abstand */
    }
    
    #nav-bar-top li,
    #nav-bar-bottom li {
        display: inline-block;
        list-style: none;
        
    }
    /* hier bin ich*/


   
    
    
    /*header nav ul {
        display: block;
        margin: 50% auto;
        width: fit-content;
        position:relative;
        
        left: 0px;
        padding-left: 0px;
    } 
    
    header nav ul li {
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
    list-style:none;
    }  */
        
    
    
    .preview-frame {
        display:block;
        
        
    }

    .indicator {
        display:none;
    }


    .projects-list {
    position: absolute;
    scale: 1;    
    }

    


.about-nav-bar {
    display: block;
    margin: -45% auto;
    width: fit-content;
    position:absolute;
    left: 200px;
    padding-left: 15px;   
}

.about-list {
    position: absolute;
    top:50%;
    left:50%;
    scale: 1; 
    transform: rotate(0deg);
    
}  

.about-frame {
    position:absolute;
    top: 0;
    left:0;
    display:block;
    overflow: hidden;
    height:100%;
    width:100%;
    border-radius: 50%;
    opacity: 1;
    transition: opacity 1s ease-in-out; 
}

}