.lfb-wurzel, .ew-wurzel { --lfbF: #f5c451; --lfbRGB: 245, 196, 81; font-size: 13px; color: var(--text, #eceef3); }
.lfb-wurzel *, .ew-wurzel * { box-sizing: border-box; }

.lfb-karte, .ew-karte {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(var(--lfbRGB), 0.28);
  background: radial-gradient(120% 120% at 0% 0%, rgba(var(--lfbRGB), 0.10) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.01) 100%), var(--bg-card, #0e1016);
  padding: 14px 14px 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.8);
}
.lfb-karte::before, .ew-karte::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--lfbF), rgba(var(--lfbRGB), 0.45));
}

.lfb-kopf { display: flex; align-items: center; gap: 12px; }
.lfb-kopf-ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 13px; font-size: 24px;
  background: rgba(var(--lfbRGB), 0.14);
  box-shadow: 0 0 0 1px rgba(var(--lfbRGB), 0.32) inset, 0 0 22px rgba(var(--lfbRGB), 0.18);
}
.lfb-kopf-ico .pro-ico { width: 24px; height: 24px; color: var(--lfbF); margin: 0; }
.lfb-kopf-text { flex: 1; min-width: 0; }
.lfb-kopf-text b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.lfb-kopf-text span { display: block; font-size: 11.5px; color: var(--text-muted, #8a90a0); margin-top: 2px; }
.lfb-kopf-zahl { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--lfbF); white-space: nowrap; }

.lfb-balken { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: 12px; }
.lfb-balken i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--lfbRGB), 0.65), var(--lfbF)); transition: width 0.6s ease; }
.lfb-balken.klein { height: 5px; margin-top: 6px; }
.lfb-balken.klein i { background: linear-gradient(90deg, #4a78f0, #86a8ff); }
.lfb-balken.klein.voll i { background: linear-gradient(90deg, #1fb863, #4be196); }

.lfb-pillen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lfb-pille, .ew-pille {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pF, #c3c7d1);
  background: rgba(var(--pRGB, 255, 255, 255), 0.10);
  border: 1px solid rgba(var(--pRGB, 255, 255, 255), 0.24);
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.lfb-pille .pro-ico, .ew-pille .pro-ico { width: 11px; height: 11px; margin: 0; }
.lfb-pille.gold, .ew-pille.gold { --pF: #f5c451; --pRGB: 245, 196, 81; }
.lfb-pille.gruen, .ew-pille.gruen { --pF: #4be196; --pRGB: 47, 212, 122; }
.lfb-pille.blau, .ew-pille.blau { --pF: #86a8ff; --pRGB: 91, 140, 255; }
.lfb-pille.rot, .ew-pille.rot { --pF: #ff7083; --pRGB: 255, 61, 82; }
.lfb-pille.lila, .ew-pille.lila { --pF: #b79bff; --pRGB: 167, 139, 250; }

.lfb-knopf, .ew-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--el-line-2, rgba(255, 255, 255, 0.11));
  background: var(--bg-input, #151821); color: var(--text, #eceef3);
  font: 700 12.5px/1 var(--el-font, inherit); cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.lfb-knopf:hover, .ew-knopf:hover { transform: translateY(-1px); filter: brightness(1.08); }
.lfb-knopf:disabled, .ew-knopf:disabled { opacity: 0.55; cursor: default; transform: none; filter: grayscale(0.4); }
.lfb-knopf.gold, .ew-knopf.gold {
  border: 0; color: #231a04;
  background: linear-gradient(135deg, #fff0c0, #f5c451 55%, #e39a1c);
  box-shadow: 0 8px 20px -6px rgba(245, 196, 81, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.lfb-knopf.blau, .ew-knopf.blau { color: #a9c1ff; background: rgba(91, 140, 255, 0.12); border-color: rgba(91, 140, 255, 0.35); }
.lfb-knopf.gruen, .ew-knopf.gruen { color: #6ff0aa; background: rgba(47, 212, 122, 0.12); border-color: rgba(47, 212, 122, 0.35); }
.lfb-knopf.rot, .ew-knopf.rot { color: #ff97a4; background: rgba(255, 61, 82, 0.10); border-color: rgba(255, 61, 82, 0.32); }
.lfb-knopf.klein, .ew-knopf.klein { min-height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: 8px; }
.lfb-knopf.breit, .ew-knopf.breit { width: 100%; min-height: 42px; font-size: 14px; border-radius: 12px; }

.lfb-abhol {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 11px 13px; margin-bottom: 12px; border-radius: 12px;
  border: 1px solid rgba(245, 196, 81, 0.5);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.16), rgba(245, 196, 81, 0.05));
}
.lfb-abhol span b { color: #f5c451; }

.lfb-liste { display: flex; flex-direction: column; gap: 8px; }
.lfb-etappe {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--el-line-2, rgba(255, 255, 255, 0.11));
  background: rgba(255, 255, 255, 0.025);
}
.lfb-etappe[data-z="fertig"] { border-color: rgba(47, 212, 122, 0.28); background: rgba(47, 212, 122, 0.05); }
.lfb-etappe[data-z="bereit"] { border-color: rgba(245, 196, 81, 0.6); background: rgba(245, 196, 81, 0.08); box-shadow: 0 0 18px -8px rgba(245, 196, 81, 0.6); }
.lfb-etappe[data-z="naechste"] { border-color: rgba(91, 140, 255, 0.5); background: rgba(91, 140, 255, 0.06); }
.lfb-etappe[data-z="offen"] { opacity: 0.72; }
.lfb-etappe-ico { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; font-size: 19px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.lfb-etappe-ico .pro-ico { width: 18px; height: 18px; margin: 0; }
.lfb-etappe[data-z="offen"] .lfb-etappe-ico { filter: grayscale(1); }
.lfb-etappe-text { flex: 1; min-width: 0; }
.lfb-etappe-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lfb-etappe-kopf b { font-size: 13px; font-weight: 750; min-width: 0; overflow-wrap: anywhere; }
.lfb-etappe-kopf em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #f5c451; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lfb-etappe-text p { margin: 2px 0 0; font-size: 11.5px; color: var(--text-muted, #8a90a0); line-height: 1.4; }
.lfb-etappe-stand { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 10.5px; color: var(--text-muted, #8a90a0); font-variant-numeric: tabular-nums; }
.lfb-etappe-aktion { flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }

.lfb-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lfb-fuss small { color: var(--text-muted, #8a90a0); font-size: 11.5px; }

.lfb-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lfb-wahl .lfb-karte { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lfb-wahl .lfb-karte p { margin: 0; font-size: 12px; line-height: 1.45; color: #c3c7d1; flex: 1; }
.lfb-wahl .lfb-karte.aktiv { box-shadow: 0 0 0 1px rgba(var(--lfbRGB), 0.55), 0 0 28px -10px rgba(var(--lfbRGB), 0.7); }

.lfb-hinweis, .ew-hinweis {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; margin-bottom: 12px; border-radius: 11px;
  font-size: 12px; color: #c3c7d1;
  background: rgba(91, 140, 255, 0.08); border: 1px solid rgba(91, 140, 255, 0.25);
}
.ew-hinweis.warn { background: rgba(245, 180, 67, 0.09); border-color: rgba(245, 180, 67, 0.32); color: #ffd58a; }

.lfb-start {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 12px; border-radius: 12px;
  border: 1px solid rgba(245, 196, 81, 0.5);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.15), rgba(255, 61, 82, 0.06));
}
.lfb-start > div { flex: 1; min-width: 180px; }
.lfb-start b { display: block; font-size: 14px; }
.lfb-start span { display: block; font-size: 11.5px; color: var(--text-muted, #8a90a0); margin-top: 2px; }

.ew-reiter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 12px; scrollbar-width: none; }
.ew-reiter::-webkit-scrollbar { display: none; }
.ew-reiter button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--el-line-2, rgba(255, 255, 255, 0.11)); background: rgba(255, 255, 255, 0.03);
  color: #c3c7d1; font: 650 12px/1 var(--el-font, inherit); cursor: pointer;
}
.ew-reiter button.an { color: #231a04; border-color: transparent; background: linear-gradient(135deg, #fff0c0, #f5c451 60%, #e39a1c); }
.ew-reiter button em { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.25); }

.ew-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ew-kopf > div { flex: 1; min-width: 180px; }
.ew-kopf b { display: block; font-size: 15px; font-weight: 800; }
.ew-kopf span { display: block; font-size: 11.5px; color: var(--text-muted, #8a90a0); margin-top: 2px; }
.ew-uhr { font-size: 18px; font-weight: 900; color: var(--lfbF); font-variant-numeric: tabular-nums; white-space: nowrap; }

.ew-liste { display: flex; flex-direction: column; gap: 10px; }
.ew-vorschlag {
  position: relative; padding: 12px 13px; border-radius: 12px;
  border: 1px solid var(--el-line-2, rgba(255, 255, 255, 0.11)); background: rgba(255, 255, 255, 0.025);
}
.ew-vorschlag.gewaehlt { border-color: rgba(245, 196, 81, 0.6); background: rgba(245, 196, 81, 0.07); }
.ew-vorschlag-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ew-vorschlag-kopf b { font-size: 13.5px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.ew-vorschlag p { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: #c3c7d1; overflow-wrap: anywhere; }
.ew-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ew-fz { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; font-size: 11px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: #dfe2e9; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ew-fz b { color: #f5c451; }
.ew-von { margin-top: 7px; font-size: 11px; color: var(--text-muted, #8a90a0); }
.ew-stimmbalken { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 11px; color: var(--text-muted, #8a90a0); font-variant-numeric: tabular-nums; }
.ew-stimmbalken > div { flex: 1; height: 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ew-stimmbalken i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(245, 196, 81, 0.6), #f5c451); }

.ew-feld { margin-bottom: 12px; }
.ew-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9ba1af; margin-bottom: 5px; }
.ew-feld input[type="text"], .ew-feld input[type="number"], .ew-feld textarea, .ew-feld select {
  width: 100%; min-height: 38px; padding: 8px 11px; border-radius: 10px;
  border: 1px solid var(--el-line-2, rgba(255, 255, 255, 0.11)); background: var(--bg-input, #151821);
  color: var(--text, #eceef3); font: 500 13px/1.4 var(--el-font, inherit);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ew-feld textarea { min-height: 78px; resize: vertical; }
.ew-feld input:focus, .ew-feld textarea:focus, .ew-feld select:focus { outline: none; border-color: rgba(245, 196, 81, 0.6); box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.12); }
.ew-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ew-zeile > .ew-feld { margin-bottom: 12px; }
.ew-unter { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 10.5px; color: var(--text-muted, #8a90a0); }
.ew-fzwahl { display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; gap: 8px; align-items: center; }
.ew-fzwahl input[type="number"] { text-align: center; }
.ew-gewaehlt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ew-gewaehlt .ew-fz { padding: 3px 4px 3px 9px; gap: 6px; }
.ew-gewaehlt .ew-fz button { width: 22px; height: 22px; border-radius: 6px; border: 0; background: rgba(255, 255, 255, 0.07); color: #c3c7d1; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.ew-gewaehlt .ew-fz button:hover { background: rgba(255, 61, 82, 0.2); color: #fff; }

.ew-schalter { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--el-line-2, rgba(255, 255, 255, 0.11)); background: rgba(255, 255, 255, 0.025); cursor: pointer; margin-bottom: 12px; user-select: none; }
.ew-schalter input { position: absolute; opacity: 0; pointer-events: none; }
.ew-schalter-bahn { position: relative; flex-shrink: 0; width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); transition: background 0.2s ease, box-shadow 0.2s ease; }
.ew-schalter-bahn::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1); }
.ew-schalter input:checked + .ew-schalter-bahn { background: linear-gradient(135deg, #1fb863, #4be196); box-shadow: 0 0 14px rgba(47, 212, 122, 0.45); }
.ew-schalter input:checked + .ew-schalter-bahn::after { transform: translateX(18px); }
.ew-schalter input:focus-visible + .ew-schalter-bahn { outline: 2px solid rgba(245, 196, 81, 0.7); outline-offset: 2px; }
.ew-schalter > div:last-child { min-width: 0; }
.ew-schalter b { display: block; font-size: 13px; }
.ew-schalter small { display: block; font-size: 11px; color: var(--text-muted, #8a90a0); margin-top: 2px; }

.ew-abschnitt { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9ba1af; }
.ew-abschnitt:first-child { margin-top: 0; }
.ew-abschnitt em { font-style: normal; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: #dfe2e9; }
.ew-leer { padding: 16px 10px; text-align: center; font-size: 12px; color: var(--text-muted, #8a90a0); border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 12px; }
.ew-knoepfe { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ew-grund { margin-top: 8px; padding: 8px 10px; border-radius: 9px; font-size: 11.5px; color: #ffb4bd; background: rgba(255, 61, 82, 0.08); border: 1px solid rgba(255, 61, 82, 0.22); }

.ew-ls-karte .ew-ls-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.ew-ls-karte .ew-ls-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); min-width: 0; }
.ew-ls-karte .ew-ls-item b { font-size: 12.5px; overflow-wrap: anywhere; }
.ew-ls-karte .ew-ls-item small { font-size: 11px; color: var(--text-muted, #8a90a0); }
.ew-ls-karte .ew-ls-item.gewaehlt { border-color: rgba(245, 196, 81, 0.55); }
.ew-ls-karte .ew-ls-fuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--text-muted, #8a90a0); }
.ew-ls-karte h4 em { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: 0.06em; color: #f5c451; }

html.el-pro #werkstattHinweis.el-hinweisleiste { order: 4; --el-ton: #f5c451; }
#werkstattHinweis { display: flex; align-items: center; gap: 12px; }
#werkstattHinweis > span:first-child {
  display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; font-size: 18px;
  background: rgba(245, 196, 81, 0.15); box-shadow: 0 0 0 1px rgba(245, 196, 81, 0.3) inset;
}
#werkstattHinweis > span:first-child .pro-ico { width: 18px; height: 18px; margin: 0; color: #f5c451; }
#werkstattHinweis > div { flex: 1; min-width: 0; }
#werkstattHinweis > div b { display: block; font-size: 13px; font-weight: 750; }
#werkstattHinweis > div small { display: block; font-size: 11.5px; color: #a3a9b6; margin-top: 1px; }
#ewHinweisBtn { flex-shrink: 0; height: 32px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer; font: 750 12.5px/1 var(--el-font, inherit); color: #231a04; background: linear-gradient(135deg, #fff0c0, #f5c451 60%, #e39a1c); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 8px 20px -10px rgba(0, 0, 0, 0.9); }
#ewHinweisZu { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: #9aa0ad; font-size: 15px; cursor: pointer; }
#ewHinweisZu:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
#ewHinweisZu .pro-ico { width: 14px; height: 14px; margin: 0; }

@media (max-width: 600px) {
  .lfb-wahl { grid-template-columns: minmax(0, 1fr); }
  .lfb-etappe { flex-wrap: wrap; }
  .lfb-etappe-aktion { flex-direction: row; width: 100%; padding-left: 45px; }
  .lfb-etappe-aktion .lfb-knopf { flex: 1; }
  .ew-reiter { flex-wrap: wrap; overflow-x: visible; }
  .ew-reiter button { flex: 1 1 auto; justify-content: center; }
  .ew-zeile { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ew-fzwahl { grid-template-columns: minmax(0, 1fr) 64px; }
  .ew-fzwahl .ew-knopf { grid-column: 1 / -1; }
  #werkstattHinweis { gap: 9px; }
  #werkstattHinweis > span:first-child { width: 30px; height: 30px; }
  #werkstattHinweis > div small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lfb-knopf, .ew-knopf, .lfb-balken i, .ew-schalter-bahn, .ew-schalter-bahn::after { transition: none !important; }
}
