/* V3 Sammelpatch: winterliche Optik, Statuskarten, mobile Nutzung, Straßensuche */
.content{
  background-image:linear-gradient(145deg,rgba(247,248,250,.94),rgba(250,249,247,.86)),url('wm-winter-bg.webp');
  background-position:center center;background-size:cover;background-attachment:fixed;
}
[data-theme="dark"] .content{
  background-image:linear-gradient(145deg,rgba(14,19,25,.94),rgba(16,20,26,.91)),url('wm-winter-bg.webp');
}
.auth-layout{
  background:linear-gradient(115deg,rgba(27,24,29,.79),rgba(47,22,30,.60)),url('wm-winter-bg.webp') center center/cover fixed;
}
.auth-card{box-shadow:0 24px 68px rgba(4,10,18,.32);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(12px)}
.auth-brand{letter-spacing:-.02em;font-size:17px}
.page-head{padding:14px 16px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow);margin-bottom:16px}
.page-head h1{color:var(--ink)}
.kpi{position:relative;overflow:hidden;border:1px solid var(--line)}
.kpi:after{content:' ';position:absolute;width:90px;height:90px;border-radius:50%;right:-39px;top:-38px;background:rgba(193,18,31,.055);pointer-events:none}
.tile{border:1px solid var(--line);transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease}
.tile:hover{box-shadow:0 13px 30px rgba(35,35,35,.1)}
.tile .icon{background:rgba(193,18,31,.075);border-radius:10px;min-width:40px;min-height:40px;flex-shrink:0}
[data-theme="dark"] .tile .icon{background:rgba(255,120,135,.1)}
.order-card[class*="wm-status-"]{border-left:5px solid var(--wm-status-border);background:var(--wm-status-bg);box-shadow:0 2px 10px rgba(18,25,33,.025)}
.wm-status-open{--wm-status-border:#db9c1d;--wm-status-bg:#fff9ed}
.wm-status-paid{--wm-status-border:#24905a;--wm-status-bg:#eefaf3}
.wm-status-loaded{--wm-status-border:#4387ba;--wm-status-bg:#eef6ff}
.wm-status-done{--wm-status-border:#6d8395;--wm-status-bg:#f0f4f7}
.wm-status-cancelled{--wm-status-border:#c04859;--wm-status-bg:#fff0f1}
[data-theme="dark"] .wm-status-open{--wm-status-border:#ffc060;--wm-status-bg:#312b20}
[data-theme="dark"] .wm-status-paid{--wm-status-border:#77d59d;--wm-status-bg:#1d3328}
[data-theme="dark"] .wm-status-loaded{--wm-status-border:#8fbcf1;--wm-status-bg:#1d3144}
[data-theme="dark"] .wm-status-done{--wm-status-border:#a4b6c6;--wm-status-bg:#29343d}
[data-theme="dark"] .wm-status-cancelled{--wm-status-border:#ff8b9a;--wm-status-bg:#3c252b}
.wm-status-open h3,.wm-status-paid h3,.wm-status-loaded h3,.wm-status-done h3,.wm-status-cancelled h3{color:var(--ink)}
.wm-suggest-wrap{position:relative}
.wm-suggestions{position:absolute;z-index:50;left:0;right:0;top:calc(100% - 4px);padding:5px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;box-shadow:0 18px 28px #0002;max-height:245px;overflow-y:auto}
.wm-suggest-option{width:100%;border:0;border-radius:6px;display:block;text-align:left;padding:11px 10px;background:transparent;color:var(--ink);font-size:14px;font-weight:600;cursor:pointer}
.wm-suggest-option:hover,.wm-suggest-option:focus{background:var(--soft);outline:2px solid var(--red);outline-offset:-2px}
.wm-suggestions .small{padding:9px}
.wm-reset-single{margin:16px 0 0;padding:12px;border:1px dashed #bb5460;border-radius:10px;display:grid;gap:12px}
.wm-danger-zone{border:1px solid #d79a9d}
.wm-danger-zone h2{color:#ba2637}
[data-theme="dark"] .wm-danger-zone h2{color:#ff919a}
@media(max-width:900px){.content{background-attachment:scroll}.tile .icon{min-width:34px;min-height:34px}}
@media(max-width:650px){
  .main-area{padding:12px 10px calc(70px + env(safe-area-inset-bottom))}
  .page-head{padding:13px;border-radius:11px}
  .kpis{gap:10px}.kpi{min-width:0}
  .tile{min-height:90px;padding:12px;overflow-wrap:anywhere}
  .tile .icon{min-width:32px;min-height:32px}
  .order-card{padding:13px;min-width:0}
  .order-card-head{gap:8px;flex-wrap:wrap}
  .order-card-head h3{font-size:15px;overflow-wrap:anywhere}
  .wm-suggestions{max-height:min(45vh,260px)}
  .wm-reset-single .btn{width:100%}
  .auth-layout{padding:18px 12px}
  .auth-card{width:100%;padding:21px}
}


/* Baumübersicht V3: Preise auf dem Dashboard statt Funktionskacheln */
.wm-tree-price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:13px;margin-bottom:16px}
.wm-tree-price-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow);min-width:0}
.wm-tree-price-card-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.wm-tree-price-icon{font-size:24px;line-height:1}
.wm-tree-price-color{font-size:13px;font-weight:750;color:var(--red);overflow-wrap:anywhere}
.wm-tree-price-size{font-size:clamp(16px,1.8vw,19px);font-weight:750;margin-bottom:15px;overflow-wrap:anywhere}
.wm-tree-price-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px}
.wm-tree-price-value{font-size:clamp(20px,2vw,24px);font-variant-numeric:tabular-nums}
.wm-tree-price-stock{font-size:12px;font-weight:650;color:var(--muted);background:var(--soft);padding:5px 9px;border-radius:99px}
.wm-tree-price-stock.wm-tree-soldout{color:#b71c33;background:#fff0f2}
[data-theme="dark"] .wm-tree-price-stock.wm-tree-soldout{color:#ffabb4;background:#47262a}
/* Die Bestellmaske nutzt nach dem Entfernen der Lagerbestands-Spalte die verfügbare Breite */
.wm-sale-panel{width:100%;max-width:1100px;margin-left:auto;margin-right:auto}
.wm-sale-panel .qty-row select{max-width:100%;text-overflow:ellipsis}
@media(max-width:650px){.wm-tree-price-grid{grid-template-columns:1fr;gap:9px}.wm-tree-price-card{padding:14px}.wm-tree-price-card-footer{gap:6px}}
