/* =========================================
   Einheitlicher Kopf (header2) – Basis für public und company (F-039 S7 / F-040 S6)
   Eigenständig: braucht header.css nicht. Inhalt bündig mit .container (max. 1200px).
   Varianten: components/header-public.css, components/header-company.css
   ========================================= */
:root {
    /* Höhe des Kopfs – z. B. für Sidebars, die direkt darunter kleben (F-040 S8) */
    --header2-height: 64px;
}

header.header2 {
    min-height: var(--header2-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 max(24px, calc((100% - 1200px) / 2 + 24px));
    background-color: #ffffff;
    border-bottom: 1px solid #e1e3e5;
    box-shadow: none;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

header.header2 nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

header.header2 nav a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    color: #6d7175;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

header.header2 nav a:hover {
    color: #202223;
    background-color: #f1f2f3;
}

@media (max-width: 600px) {
    header.header2 {
        padding: 0 16px;
        gap: 8px;
    }

    header.header2 nav a {
        padding: 6px 8px;
        font-size: 0.875rem;
    }
}
