/* lubashopping - nur was luba.css (setup/styles/luba) nicht hat. */

:root { --c-6: #5B8C5A; --c-7: #C9A227; --c-8: #A0566B; --c-9: #4F6D9A; --c-10: #8A7A68; }
:root[data-theme="dark"] { --c-6: #8CC58A; --c-7: #E5C75A; --c-8: #D68BA0; --c-9: #8EA6D6; --c-10: #B7A894; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --c-6: #8CC58A; --c-7: #E5C75A; --c-8: #D68BA0; --c-9: #8EA6D6; --c-10: #B7A894; }
}

/* Navigation unter der Leiste */
.nav { display: flex; gap: 2px; padding: 0 var(--pad); border-bottom: 1px solid var(--line); background: var(--bg);
  position: sticky; top: 52px; z-index: 24; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav button { padding: 11px 12px 10px; font-weight: 600; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.nav button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav button .n { font-weight: 500; color: var(--ink-3); margin-left: 4px; font-size: 12px; }
@media (min-width: 920px) { .nav { padding: 0 34px; } }

/* Filterzeile */
.filter { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 22px; }
.filter .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 3px; padding: 2px 4px 2px 8px;
  font-size: 12px; color: var(--ink-2); min-height: 26px; }
.chip i { width: 8px; height: 8px; border-radius: 2px; display: block; }
.chip button { color: var(--ink-3); width: 20px; height: 20px; display: grid; place-items: center; }
.chip button:hover { color: var(--ink); }
.suche { border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); padding: 0 10px; min-height: 30px; font: inherit; color: var(--ink); min-width: 180px; }

/* Klickbare Balken */
.hb .k button, .hb .k a { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; }
.hb .k button:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.hb .tr { cursor: pointer; }
.hb .v small { color: var(--ink-3); margin-left: 6px; }
.hb .k .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; }

/* Sankey */
.sankey path.lk { fill-opacity: .3; transition: fill-opacity .12s; }
.sankey path.lk.on { fill-opacity: .62; }
.sankey.hov path.lk:not(.on) { fill-opacity: .08; }
.sankey rect.nd { cursor: pointer; }
.sankey text { font-size: 11.5px; fill: var(--ink-2); }
.sankey text b, .sankey .nm { font-weight: 600; fill: var(--ink); }
.sankey .col { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink-3); font-weight: 600; }

/* Säulen */
.chart rect.bar { transition: opacity .12s; }
.chart.hov rect.bar:not(.on) { opacity: .35; }

/* Brotkrumen */
.krumen { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.krumen button { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.krumen b { color: var(--ink); }

/* Delta */
.delta { font-size: 12.5px; white-space: nowrap; }
.delta.auf { color: var(--bad); } .delta.ab { color: var(--ok); }
.db { display: grid; grid-template-columns: minmax(80px, 34%) 1fr 1fr auto; gap: 6px 0; align-items: center; font-size: 13px; }
.db .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; }
.db .l, .db .r { height: 12px; position: relative; }
.db .l { border-right: 1px solid var(--line-2); }
.db .l i { position: absolute; right: 0; top: 0; bottom: 0; background: var(--ok); border-radius: 3px 0 0 3px; opacity: .8; }
.db .r i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bad); border-radius: 0 3px 3px 0; opacity: .8; }
.db .v { text-align: right; min-width: 5.5em; padding-left: 10px; }

/* Preis-Punkte */
.pp { position: relative; height: 22px; margin: 4px 0 2px; }
.pp::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; border-top: 1px solid var(--line); }
.pp i { position: absolute; top: 5px; width: 12px; height: 12px; border-radius: 50%; margin-left: -6px; border: 2px solid var(--bg); cursor: default; }
.pp .rng { position: absolute; top: 9px; height: 3px; background: var(--line-2); border-radius: 2px; }

/* Regeln */
.formz { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 2px; }
.formz input, .formz select { border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); color: var(--ink); font: inherit;
  font-size: 13px; padding: 0 9px; min-height: 32px; min-width: 0; }
.formz input.w { width: 150px; } .formz input.m { width: 190px; }
.knopf.klein { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.vorschau { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.vorschau b { color: var(--ink-2); }
.vorschau .warn { color: var(--warn); }
.kw { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: 3px; padding: 0 2px 0 7px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); min-height: 24px; }
.kw button { width: 20px; height: 20px; display: grid; place-items: center; color: var(--ink-3); font-family: inherit; }
.kw button:hover { color: var(--bad); }
.kw .n { color: var(--ink-3); margin-left: 3px; }
.ib.kl { width: 28px; height: 28px; margin: 0; }
.ib.kl svg { width: 15px; height: 15px; }
.meld { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--on-ink);
  padding: 9px 14px; border-radius: var(--r-s); font-size: 13px; z-index: 60; box-shadow: 0 6px 20px var(--shadow); }
.meld.bad { background: var(--bad); color: #fff; }
.leer { color: var(--ink-3); padding: 18px 0; }

/* Login */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login-karte { width: min(100%, 340px); display: flex; flex-direction: column; gap: 14px; }
.login-karte .marke { margin-bottom: 8px; }
.feld { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.feld input { border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; padding: 0 11px; min-height: 42px; }
.meldung { color: var(--bad); font-size: 13px; }
.login-karte .knopf { justify-content: center; min-height: 42px; }
