@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500&display=swap');

/*
 * Brand tokens, pulled from enduradocs.de's own CSS custom properties
 * (--_primitives---colors--calypso*, --_primitives---colors--neutral*, and the
 * Noto Sans typography vars). Overrides the "zephyr" Bootswatch base so the
 * manual reads as an EnduraDocs surface rather than a generic Bootstrap site.
 */
:root {
  /* Mode-independent tokens: typography and shape don't change with theme. */
  --bs-font-sans-serif: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-border-radius: 0.5rem;
  --bs-border-radius-sm: 0.375rem;
  --bs-border-radius-lg: 0.75rem;

  /*
   * --bs-primary stays constant brand calypso in both modes: it backs the
   * navbar (navbar-dark + bg-primary needs reliable contrast with white text
   * regardless of page theme). Link colors are handled separately per-mode
   * below since calypso-on-dark-bg needs a lighter tint to stay legible.
   */
  --bs-primary: #33618d;
  --bs-primary-rgb: 51, 97, 141;
}

[data-bs-theme="light"] {
  --bs-body-color: #0c0b0d;
  --bs-body-color-rgb: 12, 11, 13;
  --bs-heading-color: var(--bs-body-color);
  --bs-border-color: #dadada;

  --bs-primary-text-emphasis: #142638;
  --bs-primary-bg-subtle: #d6dfe8;
  --bs-primary-border-subtle: #7090af;

  --bs-link-color: #33618d;
  --bs-link-color-rgb: 51, 97, 141;
  --bs-link-hover-color: #284d70;
  --bs-link-hover-color-rgb: 40, 77, 112;
}

[data-bs-theme="dark"] {
  --bs-body-bg: #0c0b0d;
  --bs-body-bg-rgb: 12, 11, 13;
  --bs-body-color: #fff;
  --bs-body-color-rgb: 255, 255, 255;
  --bs-heading-color: var(--bs-body-color);
  --bs-border-color: #545455;

  --bs-primary-text-emphasis: #d6dfe8;
  --bs-primary-bg-subtle: #142638;
  --bs-primary-border-subtle: #284d70;

  /* Lighter calypso tint for legible links on the near-black page background. */
  --bs-link-color: #7090af;
  --bs-link-color-rgb: 112, 144, 175;
  --bs-link-hover-color: #d6dfe8;
  --bs-link-hover-color-rgb: 214, 223, 232;
}

/* EnduraDocs header / navbar tweaks layered on top of dita-bootstrap. */

/* Keep the brand logo at a consistent height and vertically centered. */
.navbar-brand .navbar-logo {
  height: 28px;
  width: auto;
}

/* Give the navbar dropdowns (language + theme) a sensible minimum width. */
.navbar .dropdown-menu {
  --bs-dropdown-min-width: 8rem;
}

/* Klasse 1: Button Texte */
.button-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9em;
  line-height: 1.2;
  color: #1a73e8;              /* Textfarbe (blau wie im Beispiel) */
  background-color: #f1f3f4;   /* heller Hintergrund */
  border: 1px solid #dadce0;   /* die Umrandung = Highlight */
  border-radius: 999px;        /* Pillen-Form */
  padding: 0.2em 0.8em;
  white-space: nowrap;
  vertical-align: baseline;
}
