#side-header {
    min-height: 78px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    background-color: var(--bg-boxes);
    border: 1px solid var(--red-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-glow-small);
}

#header-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

#header-logo {
    width: auto;
    height: 48px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5));
}

#header-titel {
    margin: 0;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1;
    text-shadow: var(--shadow-glow-text);
}

#header-navigation {
    width: 100%;
    min-width: 0;
    justify-self: end;
}

#header-menu-liste {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px clamp(14px, 3vw, 34px);
    list-style: none;
}

.header-menu-link {
    position: relative;
    display: block;
    padding: 10px 4px;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.header-menu-link::after {
    position: absolute;
    right: 4px;
    bottom: 3px;
    left: 4px;
    height: 2px;
    background-color: var(--red-primary);
    box-shadow: 0 0 5px rgba(255, 138, 138, 0.55);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.header-menu-link:hover,
.header-menu-link:focus-visible,
.header-menu-link.er-aktiv {
    color: var(--red-text);
    text-shadow: var(--shadow-glow-text);
}

.header-menu-link:hover::after,
.header-menu-link:focus-visible::after,
.header-menu-link.er-aktiv::after {
    transform: scaleX(1);
}
.header-design-link {
    padding-inline: 12px;
    border: 1px solid var(--red-primary);
    border-radius: 999px;
}

.header-design-link::after {
    display: none;
}

.header-design-link:hover,
.header-design-link:focus-visible,
.header-design-link.er-aktiv {
    color: var(--bg-container);
    background-color: var(--red-primary);
    text-shadow: none;
}

#header-logout-form { margin: 0; align-self: center; }
.header-logout-button { padding: 9px 12px; color: var(--text-light); background: transparent; border: 1px solid var(--red-primary); border-radius: 5px; font: 700 .82rem var(--font-body); cursor: pointer; }
.header-logout-button:hover { color: var(--red-text); background: var(--bg-main); box-shadow: var(--shadow-glow-small); }
