/* Kenntnis Check – gemeinsame Gestaltung (Farben wie kenntnis-medien.de) */
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("/static/schrift/nunito.woff2") format("woff2"); }
:root {
  --dunkel: #1E1B4B; --blau: #0B3F9E; --hellblau: #EAF0FC; --gelb: #FACC15; --hellgelb: #FEF9C3;
  --petrol: #0F766E; --hellpetrol: #DDF3F0; --rot: #B91C1C; --hellrot: #FDECEC; --grau: #5B6475;
  --linie: #E2E8F0; --hell: #F4F7FC; --weiss: #FFFFFF;
  --schrift: "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--hell); color: var(--dunkel); font-family: var(--schrift); font-size: 18px; line-height: 1.4;
  -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
[hidden] { display: none !important; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 24px;
  border-radius: 16px; background: var(--gelb); color: var(--dunkel); font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 4px 0 #CA9F06; transition: transform .08s, box-shadow .08s; text-decoration: none; }
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 #CA9F06; }
.knopf[disabled] { opacity: .45; pointer-events: none; }
.knopf.blau { background: var(--blau); color: var(--weiss); box-shadow: 0 4px 0 #062A6B; }
.knopf.hell { background: var(--weiss); box-shadow: 0 4px 0 var(--linie); border: 2px solid var(--linie); }
.knopf.rot { background: var(--rot); color: var(--weiss); box-shadow: 0 4px 0 #7F1212; }
.knopf.klein { min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: 12px; }

.feld { width: 100%; min-height: 56px; border: 3px solid var(--linie); border-radius: 16px; padding: 10px 16px;
  background: var(--weiss); font-size: 1.2rem; font-weight: 700; }
.feld:focus { border-color: var(--blau); outline: none; }
textarea.feld { min-height: 110px; resize: none; line-height: 1.35; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%);
  background: var(--dunkel); color: var(--weiss); padding: 12px 20px; border-radius: 16px; font-weight: 800;
  display: flex; align-items: center; gap: 10px; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); z-index: 50;
  max-width: calc(100% - 32px); }
.toast.zeigen { transform: translate(-50%, 0); }
.toast img { width: 36px; height: 36px; object-fit: contain; }

@keyframes rein { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hops { 0% { transform: scale(.4); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes wippen { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-4px); } }
.rein { animation: rein .35s ease-out both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
