@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(../fonts/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(../fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(../fonts/manrope-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Suez One'; font-weight: 400; font-display: swap; src: url(../fonts/suez-one-latin-400-normal.woff2) format('woff2'); }

/* Design-Tokens: Farben, Verläufe und Formen von www.showtime-ev.de
   (Lila #90f/#7416d2/#9810ff, Pink #df6c82, Orange #fd6f2d/#f17548, Gelb #fccd00, Text #444/#4c4c4c).
   Für Text auf Weiß nur Töne mit ≥ 4,5 : 1; Orange und Gelb nur als Fläche/Deko. */
:root {
  color-scheme: light;
  --primary: #7416d2; --primary-dark: #5516d2; --on-primary: #fff;
  --accent: #9900ff; --accent-2: #fd6f2d; --yellow: #fccd00; --pink: #df6c82; --violet: #9810ff;
  --grad: linear-gradient(90deg, #90f 0%, #e2531a 100%);
  --grad-fill: linear-gradient(50deg, #90f 0%, #fd6f2d 100%);
  --brush: linear-gradient(90deg, #90f 0%, #5516d2e7 100%);
  --bg: #fff; --surface: #fff; --soft: #f7f1fd; --chip: #efe3fa; --chip-text: #55238a;
  --text: #444; --head-text: #4c4c4c; --muted: #5f5a5c; --line: #ece3f7; --line-strong: #857d81; --placeholder: #6b6568;
  --ok: #1b5a3c; --ok-bg: #e8f4ee; --bad: #a3160b; --bad-bg: #fdecea; --bad-text: #7d0f06; --conflict-bg: #fff6f5;
  --tanz-bg: #fde8ef; --tanz-text: #8a1f3e; --group-bg: #fff3e9; --group-text: #8a3510;
  --drop-line: #857d81; --drop-over: #f7f1fd;
  --link: #90f; --link-hover: #c2410c;
  --font: Manrope, system-ui, -apple-system, sans-serif; --head: 'Suez One', Georgia, serif;
  --radius: 1.875rem;
  --kdnd-accent: var(--primary);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --primary: #b98cff; --primary-dark: #d4b8ff; --on-primary: #1a0d2b;
    --accent: #c78bff; --accent-2: #ff9a6b;
    --grad: linear-gradient(90deg, #c78bff 0%, #ff9a6b 100%);
    --bg: #17131a; --surface: #211b24; --soft: #2a2236; --chip: #33244a; --chip-text: #e2cfff;
    --text: #ece6ea; --head-text: #f3eef5; --muted: #b9afb5; --line: #3a3140; --line-strong: #8f8494; --placeholder: #a89ea4;
    --ok: #7ed3a5; --ok-bg: #16301f; --bad: #ff8a80; --bad-bg: #3a1714; --bad-text: #ffc2bc; --conflict-bg: #2c1716;
    --tanz-bg: #3a1f2a; --tanz-text: #ffc2d4; --group-bg: #33221a; --group-text: #ffc9a8;
    --drop-line: #8f8494; --drop-over: #2a2236;
    --link: #c78bff; --link-hover: #ff9a6b;
  }
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--link); transition: color .2s ease-in-out; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
::placeholder { color: var(--placeholder); opacity: 1; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .75rem 1.25rem; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 800; text-decoration: none; }
.skip:focus { top: 1rem; color: var(--on-primary); }

.site-head { position: relative; }
.wave { display: block; width: 100%; height: 5rem; }
.head-inner { max-width: 28.75rem; margin: -1.5rem auto 0; padding: 0 1.5rem; }
.head-inner.wide { max-width: 75rem; padding: 0 2rem; }
.logo-link { display: inline-block; border-radius: .75rem; }
.logo { display: block; width: 6.5rem; height: auto; background: #fff; border-radius: .75rem; padding: .25rem; }

.wrap { max-width: 28.75rem; margin: 0 auto; padding: 1rem 1.5rem 3rem; width: 100%; }
.wrap.wide { max-width: 75rem; padding: 1rem 2rem 3rem; }
.brand { font-family: var(--head); font-size: 1.25rem; color: var(--primary); }
h1, h2 { font-family: var(--head); font-weight: 400; margin: 0; color: var(--text); }
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 1.75rem; line-height: 1.2; color: var(--primary); }
@media (min-width: 64rem) { h1 { font-size: 2.75rem; } h2 { font-size: 2rem; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }

.card { border: 2px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .625rem; min-width: 0; }
.card > label, legend { font-weight: 800; font-size: 1rem; }
fieldset.card { margin: 0; }
legend { padding: 0 .5rem; }
.num { color: var(--primary); }
.hint { font-size: .875rem; color: var(--muted); font-weight: 400; }

input[type=text], input[type=search], input[type=password], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 2px solid var(--line-strong); border-radius: .75rem; padding: 0 .875rem; min-height: 3.125rem;
}
textarea { padding: .75rem .875rem; min-height: 6rem; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem; border-radius: 999px; border: 2px solid var(--primary); background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--on-primary); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); font-weight: 600; }
.btn.ghost:hover { background: var(--soft); color: var(--text); }
.btn.small { min-height: 2.5rem; padding: 0 1rem; font-size: .875rem; }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--bad); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .9375rem; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.group-title { font-family: var(--head); font-size: 1.125rem; color: var(--primary); margin-top: .375rem; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .5rem; }
.check { display: flex; align-items: center; gap: .625rem; min-height: 3rem; font-size: .9375rem; cursor: pointer; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.check input { width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--primary); flex: none; }

.msg { font-size: .9375rem; font-weight: 600; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }
.privacy { border-left: 4px solid var(--accent-2); background: var(--soft); border-radius: .75rem; padding: .875rem 1rem; font-size: .9375rem; }
.privacy p { margin: 0; }

/* Auswertung */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.375rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .9375rem; cursor: pointer; }
.tab[aria-selected=true] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 800; }
.tablewrap { border: 2px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: .75rem .875rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--soft); color: var(--primary); font-weight: 800; border-top: 0; }
tr.group th { background: var(--group-bg); color: var(--tanz-text); font-family: var(--head); font-weight: 400; font-size: 1rem; }
td.x { text-align: center; background: var(--chip); color: var(--primary); font-weight: 800; font-size: 1.125rem; }
td.dot { text-align: center; color: var(--muted); }
.matrix th, .matrix td { text-align: center; min-width: 5.5rem; }
.matrix th:first-child, .matrix td:first-child { text-align: left; min-width: 11.875rem; }
.pill { display: inline-block; padding: .1875rem .625rem; border-radius: 999px; background: var(--chip); color: var(--chip-text); font-weight: 600; font-size: .8125rem; margin: .125rem .25rem .125rem 0; }
.pill.tanz { background: var(--tanz-bg); color: var(--tanz-text); }
.pill.tech { background: var(--ok-bg); color: var(--ok); }
.split { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.sidelist { list-style: none; margin: 0; padding: 0; width: 15rem; flex: 0 0 15rem; max-width: 100%; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sidelist button { display: block; width: 100%; text-align: left; padding: .8125rem 1.125rem; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.sidelist li:first-child button { border-top: 0; }
.sidelist button[aria-current=true] { background: var(--primary); color: var(--on-primary); font-weight: 800; }
.detail { flex: 1 1 32.5rem; min-width: 0; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.75rem 2rem; background: var(--surface); }
.kv { display: flex; gap: 1.5rem; padding: .875rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.kv:first-of-type { border-top: 0; }
.kv dt { flex: 0 0 12.5rem; font-weight: 800; font-size: .875rem; color: var(--muted); }
.kv dd { flex: 1 1 15rem; margin: 0; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.kv dd.none { color: var(--muted); font-weight: 400; }
dl { margin: 0; }

.banner { display: flex; align-items: center; gap: .75rem; padding: .875rem 1.25rem; border-radius: .875rem; font-weight: 800; font-size: .9375rem; flex-wrap: wrap; }
.banner.bad { background: var(--bad-bg); border: 2px solid var(--bad); color: var(--bad-text); }
.banner.good { background: var(--ok-bg); border: 2px solid var(--ok); color: var(--ok); }
.persons { flex: 0 0 20rem; width: 20rem; max-width: 100%; }
.person { display: flex; align-items: center; gap: .625rem; padding: .625rem .75rem; border: 2px solid var(--line-strong); border-radius: .75rem; background: var(--surface); cursor: grab; touch-action: pan-y; position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.person .nm { font-weight: 800; font-size: .9375rem; }
.person .wl { font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.person .cnt { margin-left: auto; font-size: .75rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.grip { width: .75rem; height: 1.125rem; flex: none; }
.grip circle { fill: var(--muted); }
.planrow { display: flex; align-items: center; gap: .75rem; padding: .875rem 1.25rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.planrow.conflict { background: var(--conflict-bg); }
.planrow .who { flex: 0 0 15.625rem; max-width: 100%; }
.planrow .slot { flex: 1 1 13.75rem; min-width: 0; }
.planrow .state { flex: 0 0 17.5rem; max-width: 100%; font-size: .8125rem; font-weight: 800; }
.state.ok { color: var(--ok); }
.state.bad { color: var(--bad); }
.state.open { color: var(--muted); font-weight: 600; }
.state .reason { display: block; font-weight: 600; margin-top: .125rem; }
.drop { position: relative; flex-wrap: wrap; min-height: 3.25rem; border: 2px dashed var(--drop-line); border-radius: .75rem; padding: .25rem; display: flex; align-items: center; gap: .5rem; }
.drop.kdnd-over { border-color: var(--primary); border-style: solid; background: var(--drop-over); outline: none; }
.assigned { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 .375rem 0 .875rem; border-radius: 999px; border: 2px solid var(--primary); background: var(--chip); color: var(--chip-text); font-weight: 800; font-size: .875rem; }
.assigned.bad { border-color: var(--bad); background: var(--bad-bg); color: var(--bad-text); }
.assigned button { border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.125rem; line-height: 1; min-width: 2rem; min-height: 2rem; cursor: pointer; border-radius: 50%; }
.drop select { min-height: 2.5rem; font-size: .875rem; flex: 1 1 9.375rem; min-width: 0; }
.ph { color: var(--placeholder); font-size: .8125rem; }
.rolehead { display: flex; padding: .75rem 1.25rem; background: var(--soft); font-weight: 800; font-size: .875rem; color: var(--primary); }
.addrole { display: flex; gap: .5rem; flex-wrap: wrap; padding: 1rem 1.25rem; border-top: 2px solid var(--line); background: var(--soft); }
.addrole input, .addrole select { width: auto; flex: 1 1 8.75rem; min-width: 0; min-height: 2.75rem; font-size: .875rem; }
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 43.75rem) { .detail { padding: 1.25rem; } .planrow .state { flex-basis: 100%; } .wrap.wide { padding: 1rem 1rem 3rem; } .head-inner.wide { padding: 0 1rem; } }
.label-strong { font-weight: 800; font-size: .9375rem; }
.split > .tablewrap { flex: 1 1 35rem; min-width: 0; }

/* Footer wie www.showtime-ev.de */
.site-foot { background: var(--primary); color: #fff; margin-top: 2rem; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-foot :focus-visible { outline-color: #fff; }
.foot-inner { max-width: 75rem; margin: 0 auto; padding: 2rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; font-size: .9375rem; line-height: 1.7; }
@media (prefers-color-scheme: dark) { .site-foot { background: #6e1222; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---------- Look von showtime-ev.de ---------- */
.wave { height: 6rem; }
.logo { width: 7.5rem; border-radius: 50%; padding: .75rem; box-shadow: 0 0 0 .25rem #fff; }
/* Pill-Labels wie im Kopf der Vereinsseite */
.brand { display: inline-block; align-self: flex-start; font-size: 1.5rem; line-height: 1.2; color: #fff; background: var(--pink); border-radius: 3rem 3rem 3rem 0; padding: .5rem 1.25rem; }
h1 { font-size: 2.75rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary); }
@media (forced-colors: active) { h1 { -webkit-text-fill-color: currentColor; background: none; } }
h2 { color: var(--head-text); }
h2:not(.brand):not(.rolehead) { position: relative; margin-bottom: 1.25rem; }
h2:not(.brand):not(.rolehead)::after { content: ""; position: absolute; left: -.3rem; bottom: -.9rem; width: 4rem; height: .55rem; border-radius: 7px; background: var(--brush); transform: rotate(-1.5deg); }
.group-title { color: var(--violet); }
.num { color: var(--violet); }
.card { border-color: var(--line); }
.btn { background: var(--primary); border-color: var(--primary); border-radius: 2.5rem 2.5rem 2.5rem 0; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.danger, .btn.small { border-radius: 2.5rem; }
.btn.ghost { border-radius: 2.5rem; border: 2px solid var(--text); color: var(--text); background: var(--surface); }
.btn.ghost:hover { background: var(--text); color: var(--bg); }
.chip[aria-pressed=true], .tab[aria-selected=true] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.check input { accent-color: var(--primary); }
.privacy { border-left: 0; background: var(--soft); border-radius: 1.5rem 1.5rem 1.5rem 0; position: relative; }
thead th, .rolehead { color: var(--primary); background: var(--soft); }
tr.group th { background: var(--group-bg); color: var(--group-text); }
td.x { background: var(--chip); color: var(--primary); }
.sidelist button[aria-current=true] { background: var(--primary); color: var(--on-primary); }
.assigned { border-color: var(--primary); }
.persons .brand { font-size: 1.5rem; }

/* Footer: weiß mit farbigem Wellenband, wie die Vereinsseite */
.site-foot { background: var(--bg); color: var(--text); margin-top: 4rem; position: relative; padding-top: 2.5rem; }
.foot-wave { position: absolute; left: 0; top: 0; width: 100%; height: 2.25rem; display: block; }
.site-foot a { color: var(--text); }
.site-foot a:hover { color: var(--primary); }
.site-foot :focus-visible { outline-color: var(--primary); }
.foot-inner strong { display: block; text-transform: uppercase; font-weight: 400; letter-spacing: .02em; font-size: 1.125rem; margin-bottom: .25rem; }
@media (prefers-color-scheme: dark) { .site-foot { background: var(--bg); } }

/* Menü „Weitere Aktionen“ und Sicherheitsabfrage */
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + .375rem); z-index: 20; min-width: 15rem; padding: .375rem; background: var(--surface); border: 2px solid var(--line-strong); border-radius: 1rem; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15); }
.menu-item { display: block; width: 100%; min-height: 2.75rem; padding: 0 1rem; text-align: left; border: 0; border-radius: .75rem; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--soft); }
.menu-item.danger { color: var(--bad); }
.dialog { max-width: min(32rem, calc(100vw - 2rem)); border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 1.5rem; background: var(--surface); color: var(--text); }
.dialog::backdrop { background: rgba(23, 19, 26, .55); }
.dialog p { margin: 0; }

/* Spaltenfilter in der Liste */
.colhead { display: flex; flex-direction: column; gap: .375rem; min-width: 9rem; }
.colfilter { min-height: 2.5rem !important; font-size: .875rem !important; font-weight: 400; padding: 0 .625rem !important; }

/* ---------- Matrix: aufklappbare Rollen ---------- */
.disclose { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: transparent; padding: .25rem 0; font: inherit; font-weight: 800; color: var(--text); cursor: pointer; min-height: 2rem; }
.disclose .tri { display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; border-radius: .375rem; background: var(--soft); color: var(--primary); font-size: .75rem; }
tr.subrow th { padding-left: 2.75rem; font-weight: 600; }
tr.subrow { background: var(--soft); }
tr.scenehead th { padding: .375rem .875rem .375rem 2.75rem; background: var(--group-bg); color: var(--group-text); font-size: .8125rem; font-weight: 800; }
.matrix td .mk { margin: auto; }
.mk { display: inline-block; min-width: 1.75rem; padding: .125rem .5rem; border-radius: 999px; font-weight: 800; font-size: .8125rem; text-align: center; }
.mk.b { background: var(--primary); color: var(--on-primary); }
.mk.z { border: 2px solid var(--primary); color: var(--primary); }
.mk.k { background: var(--ok-bg); color: var(--ok); }
.legend { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; }

/* ---------- Regie ---------- */
.regie td.rg { position: relative; padding: .5rem .25rem; }
.regie td.wish { background: var(--ok-bg); }
.regie td.dim { opacity: .45; }
.w { display: inline-block; font-size: .6875rem; font-weight: 800; color: var(--ok); }
.regie td .w { position: absolute; top: .125rem; right: .25rem; }
.rate { min-width: 4.75rem; min-height: 2rem; border-radius: 999px; font: inherit; font-size: .8125rem; font-weight: 800; cursor: pointer; border: 2px solid var(--line-strong); background: var(--surface); color: var(--muted); }
.rate.r1 { border-color: var(--primary); color: var(--primary); }
.rate.r2 { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.rate.ideal { box-shadow: 0 0 0 3px #fff4d6, 0 0 0 5px #7a4d00; }
.idealcount { font-weight: 800; color: #7a4d00; }

/* ---------- Planung ---------- */
.chips.small .chip { min-height: 2.25rem; padding: 0 .75rem; font-size: .8125rem; }
.person .cnt.free { color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: .125rem .5rem; }
.persons { flex: 0 0 18rem; width: 18rem; }
.plan { flex: 1 1 40rem; }
.prow { display: grid; grid-template-columns: 10rem minmax(10rem, 1fr) 11rem 11rem 8.5rem; gap: .875rem; align-items: start; padding: .875rem 1.25rem; border-top: 1px solid var(--line); }
.prow.conflict { background: var(--conflict-bg); }
.prow-cols { background: var(--soft); color: var(--primary); font-weight: 800; font-size: .875rem; border-top: 0; }
.prow-head { padding: .5rem 1.25rem; background: var(--group-bg); color: var(--group-text); font-family: var(--head); border-top: 1px solid var(--line); }
.colname { display: none; }
.who strong { font-size: 1rem; }
.stepper { display: flex; align-items: center; gap: .375rem; margin-top: .5rem; }
.stepper button { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper .num { min-width: 1.5rem; text-align: center; font-weight: 800; color: var(--text); }
.linkbtn { display: block; margin-top: .375rem; border: 0; background: none; padding: .25rem 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: .8125rem; cursor: pointer; min-height: 1.5rem; }
.cands .count { display: inline-block; margin-bottom: .375rem; padding: .125rem .625rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.count.good { color: var(--ok); background: var(--ok-bg); }
.count.warn { color: var(--group-text); background: var(--group-bg); }
.count.bad { color: var(--bad); background: var(--bad-bg); }
.cands .chips { gap: .375rem; }
.cand { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 .625rem; border-radius: 999px; font-weight: 700; font-size: .8125rem; border: 2px solid var(--ok); color: var(--ok); background: var(--surface); cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; position: relative; }
.cand.q-ideal { border-color: #7a4d00; background: #fff4d6; color: #7a4d00; }
.cand.q-good { background: var(--ok-bg); }
.cand.q-regie { border-color: var(--primary); color: var(--primary); }
.cand.st-verplant { opacity: .55; }
.cand.st-konflikt { border-style: dashed; }
.legend .cand { cursor: default; min-height: 1.5rem; }
.drop.fit { border-color: var(--ok); border-style: solid; background: var(--ok-bg); }
.drop.fit .ph::before { content: "★ passt – "; color: var(--ok); font-weight: 800; }
.drop.none { border-color: var(--line); }
.state.warn { color: var(--group-text); }
.bar { height: .5rem; border-radius: .25rem; background: var(--line); margin-top: .375rem; overflow: hidden; }
.bar .fill { height: 100%; background: #f17548; }
.state.ok .bar .fill { background: var(--ok); }
.addrole label { display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; font-weight: 800; flex: 1 1 10rem; }
.addrole label.narrow { flex: 0 1 8rem; }
.addrole { align-items: flex-end; }
@media (max-width: 80rem) {
  .prow { grid-template-columns: 1fr 1fr; }
  .prow .who { grid-column: 1 / -1; }
  .prow-cols { display: none; }
  .colname { display: block; font-size: .75rem; font-weight: 800; color: var(--primary); margin-bottom: .25rem; }
}
@media (max-width: 40rem) { .prow { grid-template-columns: 1fr; } }

/* Auswertung braucht mehr Breite (Planung mit fünf Spalten) */
.wrap.wide, .head-inner.wide { max-width: 90rem; }

.cand { font-family: inherit; }
.banner.warnmsg { background: var(--group-bg); border: 2px solid #c2410c; color: var(--group-text); }
a.menu-item { display: flex; align-items: center; text-decoration: none; }
