/* User-supplied Söhne test fonts for the unpublished preview. */
@font-face {
  font-family: "Söhne";
  src: url("./assets/fonts/test-soehne-extraleicht.woff2") format("woff2");
  font-style: normal; font-weight: 200; font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("./assets/fonts/test-soehne-leicht.woff2") format("woff2");
  font-style: normal; font-weight: 300; font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("./assets/fonts/test-soehne-buch.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("./assets/fonts/test-soehne-kraftig.woff2") format("woff2");
  font-style: normal; font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("./assets/fonts/test-soehne-fett.woff2") format("woff2");
  font-style: normal; font-weight: 800; font-display: swap;
}
:root {
  --grundverk-font: "Söhne", "Sohne", "Helvetica Neue", Arial, sans-serif;
  --header-bg: rgba(17, 24, 24, .86);
  --header-panel-gap: 18px;
  --header-rule-top: rgba(140, 138, 119, .045);
  --header-rule-scrolled: rgba(140, 138, 119, .12);
  --header-rule-inset: var(--ruler-edge);
  --header-ink: #e9ede7;
  --header-muted: #99a79f;
  --header-hover: rgba(234, 239, 231, .055);
  --header-accent: #ae9768;
  --nav-accent: #68c9a7;
  --accent-rgb: 174, 151, 104;
  --action-surface: #1c2525;
  --action-border: #303c39;
  --action-hover: #293633;
  --appearance-icon-stroke: 2.2;
  --mobile-nav-bg: rgba(27, 37, 36, .88);
  --mobile-nav-card: #1b2c29;
  --mobile-nav-card-border: rgba(104, 201, 167, .42);
}
:root[data-theme="light"] {
  color-scheme: light;
  --grundverk-base: #eef1ed;
  --header-bg: rgba(238, 241, 237, .9);
  --header-rule-top: rgba(0, 0, 0, .06);
  --header-rule-scrolled: rgba(0, 0, 0, .18);
  --header-ink: #1f2a2a;
  --header-muted: #66756b;
  --header-hover: rgba(31, 42, 42, .055);
  --grundverk-gold: #087F80;
  --header-accent: #087F80;
  --nav-accent: #087F80;
  --accent-rgb: 8, 127, 128;
  --action-surface: #e5e9e3;
  --action-border: #cdd5cc;
  --action-hover: #f7f9f4;
  --mobile-nav-bg: rgba(229, 233, 227, .90);
  --mobile-nav-card: #d7e6e2;
  --mobile-nav-card-border: rgba(8, 127, 128, .42);
}
body { font-family: var(--grundverk-font); }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-space);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--header-ink);
  font: 500 13px/1.4 var(--grundverk-font);
}
.site-header::after {
  content: "";
  position: absolute;
  left: var(--header-rule-inset);
  right: var(--header-rule-inset);
  bottom: -1px;
  height: 1px;
  background: var(--header-rule-top);
  pointer-events: none;
  transition: background-color 180ms ease;
}
[data-scrolled="true"] .site-header::after { background: var(--header-rule-scrolled); }
.site-header[data-divider-aligned]:not([data-menu-open="true"])::after { visibility: hidden; }
.header-inner {
  width: 100%;
  max-width: var(--site-stage-max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--site-frame-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.header-left, .header-right, .header-actions { display: flex; align-items: center; }
.header-left { gap: 18px; min-width: 0; }
.header-nav { position: relative; align-items: center; white-space: nowrap; }
.header-nav--desktop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: clamp(310px, 30vw, 390px);
  height: 40px;
  padding: 3px;
  border: 1px solid var(--action-border);
  border-radius: 999px;
  background: var(--action-surface);
  overflow: hidden;
}
.header-nav--desktop[data-policy-nav] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: clamp(360px, 34vw, 460px);
}
.header-nav--mobile { display: none; }
.header-right { height: 100%; gap: 28px; margin-left: auto; min-width: 0; }
.brand-link { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; border-radius: 3px; }
/* Reuse the untouched PNG in two CSS windows, balancing symbol and wordmark independently. */
.brand-part { position: relative; display: block; overflow: hidden; flex: 0 0 auto; }
.brand-logo { position: absolute; display: block; height: auto; max-width: none; }
.brand-symbol { width: 24.1px; height: 26px; }
.brand-symbol .brand-logo { width: 106.267px; left: -2.976px; top: -2.905px; }
.brand-wordmark { width: 138px; height: 12px; }
.brand-wordmark .brand-logo { width: 214.286px; left: -70.429px; top: -26.143px; }
.header-section-link { position: relative; z-index: 1; color: #a1a8a6; text-decoration: none; letter-spacing: .01em; transition: color 220ms ease; }
.header-nav--desktop .header-section-link {
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.header-section-link:hover { color: var(--header-ink); }
.header-section-link[aria-current="location"] { color: var(--nav-accent); }
[data-theme="light"] .header-section-link { color: #747d78; }
[data-theme="light"] .header-section-link:hover { color: #1f2a2a; }
[data-theme="light"] .header-section-link[aria-current="location"] { color: var(--nav-accent); }
.nav-indicator {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 3px;
  height: 32px;
  border: 1px solid rgba(104, 201, 167, .42);
  border-radius: 999px;
  width: var(--nav-width, 0px);
  transform: translateX(var(--nav-left, 0px));
  background: rgba(104, 201, 167, .10);
  box-shadow: 0 0 12px rgba(104, 201, 167, .08);
  opacity: 0;
  pointer-events: none;
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1), width 360ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
}
[data-theme="light"] .nav-indicator {
  border-color: rgba(8, 127, 128, .42);
  background: rgba(8, 127, 128, .10);
  box-shadow: 0 0 12px rgba(8, 127, 128, .07);
}
.header-nav[data-active="true"] .nav-indicator { opacity: 1; }
.header-actions { position: relative; align-self: stretch; gap: 8px; flex: 0 0 auto; }
.theme-options {
  position: absolute;
  z-index: 2;
  top: calc(100% + var(--header-panel-gap));
  right: 0;
  width: min(210px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--action-border);
  border-radius: 14px;
  background: var(--action-surface);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}
.theme-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--header-ink);
  font: 500 14px/1.4 Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
.theme-options button[aria-pressed="true"] {
  background: var(--mobile-nav-card);
  border-color: var(--mobile-nav-card-border);
  color: var(--nav-accent);
}
.theme-options button[aria-pressed="true"]::after {
  content: "";
  width: 6px;
  height: 10px;
  margin-right: 3px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.theme-options button:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: -2px;
}
@media (hover: hover) and (pointer: fine) {
  .theme-options button:hover { background: var(--action-hover); }
  .theme-options button[aria-pressed="true"]:hover { background: var(--mobile-nav-card); }
}
.header-action {
  position: relative;
  appearance: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--action-border);
  border-radius: 50%;
  background: var(--action-surface);
  color: var(--header-muted);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.header-action:focus-visible { background: var(--action-hover); border-color: var(--header-accent); color: var(--header-ink); box-shadow: 0 0 12px rgba(var(--accent-rgb), .08); }
@media (hover: hover) and (pointer: fine) {
  .header-action:hover { background: var(--action-hover); border-color: var(--header-accent); color: var(--header-ink); box-shadow: 0 0 12px rgba(var(--accent-rgb), .08); }
}
.header-action:active { background: var(--action-hover); border-color: var(--header-accent); }
.menu-toggle { display: none; border-radius: 10px; }
.menu-toggle::after { display: none; }
.menu-toggle[aria-expanded="true"] { color: var(--header-accent); border-color: var(--header-accent); }
.menu-toggle svg path { transform-origin: 12px 12px; transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle[aria-expanded="true"] .menu-line-top { transform: translateY(6px) rotate(45deg); transform-origin: 12px 6px; }
.menu-toggle[aria-expanded="true"] .menu-line-middle { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-line-bottom { transform: translateY(-6px) rotate(-45deg); transform-origin: 12px 18px; }
.header-action::after { content: attr(data-tooltip); position: fixed; top: calc(var(--header-space) + var(--header-panel-gap)); right: max(24px, calc((100vw - 1200px) / 2)); width: max-content; max-width: calc(100vw - 40px); padding: 10px 14px; border: 1px solid var(--header-rule-scrolled); border-radius: 8px; background: var(--grundverk-base); color: var(--header-ink); font: 400 13px/1.4 var(--grundverk-font); white-space: nowrap; box-shadow: 0 5px 20px rgba(0,0,0,.14); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 150ms ease, visibility 150ms ease; }
.header-action:focus-visible::after { opacity: 1; visibility: visible; }
@media (hover: hover) { .header-action:hover::after { opacity: 1; visibility: visible; } }
.header-action[data-theme-toggle][aria-expanded="true"]::after,
.header-action[data-tooltip-dismissed="true"]::after { opacity: 0; visibility: hidden; }
.appearance-feedback { position: fixed; z-index: 120; top: calc(var(--header-space) + var(--header-panel-gap)); right: max(24px, calc((100vw - 1200px) / 2)); padding: 10px 14px; border: 1px solid var(--header-rule-scrolled); border-radius: 8px; background: var(--grundverk-base); color: var(--header-ink); font: 400 13px/1.4 var(--grundverk-font); box-shadow: 0 5px 20px rgba(0,0,0,.14); opacity: 0; transform: translateY(-4px); visibility: hidden; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease; }
.appearance-feedback { display: flex; align-items: center; gap: 8px; }
.appearance-feedback::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #363d42; }
.appearance-feedback[data-state="on"]::before { background: var(--grundverk-gold); }
.appearance-feedback[data-visible="true"] { opacity: 1; transform: translateY(0); visibility: visible; }
.header-action[data-spotlight-toggle][aria-pressed="true"] { color: var(--header-accent); }
.header-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
[data-theme-toggle] svg, [data-spotlight-toggle] svg { stroke-width: var(--appearance-icon-stroke); }
[data-spotlight-toggle] svg { overflow: visible; }
/* Reference-inspired mint controls, scoped to the dark appearance settings. */
[data-theme="dark"] .header-action:is([data-theme-toggle], [data-spotlight-toggle], .menu-toggle) {
  --header-accent: #68c9a7;
  background: #1b2524;
  border-color: #34433f;
  color: #a0ada7;
}
[data-theme="dark"] .header-action[data-spotlight-toggle][aria-pressed="true"],
[data-theme="dark"] :is(.menu-toggle, [data-theme-toggle])[aria-expanded="true"] {
  background: rgba(104, 201, 167, .10);
  border-color: rgba(104, 201, 167, .42);
  color: #68c9a7;
}
[data-theme="dark"] .header-action:is([data-theme-toggle], [data-spotlight-toggle], .menu-toggle):is(:focus-visible, :active) {
  background: rgba(104, 201, 167, .17);
  border-color: #68c9a7;
  color: #8de0c1;
  box-shadow: 0 0 12px rgba(104, 201, 167, .10);
}
@media (hover: hover) and (pointer: fine) {
  [data-theme="dark"] .header-action:is([data-theme-toggle], [data-spotlight-toggle], .menu-toggle):hover {
    background: rgba(104, 201, 167, .17);
    border-color: #68c9a7;
    color: #8de0c1;
    box-shadow: 0 0 12px rgba(104, 201, 167, .10);
  }
}
[data-theme="dark"] .appearance-feedback[data-state="on"]::before { background: #68c9a7; }
[data-theme-toggle] svg { display: none; }
:root[data-theme="light"] [data-theme-toggle] .icon-sun,
:root[data-theme="dark"] [data-theme-toggle] .icon-moon { display: block; }
[data-spotlight="off"] .spotlight-rays { display: none; }
[data-theme="light"] .brand-logo { filter: brightness(.18); }
/* Bring the resting grid and rulers close to the mouse-lit contrast in light mode. */
[data-theme="light"] #blueprint { opacity: .95; filter: brightness(.35); }
.site-header a:focus-visible, .header-action:focus-visible { outline: 2px solid var(--header-accent); outline-offset: 4px; }
@media (max-width: 760px) {
  :root { --header-space: calc(72px + env(safe-area-inset-top, 0px)); }
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Separate the banner frost from the header container. A backdrop-filter on
     the parent would otherwise prevent the nested mobile menu from blurring
     the page behind it. */
  .site-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    pointer-events: none;
  }
  .site-header[data-menu-open="true"]::after {
    background: var(--action-border);
  }
  .header-inner { width: calc(100% - 32px); margin-inline: 16px; padding-inline: 0; gap: 12px; }
  .header-left { gap: 10px; }
  .header-right { gap: 0; }
  .menu-toggle { display: grid; }
  .header-nav--desktop { display: none; }
  .header-nav--mobile {
    position: absolute;
    inset: calc(100% + 1px) 0 auto;
    width: 100%;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    padding: 16px 20px;
    background: var(--mobile-nav-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--action-border);
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1), visibility 260ms ease;
  }
  .header-nav--mobile[data-policy-nav] { height: 176px; }
  .site-header[data-menu-open="true"] .header-nav--mobile {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .header-section-link {
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--header-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .01em;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  }
  .header-section-link:hover { color: var(--header-ink); }
  .header-section-link:active { transform: scale(.985); }
  .header-section-link[aria-current="location"] {
    color: var(--nav-accent);
    background: var(--mobile-nav-card);
    border-color: var(--mobile-nav-card-border);
  }
  [data-theme="light"] .header-section-link,
  [data-theme="light"] .header-section-link:hover { color: rgba(31, 42, 42, .58); }
  [data-theme="light"] .header-section-link[aria-current="location"] { color: var(--nav-accent); }
  .header-nav--mobile .nav-indicator { display: none; }
  .brand-link { gap: 8px; }
  .brand-symbol { width: 28px; height: 30px; }
  .brand-symbol .brand-logo { width: 123.46px; left: -3.46px; top: -3.35px; }
  .header-action { width: 44px; height: 44px; }
}
@media (max-width: 380px) {
  .brand-wordmark { width: 112px; height: 9.8px; }
  .brand-wordmark .brand-logo { width: 173.91px; left: -57.86px; top: -21.22px; }
}
@media (max-width: 360px) {
  .brand-wordmark { width: 88px; height: 7.7px; }
  .brand-wordmark .brand-logo { width: 136.64px; left: -45.45px; top: -16.68px; }
}
@media (prefers-reduced-motion: reduce) {
  .header-action, .header-action::after, .appearance-feedback, .site-header::after, .header-section-link, .nav-indicator, .header-nav, .menu-toggle svg path { transition: none; }
}
