/* ==========================================================================
   Secretary42 — site chrome for the standalone secretary42.de build
   --------------------------------------------------------------------------
   website/secretary42/secretary42.css scopes everything under `.s42-page`
   because it has to coexist with a WordPress theme. secretary42.de has no
   theme, so this file supplies what the theme used to: the page background,
   the site header/nav and the footer.

   The palette is duplicated here (rather than imported) because the product
   CSS defines its custom properties on `.s42-page`, and the chrome lives
   outside that element. Keep the two in sync if the brand colours change.

   The nav toggle is CSS-only. A previous build of this site used a Bootstrap
   hamburger whose JavaScript never loaded, leaving the mobile menu dead; with
   no script involved that cannot happen again.
   ========================================================================== */

:root {
  --s42c-blue-700: #1b3fb8;
  --s42c-blue-600: #2456d8;
  --s42c-blue-050: #f2f6ff;
  --s42c-ink: #0d1424;
  --s42c-ink-500: #5a6480;
  --s42c-line: #e2e8f4;
  --s42c-surface: #ffffff;
  --s42c-surface-soft: #f6f8fd;
  --s42c-maxw: 1120px;
  --s42c-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

html {
  scroll-behavior: smooth;
  /* Anchor targets must clear the sticky header. */
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--s42c-surface);
  color: var(--s42c-ink);
  font-family: var(--s42c-font);
  -webkit-font-smoothing: antialiased;
}

.s42-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.s42-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--s42c-blue-700);
  color: #fff;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-size: 15px;
}
.s42-skip:focus {
  left: 0;
}

/* ---------------------------------------------------------------- header */

.s42-chrome-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--s42c-line);
}

.s42-chrome-inner {
  max-width: var(--s42c-maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 66px;
}

.s42-chrome-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--s42c-ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.s42-chrome-brand img {
  display: block;
  border-radius: 7px;
}

.s42-chrome-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.s42-chrome-nav a {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--s42c-ink-500);
  text-decoration: none;
  white-space: nowrap;
}
.s42-chrome-nav a:hover {
  color: var(--s42c-blue-700);
  background: var(--s42c-blue-050);
}
.s42-chrome-nav a[aria-current="page"] {
  color: var(--s42c-blue-700);
  font-weight: 600;
  background: var(--s42c-blue-050);
}

/* Divider between product anchors and the legal links. */
.s42-chrome-sep {
  width: 1px;
  height: 20px;
  margin: 0 6px;
  background: var(--s42c-line);
}

/* CSS-only toggle: the button is hidden on desktop and revealed at the breakpoint
   below. The checkbox is visually hidden but never `display: none` — that would
   drop it out of the tab order and make the mobile menu keyboard-inoperable. */
.s42-chrome-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.s42-chrome-toggle {
  display: none;
}

/* ---------------------------------------------------------------- footer */

.s42-chrome-footer {
  margin-top: 64px;
  border-top: 1px solid var(--s42c-line);
  background: var(--s42c-surface-soft);
}

.s42-chrome-footer-inner {
  display: block;
  padding-top: 32px;
  padding-bottom: 36px;
  min-height: 0;
}

.s42-chrome-footnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 16px;
}
.s42-chrome-footnav a {
  font-size: 15px;
  color: var(--s42c-ink-500);
  text-decoration: none;
}
.s42-chrome-footnav a:hover {
  color: var(--s42c-blue-700);
  text-decoration: underline;
}

.s42-chrome-legalline {
  margin: 0;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--s42c-ink-500);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .s42-chrome-inner {
    flex-wrap: wrap;
    padding: 0 18px;
  }

  .s42-chrome-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--s42c-line);
    border-radius: 10px;
    background: var(--s42c-surface);
    cursor: pointer;
  }

  .s42-chrome-toggle-bars,
  .s42-chrome-toggle-bars::before,
  .s42-chrome-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--s42c-ink);
    border-radius: 2px;
  }
  .s42-chrome-toggle-bars {
    position: relative;
  }
  .s42-chrome-toggle-bars::before,
  .s42-chrome-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .s42-chrome-toggle-bars::before {
    top: -6px;
  }
  .s42-chrome-toggle-bars::after {
    top: 6px;
  }

  /* Keyboard focus must be visible even though the checkbox itself is offscreen. */
  .s42-chrome-toggle-input:focus-visible + .s42-chrome-toggle {
    outline: 2px solid var(--s42c-blue-600);
    outline-offset: 2px;
  }

  .s42-chrome-nav {
    flex-basis: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    display: none;
    padding-bottom: 14px;
  }
  .s42-chrome-toggle-input:checked ~ .s42-chrome-nav {
    display: flex;
  }

  .s42-chrome-nav a {
    padding: 11px 12px;
    font-size: 16px;
  }

  .s42-chrome-sep {
    width: auto;
    height: 1px;
    margin: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
