/* The menu at the top right of the page (js/menue.js): only the three lines, no disc. Like the switches at the top left it
   scrolls away with the head of the page, so it never meets the KI sign further down. The three lines turn into a
   cross, the list unfolds from the button and its entries follow one after another. */
.menue { position: absolute; z-index: 2; top: 14px; right: 16px; }
/* At the top of the page the KI sign takes the corner (chat.css: fixed, 60 px at 4 px from the edge). */
.chat-closed .menue { right: 76px; }

.menue__knopf {
  position: relative; display: block; width: 48px; height: 48px; padding: 0; appearance: none; border: 0;
  background: none; color: var(--tinte); cursor: pointer;
}
.menue__knopf span {
  position: absolute; left: 14px; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: translate var(--dur-normal) var(--ease), rotate var(--dur-normal) var(--ease), opacity var(--dur-fast) var(--ease);
}
.menue__knopf span:nth-child(1) { top: 17px; }
.menue__knopf span:nth-child(2) { top: 23px; }
.menue__knopf span:nth-child(3) { top: 29px; }
.menue__knopf:hover span:nth-child(2) { translate: -3px 0; }
.ist-offen .menue__knopf span:nth-child(1) { translate: 0 6px; rotate: 45deg; }
.ist-offen .menue__knopf span:nth-child(2) { opacity: 0; translate: 6px 0; }
.ist-offen .menue__knopf span:nth-child(3) { translate: 0 -6px; rotate: -45deg; }
.menue__knopf:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 4px; }

.menue__liste {
  position: absolute; top: 60px; right: 0; min-width: 260px; margin: 0; padding: 10px; list-style: none;
  background: var(--grund); border: 1px solid var(--tinte); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform-origin: top right; scale: 0.92; opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0 round var(--radius-lg));
  transition: scale var(--dur-normal) var(--ease), opacity var(--dur-normal) var(--ease),
    clip-path var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow);
}
.ist-offen .menue__liste {
  scale: 1; opacity: 1; visibility: visible; clip-path: inset(0 0 0 0 round var(--radius-lg)); transition-delay: 0s;
}
.menue__liste li { opacity: 0; translate: 0 -8px; transition: opacity var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease); }
.ist-offen .menue__liste li {
  opacity: 1; translate: 0 0; transition-duration: var(--dur-normal); transition-delay: calc(60ms + var(--i) * 35ms);
}
.menue__liste a {
  display: block; padding: 10px 12px; border-radius: var(--radius-md); color: var(--tinte); text-decoration: none;
  font: 700 17px / 1.2 var(--marke); letter-spacing: -0.02em;
  white-space: nowrap;
}
.menue__liste a:hover, .menue__liste a:focus-visible { background: var(--gelb); outline: none; }

@media (max-width: 599px) {
  .chat-closed .menue { right: 70px; }
  .menue__liste { min-width: min(260px, calc(100vw - 28px)); }
  .chat-closed .menue__liste { min-width: min(260px, calc(100vw - 84px)); }
}
@media (prefers-reduced-motion: reduce) {
  .menue__knopf, .menue__knopf span, .menue__liste, .menue__liste li { transition: none; }
}
