#navigation {
    --border: solid 2px var(--yellow);
    --headlineHeight: 223.367px;
    display: block;
    z-index: 10;
    background-color: white;
    margin: 0;
    width: calc(100% - 20px);
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    padding: 10px;
    background-image: URL('/site/assets/images/Haus_quer_2500.webp');
    background-size: cover;
    background-position: 70% 75%;
    position: fixed;
}

#navigation .headline {
    padding: 20px 10px;
    border: var(--border);
    outline: var(--border);
    padding-bottom: 45px;
}

#navigation h1 {
    margin-right: 160px;
}

#navigation .headline .small {
    color: var(--yellow);
    margin-top: 5px;
    font-size: 14px;
}

#navigation .logo {
    width: 140px;
    position: absolute;
    right: 24px;
    top: 0;
    background: var(--lightYellow);
    display: flex;
    flex-direction: column;
    justify-content: end;
    font-size: 13px;
    padding: 23px 7px 7px 7px;
    gap: 10px;
    font-weight: bold;
    color: #f0d800;
    line-height: 124%;
}


nav ul {
    --min: 58px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-areas:
        "concept concept concept concept climate climate climate climate sealing sealing sealing sealing"
        "facade	facade facade	infiltration	infiltration	infiltration	infiltration	infiltration	infiltration	infiltration	retention retention"
        "facade	facade facade	roof	roof	roof	roof	roof	roof	roof	retention retention"
        "rainusage	rainusage	rainusage	rainusage	rainusage	rainusage	rainusage	rainusage	rainusage	rainusage	retention retention"
        "impact	impact	impact	impact	impact	impact	impact	impact	impact	impact	impact	impact"
        "sources	sources	sources	sources	sources	sources	footer	footer	footer	footer	footer	footer";
    grid-template-rows: 57px 1fr 1fr  1fr  57px  57px;
    gap: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    height: calc(100vh - 20px - var(--headlineHeight));
    height: calc(100dvh - 20px - var(--headlineHeight));
}

nav ul:hover {
    background-color: rgba(69, 69, 5, 0.402);
}

nav ul:hover li {
    color: var(--yellow);
}

nav ul:hover .nav-text {
    animation-name: fadeInRightMicro;
    animation-duration: 0.4s;
    display: inline-block;
}

nav li {
    outline: var(--border);
    border: var(--border);
    max-width: initial;
    margin: 0;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    color: rgba(255, 217, 0, 0);
    font-size: var(--normal);
    hyphens: auto;
    transition: all 0.2s ease-in-out;
    line-height: 100%;
    white-space: nowrap;
}

nav li .vertical-circ {
    line-height: 67%;
    alignment-baseline: text-bottom;
}

.nav-text {
    white-space: normal;
}

.nav-text::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: currentColor;
    border-radius: 50%;
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    margin-left: 6px;
    margin-top: 5.5px;
}

.footer .nav-text::before{
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: currentColor;
    border-radius: 50%;
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    margin-left: -18px;
    margin-top: 3px;
}

.footer .nav-text::after {
  content: none;
}

.sources .nav-text::after {
    margin-left: 6px;
    margin-top: 3px;
}

li:hover > .nav-text::after, .footer:hover > .nav-text::before {
  transform: scale(1);
}

nav .dot {
    vertical-align: text-bottom;
}

.climate {
    grid-area: climate; 
}

.sealing {
    grid-area: sealing;
}

.concept {
    grid-area: concept;
}

.roof {
    grid-area: roof;
}

.rainusage {
    grid-area: rainusage; 
}

.retention {
    grid-area: retention; 
}

.infiltration {
    grid-area: infiltration; 
}

.facade {
    grid-area: facade;
}

.retention, .facade {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.retention .nav-text::after , .facade .nav-text::after {
    margin-top: 7px;
    margin-right: 6px;
    margin-left: 12px;
}

.impact {
    grid-area: impact;
}

.sources {
    grid-area: sources;
    font-size: var(--small);
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.footer {
    grid-area: footer; 
    font-size: var(--small);
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

#navigation > * {
    position: relative;
    z-index: 1;
}

.img-description {
    position: absolute !important;
    bottom: 10%;
    left: 20%;
    z-index: 10;
}

@media only screen and (max-width: 860px) {
    #navigation {
        --headlineHeight: 300.55px;
    }
}
@media only screen and (max-width: 730px) {
    #navigation {
        --headlineHeight: 377.733px;
    }
}


@media only screen and (max-width: 480px) {
    #navigation {
        --border: solid 1.6px var(--yellow);
    }
    nav ul {
        display: block;
        height: initial;
    }
    nav li {
        color: var(--yellow);
        text-align: right;
        background-color: rgba(69, 69, 5, 0.402);
    }
    nav .facade, nav .retention {
        writing-mode: initial;
        transform: initial;
    }
    nav .sources, nav .footer {
        text-align: left;
    }
    #navigation .logo {
        display: none;
    }
    #navigation h1 {
        margin-right: 0;
    }
    #navigation .headline {
        height: calc(100vh - 448px - 81px - 6px);
        height: calc(100dvh - 448px - 81px - 6px);
    }



}