/* Enablement-Tab (14.10.2026): Kacheln, Karten, Charts, Platzhalter.
   Alles mit .en-Praefix, damit nichts an den bestehenden Komponenten
   (.kachel, .karte, table.daten) verschoben wird. Bauvorlage:
   tools/enablement-mockup.html. Tabellen selbst nutzen unveraendert
   table.daten aus alva-komponenten.css. */

.en-wrap { --en-ground: #F4F5F6; }

.en-filter {
  display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 12px;
}
.en-filter label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); }
.en-filter select {
  font: inherit; font-size: 13px; border: 1px solid var(--line-strong); border-radius: 0; padding: 5px 8px; background: #fff; color: var(--ink);
}
.en-rechts { margin-left: auto; }
.en-hinweis { font-size: 12px; color: var(--ink-3); }
p.en-hinweis { margin: 6px 0; }

.en-frage {
  font-size: 13px; color: var(--ink-2); margin: 0 0 12px; padding: 8px 12px;
  background: var(--alva-pale-yellow, #FFFED5); border-left: 3px solid var(--alva-black, #050B13);
}

/* ---- Kacheln */
.en-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 12px; }
.en-kachel {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 9px; padding: 12px 14px;
}
.en-kachel.klickbar { cursor: pointer; }
.en-kachel.klickbar:hover { border-color: var(--ink-2); }
.en-kachel.gruen { border-left-color: var(--ok); }
.en-kachel.gelb { border-left-color: var(--ampel-gelb, #EAB308); }
.en-kachel.rot { border-left-color: var(--bad); }
.en-kachel.luecke {
  border-left-color: var(--ink-4); border-left-style: dashed;
  background: repeating-linear-gradient(135deg, #fff 0 8px, #F7F8FA 8px 16px);
}
.en-kachel .k-titel { font-size: 12px; color: var(--ink-3); }
.en-kachel .k-wert { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; }
.en-kachel.luecke .k-wert { color: var(--ink-4); }
.en-kachel .k-sub { font-size: 12px; color: var(--ink-3); }
.en-mix { display: block; width: 100%; height: 22px; margin-top: 6px; }

/* ---- Karten und Raster */
.en-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; margin-bottom: 12px; }
.en-karte { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; min-width: 0; margin-bottom: 12px; }
.en-raster > .en-karte { margin-bottom: 0; }
.en-karte h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.en-karte .unter { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.en-karte.voll { grid-column: 1 / -1; }
.en-karte svg { display: block; width: 100%; height: auto; overflow: visible; }
.en-karte svg text { font-family: inherit; font-size: 11px; fill: var(--ink-3); }
.en-multi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.en-mini-titel { font-size: 12px; font-weight: 600; color: var(--ink-2); }

.en-legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.en-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---- Platzhalter: gestrichelt, mit Begruendung statt Zahl */
.en-platzhalter { position: relative; }
.en-platzhalter::after {
  content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; font-size: 13px; color: var(--ink-2);
  background: rgba(255, 255, 255, .88); border: 1px dashed var(--ink-4); border-radius: 6px;
}
.en-platz-block { min-height: 110px; }
.en-skelett { background: repeating-linear-gradient(135deg, #fff 0 8px, #F7F8FA 8px 16px); border-radius: 6px; }
.en-luecke-band { margin-top: 8px; font-size: 12px; color: #7A4A06; background: var(--warn-bg, #FDF3E3); padding: 6px 10px; border-radius: 4px; }
p.en-luecke-band { margin: 0 0 12px; }
.en-luecke-band code { font-size: 11px; background: rgba(0, 0, 0, .05); padding: 0 4px; border-radius: 3px; }

/* ---- Reiter in Tabellenkarten */
.en-reiter { display: flex; gap: 6px; margin: 6px 0 10px; flex-wrap: wrap; }
.en-reiter button {
  font: inherit; font-size: 12px; border: 1px solid var(--line-strong); background: #fff; border-radius: 50px; padding: 3px 12px; cursor: pointer; color: var(--ink-2);
}
.en-reiter button.aktiv { background: var(--alva-black, #050B13); color: #fff; border-color: var(--alva-black, #050B13); }
.en-tabbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }

/* ---- Zellen */
.en-amp { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.en-amp::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
table.daten td.en-fehlt { color: var(--ink-4); font-style: italic; }
.en-chip { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; }

/* ---- Tooltip der Charts */
.en-tip {
  position: fixed; pointer-events: none; background: var(--alva-black, #050B13); color: #fff; font-size: 12px; padding: 6px 9px;
  border-radius: 4px; max-width: 260px; z-index: 1000; white-space: pre-line;
}
.en-tip[hidden] { display: none; }

@media (max-width: 700px) {
  .en-raster { grid-template-columns: 1fr; }
  .en-multi { grid-template-columns: 1fr; }
}
