    @font-face {
      font-family: 'Khand';
      src: url('../fonts/Khand-Light.ttf') format('truetype');
      font-weight: 300;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'Khand';
      src: url('../fonts/Khand-Regular.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'Khand';
      src: url('../fonts/Khand-Medium.ttf') format('truetype');
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'Khand';
      src: url('../fonts/Khand-SemiBold.ttf') format('truetype');
      font-weight: 600;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'Khand';
      src: url('../fonts/Khand-Bold.ttf') format('truetype');
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }

    :root {
      --red: #e30613;        /* Union primary red (site theme-color) */
      --red-dark: #b30410;
      --gold: #ffdd00;       /* subtle crest accent */
      --ink: #1a1a1a;
      --muted: #5c5c5c;
      --white: #ffffff;
      --border: #ececec;
    }

    * { box-sizing: border-box; }

    html, body { height: 100%; margin: 0; }

    body {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100svh;
      padding: 16px;
      background: var(--red);
      background-image: url("../images/background.png");
      background-size: cover;
      background-position: center;
      color: var(--ink);
      font-family: 'Khand', sans-serif;
      font-size: 20px;
      font-weight: 400;
      line-height: 1.6;
    }

    .card {
      width: min(100%, 720px);
      max-width: 720px;
      text-align: center;
      background: var(--white);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    }

    /* Logo slot */
    .brand {
      background: var(--red);
      padding: 36px 32px;
      text-align: center;
    }

    .logo-slot {
      width: 128px;
      height: 128px;
      margin: 0 auto 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.75);
    }

    .logo-slot svg,
    .logo-slot img {
      width: 100%;
      height: auto;
      display: block;
    }

    .wordmark {
      margin: 0 auto;
      color: var(--white);
      font-size: 2rem;
      font-weight: 700;
    }

    .body {
      padding: 52px 48px 56px;
    }

    .icon {
      width: 64px;
      height: 64px;
      margin: 0 auto 28px;
      color: var(--red);
    }

    .icon svg {
      width: 100%;
      height: 100%;
    }

    /* Subtle status code (diagnostics only, never the main message) */
    .status-badge {
      display: inline-block;
      margin: 0 0 18px;
      padding: 4px 14px;
      border-radius: 999px;
      background: rgba(227, 6, 19, 0.08);
      color: var(--red);
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    h1 {
      margin: 0 0 16px;
      font-size: 3rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    p {
      margin: 4px auto;
      max-width: 56ch;
      color: var(--muted);
      font-size: 1.25rem;
      font-weight: 400;
    }

    .contact {
      margin-top: 36px;
      padding-top: 28px;
      border-top: 1px solid var(--border);
      font-size: 1.2rem;
      font-weight: 400;
      color: var(--muted);
    }

    .contact a {
      color: var(--red);
      font-weight: 600;
      text-decoration: none;
    }

    .contact a:hover,
    .contact a:focus-visible { text-decoration: underline; }

    .signoff {
      margin: 16px auto 0;
      color: var(--red);
      font-size: 1.1rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    /* Recovery actions */
    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
      margin-top: 32px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 48px;
      padding: 12px 26px;
      border: 2px solid var(--red);
      border-radius: 8px;
      background: transparent;
      color: var(--red);
      font-family: inherit;
      font-size: 1.1rem;
      font-weight: 600;
      line-height: 1;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .btn--primary {
      background: var(--red);
      color: var(--white);
    }

    .btn--primary:hover,
    .btn--primary:focus-visible {
      background: var(--red-dark);
      border-color: var(--red-dark);
    }

    .btn--ghost:hover,
    .btn--ghost:focus-visible {
      background: rgba(227, 6, 19, 0.08);
    }

    .btn:focus-visible {
      outline: 3px solid var(--gold);
      outline-offset: 2px;
    }

    @media (max-width: 600px) {
      body {
        padding: 12px;
        font-size: 18px;
      }

      .card {
        border-radius: 10px;
      }

      .brand {
        padding: 24px 20px;
      }

      .logo-slot {
        width: 104px;
        height: auto;
        margin-bottom: 10px;
      }

      .wordmark {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.2;
      }

      .body {
        padding: 34px 22px 36px;
      }

      .icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
      }

      h1 {
        margin-bottom: 12px;
        font-size: clamp(2.25rem, 12vw, 2.9rem);
        line-height: 1;
      }

      p {
        font-size: 1.1rem;
      }

      .contact {
        margin-top: 24px;
        padding-top: 20px;
        font-size: 1.05rem;
      }

      .actions {
        flex-direction: column;
        margin-top: 28px;
      }

      .btn {
        width: 100%;
      }
    }

    @media (max-height: 760px) {
      .brand {
        padding-top: 20px;
        padding-bottom: 20px;
      }

      .body {
        padding-top: 26px;
        padding-bottom: 28px;
      }

      .icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
      }

      h1 {
        font-size: clamp(2rem, 10vw, 2.6rem);
        margin-bottom: 10px;
      }

      .contact {
        margin-top: 20px;
        padding-top: 16px;
      }
    }

    /* =====================================================================
       Dashboard  (tools.html)
       A config-driven launcher: one card per category, tools listed inside.
       Scoped under `body.dashboard` so it never affects the error pages.
       ===================================================================== */
    body.dashboard {
      display: block;
      align-items: stretch;
      justify-content: flex-start;
      padding: 0;
    }

    .dashboard-shell {
      max-width: 1680px;
      margin: 0 auto;
      padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 40px) 64px;
    }

    .dashboard-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 18px 24px;
      margin-bottom: clamp(24px, 4vw, 40px);
    }

    .dashboard-header__logo {
      width: 64px;
      height: 64px;
      flex: none;
    }

    .dashboard-header__logo img {
      width: 100%;
      height: 100%;
      display: block;
    }

    .dashboard-header__text h1 {
      margin: 0;
      color: var(--white);
      font-size: clamp(2rem, 5vw, 2.75rem);
      line-height: 1;
      text-transform: uppercase;
    }

    .dashboard-header__text p {
      margin: 6px 0 0;
      max-width: none;
      color: rgba(255, 255, 255, 0.85);
      font-size: 1.1rem;
    }

    /* Grid of category cards */
    .dashboard-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: clamp(18px, 2.5vw, 28px);
      align-items: start;
    }

    .category-card {
      background: var(--white);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    }

    .category-card__header {
      background: var(--red);
      padding: 18px 24px;
    }

    .category-card__header h2 {
      margin: 0;
      color: var(--white);
      font-size: 1.6rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .category-card__body {
      padding: 12px;
    }

    .tool-link {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 14px;
      border-radius: 10px;
      text-decoration: none;
      color: var(--ink);
      transition: background 0.15s ease;
    }

    .tool-link:hover,
    .tool-link:focus-visible {
      background: rgba(227, 6, 19, 0.08);
      outline: none;
    }

    .tool-link:focus-visible {
      outline: 3px solid var(--gold);
      outline-offset: 2px;
    }

    .tool-link__icon {
      width: 44px;
      height: 44px;
      flex: none;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: var(--red);
      color: var(--white);
      font-size: 1.1rem;
      font-weight: 700;
      text-transform: uppercase;
      overflow: hidden;
    }

    .tool-link__icon img {
      width: 60%;
      height: 60%;
      object-fit: contain;
    }

    .tool-link__text { min-width: 0; }

    .tool-link__name {
      display: block;
      font-size: 1.15rem;
      font-weight: 600;
      line-height: 1.2;
    }

    .tool-link__desc {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    @media (max-width: 600px) {
      .dashboard-grid { grid-template-columns: 1fr; }
    }

    /* =====================================================================
       Maintenance page  (baustelle.html)
       Scoped under `body.maintenance` so it never affects the error pages.
       ===================================================================== */
    body.maintenance .icon svg {
      animation: spin 6s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @media (prefers-reduced-motion: reduce) {
      body.maintenance .icon svg { animation: none; }
    }

    .infobox {
      margin: 28px auto 0;
      max-width: 56ch;
      padding: 20px 24px;
      border-radius: 8px;
      background: var(--red);
      color: var(--white);
      text-align: left;
    }

    .infobox__title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.5);
      font-size: 1.4rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    .infobox__title svg { flex: none; }

    .infobox p {
      margin: 0;
      max-width: none;
      color: var(--white);
      font-size: 1.15rem;
    }

    .infobox a {
      color: var(--gold);
      font-weight: 600;
      text-decoration: none;
    }

    .infobox a:hover,
    .infobox a:focus-visible { text-decoration: underline; }

    /* Crossfade used when the tip rotates every few seconds. */
    .infobox [data-infobox-title],
    .infobox [data-infobox-body] {
      transition: opacity .4s ease;
    }

    .infobox.is-fading [data-infobox-title],
    .infobox.is-fading [data-infobox-body] {
      opacity: 0;
    }

    /* The box height is animated in JS (start/end heights are measured), so the
       layout doesn't snap when a longer or shorter tip comes in. */
    .infobox.is-resizing {
      overflow: hidden;
      transition: height .4s ease;
    }

    @media (prefers-reduced-motion: reduce) {
      .infobox [data-infobox-title],
      .infobox [data-infobox-body] {
        transition: none;
      }

      .infobox.is-resizing {
        transition: none;
      }
    }