/*
 * Grundlage: Farben, Typografie, Reset.
 * Gemeinsame Gestaltung mit der Desktop-App: ruhige Grün- und Grautöne,
 * klare Systemschrift und zurückhaltende Konturen.
 */

:root {
  color-scheme: light;

  /* Flaechen */
  --paper: #f3f6f5;
  --surface: #ffffff;
  --surface-sunken: #f6f8f7;
  --surface-raised: #ffffff;

  /* Schrift */
  --ink: #233932;
  --ink-soft: #465e52;
  --ink-muted: #63766e;

  /* Linien */
  --rule: #dce4e0;
  --rule-soft: #edf1ef;

  /* Akzent: dunkles Flaschengruen fuer alles Bedienbare */
  --accent: #2d5c50;
  --accent-deep: #1e4038;
  --accent-wash: #e6efeb;
  --accent-line: #a8c4bb;

  /* Marker: Terrakotta fuer den aktuellen Mittelpunkt */
  --marker: #a2502a;
  --marker-wash: #f6ebe4;

  /* Geschlechtskennung, bewusst entsaettigt */
  --male: #3d6382;
  --male-wash: #e8eff4;
  --female: #87506a;
  --female-wash: #f4eaee;

  /* Zustaende */
  --danger: #96302a;
  --danger-wash: #f7eae9;

  --font-ui: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-name: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;

  --radius: 7px;
  --radius-lg: 10px;

  --shadow-pop: 0 1px 2px rgba(28, 26, 22, 0.08), 0 8px 24px rgba(28, 26, 22, 0.14);
  --shadow-card: 0 1px 2px rgba(28, 26, 22, 0.07);
}

/* Shared original logo; scale in the UI without changing the source image. */
.appbar__logo,
.login__logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 9px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1 {
  font-family: var(--font-name);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 15px;
  font-weight: 600;
}

h3 {
  font-size: 13px;
  font-weight: 600;
}

a {
  color: var(--accent);
}

/* Kleine Ueberschrift ueber einem Abschnitt. */
.eyebrow {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:where(button, [href], input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Schlanke, unaufdringliche Scrollbalken in den Panels. */
.scroll-thin {
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.scroll-thin::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.scroll-thin::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--rule);
  background-clip: content-box;
}

.scroll-thin::-webkit-scrollbar-thumb:hover {
  background: var(--ink-muted);
  background-clip: content-box;
}

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