nav{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background-color: var(--pr);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
}

.nav-holder{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--page-padding);
}
.logo-holder{
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    width: max-content;
    cursor: pointer;
}
.logo-holder img{
    height: 85%;
    width: auto;
    z-index: 99;
}
.logo-holder h1{
    font-size: 2rem;
    font-weight: normal;
    color: var(--txt-l);
    font-family: 'schreibschrift';
}


.nav-list{
    width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-item{
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
}
.list-item a{
    color: var(--txt-l);
    font-size: 1.1rem;
    position: relative;
}

.list-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;            /* dicke des Strichs */
  z-index: 0;
  background-color: white;
  transition: width 0.5s ease, bottom 0.5s ease;
  border-radius: 2px;
}

.list-item a:hover::after {
  z-index: 99;  
  width: 100%;          /* volle Breite beim Hover */
  bottom: -6px;   /* leicht unterhalb des Textes, wirkt wie "herunterkommend" */
  transition: width 0.5s ease, bottom 0.5s ease;
}

.list-item.active a::after {
  width: 100%;
  bottom: -6px;
  z-index: 99;
}

.burger{
    display: none;
    width: 40px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: 102;
}
.burger .bar{
    width: 100%;
    height: 6px;
    background-color: var(--txt-l);
    transition: all .4s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.burger .bar:nth-of-type(1){
    top: 10%;
}
.burger .bar:nth-of-type(3){
    top: 90%;
}


@media(max-width: 1200px){
    .burger{
        display: inherit;
    }
    .burger.active .bar:nth-of-type(1){
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .burger.active .bar:nth-of-type(2){
        transform: scale(0);
        transition: .2s;
    }
    .burger.active .bar:nth-of-type(3){
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    .nav-list{
        display: none;
        flex-direction: column;
        gap: 1em;
        width: 100%;
        height: 100vh;
        background-color: var(--pr);
        position: absolute;
        top: 0;
        left: 0;
    }
    .list-item{
        height: max-content;
    }
    .list-item a{
        font-size: 2rem;
    }
    .nav-list.active{
        display: flex;
    }
}




.breakpoint {
    display: inline;
    font-size: 2rem;
    font-weight: normal;
    color: var(--txt-l);
    font-family: 'schreibschrift';
}

@media(max-width: 550px){
    .logo-holder h1{
        font-size: 1.7rem;
        padding-right: 5px;
    }
    .breakpoint{
          font-size: 1.7rem;
        padding-right: 5px;
    }
}

@media(max-width: 400px) {
    .breakpoint {
        display: block;
    }
}

