/* gradoo-Gestaltung: Schrift, Farben und gemeinsame Bausteine für alle Seiten. */
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/familjen-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/familjen-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

[x-cloak] { display: none !important; }

:root {
  --ground: #fff;
  --ink: #0b0b0b;
  --soft: #5b5b5b;
  --tone: #f6f2f1;
  --blush: #fde1db;
  --peach: #ffaa96;
  --blue: #0157ff;
  --blue-press: #0044cc;
  --frame: #fbefeb;
  --edge: #efe6e3;
  --panel: #faf7f6;
  --placeholder: #767070; /* Platzhaltertext, 4,6:1 auf Weiß */

  --ok: #0b7a46;       --ok-pale: #e3f4ea;
  --warn: #8a5300;     --warn-pale: #fdf0d9;
  --error: #b42318;    --error-pale: #fdecea;
  --muted: #4a4544;    --muted-pale: #f1eeed;

  --font: "Familjen Grotesk", system-ui, sans-serif;

  /* Bewegung: nur transform und opacity, 150 bis 400 ms */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-press: 150ms;
  --t-hover: 180ms;
  --t-rise: 360ms;
  --stagger: 70ms;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Buttons (Pill) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  height: 44px;
  padding: 0 20px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn:hover { background: var(--blue-press); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--secondary { background: var(--muted-pale); color: var(--ink); }
.btn--secondary:hover { background: #e7e2e0; }
.btn--danger { background: var(--error); color: #fff; }
.btn--danger:hover { background: #8f1c12; }
.btn--small { height: 30px; padding: 0 12px; font-size: 14px; }

/* Status-Pills */
.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--muted-pale);
  color: var(--muted);
}
.pill--ok { background: var(--ok-pale); color: var(--ok); }
.pill--warn { background: var(--warn-pale); color: var(--warn); }
.pill--error { background: var(--error-pale); color: var(--error); }
.pill--muted { background: var(--muted-pale); color: var(--muted); }

/* Textfeld */
.field {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
}
.field::placeholder { color: var(--placeholder); }
.field:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

/* Unterstrichener Textlink */
.link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: color var(--t-hover) ease;
}
.link:hover { color: var(--blue); }

/* Eintritt: Inhalte steigen 20 px auf und blenden ein, gestaffelt um --stagger.
   Nur Animation, kein Skript: Ohne Animation ist alles sofort sichtbar.
   fill-mode backwards hält den Anfang nur während der Verzögerung; danach gelten
   wieder die eigenen Werte des Elements (z. B. opacity bei :disabled). */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.rise {
  animation: rise var(--t-rise) var(--ease-out) backwards;
  animation-delay: var(--rise-delay, 0ms);
}
.rise-1 { --rise-delay: calc(1 * var(--stagger)); }
.rise-2 { --rise-delay: calc(2 * var(--stagger)); }

/* Weniger Bewegung: kein Weg, nur ein kurzes Einblenden; kein Drücken. */
@media (prefers-reduced-motion: reduce) {
  .rise { animation-name: rise-fade; animation-duration: 200ms; }
  .btn, .link { transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
  .btn:active { transform: none; }
}
