/* Gemeinsame Kacheln: Wegweiser "Ich moechte ..." im Dashboard und die Assistenten-Seite. Auf jeder Seite geladen (base.html), damit weitere Seiten
   dieselbe Darstellung nutzen koennen: Karte (.ww) mit Kopf, optionalen Reitern (.ww-reiter) und einem Raster aus Kacheln (.ww-aufgabe). */
.ww-symbol svg, .ww-pfeil { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* ===== Wegweiser "Ich moechte ..." ===== */
.ww {
  position: relative; overflow: hidden; margin: .75rem 0 1rem; padding: 1.1rem 1.1rem 1.2rem; border-radius: 1rem;
  border: 1px solid var(--c-border); background: linear-gradient(135deg, rgba(59, 130, 246, .10), rgba(99, 102, 241, .06) 45%, var(--c-surface) 75%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.ww-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; flex-wrap: wrap; margin-bottom: .85rem; }
.ww-titel { font-size: 1.05rem; font-weight: 700; color: var(--c-text); }
.ww-unter { font-size: .8rem; color: var(--c-muted); }
.ww-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
@media (min-width: 520px) { .ww-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ww-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .ww-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ww-aufgabe {
  display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .6rem .7rem; border-radius: .7rem; text-decoration: none;
  color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-border); font-size: .875rem; line-height: 1.25;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ww-aufgabe:hover, .ww-aufgabe:focus-visible { border-color: var(--c-akzent); box-shadow: 0 4px 14px -6px rgba(37, 99, 235, .35); transform: translateY(-1px); outline: none; }
.ww-symbol { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .6rem; flex: none; background: var(--c-akzent-weich); color: var(--c-akzent); }
.ww-text { flex: 1 1 auto; min-width: 0; }
.ww-text::first-letter { text-transform: uppercase; }
.ww-pfeil { color: var(--c-muted); opacity: 0; transition: opacity .12s ease, transform .12s ease; }
.ww-aufgabe:hover .ww-pfeil, .ww-aufgabe:focus-visible .ww-pfeil { opacity: 1; transform: translateX(2px); color: var(--c-akzent); }
.ww-aufgabe:nth-child(6n+2) .ww-symbol { background: rgba(22, 163, 74, .12); color: #15803d; }
.ww-aufgabe:nth-child(6n+3) .ww-symbol { background: rgba(124, 58, 237, .12); color: #6d28d9; }
.ww-aufgabe:nth-child(6n+4) .ww-symbol { background: rgba(234, 88, 12, .12); color: #c2410c; }
.ww-aufgabe:nth-child(6n+5) .ww-symbol { background: rgba(8, 145, 178, .12); color: #0e7490; }
.ww-aufgabe:nth-child(6n+6) .ww-symbol { background: rgba(219, 39, 119, .12); color: #be185d; }
.ww-mehr { display: none; }
@media (max-width: 519px) {
  .ww { padding: .9rem .8rem 1rem; }
  .ww-kopf { flex-direction: column; align-items: flex-start; gap: .15rem; margin-bottom: .7rem; }
  .ww-titel { line-height: 1.3; }
  .ww-kurz .ww-aufgabe:nth-child(n+6) { display: none; }
  .ww-kurz .ww-mehr:not([hidden]) {
    display: block; width: 100%; margin-top: .5rem; padding: .5rem; border-radius: .7rem; border: 1px dashed var(--c-border-stark);
    background: transparent; color: var(--c-akzent); font-size: .85rem; font-weight: 600; cursor: pointer;
  }
  .ww-aufgabe { padding: .5rem .6rem; }
  .ww-pfeil { opacity: .6; }
}

/* Reiter in der Karte: Kategorie mit Anzahl */
.ww-reiter { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .85rem; padding: 0; list-style: none; }
.ww-reiter a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; font-size: .82rem; text-decoration: none;
  color: var(--c-muted); background: var(--c-surface); border: 1px solid var(--c-border); transition: border-color .12s ease, color .12s ease;
}
.ww-reiter a:hover, .ww-reiter a:focus-visible { border-color: var(--c-akzent); color: var(--c-akzent); outline: none; }
.ww-reiter a[aria-current="page"] { background: var(--c-akzent); border-color: var(--c-akzent); color: #fff; font-weight: 600; }
.ww-zahl { font-size: .72rem; font-variant-numeric: tabular-nums; padding: 0 .4rem; border-radius: 999px; background: rgba(100, 116, 139, .15); }
.ww-reiter a[aria-current="page"] .ww-zahl { background: rgba(255, 255, 255, .25); }
.ww-beschr { display: block; margin-top: .1rem; font-size: .75rem; color: var(--c-muted); line-height: 1.3; }
.ww-leer { grid-column: 1 / -1; padding: 1rem; color: var(--c-muted); font-size: .875rem; }

/* Einheitliche Karte: die Standard-Karte der Seiten (bg-white shadow rounded) sieht aus wie die Karten des Dashboards -- abgerundet, feine Linie,
   leichter Schatten. Die Farben kommen aus den Variablen und folgen dem hellen und dunklen Erscheinungsbild. */
main .bg-white.shadow { border: 1px solid var(--c-border); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
main .bg-white.shadow.rounded { border-radius: .85rem; }
