/* Burgermenü auf schmalen Bildschirmen, für alle öffentlichen Seiten beider Entwürfe.
   Farben kommen über currentColor aus dem jeweiligen Kopf (hell auf dunkel in C).
   Ohne JavaScript lädt der Kopf zusätzlich menu-ohne-js.css, dann bleibt die Navigation offen. */
.menu-knopf { display: none; }
@media (max-width: 860px) {
  .menu-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 6px; border: 0; background: none; color: inherit; font: inherit; font-weight: 500; cursor: pointer; }
  .menu-knopf .striche { position: relative; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; transition: background .2s; }
  .menu-knopf .striche::before, .menu-knopf .striche::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .25s ease; }
  .menu-knopf .striche::before { top: -7px; }
  .menu-knopf .striche::after { top: 7px; }
  .menu-knopf[aria-expanded="true"] .striche { background: transparent; }
  .menu-knopf[aria-expanded="true"] .striche::before { transform: translateY(7px) rotate(45deg); }
  .menu-knopf[aria-expanded="true"] .striche::after { transform: translateY(-7px) rotate(-45deg); }
  .hauptnav:not(.offen) { display: none; }
  .hauptnav.offen { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; width: 100%; margin: 4px 0 8px; }
  .top .hauptnav.offen { order: 3; } /* Unterseiten A: unter Logo und Knopf umbrechen */
  .hauptnav.offen a { padding: 14px 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: 1.125rem; }
  .hauptnav.offen a:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
}
/* Sehr schmale Handys: nur das Symbol zeigen, das Wort bleibt für Screenreader */
@media (max-width: 360px) {
  .menu-knopf .wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 861px) { .nur-mobil { display: none; } }
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .menu-knopf .striche, .menu-knopf .striche::before, .menu-knopf .striche::after { transition: none; } }
