/* ==============================================
   Ü-Ei Sammlung – Design: Bunt & Verspielt
   Familie Luther-Erhard
   ============================================== */
:root {
  /* Kräftige, aber harmonische Palette */
  --ei-rot:    #E63946;   /* Kinder-Überraschung Rot */
  --ei-gelb:   #FFCE2E;   /* Folie-Gelb */
  --ei-orange: #FF8E2B;   /* Wärme */
  --ei-pink:   #FF4F9A;   /* Charlotte-Akzent */
  --ei-blau:   #4CC9F0;   /* Türkisblau */
  --ei-gruen:  #5FC16A;   /* Frisch */
  --ei-lila:   #9B5DE5;   /* Seltenheit */

  --creme:     #FFF6E0;
  --sahne:     #FFE9BD;
  --dunkel:    #2B1810;
  --grau:      #6B5C52;

  --schatten:  0 4px 0 rgba(43,24,16,.08), 0 8px 20px rgba(43,24,16,.06);
  --schatten-hover: 0 6px 0 rgba(43,24,16,.1), 0 12px 28px rgba(43,24,16,.12);
  --radius:    20px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,206,46,.35) 0%, transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(255,79,154,.22) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(76,201,240,.25) 0%, transparent 40%),
    radial-gradient(circle at 15% 90%, rgba(95,193,106,.22) 0%, transparent 40%),
    var(--creme);
  background-attachment: fixed;
  color: var(--dunkel);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============ LOGIN ============ */
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.login-ei {
  width: 130px; height: 165px;
  background: linear-gradient(135deg, #FFDD66 0%, var(--ei-gelb) 55%, #E8A82E 100%);
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  box-shadow:
    inset -14px -22px 44px rgba(139,90,43,.3),
    inset 8px 8px 20px rgba(255,255,255,.5),
    0 16px 40px rgba(216,30,30,.25);
  margin-bottom: 28px;
  animation: wackel 2.8s ease-in-out infinite;
  position: relative;
}
.login-ei::before {
  content: "";
  position: absolute;
  top: 18%; left: 26%;
  width: 24%; height: 20%;
  background: rgba(255,255,255,.65);
  border-radius: 50%;
  filter: blur(3px);
}
.login-ei .sparkle {
  position: absolute;
  font-size: 1.4rem;
  animation: sparkle 2s ease-in-out infinite;
}
.login-ei .s1 { top: -10px; right: -15px; animation-delay: 0s; }
.login-ei .s2 { top: 40%; left: -22px; animation-delay: .7s; font-size: 1.1rem; }
.login-ei .s3 { bottom: -5px; right: -8px; animation-delay: 1.3s; }
@keyframes wackel {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50%      { transform: scale(1.3) rotate(180deg); opacity: .7; }
}
.login-screen h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
  color: var(--dunkel);
}
.login-screen h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--ei-rot), var(--ei-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-screen > p { opacity: .65; margin-bottom: 28px; font-size: 1rem; font-weight: 700; }
.login-form { width: 100%; max-width: 340px; }
.login-form input {
  width: 100%;
  padding: 16px 20px;
  border: 3px solid rgba(43,24,16,.08);
  background: white;
  border-radius: 18px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.login-form input:focus {
  outline: none;
  border-color: var(--ei-rot);
  box-shadow: 0 0 0 4px rgba(230,57,70,.15);
  transform: translateY(-1px);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 22px;
  border: none;
  border-radius: 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease-out, box-shadow .2s, background .2s;
  width: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ei-rot), #C62535);
  color: white;
  box-shadow: 0 5px 0 #991822, 0 8px 16px rgba(230,57,70,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #991822, 0 12px 22px rgba(230,57,70,.35); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #991822; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-sec {
  background: white;
  color: var(--dunkel);
  border: 3px solid rgba(43,24,16,.1);
  box-shadow: 0 4px 0 rgba(43,24,16,.06);
}
.btn-sec:hover { border-color: var(--ei-rot); color: var(--ei-rot); transform: translateY(-2px); }
.btn-sec:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(43,24,16,.06); }
.btn-del {
  background: white;
  color: var(--ei-rot);
  border: 3px solid var(--ei-rot);
  box-shadow: 0 4px 0 rgba(230,57,70,.2);
}
.btn-del:hover { background: var(--ei-rot); color: white; transform: translateY(-2px); }
.btn-del:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(230,57,70,.2); }
.btn-full { width: 100%; margin-top: 10px; }

.login-hint {
  font-size: .9rem;
  color: var(--ei-rot);
  margin-top: 18px;
  min-height: 22px;
  font-weight: 700;
}

/* ============ HEADER ============ */
.app { display: none; padding-bottom: 100px; }
.app.active { display: block; animation: fadeIn .3s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid rgba(43,24,16,.05);
  backdrop-filter: blur(12px);
  background: rgba(255,246,224,.92);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  max-width: 900px;
  margin: 0 auto;
}
.mini-ei {
  width: 40px; height: 48px;
  background: linear-gradient(135deg, #FFDD66, var(--ei-gelb), #E8A82E);
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  box-shadow:
    inset -5px -8px 14px rgba(139,90,43,.3),
    inset 3px 3px 8px rgba(255,255,255,.5),
    0 3px 8px rgba(0,0,0,.1);
  flex-shrink: 0;
  position: relative;
}
.mini-ei::before {
  content: "";
  position: absolute;
  top: 22%; left: 26%;
  width: 24%; height: 20%;
  background: rgba(255,255,255,.6);
  border-radius: 50%;
  filter: blur(1px);
}
.title-block { flex: 1; min-width: 0; }
.title-block h1 { font-size: 1.3rem; line-height: 1.1; }
.title-block .sub { font-size: .78rem; opacity: .6; font-weight: 700; margin-top: 2px; }
.chip-user {
  padding: 6px 12px 6px 6px;
  background: white;
  border-radius: 24px;
  font-size: .82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--schatten);
  cursor: pointer;
  border: none;
  transition: transform .15s;
}
.chip-user:active { transform: scale(.95); }
.chip-user .avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--ei-pink), var(--ei-rot));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800;
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 18px 10px;
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  background: white;
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--schatten);
  transition: transform .15s;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: -20px; right: -20px;
  width: 60px; height: 60px;
  border-radius: 50%;
  opacity: .12;
}
.stat:nth-child(1)::before { background: var(--ei-rot); }
.stat:nth-child(2)::before { background: var(--ei-blau); }
.stat:nth-child(3)::before { background: var(--ei-gruen); }
.stat:active { transform: scale(.97); }
.stat .num {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
}
.stat:nth-child(1) .num { color: var(--ei-rot); }
.stat:nth-child(2) .num { color: var(--ei-blau); }
.stat:nth-child(3) .num { color: var(--ei-gruen); }
.stat .lbl { font-size: .72rem; opacity: .7; margin-top: 4px; font-weight: 700; }

/* ============ TOOLBAR ============ */
.toolbar {
  padding: 8px 18px 14px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.search { flex: 1; position: relative; }
.search input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 3px solid transparent;
  background: white;
  border-radius: 16px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  box-shadow: var(--schatten);
  transition: border-color .2s;
}
.search input:focus { outline: none; border-color: var(--ei-blau); }
.search::before {
  content: "🔍";
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
}
.filter-btn {
  padding: 13px 16px;
  background: white;
  border: 3px solid transparent;
  border-radius: 16px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  box-shadow: var(--schatten);
  cursor: pointer;
  color: var(--dunkel);
  white-space: nowrap;
  transition: all .2s;
}
.filter-btn.active {
  background: var(--ei-rot);
  color: white;
  border-color: var(--ei-rot);
}
.filter-btn.filter-id {
  background: var(--ei-lila);
  color: white;
  border-color: var(--ei-lila);
}

/* ============ GRID ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px 18px 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 520px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  position: relative;
  border: none;
  text-align: left;
  padding: 0;
  width: 100%;
  font-family: inherit;
  color: inherit;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--schatten-hover); }
.card:active { transform: scale(.96); }
.card .foto {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--sahne), #F5DCAF);
  overflow: hidden;
  position: relative;
}
.card .foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card .foto.leer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  opacity: .35;
}
.card .ribbon-id {
  position: absolute;
  top: 8px; left: 0;
  background: var(--ei-lila);
  color: white;
  font-size: .62rem;
  font-weight: 800;
  padding: 3px 8px 3px 10px;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  letter-spacing: .02em;
}
.card .info { padding: 10px 12px 12px; }
.card .name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.15;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .serie {
  font-size: .73rem;
  opacity: .65;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .badges {
  display: flex;
  gap: 4px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.badge {
  font-size: .66rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--sahne);
  color: #8B5A2B;
}
.badge.jahr     { background: #E1F5FE; color: #0277BD; }
.badge.selten   { background: #FFE5EA; color: var(--ei-rot); }
.badge.besitzer { background: #E8F5E9; color: #2E7D32; }
.badge.dublette { background: #F3E5F5; color: #7B1FA2; }
.badge.neuid    { background: #EDE7F6; color: #5E35B1; }

.empty-grid {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  opacity: .6;
  font-weight: 700;
}
.empty-grid .big { font-size: 3.5rem; margin-bottom: 12px; animation: wackel 3s ease-in-out infinite; }

/* ============ FAB ============ */
.fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ei-pink), var(--ei-rot));
  color: white;
  border: none;
  font-size: 2.3rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 0 #991822, 0 10px 24px rgba(230,57,70,.4);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s;
  padding-bottom: 4px;
}
.fab:hover { transform: translateY(-2px) rotate(90deg); }
.fab:active { transform: scale(.9); box-shadow: 0 2px 0 #991822; }

/* ============ MODAL ============ */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(43,24,16,.55);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-bg.active { display: flex; }
@media (min-width: 600px) { .modal-bg { align-items: center; } }
.modal {
  background: var(--creme);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow-y: auto;
  padding: 26px 22px 32px;
  animation: slideUp .3s cubic-bezier(.34,1.56,.64,1);
}
@media (min-width: 600px) { .modal { border-radius: var(--radius-lg); } }
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal h2 { font-size: 1.55rem; margin-bottom: 4px; }
.modal h3 { font-size: 1rem; margin-bottom: 10px; opacity: .8; }
.modal-sub { opacity: .6; font-size: .88rem; margin-bottom: 20px; font-weight: 700; }
.modal-close {
  float: right;
  background: rgba(43,24,16,.08);
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--dunkel);
  transition: all .15s;
}
.modal-close:hover { background: var(--ei-rot); color: white; transform: rotate(90deg); }

.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 6px;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 3px solid rgba(43,24,16,.08);
  background: white;
  border-radius: 14px;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 600;
  color: var(--dunkel);
  transition: border-color .15s;
}
.form-field textarea { resize: vertical; min-height: 72px; font-weight: 600; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ei-blau);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ============ PHOTO UPLOAD ============ */
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.photo-upload {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sahne), #F5DCAF);
  border: 3px dashed rgba(230,57,70,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all .2s;
}
.photo-upload:hover { border-color: var(--ei-rot); transform: translateY(-2px); }
.photo-upload.has-img { border-style: solid; border-color: var(--ei-gelb); }
.photo-upload img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.photo-upload.has-img img { display: block; }
.photo-upload.has-img .placeholder { display: none; }
.photo-upload .placeholder {
  text-align: center;
  opacity: .7;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
}
.photo-upload .placeholder .icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
}
.photo-upload .placeholder .ph-label {
  font-size: .92rem;
  color: var(--ei-rot);
}
.photo-upload .placeholder .ph-sub {
  font-size: .72rem;
  opacity: .7;
  font-weight: 700;
}
.photo-upload input { display: none; }
.photo-remove {
  display: none;
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: white;
  border: none;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
}
.photo-upload.has-img .photo-remove { display: flex; align-items: center; justify-content: center; }

/* ============ CHECKBOX ============ */
.check-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border: 3px solid rgba(43,24,16,.08);
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: all .15s;
}
.check-box:has(input:checked) {
  border-color: var(--ei-lila);
  background: #F8F3FF;
}
.check-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-visual {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 3px solid rgba(43,24,16,.2);
  border-radius: 8px;
  background: white;
  position: relative;
  transition: all .15s;
  margin-top: 2px;
}
.check-box input:checked + .check-visual {
  background: var(--ei-lila);
  border-color: var(--ei-lila);
}
.check-box input:checked + .check-visual::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 900;
}
.check-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .92rem;
}
.check-text small { font-size: .78rem; opacity: .65; font-weight: 700; }

/* ============ DETAIL ============ */
.detail-fotos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.detail-fotos.two { grid-template-columns: 2fr 1fr; }
.detail-foto {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--sahne), #F5DCAF);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s;
}
.detail-foto:hover { transform: scale(1.02); }
.detail-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-foto.leer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: .35;
  cursor: default;
}
.detail-foto .foto-label {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(0,0,0,.6);
  color: white;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: .03em;
}

.detail-field {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 2px solid rgba(43,24,16,.05);
  font-size: .95rem;
  gap: 10px;
}
.detail-field:last-child { border-bottom: none; }
.detail-field .k { opacity: .65; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.detail-field .v { font-weight: 800; text-align: right; word-break: break-word; }

.detail-field.id-badge {
  background: linear-gradient(135deg, #F8F3FF, #EDE7F6);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 8px 0 4px;
  border-bottom: none;
  justify-content: flex-start;
  gap: 8px;
}
.detail-field.id-badge .k { display: none; }
.detail-field.id-badge .v {
  color: var(--ei-lila);
  font-weight: 800;
  font-size: .95rem;
  text-align: left;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

/* ============ ADMIN BOX ============ */
.admin-box {
  margin-top: 18px;
  padding: 16px;
  background: linear-gradient(135deg, #FFF4CE, var(--sahne));
  border-radius: 16px;
  border: 3px solid var(--ei-gelb);
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: zoomIn .25s ease-out;
}
@keyframes zoomIn {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(160%);
  background: var(--dunkel);
  color: white;
  padding: 14px 22px;
  border-radius: 60px;
  font-size: .95rem;
  font-weight: 800;
  z-index: 300;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  max-width: 90%;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err  { background: var(--ei-rot); }
.toast.ok   { background: var(--ei-gruen); }

/* ============ SPINNER ============ */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
