/* quik Sites: Ebenen der Oberfläche (docs/BAUPLAN.md Abschnitt 31, docs/GESTALTUNG.md Abschnitt 14).
   .lvl      Leiste über einer Unterseite: „zurück“ zum Sammelpunkt bzw. die zwei Reiter der Auswertung (main.js shell)
   .eb-*     Sammelseiten „Agentur“ und „Mehr“ (public/js/agentur.js): Kacheln mit Symbol, Titel, einer kurzen Zeile
   .wz-*     Werkzeugzeile mit Symbolen: Suche klappt aus der Lupe auf, Filter und Sortierung als Symbolknopf mit Menü
             (public/js/werkzeug.js)
   .zl-hover Aktionen einer Zeile erst beim Überfahren oder mit der Tastatur; am Touch-Gerät immer sichtbar */

/* ---------- Leiste über der Seite ---------- */
.lvl { max-width: 1180px; margin: 0 auto; padding: 22px 48px 0; display: flex; align-items: center; gap: 4px; }
.lvl + .page { padding-top: 14px; }
.lvl-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-soft); border-radius: 8px; padding: 4px 8px 4px 4px; margin-left: -4px; }
.lvl-back:hover { color: var(--fg); background: var(--surface-2); }
.lvl-tabs { gap: 4px; }
.lvl-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 550; color: var(--ink-soft); border: 1px solid transparent; }
.lvl-tab:hover { color: var(--fg); background: var(--surface-2); }
.lvl-tab.on { color: var(--fg); background: var(--surface); border-color: var(--line); }
@media (max-width: 640px) {
  .lvl { padding: 14px 16px 0; }
  .lvl + .page { padding-top: 10px; }
  /* Tippfläche 40 px ohne Layoutänderung (sichtbar bleiben 27 bzw. 35 px) */
  .lvl-back, .lvl-tab { position: relative; }
  .lvl-back::after { content: ""; position: absolute; inset: -7px -4px; }
  .lvl-tab::after { content: ""; position: absolute; inset: -4px 0; }
}

/* ---------- Sammelseiten ---------- */
/* Ruhig (Audit 25.11.2026): Symbol und Titel, Stichworte im Tooltip; deshalb flacher und schmaler */
.eb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.eb-tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; color: inherit; transition: border-color .12s, transform .12s; }
.eb-tile:hover { border-color: var(--line-strong); text-decoration: none; }
.eb-tile:active { transform: scale(.995); }
.eb-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--ink-soft); }
.eb-tile:hover .eb-ic { color: var(--fg); }
.eb-t { display: grid; gap: 2px; min-width: 0; }
.eb-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-t span { font-size: var(--fs-sm); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-end { color: var(--ink-faint); display: grid; }
.eb-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 600; background: var(--orange-tint); color: var(--orange-ink); }
.eb-tile.is-locked .eb-ic, .eb-tile.is-locked .eb-t b { color: var(--ink-soft); }
@media (max-width: 640px) {
  .eb-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .eb-tile { padding: 10px 14px; }
}

/* ---------- Werkzeugzeile mit Symbolen ---------- */
.wz { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wz-btn { position: relative; flex: none; }
.wz-btn.is-set::after { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 2px var(--surface); }
/* Suche: Lupe, die beim Klicken oder mit Inhalt zum Feld wird */
.wz-search { display: flex; align-items: center; height: 36px; border: 1px solid transparent; border-radius: 999px; color: var(--ink-soft); transition: width .16s ease, border-color .12s, background .12s; width: 36px; overflow: hidden; flex: none; cursor: pointer; }
.wz-search > svg { flex: none; margin: 0 9px 0 10px; }
.wz-search input { border: 0; outline: 0; background: none; font: inherit; color: var(--fg); width: 100%; min-width: 0; padding: 0 12px 0 0; height: 100%; }
.wz-search input:focus, .wz-search input:focus-visible { box-shadow: none; outline: 0; border: 0; }
.wz-search input::-webkit-search-cancel-button { cursor: pointer; }
.wz-search:hover { background: var(--surface-2); color: var(--fg); }
.wz-search:focus-within, .wz-search.has-q { width: min(240px, 46vw); border-color: var(--line); background: var(--surface); cursor: text; }
.wz-search:focus-within { border-color: var(--ink-faint); }
@media (min-width: 1100px) { .wz-search.is-wide { width: 220px; border-color: var(--line); background: var(--surface); cursor: text; } }
@media (prefers-reduced-motion: reduce) { .wz-search { transition: none; } }

/* ---------- Aktionen einer Zeile erst beim Überfahren ---------- */
@media (hover: hover) {
  .zl-hover .zl-act { opacity: 0; transition: opacity .12s; }
  .zl-hover:hover .zl-act, .zl-hover:focus-within .zl-act, .zl-hover .zl-act:focus-visible, .zl-hover .zl-act[aria-expanded="true"] { opacity: 1; }
}

/* ---------- Karten mit Einstellungen: Häufiges sichtbar, „Erweitert“ aufklappbar ---------- */
.eb-adv { border-top: 1px solid var(--line-soft); margin-top: 4px; }
.eb-adv > summary { display: flex; align-items: center; gap: 6px; padding: 12px 0; font-size: var(--fs-sm); font-weight: 550; color: var(--ink-soft); cursor: pointer; list-style: none; }
.eb-adv > summary::-webkit-details-marker { display: none; }
.eb-adv > summary svg { transition: transform .14s; }
.eb-adv[open] > summary svg { transform: rotate(90deg); }
.eb-adv > summary:hover { color: var(--fg); }

/* Werkzeugzeile einer Liste: links der gewählte Filter als Chip, rechts die Symbole */
.wz-tools { align-items: center; }
.wz-tools .ku-tools-l:empty, .wz-tools .ku-chips:empty { display: none; }
.wz-tools .ku-tools-r { margin-left: auto; flex-wrap: nowrap; }
.wz-chip.is-warn { background: var(--orange-tint); color: var(--orange-ink); }
a.wz-chip:hover { color: var(--fg); }
/* Am Handy sind Aktionen einer Zeile immer sichtbar */
@media (max-width: 640px) { .zl-hover .zl-act { opacity: 1 !important; } }
@media (max-width: 640px) { .wz-tools .ku-tools-r { width: auto; } .wz-tools { flex-wrap: nowrap; } }
@media (min-width: 1600px) { .lvl { max-width: 1440px; } } @media (min-width: 2200px) { .lvl { max-width: 1680px; } } /* wie .page (app.css): gleiche Kanten auf großen Bildschirmen */
