/* Erzeugt von build.py aus assets/site.css: Kopfzeile der Webseite für den Raumrechner. Nicht von Hand ändern. */
body.rr { --nav-bg: color-mix(in srgb, var(--card) 88%, transparent); --menu-bg: var(--paper); --menu-ink: var(--ink); --menu-line: var(--line-2); --accent: var(--heat-text); --surface: var(--card); --ease: cubic-bezier(.2, .8, .2, 1) }
.rr .nav { border-bottom: 1.4px solid var(--ink) }
.skip { position: absolute; left: -999px } .skip:focus { left: 16px; top: 12px; z-index: 60; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px }
/* Menüleiste wie auf der Startseite */
.nav { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; gap: 28px; padding: calc(14px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 14px max(24px, env(safe-area-inset-left, 0px)); background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); color: var(--ink) }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit } .brand:hover { color: inherit }
.brand img { width: 30px; height: 28px } .brand b { font-size: 20px; letter-spacing: -.01em }
.nav nav { display: flex; gap: 26px; margin: 0 auto; font-size: 15px; font-weight: 600 }
.nav nav a { color: inherit; text-decoration: none; opacity: .74; padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; transition: opacity .2s }
.nav nav a:hover { opacity: 1; color: inherit } .nav nav a[aria-current] { opacity: 1; border-bottom-color: var(--heat) }
.nav-cta { text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 999px; background: var(--heat); color: var(--heat-ink); white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s }
.nav-cta:hover { color: var(--heat-ink); transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(224, 102, 42, .9) }
.theme { flex: none; border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; width: 54px; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 7px; cursor: pointer; opacity: .8; font-size: 14px; position: relative }
.theme::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: currentColor; opacity: .18; transition: transform .35s }
html[data-theme="dark"] .theme::after { transform: translateX(24px) }

/* Menüknopf unter 820 px: Vollflächen-Liste mit Menülinks und Schalter (gleicher Block in world.css und site.css, Farben über --menu-*) */
.menu-list { display: contents }
.menu { display: none }
html.menu-open, html.menu-open body { overflow: hidden }
@media (max-width: 820px) {
  .nav { gap: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
  .nav-cta { margin-left: auto; padding: 7px 14px; font-size: 14px }
  .menu { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; cursor: pointer }
  .menu span, .menu span::before, .menu span::after { display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s, background-color .3s }
  .menu span { position: relative } .menu span::before, .menu span::after { content: ""; position: absolute; left: 0 } .menu span::before { top: -5px } .menu span::after { top: 5px }
  .nav.open .menu span { background-color: transparent } .nav.open .menu span::before { transform: translateY(5px) rotate(45deg) } .nav.open .menu span::after { transform: translateY(-5px) rotate(-45deg) }
  .menu-list { display: none }
  .nav.open { color: var(--menu-ink); backdrop-filter: none; -webkit-backdrop-filter: none }
  .nav.open .menu-list { display: flex; position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; gap: 26px; padding: calc(84px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); overflow-y: auto; overscroll-behavior: contain; background: var(--menu-bg); color: var(--menu-ink) }
  .nav.open .menu-list nav { display: flex; flex-direction: column; gap: 0; width: 100%; margin: 0; font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em }
  .nav.open .menu-list nav a { opacity: 1; padding: 12px 0; border-bottom: 1px solid var(--menu-line); color: inherit; white-space: normal }
  .nav.open .menu-list nav a[aria-current] { color: var(--accent); border-bottom-color: var(--menu-line) }
  .nav.open .theme { transform: scale(1.25); transform-origin: 0 50% }
}
@media (max-width: 820px) and (max-height: 500px) {
  .nav.open .menu-list { padding-top: calc(66px + env(safe-area-inset-top, 0px)); gap: 16px }
  .nav.open .menu-list nav { font-size: 22px } .nav.open .menu-list nav a { padding: 7px 0 }
}
@media (prefers-reduced-motion: reduce) { .menu span, .menu span::before, .menu span::after { transition: none } }
