/**
 * Design-Tokens Phase 1 – Farben (EKHN-Violett unverändert), Abstände, Typografie.
 * Globale Basistyles für html/body/#app.
 */
:root {
  /* Marke EKHN – Primärfarben fix */
  --color-brand-primary: #9400ff;
  --color-brand-primary-hover: #7a00d1;
  --color-brand-tint: #e0bfff;

  /* Neutrale Flächen & Text */
  --color-bg-page: #ffffff;
  --color-bg-subtle: #f8f9fb;
  --color-bg-sidebar: #d9e2f3;
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;

  /* Footer (dunkler Grund) */
  --color-footer-bg: #0b1735;
  --color-footer-link: #e8edf5;
  --color-footer-link-hover: #ffffff;

  /* Abstände (4px-Raster) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Typografie */
  --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-size-body: 1rem;
  --line-height-body: 1.5;
  --font-size-h1: clamp(1.25rem, 2.5vw, 1.75rem);
  --font-size-h2: clamp(1.15rem, 2vw, 1.35rem);
  --font-size-h3: clamp(1.05rem, 1.5vw, 1.2rem);

  --shadow-dropdown: 2px 2px 6px rgba(0, 0, 0, 0.22);
  --transition-fast: 140ms ease;
  --transition-standard: 220ms ease;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg-page);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Sanfte Standard-Hierarchie; Komponenten können gezielt überschreiben */
:where(h1) {
  font-size: var(--font-size-h1);
  font-weight: 600;
  line-height: 1.25;
}

:where(h2) {
  font-size: var(--font-size-h2);
  font-weight: 600;
  line-height: 1.3;
}

:where(h3) {
  font-size: var(--font-size-h3);
  font-weight: 600;
  line-height: 1.35;
}

:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

a,
button,
[role="button"] {
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-standard),
    transform var(--transition-fast);
}

/* Schutz vor List-Styles in vue-multiselect-Dropdowns */
.multiselect__content-wrapper ul,
.multiselect__content {
  list-style: none;
  margin: 0;
  padding: 0;
}

.multiselect__content li,
.multiselect__element {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
