/* Ortho-Wiki – zentrale horizontale Navigation, Testfassung 07.11.2026.
   Bestehende Schrift Arial 14px fett, Farben, Hover und Menühöhe bleiben.
   KEIN Wechsel der Schriftart und keine Veränderung der HTML-Seiten. */
#ow-nav-root {
  width:1000px;
  max-width:100%;
  margin:0 auto;
  box-sizing:border-box;
  /* Optische Testkorrektur der im Screenshot sichtbaren ~4px-Lücke
     zwischen Kopfzeile und horizontaler Navigation. */
  position:relative;
  margin-top:-4px;
  z-index:2;
}
.ow-nav-row {background:#B5B5B5;display:block;min-height:29px;box-sizing:border-box;}
.ow-nav-scroll {display:flex;align-items:stretch;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;min-width:0;width:100%;}
.ow-nav-row a,.ow-nav-row a:visited {
  display:block;flex:0 0 auto;box-sizing:border-box;
  padding:5px 11px;color:#0C3F9C!important;
  font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:bold;
  font-style:normal;line-height:normal;text-transform:uppercase;text-decoration:none;white-space:nowrap;
}
/* Allgemeines Hauptmenue: ORTHO-HOME auf ALLEN Seiten mittig in der
   166px breiten Logospalte, wie bereits auf der Homepage und im
   Geschichts-Untermenue. Die anderen Menuepunkte bleiben unveraendert. */
.ow-nav-row:not(.ow-nav-row--secondary) .ow-nav-scroll > a:first-child {
  flex:0 0 166px;
  width:166px;
  margin-left:0;
  margin-right:0;
  text-align:center;
}
.ow-nav-row a:hover,.ow-nav-row a:focus-visible {background:#B5B5B5;color:#FFFFCA!important;}
.ow-nav-row a[aria-current] {background:transparent;color:#0C3F9C!important;}
.ow-nav-row a[aria-current]:hover {color:#FFFFCA!important;}

/* Geschichtsbereich: links 166px HOME, ab 166px fünf Rubriken auf 834px. */
.ow-nav-row--secondary {overflow-x:auto;}
.ow-nav-scroll--geschichte {
  display:grid;grid-template-columns:166px minmax(0,1fr);
  align-items:stretch;overflow:visible;
}
.ow-nav-home {display:flex;justify-content:center;align-items:stretch;min-width:0;}
.ow-nav-section-links {
  display:flex;justify-content:space-between;align-items:stretch;
  min-width:0;
}
/* 5 × (2 × 6px) statt 5 × (2 × 11px); die 14px-Schrift passt nun. */
.ow-nav-row--secondary .ow-nav-section-links a {padding-left:6px;padding-right:6px;}
.ow-nav-row--secondary .ow-nav-home a {padding-left:6px;padding-right:6px;}

@media(max-width:1000px){#ow-nav-root{max-width:100vw;}}
@media(max-width:900px){
  /* Auf schmalen Displays die Originalproportionen beibehalten,
     horizontal scrollen statt unlesbar kleine Schrift zu erzwingen. */
  .ow-nav-scroll--geschichte{width:1000px;min-width:1000px;grid-template-columns:166px 834px;}
}

/* Hauptmenue: drei nachgeordnete Bereiche rechtsbuendig. */
.ow-nav-row:not(.ow-nav-row--secondary) .ow-nav-scroll > a:nth-child(4){margin-left:auto;}
