@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #0c2153;
  --navy-linie: #2a4387;
  --blau: #0063ab;
  --gelb: #f0b310;
  --gelb-tief: #c58f00;
  --hell: #f4faff;
  --papier: #eaf2f9;
  --weiss: #ffffff;
  --tinte: #10203f;
  --leise: #4f5f78;
  --linie: #cbdae8;
  --gruen: #1f7a4d;
  --fehler: #b3261e;
  --titel: "Bricolage", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--hell); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hell); color: var(--tinte); font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, p, ol { margin: 0; padding: 0; }
h1, h2 { font-family: var(--titel); font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.25rem, 10vw, 3.5rem); line-height: 1; }
h2 { font-size: 1.625rem; line-height: 1.15; margin-bottom: 0.375rem; }
.spalte { width: 100%; max-width: 40rem; margin-inline: auto; padding-inline: 1.25rem; }
.kopf {
  background-color: var(--navy);
  background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 1.75rem 1.75rem;
  color: var(--weiss);
  padding-block: max(2rem, env(safe-area-inset-top)) 4rem;
}
.kopf .spalte { display: grid; gap: 0.75rem; }
.dach { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gelb); }
.leise-hell { color: #c9d5ea; font-size: 1.0625rem; max-width: 32rem; }
.leise { color: var(--leise); }
.klein { font-size: 0.875rem; }
main { display: grid; gap: 2.75rem; padding-bottom: max(3rem, env(safe-area-inset-bottom)); }
.karte { background: var(--weiss); border-radius: 1.25rem; box-shadow: inset 0 0 0 1.5px var(--linie), 0 3px 0 var(--linie); }
.formular { margin-top: -2.5rem; padding: 1.25rem; display: grid; gap: 1rem; }
.feld { display: grid; gap: 0.375rem; font-weight: 650; font-size: 0.9375rem; }
.optional { font-weight: 450; color: var(--leise); }
textarea, input {
  width: 100%; border: 0; border-radius: 0.875rem; background: var(--hell); color: inherit;
  font: inherit; font-weight: 400; font-size: 1.0625rem; padding: 0.875rem 1rem; box-shadow: inset 0 0 0 1.5px var(--linie);
}
textarea { resize: vertical; min-height: 8rem; line-height: 1.42; }
textarea:focus, input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blau), 0 0 0 4px rgb(0 99 171 / 0.12); }
.knopf {
  appearance: none; border: 0; width: 100%; min-height: 3.5rem; border-radius: 1rem;
  background: var(--gelb); color: var(--navy); font-family: var(--titel); font-size: 1.125rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 0 var(--gelb-tief); transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.knopf:active { transform: translateY(4px); box-shadow: 0 0 0 var(--gelb-tief); }
.knopf:disabled { opacity: 0.5; cursor: default; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.meldung { font-weight: 600; min-height: 0; }
.meldung:empty { display: none; }
.meldung.ok { color: var(--gruen); }
.meldung.fehler { color: var(--fehler); }

.liste { list-style: none; display: grid; gap: 1rem; margin-top: 1.25rem; }
.wunsch { padding: 1.125rem 1.25rem 1.25rem; display: grid; gap: 0.875rem; animation: rein 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rein { from { opacity: 0; transform: translateY(0.5rem); } }
.wunsch-kopf { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; color: var(--leise); }
.wunsch-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.wunsch-stelle { font-size: 0.875rem; color: var(--blau); font-weight: 600; }
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.schritt { height: 0.5rem; border-radius: 2px; background: var(--papier); overflow: hidden; position: relative; }
.schritt::after { content: ""; position: absolute; inset: 0; background: var(--gelb); transform: scaleX(0); transform-origin: left; transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.schritt.an::after { transform: scaleX(1); }
.schritt.aktiv::after { animation: pulsieren 1.4s ease-in-out infinite alternate; }
.wunsch.live .schritt::after { background: var(--gruen); }
@keyframes pulsieren { to { opacity: 0.45; } }
.schritt-namen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 0.6875rem; color: var(--leise); margin-top: 0.375rem; }
.schritt-namen span.an { color: var(--navy); font-weight: 650; }
.stand { font-weight: 650; }
.stand.rueckfrage { color: var(--fehler); }
.notiz { background: var(--hell); border-radius: 0.875rem; padding: 0.75rem 0.875rem; font-size: 0.9375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.notiz:empty { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
