/* ===== Basis-Layout ================================================== */
.navbar{
    position: relative;
    width: 100%;
    height: var(--nav-h);
    z-index: 1002;
    background: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.navbar::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 95%;                 /* nur 80% breit */
    height: 0;                  /* wir nutzen nur die Border */
    pointer-events: none;
    z-index: 1;
}

.navbar.hide {
    transform: translateY(-100%);
    opacity: 0;
}
.navbar.drawer-open{
    transform: none !important;
    opacity: 1 !important;
    z-index: 10000 !important;
}

/* ===== Inhalt der Navbar ============================================ */
.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    gap: clamp(0.5rem, 2vw, 1.25rem);
}

/* ===== Logo links fixieren ========================================= */
.navbar-brand {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}
.navbar-brand img {
    display: block;
    max-height: calc(var(--nav-h) - 45px);
    height: auto;
    width: auto;
}

/* ===== Mittige Links =============================================== */
#myLinks {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 0;
    white-space: nowrap;
    font-family: var(--font-header);
    font-size: var(--navbar);
}

#myLinks a {
    color: var(--text);
    text-decoration: none;
    text-underline-offset: .5em;
    font-weight: 600;
    font-size: 85%;
    padding: .25rem .5rem;
}
#myLinks a:hover {
    text-decoration: underline;
    text-decoration-color: var(--comp02);
    text-decoration-thickness: 3px;
}

/* ===== Burger rechts =============================================== */

/* die Checkbox selbst ist unsichtbar */
#nav-toggle { display: none; }

.hamburger {
    position: absolute;
    display: none;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    margin-right: 2rem;
    line-height: 0;
    color: var(--primary);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.hamburger svg {
    height: calc(var(--nav-h) - 10px);
    width: auto;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4,0,0.2,1),
    stroke-dashoffset 600ms cubic-bezier(0.4,0,0.2,1);
}
.line-top-bottom { stroke-dasharray: 12 63; }

/* Backdrop */
.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9995;
}
.nav-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

