/* Gemeinsame Kopfzeile: bestehende Rasterhöhe von 32 px beibehalten. */
.brand.site-header {
    border-bottom: 1px solid rgba(35, 45, 60, .07);
    background: #fff;
    overflow: hidden;
}
.site-header .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 16px;
    padding: 0 12px;
    box-sizing: border-box;
}
.site-header .header-left { justify-self: start; }
.site-header .header-center {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    overflow: hidden;
}
.site-header .site-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7a8593;
    font-size: 12px;
    font-weight: 400;
}
.site-header .header-right {
    justify-self: end;
    max-width: 100%;
    min-width: 0;
    gap: 4px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.site-header .header-left a,
.site-header .header-right a,
.site-header .header-right button {
    box-sizing: border-box;
    height: 26px;
    min-height: 26px;
    padding: 0 7px;
    gap: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #596778;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}
.site-header .header-column .fa { color: #85909e; }
.site-header a span,
.site-header button span { color: inherit; }
.site-header .header-left a:hover,
.site-header .header-right a:hover,
.site-header .header-right button:hover { background: #f7f8fa; color: #34475b; }
.site-header a.is-active { background: #f1f4f7; color: #386e93; }
.site-header a.is-active .fa { color: #547e9b; }
.site-header a:focus-visible,
.site-header button:focus-visible { outline: 1px solid #8c98a5; outline-offset: -1px; }
@media (max-width: 1400px) {
    .site-header .header-center { display: none; }
    .site-header .header-right { justify-self: end; }
    .site-header .site-header-inner { grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 0 6px; }
}

/* Tiefblau: nur das gemeinsame Header-Design, bestehende Höhe bleibt 32 px. */
.brand.site-header{background:#173d5c;border-bottom-color:#254d6c;color:#f1f6fc;font-family:'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:auto;text-rendering:auto}
.site-header .site-title{color:#dce8f3;opacity:1;font-weight:400}
.site-header .header-left a,.site-header .header-right a,.site-header .header-right button{color:#f1f6fc;font-size:13px;font-weight:400;line-height:18px;opacity:1;filter:none;text-shadow:none}
.site-header .header-column .fa{color:inherit;font-size:14px;line-height:1;opacity:1;filter:none;transform:none;text-shadow:none}
.site-header .header-left a:hover,.site-header .header-right a:hover,.site-header .header-right button:hover{background:#286090;color:#fff}
.site-header a.is-active,.site-header a.is-active .fa{background:#286090;color:#fff}
.site-header a span,.site-header button span{color:inherit;opacity:1}
.site-header a:focus-visible,.site-header button:focus-visible{outline:1px solid #e5eff8;outline-offset:-1px}
@media(max-width:1600px){.site-header .header-center{display:none}.site-header .site-header-inner{grid-template-columns:auto minmax(0,1fr)}}

/* 05.11.2026: Navigation vollstaendig sichtbar statt horizontal abgeschnitten. */
.wrap:has(>.site-header){grid-template-rows:auto minmax(0,1fr) 28px}
.brand.site-header{height:auto;min-height:32px;overflow:visible;white-space:normal}
.site-header .site-header-inner{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:2px 12px;width:100%;min-width:0;height:auto;min-height:31px;padding:2px 12px}
.site-header .header-left{min-width:0;justify-self:start;align-self:start}
.site-header .header-center{display:flex;min-width:0;max-width:100%;justify-content:center;overflow:hidden}
.site-header .site-title{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-header .header-right{display:flex;align-items:center;justify-content:flex-end;justify-self:end;flex-wrap:wrap;gap:2px 4px;width:auto;min-width:0;max-width:100%;overflow:visible;white-space:normal}
.site-header .header-left a,.site-header .header-right a,.site-header .header-right button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;white-space:nowrap;height:26px;min-height:26px;padding:0 7px}
.site-header .header-right .header-logout{display:inline-flex;flex:0 0 auto;width:auto;margin:0;padding:0}
@media(max-width:1500px){
 .site-header .header-center{display:none}
 .site-header .site-header-inner{grid-template-columns:auto minmax(0,1fr);gap:2px 8px;padding:2px 8px}
 .site-header .header-right{width:100%}
}
@media(max-width:650px){
 .site-header .site-header-inner{grid-template-columns:minmax(0,1fr);gap:2px;padding:3px 6px}
 .site-header .header-right{justify-self:stretch;justify-content:flex-start;width:100%;gap:2px}
 .site-header .header-left a,.site-header .header-right a,.site-header .header-right button{padding-right:6px;padding-left:6px}
}

/* Einheitliche Bereichsnavigation: klare Auswahl und vollständig erreichbare Links. */
.site-header a.is-active { box-shadow: inset 0 -2px 0 #b9d6f0; }
.site-header .header-right a[data-header-section="dashboard"] { color: #dce8f3; }
.site-header .header-right a[data-header-section="dashboard"]:hover,
.site-header .header-right a[data-header-section="dashboard"].is-active { color: #fff; }
@media(max-width:380px) {
 .site-header .header-right a,.site-header .header-right button { max-width:100%;height:auto;min-height:30px;white-space:normal; }
 .site-header .header-right a span,.site-header .header-right button span { overflow-wrap:anywhere; }
}
