<!DOCTYPE html>
<html lang="de">
<head>
   <meta charset="utf-8"><!-- Schließende Slashes sind unter HTML5 nicht erforderlich, aber erlaubt -->
   <title>Wechsel-Navigation</title>
   <meta name="description" content="Wechsel-Navigation">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <!-- Internes CSS ("type="text/css" ist unter HTML5 nicht erforderlich) -->
   <style>
      * {
         -moz-box-sizing: border-box;
         box-sizing: border-box;
      }
      html {
         font-size: 100%;
         -moz-box-sizing: border-box;
         box-sizing: border-box;
      }
      body {
         padding: 0;
      }
      p {
      }
      ul {
         padding: 0;
         margin: 0;
         display: flex;
         flex-wrap: wrap;
         justify-content: space-between;
      }
      li {
         display: block;
         text-align: center;
         list-style-type: none;
         padding: 0.5rem 1rem;
         border: 2px solid red;
         border-radius: 0.5rem;
         margin: 0.5rem;
         flex: 1;
      }
      li:hover {
         background-color: red;
         color: white;
      }
      li:nth-child(3),
      li:nth-child(5),
      li:nth-child(9) {
         display: none;
      }
   @media only screen and (max-width: 850px) {
      li:nth-child(2),
      li:nth-child(4),
      li:nth-child(8) {
         display: none;
      }
      li:nth-child(3),
      li:nth-child(5),
      li:nth-child(9) {
         display: block;
      }
   }
   </style>
</head>
<body>
   <nav>
      <ul>
         <li>Banane</li>
         <li>Kiwi</li>
         <li>Kiwi App</li>
         <li>Erdbeere</li>
         <li>Erdbeere App</li>
         <li>Kirsche</li>
         <li>Birne</li>
         <li>Ananas</li>
         <li>Ananas App</li>
      </ul>
   </nav>
</body>
</html>