/* GroupPilot base: font, minimal reset, typography scale, focus, motion. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/Geist-Variable-dfa48d5a853753289194436953e3f202.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.gp-app,
.gp-app *,
.gp-app *::before,
.gp-app *::after {
  box-sizing: border-box;
}

body.gp-app {
  margin: 0;
  min-height: 100vh;
  background: var(--gp-bg);
  color: var(--gp-ink);
  font-family: var(--gp-font);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.4;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(.gp-app) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) {
  margin: 0;
}

:where(.gp-app) :where(ul[role="list"], ol[role="list"], .gp-list) {
  list-style: none;
  padding: 0;
}

:where(.gp-app) :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

:where(.gp-app) :where(a) {
  color: inherit;
}

/* The hidden attribute always wins over component display rules */
.gp-app [hidden] {
  display: none !important;
}

/* Type scale (README "Typography") */
.gp-t-display { font-size: 76px; font-weight: 600; letter-spacing: -4px; line-height: .8; }
.gp-t-xl { font-size: 44px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
/* long German titles ("Benutzerverwaltung") hyphenate instead of running under the header actions */
.gp-t-xl { overflow-wrap: break-word; hyphens: auto; }
.gp-t-desk { font-size: 36px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.05; }
.gp-t-l { font-size: 30px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.08; }
.gp-t-kpi { font-size: 28px; font-weight: 600; letter-spacing: -1.2px; line-height: 1; }
.gp-t-headline { font-size: 26px; font-weight: 650; letter-spacing: -.8px; line-height: 1.12; text-wrap: balance; }
.gp-t-hero { font-size: 24px; font-weight: 650; letter-spacing: -.7px; line-height: 1.15; }
.gp-t-sheet { font-size: 22px; font-weight: 650; letter-spacing: -.6px; }
.gp-t-section { font-size: 15px; font-weight: 600; }
.gp-t-name { font-size: 16px; font-weight: 550; letter-spacing: -.2px; }
.gp-t-body { font-size: 16px; font-weight: 500; }
.gp-t-sub { font-size: 15px; color: var(--gp-ink2); }
.gp-t-meta { font-size: 13px; font-weight: 500; color: var(--gp-ink3); }
.gp-t-label { font-size: 12px; font-weight: 500; color: var(--gp-ink3); }

.gp-c-ink2 { color: var(--gp-ink2); }
.gp-c-ink3 { color: var(--gp-ink3); }
.gp-c-warn { color: var(--gp-warn); }
.gp-c-good { color: var(--gp-good); }
.gp-c-bad { color: var(--gp-bad); }
.gp-c-accent { color: var(--gp-accent-ink); }

.gp-block {
  display: block;
}
.gp-liste {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gp-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

/* Focus (screens §10: 2px ink outline, offset 2px) */
.gp-app :focus-visible {
  outline: 2px solid var(--gp-ink);
  outline-offset: 2px;
}

.gp-app .gp-btn--primary:focus-visible {
  outline: 2px solid var(--gp-ink);
  box-shadow: 0 0 0 2px var(--gp-surface) inset;
}

/* Skip link */
.gp-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-200%);
}

.gp-skip:focus {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .gp-app *,
  .gp-app *::before,
  .gp-app *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
