/* ==========================================================================
   fx-nav.css: the home page's main menu (index.html, section "HEADER") on every
   other public page: the GEO/legal/about pages, the five segment pages, the
   generated install pages and /voucher (Beri 2026-11-27: wherever you land, the
   same menu, sticky). index.html keeps its own inline copy and does not load this.

   Self-contained on purpose: the install pages and /voucher run on cosmic.css,
   where --ink, --line and .container mean something else. So the header sets the
   home page's tokens on itself and every rule is scoped to .site-header. On the
   pages that already carry the home header inline the values are identical, so
   nothing moves there; the new part for them is the "Für Organisationen" list.
   Behaviour (the list, and the phone menu where a page has no script of its
   own): fx-nav.js.
   ========================================================================== */
html { scroll-padding-top: 112px; }  /* 88px sticky header + 24px air, as on the home page */

/* Font D's text faces (the hitech home, 2026-12-01): Geist for Latin, Heebo for Hebrew, each with a local Arial
   resized to its metrics, so the swap moves no line (CLS 0). Same declarations as fx-hitech.css; a page that loads
   both gets each file once. Only the faces the header and footer use: no Handjet here. */
@font-face { font-family: "Geist"; src: url("fonts/geist/geist-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("fonts/geist/geist-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Heebo"; src: url("fonts/heebo/heebo-hebrew.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); font-weight: 100 549; size-adjust: 104.61%; ascent-override: 96.07%; descent-override: 28.2%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); font-weight: 550 900; size-adjust: 104.31%; ascent-override: 96.35%; descent-override: 28.28%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); font-weight: 100 549; size-adjust: 98.1%; ascent-override: 106.82%; descent-override: 42.91%; line-gap-override: 0%; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"); font-weight: 550 900; size-adjust: 95.93%; ascent-override: 109.23%; descent-override: 43.87%; line-gap-override: 0%; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

/* z-index 20: under the modals (60), the skip link (100) and the cookie banner (track.js). */
.site-header {
  --hero: #061721; --ink: #101d28; --ink-raised: #172b35;
  --jade: #59c3a0; --ivory: #f4f0e7; --muted: #b4c2c5; --copper-bright: #d4976e;
  --line: rgba(244,240,231,.16); --mono: Consolas, monospace; --ease: 180ms ease-out;
  --max: 1376px; --gutter: 48px;
  position: sticky; inset-block-start: 0; z-index: 20; background: var(--hero);
  align-self: stretch;   /* /voucher's body is a centred flex column: the bar still spans the screen */
  color: var(--ivory); font-size: 18px; line-height: 1.6;
}
/* Header and footer in the home page's text face (font D); the footer's layout stays each page family's own. */
.site-header, .site-footer { font-family: "Geist", "Heebo", "Geist Fallback", "Heebo Fallback", "Segoe UI", Arial, sans-serif; }
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
/* :where() keeps these at element weight, so .button-copper and the hover colours below still win. */
:where(.site-header) a { color: inherit; text-decoration: none; }
:where(.site-header) button { font: inherit; cursor: pointer; }
:where(.site-header) img { display: block; max-width: 100%; height: auto; }
.site-header .container { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 88px; }
.site-header .brand { flex-shrink: 0; width: 252px; display: block; }
.site-header .brand img { width: 100%; height: auto; }
[dir="rtl"] .site-header .brand { direction: ltr; }
.site-header .desktop-nav { display: flex; gap: 30px; align-items: center; font-size: 14px; }
.site-header .desktop-nav a:hover { color: var(--jade); }
.site-header .header-actions { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-header .header-login:hover { color: var(--jade); }
.site-header .button { min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 650; line-height: 1.4; text-align: center; transition: background var(--ease), transform var(--ease), border-color var(--ease); }
.site-header .button:hover { transform: translateY(-2px); }
.site-header .button-copper { color: var(--ink); background: linear-gradient(125deg, #c78352, #e6a16b); border-color: #f1b784; box-shadow: inset 0 1px 0 #ffffff42; }
.site-header .button-copper:hover { background: var(--copper-bright); }
/* Language as three plain links to the same page (segment and install pages; the
   GEO/legal pages keep their .header-lang links, /voucher its own buttons). */
.site-header .lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.site-header .lang a { min-width: 44px; min-height: 44px; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font: 12px var(--mono); letter-spacing: .04em; }
.site-header .lang a[aria-current="page"] { background: var(--ink-raised); color: var(--ivory); }
.site-header .lang a:hover { color: var(--ivory); }
/* One button, as on the home page (index.html .lang, UX scan 2026-10-15): closed it shows only the page's own
   language with a caret, a tap opens the others (fx-nav.js toggles .open). The page's language comes from
   <html lang> (lang.php sets it on the segment pages, whose markup is the same in all three languages),
   so the closed state is right in the first paint and nothing shifts when the script runs. */
html[lang="de"] .site-header .lang:not(.open) a:not([hreflang="de"]),
html[lang="en"] .site-header .lang:not(.open) a:not([hreflang="en"]),
html[lang="he"] .site-header .lang:not(.open) a:not([hreflang="he"]) { display: none; }
html[lang="de"] .site-header .lang a[hreflang="de"], html[lang="en"] .site-header .lang a[hreflang="en"],
html[lang="he"] .site-header .lang a[hreflang="he"] { background: var(--ink-raised); color: var(--ivory); }
html[lang="de"] .site-header .lang:not(.open) a[hreflang="de"]::after, html[lang="en"] .site-header .lang:not(.open) a[hreflang="en"]::after,
html[lang="he"] .site-header .lang:not(.open) a[hreflang="he"]::after { content: "\00a0\25BE"; opacity: .7; }
.site-header .menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ivory); font-size: 22px; line-height: 1; }
/* Opened at any scroll position from the sticky header: never taller than the screen. */
.site-header .mobile-nav { padding: 8px 0 24px; max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; }
.site-header .mobile-nav a { display: block; padding: 12px; border-bottom: 1px solid var(--line); }
.site-header .mobile-nav[hidden] { display: none; }
/* "Für Organisationen": a button that opens the two organisation pages. It looks like
   its neighbour links; the list sits on the header colour under it. */
.site-header .nav-drop { position: relative; }
.site-header .nav-drop-btn { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.site-header .nav-drop-btn::after { content: " \25BE"; opacity: .7; }
.site-header .nav-drop-btn:hover, .site-header .nav-drop-btn[aria-expanded="true"] { color: var(--jade); }
.site-header .nav-drop-menu { position: absolute; top: 100%; inset-inline-start: -14px; z-index: 30; min-width: 210px; padding: 6px;
  background: var(--hero); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 32px rgba(0,0,0,.35); }
.site-header .nav-drop-menu[hidden] { display: none; }
.site-header .nav-drop-menu a { display: block; padding: 11px 14px; border-radius: 6px; white-space: nowrap; }
.site-header .nav-drop-menu a:hover, .site-header .nav-drop-menu a:focus-visible { background: var(--ink-raised); color: var(--jade); }

/* The home page's breakpoints. */
/* the header has room for the sixth item only on wide screens (as on the home page). Known gap, same as home:
   between 960 and 1379px the two organisation pages are not in the header at all (☰ starts at 959px). */
@media (max-width: 1379px) { .site-header .desktop-nav .nav-org, .site-header .desktop-nav .nav-blog { display: none; } }
/* Blog (2026-12-02): German and English need ~1430px of layout width for the bar with Blog (measured on the about pages, segment
   pages and blog posts), so they show it only from 1480px: room for a 17px Windows scrollbar plus font differences. Hebrew fits from 1380. */
@media (max-width: 1479px) { .site-header:lang(de) .desktop-nav .nav-blog, .site-header:lang(en) .desktop-nav .nav-blog { display: none; } }
@media (max-width: 1100px) {
  .site-header .desktop-nav { gap: 18px; }
  .site-header .header-actions { gap: 10px; }
  .site-header .brand { width: 205px; }
}
@media (max-width: 959px) {
  .site-header { --gutter: 32px; }
  .site-header .desktop-nav, .site-header .header-login, .site-header .header-actions > .button { display: none; }
  .site-header .menu-toggle { display: block; }
}
@media (max-width: 639px) {
  html { scroll-padding-top: 96px; }  /* 72px header + 24px */
  .site-header { --gutter: 20px; font-size: 16px; }
  .site-header .header-inner { min-height: 72px; gap: 6px; }
  .site-header .brand { width: 176px; }
  .site-header .header-actions { gap: 6px; }
  /* Three language links (segment and install pages) are wider than the home page's one-button switch:
     narrower links, and the logo may give up a few pixels rather than push ☰ off the screen at 390px. */
  .site-header .lang a { min-width: 34px; padding-inline: 6px; }
  .site-header .brand { flex-shrink: 1; min-width: 0; }
}
@media (max-width: 389px) { .site-header .brand { width: 48px; } }
