/* Leitfaden (30.09.2026). Farben nur aus den Tokens von dashboard-1.css. */
.lf-sym { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lf-ring { width: 20px; height: 20px; flex: none; transform: rotate(-90deg); }
.lf-ring circle { fill: none; stroke-width: 2.4; }
.lf-ring__grund { stroke: color-mix(in srgb, var(--muted) 30%, transparent); }
.lf-ring__wert { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2, .7, .2, 1); }
.lf-kopf .lf-ring, .lf-schalter .lf-ring { width: 36px; height: 36px; }
.lf-kopf .lf-ring circle, .lf-schalter .lf-ring circle { stroke-width: 3; }

/* Menuepunkt */
.lf-menue { position: relative; }
.lf-menue .lf-ring { margin-right: 0; }
.lf-menue__zahl { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lf-menue__punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-left: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); }

/* Fenster unten rechts */
.lf { position: fixed; z-index: 55; right: 22px; bottom: 22px; width: 380px; max-height: min(640px, calc(100vh - 110px));
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--panel);
  box-shadow: var(--shadow), 0 2px 10px #0002; overflow: hidden; animation: lf-rein .38s cubic-bezier(.2, .7, .2, 1) both; }
.lf--klein { width: 300px; }
@keyframes lf-rein { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.lf-kopf { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 14px; }
.lf-titel { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; padding: 0; }
.lf-titel span { display: grid; gap: 2px; }
.lf-titel b { font-size: 15px; font-weight: 640; }
.lf-titel small { font-size: 12px; color: var(--muted); }
.lf-knoepfe { display: flex; gap: 2px; }
.lf-knopf { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.lf-knopf:hover { background: var(--panel2); color: var(--text); }
.lf-knopf--an { background: var(--accent-soft); color: var(--accent); }
.lf-balken { height: 4px; margin: 0 14px 10px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 22%, transparent); overflow: hidden; }
.lf-balken__wert { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent); transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.lf--klein .lf-balken { margin-bottom: 12px; }
.lf-koerper { overflow-y: auto; padding: 0 8px 10px; overscroll-behavior: contain; }
.lf-bearbeiten { margin: 0 8px 8px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); font-size: 12px; color: var(--text); }

.lf-gruppe { border-top: 1px solid var(--line); }
.lf-gruppe__kopf { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 8px; border: 0; background: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.lf-gruppe__kopf:hover { background: var(--panel2); }
.lf-gruppe__kopf b { flex: 1; font-size: 13.5px; font-weight: 600; }
.lf-gruppe__kopf > .lf-sym { color: var(--muted); }
.lf-gruppe__stand { display: grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 7px; font-size: 11px; font-weight: 650;
  color: var(--muted); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.lf-gruppe--fertig .lf-gruppe__stand { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.lf-gruppe--fertig .lf-gruppe__stand .lf-sym { width: 13px; height: 13px; stroke-width: 2.4; }
.lf-gruppe--aus .lf-gruppe__stand { border-style: dashed; }
.lf-gruppe__inhalt { animation: of2-rein .25s ease-out both; }
.lf-gruppe__satz { margin: 0 8px 6px 48px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.lf-gruppe__hinweis { margin: 4px 8px 8px 48px; padding: 8px 10px; border-radius: 9px; background: var(--panel2); font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.lf-schritte { list-style: none; margin: 0; padding: 0 0 6px; }
.lf-schritt { display: flex; align-items: flex-start; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 10px; }
.lf-schritt__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lf-schritt__text b { font-size: 13px; font-weight: 560; line-height: 1.35; }
.lf-schritt__text small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.lf-beleg { font-style: normal; font-size: 11px; color: var(--accent); }
.lf-schritt--erledigt .lf-schritt__text b { color: var(--muted); }
.lf-schritt--in_anbindung .lf-schritt__text b, .lf-schritt--ausgeblendet .lf-schritt__text b { color: var(--muted); }
.lf-kreis { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.6px solid color-mix(in srgb, var(--muted) 60%, transparent); display: grid; place-items: center; }
.lf-kreis--fertig { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lf-kreis--fertig .lf-sym { width: 12px; height: 12px; stroke-width: 2.6; }
.lf-kreis--in_anbindung, .lf-kreis--ausgeblendet { border-style: dashed; }
.lf-los { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 9px; background: var(--panel2);
  color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); }
.lf-los .lf-sym { width: 13px; height: 13px; transition: transform .2s; }
.lf-los:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.lf-los:hover .lf-sym { transform: translateX(2px); }
.lf-marke { flex: none; font-size: 10.5px; padding: 3px 8px; border-radius: 7px; color: var(--muted); border: 1px dashed var(--line); white-space: nowrap; }
.lf-pflicht { flex: none; font-size: 10.5px; padding: 3px 8px; border-radius: 7px; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.lf-weg { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 9px; border: 1px solid var(--line);
  background: none; color: var(--muted); font: inherit; font-size: 11.5px; cursor: pointer; }
.lf-weg:hover { color: var(--text); border-color: var(--muted); }
.lf-weg .lf-sym { width: 14px; height: 14px; }

/* Hinweis beim ersten Schliessen */
.lf-hinweis { position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: 340px; padding: 12px 16px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-size: 13px; line-height: 1.45; box-shadow: var(--shadow); animation: lf-rein .3s ease-out both; transition: opacity .4s, transform .4s; }
.lf-hinweis--weg { opacity: 0; transform: translateY(8px); }

/* Schalter in den Einstellungen */
.lf-schalter { margin-bottom: 18px; padding: 16px 20px; }
.lf-schalter__zeile { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.lf-schalter__zeile > span { flex: 1; display: grid; gap: 3px; }
.lf-schalter__zeile b { font-size: 14.5px; }
.lf-schalter__zeile small { font-size: 12.5px; color: var(--muted); }
.lf-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lf-schalter__knopf { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: color-mix(in srgb, var(--muted) 35%, transparent); transition: background .2s; }
.lf-schalter__knopf::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 3px #0003; transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.lf-schalter input:checked + .lf-schalter__knopf { background: var(--accent); }
.lf-schalter input:checked + .lf-schalter__knopf::after { transform: translateX(18px); }
.lf-schalter input:focus-visible + .lf-schalter__knopf { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Link unter "Deine naechsten Schritte" */
.start__leitfaden { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 560; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.start__leitfaden:hover { text-decoration: underline; }

/* Handy: Blatt ueber der Tab-Leiste */
@media (max-width: 760px) {
  .lf { left: 10px; right: 10px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 190px); border-radius: 20px; }
  .lf--klein { width: auto; }
  .lf-hinweis { left: 16px; right: 16px; max-width: none; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .lf-gruppe__satz, .lf-gruppe__hinweis { margin-left: 8px; }
  .lf-schritt { flex-wrap: wrap; }
  .lf-schritt .lf-los, .lf-schritt .lf-weg, .lf-schritt .lf-marke { margin-left: 32px; }
  .lf-knopf { width: 40px; height: 40px; }
  .lf-los { padding: 9px 12px; }
}
html[data-motion=off] .lf, html[data-motion=off] .lf * { animation: none !important; transition: none !important; }

/* "Deine Marke" in den Einstellungen */
.lf-marke-feld { margin-bottom: 18px; padding: 20px 22px; }
.lf-marke-feld h2 { margin: 0 0 4px; font-size: 17px; }
.lf-marke-feld__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 14px; }
.lf-marke-feld__logo { display: grid; place-items: center; width: 140px; height: 72px; border-radius: 12px; border: 1px dashed var(--line); background: var(--panel2); overflow: hidden; }
.lf-marke-feld__logo img { max-width: 124px; max-height: 60px; object-fit: contain; }
.lf-marke-feld__logo span { font-size: 12px; color: var(--muted); }
.lf-marke-feld__felder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 280px; }
.lf-marke-feld__felder small { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }
.lf-marke-feld__felder label.button { cursor: pointer; }
.lf-farbe { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.lf-farbe input { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; }
.lf-farbe input::-webkit-color-swatch-wrapper { padding: 3px; }
.lf-farbe input::-webkit-color-swatch { border: 0; border-radius: 8px; }
.lf-farbe span { display: grid; gap: 2px; }
.lf-farbe b { font-size: 13px; }
.lf-farbe small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lf-marke-feld__meldung { margin: 10px 0 0; font-size: 12.5px; color: var(--warn); }
.lf-marke-feld__meldung:empty { display: none; }

/* Stripe-Aufbau (30.09.2026, 2. Fassung): Zeilen statt Karten, genau ein Schritt offen. */
.lf-kopf { padding: 14px 12px 6px 16px; }
.lf-kopf .lf-ring { display: none; }
.lf-titel b { font-size: 15.5px; }
.lf-stand { display: flex; justify-content: space-between; margin: 6px 16px 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lf-balken { height: 6px; margin: 0 16px 12px; border-radius: 4px; }
.lf-gruppe { border-top: 1px solid var(--line); }
.lf-gruppe__kopf { padding: 10px 8px; }
.lf-gruppe__kopf b { font-size: 13px; letter-spacing: .1px; }
.lf-schritte { padding: 0 0 8px; }
.lf-schritt { display: block; padding: 0; border-radius: 12px; }
.lf-zeile { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; background: none; border-radius: 10px;
  color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lf-zeile:hover:not([disabled]) { background: var(--panel2); }
.lf-zeile[disabled] { cursor: default; }
.lf-zeile__titel { flex: 1; min-width: 0; font-size: 13px; font-weight: 520; line-height: 1.35; }
.lf-schritt--erledigt .lf-zeile__titel { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.lf-schritt--in_anbindung .lf-zeile__titel, .lf-schritt--ausgeblendet .lf-zeile__titel { color: var(--muted); }
.lf-zeile__beleg { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lf-schritt--auf { background: var(--panel2); margin: 2px 0 6px; }
.lf-schritt--auf .lf-zeile:hover { background: none; }
.lf-schritt--auf .lf-kreis--offen { border-color: var(--accent); }
.lf-zeile__koerper { padding: 0 12px 12px 42px; animation: of2-rein .22s ease-out both; }
.lf-zeile__koerper p { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.lf-zeile__koerper .lf-beleg { color: var(--accent); font-size: 11.5px; }
.lf-zeile__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.lf-schritt--auf .lf-los { background: var(--accent); color: var(--on-accent); border-color: var(--accent); padding: 8px 14px; font-size: 12.5px; }
.lf-schritt--auf .lf-los:hover { filter: brightness(1.06); }
.lf-schritt--auf .lf-weg { border: 0; padding: 8px 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.lf-still { font-size: 12px; color: var(--muted); }
.lf-kreis { width: 18px; height: 18px; margin-top: 0; }
@media (max-width: 760px) {
  .lf-zeile { min-height: 46px; }
  .lf-zeile__koerper { padding-left: 42px; }
  .lf-schritt .lf-los, .lf-schritt .lf-weg, .lf-schritt .lf-marke { margin-left: 0; }
}
