/* Comb: Reiter Verwaltung (Aussehen). Farben nur über die Variablen aus avolie.css. */
.vx { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.vx h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; overflow-wrap: anywhere; }
.vx .card h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); line-height: 1.15; }
.vx-bar { position: sticky; top: 70px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 14px; background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); }
.vx-bar__st { margin-right: auto; font-weight: 700; color: var(--brass); min-height: 1.4em; }
.vx-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.vx-group { display: flex; flex-wrap: wrap; gap: 10px; }
.vx-opt { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; min-width: 96px; padding: 12px 14px; font: inherit; font-size: .92rem; font-weight: 700; color: var(--ink); background: var(--chalk); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s; }
.vx-opt:hover { border-color: var(--brass); }
.vx-opt[aria-checked="true"] { border-color: var(--brass); box-shadow: 0 0 0 1.5px var(--brass); }
.vx-opt.is-locked { opacity: .6; }
.vx-lock { position: absolute; top: 6px; right: 6px; color: var(--slate); display: inline-grid; }
.vx-ic { display: inline-grid; }
.vx-group--seg { display: inline-flex; gap: 0; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.vx-group--seg .vx-opt { min-width: 0; padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--slate); box-shadow: none; }
.vx-group--seg .vx-opt[aria-checked="true"] { background: var(--ink); color: var(--chalk); }
.vx-sw { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(135deg, var(--sw1) 50%, var(--sw2) 50%); }
.vx-shp { width: 44px; height: 48px; background: var(--brass); }
.vx-pat { width: 64px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background-color: var(--paper); }
.vx-nv { display: flex; width: 64px; height: 44px; padding: 4px; gap: 3px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); }
.vx-nv i { background: var(--brass); border-radius: 3px; flex: none; }
.vx-nv b { background: var(--line); border-radius: 3px; flex: 1; }
.vx-nv--top { flex-direction: column; } .vx-nv--top i { height: 7px; }
.vx-nv--bottom { flex-direction: column-reverse; } .vx-nv--bottom i { height: 7px; }
.vx-nv--left { flex-direction: row; } .vx-nv--left i { width: 10px; }
.vx-nv--right { flex-direction: row-reverse; } .vx-nv--right i { width: 10px; }
.vx-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.vx-colorrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.vx-colorrow__in { display: flex; align-items: center; gap: 10px; }
.vx-color { width: 52px; height: 40px; padding: 2px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; }
.vx-color:disabled { cursor: not-allowed; opacity: .5; }
.vx-code { font-size: .9rem; color: var(--slate); min-width: 5.5em; }
.vx-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 9px; font-size: .78rem; font-weight: 700; color: var(--slate); background: var(--chalk); border: 1px solid var(--line); border-radius: 999px; vertical-align: middle; }
.vx-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--chalk); }
.vx-samples .fx-hex { width: 40px; height: 44px; }
.vx-shop { justify-items: start; }
@media (max-width: 36em) { .vx-bar { top: 62px; } .vx-opt { min-width: 84px; } }

/* Reiter, Dateirechte, Einstellungen */
.vx-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.vx-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted, inherit); cursor: pointer; margin-bottom: -1px; }
.vx-tab:hover { color: inherit; }
.vx-tab[aria-selected="true"] { color: inherit; border-bottom-color: var(--brass, currentColor); }
.vx-tab:focus-visible { outline: 2px solid var(--brass, currentColor); outline-offset: 2px; }
.vx-sub { display: grid; gap: 16px; }
.vx-depts { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-depts .vx-opt { flex-direction: column; align-items: flex-start; }
.vx-depts__n { font-size: .8em; opacity: .7; font-weight: 400; }
.vx-ftable { display: grid; gap: 2px; }
.vx-frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--radius); }
.vx-frow.is-set { background: color-mix(in srgb, var(--brass, #c8a23a) 12%, transparent); }
.vx-ftree { padding-left: calc(var(--d, 0) * 20px); min-width: 0; }
.vx-fname { font-weight: 600; overflow-wrap: anywhere; }
.vx-fsel { display: grid; gap: 2px; }
.vx-sel { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: inherit; }
.vx-eff { font-size: .85em; }
.vx-check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin: 12px 0; }
.vx-check input { width: 20px; height: 20px; }
@media (max-width: 36em) { .vx-frow { grid-template-columns: 1fr; } }

/* Berechtigungen: Module links, Inhalt rechts */
.vx-qm { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-left: 4px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--slate); font: 700 .75rem/1 var(--font); text-decoration: none; vertical-align: middle; background: var(--paper); }
.vx-qm:hover, .vx-qm:focus-visible { border-color: var(--brass); color: var(--brass); }
.vx-qm:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 2px; }
.vx-split { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 20px; align-items: start; }
.vx-mods { position: sticky; top: 130px; display: grid; gap: 4px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.vx-mods__t { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
.vx-mod { appearance: none; text-align: left; font: inherit; font-weight: 600; padding: 10px 12px; border: 0; border-radius: var(--radius); background: none; color: inherit; cursor: pointer; }
.vx-mod:hover { background: color-mix(in srgb, var(--brass, #c8a23a) 10%, transparent); }
.vx-mod[aria-current="true"] { background: var(--ink, #1c2430); color: var(--paper, #fff); }
.vx-mod:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 2px; }
.vx-main { display: grid; gap: 16px; min-width: 0; }
.vx-level { display: grid; gap: 8px; }
.vx-desc { margin: 0; padding: 10px 12px; border-left: 3px solid var(--brass, #c8a23a); background: color-mix(in srgb, var(--brass, #c8a23a) 8%, transparent); border-radius: 0 var(--radius) var(--radius) 0; font-size: .92rem; line-height: 1.5; }
.vx-flags { display: grid; gap: 6px; }
.vx-flag { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.vx-flag input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.vx-frow { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); align-items: start; }
.vx-roles, .vx-people { display: grid; gap: 8px; margin-bottom: 12px; }
.vx-role, .vx-prow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.vx-role.is-owner { flex-direction: column; align-items: flex-start; gap: 2px; }
.vx-role__a { display: flex; gap: 8px; }
.vx-role input[type=text], .vx-addrole input { flex: 1 1 12rem; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: inherit; }
.vx-addrole { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vx-lab { font-weight: 700; }
.vx-prow .vx-sel { width: auto; min-width: 12rem; }
@media (max-width: 52em) {
  .vx-split { grid-template-columns: 1fr; }
  .vx-mods { position: static; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .vx-mods__t { width: 100%; }
  .vx-frow { grid-template-columns: 1fr; }
}
.vx-depts { border: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.vx-depts .vx-opt { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 16px; min-width: 7rem; background: var(--paper); color: inherit; }
.vx-depts .vx-opt[aria-checked="true"] { background: var(--ink, #1c2430); color: var(--paper, #fff); border-color: var(--ink, #1c2430); }
.vx-depts .vx-opt[aria-checked="true"] .vx-depts__n { opacity: .8; }
.vx-addrole { margin-top: 12px; }

/* Modulliste: lange Namen umbrechen, nichts ragt heraus */
.vx-split { grid-template-columns: 15rem minmax(0, 1fr); }
.vx-mods { box-sizing: border-box; min-width: 0; }
.vx-mod { width: 100%; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; hyphens: auto; border-radius: min(var(--radius), 12px); line-height: 1.3; }
.vx-mods__t { overflow-wrap: anywhere; }

/* Wen stellen Sie ein, Board nein / neutral / ja */
.vx-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vx-kind { appearance: none; font: inherit; font-weight: 600; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: inherit; cursor: pointer; }
.vx-kind[aria-checked="true"] { background: var(--ink, #1c2430); color: var(--paper, #fff); border-color: var(--ink, #1c2430); }
.vx-kind:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 2px; }
.vx-order { margin-top: 12px; }
.vx-order summary { cursor: pointer; font-weight: 600; }
.vx-board { display: grid; gap: 8px; margin-top: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.vx-board__h { margin: 0; }
.vx-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.vx-sym { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 6px; font-weight: 800; }
.vx-sym--no { background: color-mix(in srgb, #c0392b 22%, transparent); color: #c0392b; }
.vx-sym--neutral { background: color-mix(in srgb, currentColor 14%, transparent); }
.vx-sym--yes { background: color-mix(in srgb, #2e9e57 24%, transparent); color: #2e9e57; }
.vx-brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.vx-brow__t { display: grid; gap: 2px; font-size: .92rem; min-width: 0; }
.vx-tri { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.vx-tri__b { appearance: none; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; min-width: 3rem; padding: 8px 14px; cursor: pointer; }
.vx-tri__b + .vx-tri__b { border-left: 1px solid var(--line); }
.vx-tri__b:hover:not(:disabled) { background: color-mix(in srgb, currentColor 8%, transparent); }
.vx-tri__b:focus-visible { outline: 3px solid var(--brass-light); outline-offset: -3px; }
.vx-tri__b[aria-checked="true"].vx-tri__b--no { background: #c0392b; color: #fff; }
.vx-tri__b[aria-checked="true"].vx-tri__b--neutral { background: #6b7685; color: #fff; }
.vx-tri__b[aria-checked="true"].vx-tri__b--yes { background: #2e9e57; color: #fff; }
.vx-role--col { flex-direction: column; align-items: stretch; }
.vx-prow__s { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-prow__s .vx-sel { width: auto; min-width: 11rem; }
@media (max-width: 52em) { .vx-split { grid-template-columns: 1fr; } .vx-brow { grid-template-columns: 1fr; } }
