/* Leiste des Rundgangs: dunkle Fläche, Kerben, Knopf, Schrift und Farben der Unterseiten (design/system/unterseiten) */
@font-face { font-family: "XF Text"; src: url("/fonts/XFText-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "XF Text"; src: url("/fonts/XFText-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.rg-leiste { --k: 7px; position: fixed; z-index: 2000; left: 50%; bottom: 16px; translate: -50% 0; display: flex; align-items: center; gap: 12px 20px; padding: 14px 16px; color: #f4f4f2; font: 400 15px/1.3 "XF Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; max-width: calc(100vw - 32px); white-space: nowrap; filter: drop-shadow(0 10px 24px rgba(17, 17, 17, 0.22)); }
.rg-leiste, .rg-leiste *, .rg-hinweis { box-sizing: border-box; }
.rg-leiste::before, .rg-knopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #111111;
  clip-path: polygon(0 0, calc(50% - var(--k)) 0, 50% var(--k), calc(50% + var(--k)) 0, 100% 0, 100% calc(50% - var(--k)),
    calc(100% - var(--k)) 50%, 100% calc(50% + var(--k)), 100% 100%, calc(50% + var(--k)) 100%, 50% calc(100% - var(--k)),
    calc(50% - var(--k)) 100%, 0 100%, 0 calc(50% + var(--k)), var(--k) 50%, 0 calc(50% - var(--k))); }
.rg-kopf, .rg-wege { display: flex; align-items: center; gap: 12px; }
.rg-wege { gap: 8px; }
.rg-leiste a { color: inherit; text-decoration: none; }
.rg-leiste a:focus-visible { outline: 2px solid #f4f4f2; outline-offset: 2px; }
.rg-zu { display: grid; place-items: center; width: 44px; height: 44px; }
.rg-stand, .rg-muster { color: #b4b4ae; }
.rg-muster { font-size: 13px; padding-right: 8px; }
.rg-name { font-weight: 600; }
.rg-knopf { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; font-weight: 600; }
.rg-knopf::before { background: #232323; }
.rg-leiste .rg-knopf--haupt { color: #f4f4f2; }
.rg-knopf--haupt::before { background: #9c2f4a; }
.rg-zu:hover, .rg-knopf:hover { text-decoration: underline; text-underline-offset: 4px; }
.rg-zu:hover { opacity: 0.7; }
.rg-hinweis { position: fixed; z-index: 2001; left: 50%; bottom: 104px; translate: -50% 12px; margin: 0; padding: 12px 18px; border-radius: 24px; background: #f4f4f2; color: #111111; font: 400 15px/1.35 "XF Text", "Helvetica Neue", Arial, sans-serif; box-shadow: 0 12px 40px rgba(17, 17, 17, 0.24); opacity: 0; visibility: hidden; transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), translate 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.35s; pointer-events: none; max-width: calc(100vw - 32px); }
.rg-hinweis[data-an] { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
/* Fenster öffnen hier ohne Sperre, damit die Leiste bedienbar bleibt; der dunkle Grund ist derselbe */
dialog[data-rg-fenster][open] { position: fixed; inset: 0; z-index: 1500; box-shadow: 0 0 0 100vmax var(--cp-scrim, rgba(17, 17, 17, 0.5)); }
body { padding-bottom: 104px; }
@media (min-width: 960px) { dialog[data-rg-fenster][open] { bottom: 88px; } }
@media (max-width: 959px) {
  /* Unten liegt die Leiste des Portals, darum steht der Rundgang oben und geht beim Scrollen mit */
  .rg-leiste { position: sticky; top: 8px; bottom: auto; left: 0; translate: none; margin: 8px; max-width: none; padding: 10px 12px 12px; justify-content: space-between; flex-wrap: wrap; }
  .rg-muster { order: 3; flex: 1 0 100%; padding: 0 0 0 10px; font-size: 12px; margin-top: -10px; }
  .rg-hinweis { bottom: auto; top: 112px; }
  body { padding-bottom: 0; }
}
@media (max-width: 759px) {
  /* Letzte Station: oben Stand und Zurück, darunter die zwei Wege in gleicher Breite */
  .rg-leiste--letzte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-leiste--letzte .rg-wege { display: contents; }
  .rg-leiste--letzte .rg-knopf { order: 2; padding: 0 8px; }
  .rg-leiste--letzte .rg-knopf--zurueck { order: 0; justify-self: end; padding: 0 15px; }
  .rg-leiste--letzte .rg-muster { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 479px) {
  .rg-leiste { font-size: 14px; gap: 10px 6px; padding: 10px 10px 12px; }
  .rg-kopf { gap: 4px; }
  .rg-kopf .rg-name { margin-left: 2px; }
  .rg-zu { width: 40px; }
  .rg-wege { gap: 6px; }
  .rg-knopf { padding: 0 15px; }
}
@media (prefers-reduced-motion: reduce) { .rg-hinweis { transition: none; } }
