/* Modul dashboard – frei zusammenstellbare Startseite. */

.dash-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.dash-shell{display:flex;flex-direction:column;gap:18px}

/* Leiste mit Modulauswahl und Zurücksetzen */
.dash-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(18,38,60,.035)}
.dash-bar-info{display:flex;flex-direction:column;margin-right:auto}
.dash-bar-info strong{font:800 16px/1.2 'Manrope',system-ui,sans-serif}
.dash-bar-info small{margin-top:3px;color:var(--muted);font-size:12px}
.dash-status{min-width:120px;color:var(--muted);font-size:11px;text-align:right}

.dash-picker{position:relative}
.dash-picker>summary{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 15px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-weight:700;cursor:pointer;list-style:none}
.dash-picker>summary::-webkit-details-marker{display:none}
.dash-picker>summary:hover{background:var(--soft)}
.dash-picker>summary svg{width:18px;height:18px}
.dash-picker-list{position:absolute;z-index:6;right:0;top:calc(100% + 8px);width:min(340px,80vw);max-height:60vh;overflow:auto;display:grid;gap:2px;padding:10px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow)}
.dash-picker-item{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;padding:9px 10px;border-radius:9px}
.dash-picker-item:hover{background:var(--soft)}
.dash-picker-item input{margin-top:3px}
.dash-picker-item strong{display:block;font-size:13px}
.dash-picker-item small{display:block;margin-top:2px;color:var(--muted);font-size:11px;line-height:1.4}
.dash-picker-item.is-off strong{color:var(--muted)}

/* Raster mit zwölf Spalten */
.dash-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;align-items:start}
.dash-tile{grid-column:span 6;display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 5px 18px rgba(18,38,60,.035);overflow:hidden}
.dash-tile[data-width="narrow"]{grid-column:span 4}
.dash-tile[data-width="medium"]{grid-column:span 6}
.dash-tile[data-width="wide"]{grid-column:span 12}
.dash-tile-empty{grid-column:1/-1}
.dash-tile.is-dragging{opacity:.4;box-shadow:none}
.dash-grid.is-sorting .dash-tile{transition:none}

.dash-marker{grid-column:span 4;min-height:110px;border:2px dashed var(--blue);border-radius:var(--radius);background:rgba(20,139,209,.08)}

.dash-tile-head{display:flex;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid var(--line);background:#fbfcfd}
.dash-tile-head h2{flex:1;min-width:0;margin:0;font:800 15px/1.2 'Manrope',system-ui,sans-serif;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-tile-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--soft);color:var(--blue);flex:0 0 auto}
.dash-tile-icon svg{width:17px;height:17px}
.dash-grip{width:28px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:grab;touch-action:none}
.dash-grip:hover{background:var(--soft);color:var(--ink)}
.dash-grip:active{cursor:grabbing}
.dash-grip:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.dash-width select{height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:11px}
.dash-hide{width:32px;height:32px;flex:0 0 auto}
.dash-hide svg{width:15px;height:15px}

.dash-tile-body{flex:1;min-width:0;padding:14px 15px}
.dash-tile-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 15px;border-top:1px solid var(--line);background:#fbfcfd;color:var(--muted);font-size:11px}
.dash-tile-foot span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.dash-note{margin:0;padding:18px 0;color:var(--muted);font-size:12px;text-align:center}
.dash-tile-body .empty{padding:26px 10px}
.dash-tile-body .empty svg{width:30px;height:30px}

/* Listen innerhalb der Kacheln */
.dash-list{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.dash-row{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:inherit;text-align:left}
.dash-row:hover{background:var(--soft)}
.dash-row-main{flex:1;min-width:0}
.dash-row-main strong{display:block;font:700 13px/1.35 'DM Sans',system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-row-main small{display:block;margin-top:2px;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-row-meta{flex:0 0 auto;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}

.dash-suggestions{margin:0;padding:0 0 0 20px;display:grid;gap:9px;color:#405568;font-size:12px;line-height:1.55}

/* Fortschritt */
.dash-track{display:block;height:6px;width:100%;border-radius:6px;background:#e9eef2;overflow:hidden}
.dash-track i{display:block;height:100%;border-radius:6px;background:var(--blue)}
.dash-track i.tone-gold{background:var(--gold)}
.dash-track i.tone-green{background:var(--green)}
.dash-progress-total{margin-bottom:14px}
.dash-progress-total>div{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:6px}
.dash-progress-total strong{font:800 14px 'Manrope',system-ui,sans-serif}
.dash-progress-total span{font:800 18px 'Manrope',system-ui,sans-serif;color:var(--blue)}
.dash-progress-total small{display:block;margin-top:6px;color:var(--muted);font-size:11px}
.dash-progress-list{margin:0;padding:0;list-style:none;display:grid;gap:9px}
.dash-progress-list li{display:grid;grid-template-columns:minmax(0,1fr) minmax(70px,1.1fr) 42px;gap:10px;align-items:center}
.dash-progress-name{display:flex;align-items:center;gap:7px;min-width:0;color:var(--muted);font-size:12px}
.dash-progress-name svg{width:15px;height:15px;flex:0 0 auto}
.dash-progress-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-progress-value{text-align:right;font:700 11px 'DM Sans',system-ui,sans-serif;color:var(--muted)}

/* Kennzahlen */
.dash-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dash-figures.single{grid-template-columns:1fr}
.dash-figure{padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfcfd}
.dash-figure strong{display:block;font:800 24px/1 'Manrope',system-ui,sans-serif;letter-spacing:-.03em}
.dash-figure small{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.dash-subhead{margin:16px 0 8px;font:800 12px 'Manrope',system-ui,sans-serif;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.dash-count-list{margin:0;padding:0;list-style:none;display:grid;gap:1px}
.dash-count-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px;border-radius:8px;font-size:12px}
.dash-count-list li:nth-child(odd){background:#fbfcfd}
.dash-count-list li span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.dash-count-list li b{font:800 13px 'Manrope',system-ui,sans-serif}

/* Schnellzugriff */
.dash-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.dash-link{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-align:left;transition:.16s}
.dash-link:hover{border-color:#bad4e3;background:var(--soft)}
.dash-link>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--soft);color:var(--blue);flex:0 0 auto}
.dash-link strong{font:700 13px 'DM Sans',system-ui,sans-serif}

/* Schmale Bildschirme: eine Spalte */
@media (max-width:1160px){
  .dash-grid .dash-tile[data-width="narrow"]{grid-column:span 6}
  .dash-grid .dash-marker{grid-column:span 6}
}
@media (max-width:820px){
  .dash-grid{grid-template-columns:1fr}
  .dash-grid .dash-tile[data-width="narrow"],
  .dash-grid .dash-tile[data-width="medium"],
  .dash-grid .dash-tile[data-width="wide"],
  .dash-grid .dash-marker{grid-column:1/-1}
  .dash-marker{min-height:70px}
  .dash-bar{align-items:stretch}
  .dash-bar-info{margin-right:0}
  .dash-status{min-width:0;text-align:left}
  .dash-picker-list{right:auto;left:0}
  .dash-figures{grid-template-columns:1fr}
}
