/* Marke: Farben und Schrift an genau einer Stelle.
   Schrift "Outfit" (SIL Open Font License, siehe fonts/OFL.txt) liegt lokal –
   es werden keine Schriften von Google oder anderen Servern geladen. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --tinte: #0B2340;     /* Logo-Kachel, Text */
  --cyan: #03B1D7;      /* ".ai", obere Linie */
  --limette: #9BD84A;   /* mittlere Linie */
  --gruen: #3EAF5C;     /* untere Linie */
  --signal: #E8B84A;    /* Knotenpunkt */
  --papier: #F4F7F6;    /* Whiteboard-Weiß */
  --graphit: #4D5E70;   /* Fließtext */
  --linie: #D6DEE3;     /* inaktive Linien, Rahmen */
  --fehler: #B03A2E;

  --radius-l: 20px;
  --radius-m: 12px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
}
p { margin: 0; }

a { color: var(--tinte); text-underline-offset: 3px; }

.btn {
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .7em 1.3em;
  border-radius: var(--radius-m);
  border: 1.5px solid var(--tinte);
  background: #fff;
  color: var(--tinte);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, color .15s, transform .1s;
}
.btn:hover { background: #E9EFF1; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--tinte); color: #fff; }
.btn.primary:hover { background: #173A63; }
.btn.small { min-height: 38px; padding: .45em .9em; font-size: .9375rem; }
.btn.quiet {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-inline: .4em;
}
.btn.quiet:hover { background: rgba(11, 35, 64, .06); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

select, input[type="text"], input[type="url"] {
  font: inherit;
  font-size: 1rem;
  color: var(--tinte);
  width: 100%;
  min-height: 46px;
  padding: .55em .8em;
  border-radius: 10px;
  border: 1.5px solid var(--linie);
  background: #fff;
}
select:focus-visible, input:focus-visible { border-color: var(--tinte); outline-offset: 1px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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