:root { --pico-font-size: 95%; --pico-spacing: .85rem; }
.topbar { border-bottom: 1px solid var(--pico-muted-border-color); margin-bottom: 1rem; }
.topbar nav { flex-wrap: wrap; }
.brand { font-size: 1.05rem; }
.mainnav { flex-wrap: wrap; }
form.inline { display: inline; margin: 0; }
button.linklike { background: none; border: 0; padding: 0; color: var(--pico-primary); width: auto; margin: 0; font-size: inherit; }
.msg { padding: .6rem 1rem; margin-bottom: .8rem; }
.msg-success { border-left: 4px solid #2e7d32; }
.msg-error { border-left: 4px solid #c62828; }
.msg-warning { border-left: 4px solid #ef8f00; }
.msg-info { border-left: 4px solid var(--vt-gold-dunkel); }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.kopf h1, .kopf h2 { margin: 0; }
.aktionen { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.aktionen a[role=button], .aktionen button { width: auto; margin: 0; padding: .35rem .8rem; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 600; }
.badge { display: inline-block; padding: .05rem .45rem; border-radius: .6rem; font-size: .8rem; background: #eceff1; white-space: nowrap; }
.badge.ok { background: #e3f2e1; color: #1b5e20; }
.badge.warn { background: #fff3cd; color: #7a5300; }
.badge.bad { background: #fde2e1; color: #8e1b14; }
.hinweise { font-size: .85rem; color: #6d4c00; background: #fffaf0; padding: .6rem 1rem; border-radius: .4rem; }
.hinweise li { margin-bottom: .1rem; }
.rechenweg { font-size: .8rem; color: #555; margin: .2rem 0 0 0; padding-left: 1rem; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kachel { padding: .8rem 1rem; border: 1px solid var(--pico-muted-border-color); border-radius: .5rem; }
.kachel .wert { font-size: 1.35rem; font-weight: 700; }
.kachel .label { font-size: .8rem; color: #666; }
.schaetzung { font-style: italic; color: #666; font-size: .8rem; }
.anwesenheit label { display: flex; align-items: center; gap: .6rem; padding: .45rem .3rem; border-bottom: 1px solid var(--pico-muted-border-color); margin: 0; font-size: 1.05rem; }
.anwesenheit input[type=checkbox] { width: 1.5rem; height: 1.5rem; margin: 0; }
.einsatz td input, .einsatz td select { margin: 0; padding: .25rem .4rem; height: auto; font-size: .9rem; }
.einsatz input.min { width: 4.2rem; }
.einsatz input.grund { min-width: 8rem; }
.formset { border: 1px solid var(--pico-muted-border-color); border-radius: .5rem; padding: .8rem; margin-bottom: 1rem; }
.formset .zeile { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; border-bottom: 1px dashed var(--pico-muted-border-color); padding-bottom: .4rem; margin-bottom: .4rem; }
.formset .zeile > div { flex: 1 1 140px; }
.errorlist { color: #c62828; font-size: .85rem; margin: 0; padding-left: 1rem; }
.leise { color: #777; font-size: .85rem; }
.gesperrt { background: #f5f5f5; padding: .5rem 1rem; border-radius: .4rem; }
@media (max-width: 700px) { .mainnav li a { padding: .3rem .4rem; } table { font-size: .85rem; } }
.fehler { color: #c62828; font-size: .85rem; display: block; margin-top: -.6rem; margin-bottom: .6rem; }
.formular { max-width: 720px; }
.inline-check { display: inline-flex; align-items: center; gap: .3rem; margin-right: 1rem; }
.inline-check input { margin: 0; }
/* ab 1.1.0 */
mark.gut { background: #e5f4e4; color: #1b5e20; padding: 0 .3rem; }
mark.schlecht { background: #fbebeb; color: #b71c1c; padding: 0 .3rem; font-weight: 700; }
.fuss { font-size: .8rem; margin-top: 2rem; padding-bottom: 1rem; }
.import-vorschau td, .import-vorschau th { font-size: .9rem; }
.pruefliste { list-style: none; padding-left: 0; }
.pruefliste li { padding-left: 1.6rem; position: relative; list-style: none; }
.pruefliste li::before { position: absolute; left: 0; font-weight: 700; }
.pruefliste li.ok::before { content: "✓"; color: #1b5e20; }
.pruefliste li.fehlt::before { content: "!"; color: #b71c1c; }
.nowrap { white-space: nowrap; }
/* ab 1.1.1: Vergütungsbestandteile */
.arten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.art-karte { display: flex; flex-direction: column; gap: .25rem; border: 1px solid #dfe3e8; border-radius: .5rem; padding: .8rem 1rem;
  text-decoration: none; color: inherit; background: #fff; }
.art-karte:hover { border-color: var(--vt-gold); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.art-karte strong { color: var(--vt-gold-dunkel); font-size: 1.05rem; }
.art-karte small { color: #78909c; }
.gruppe-titel { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #78909c; margin: 1.1rem 0 .4rem; }
.bestandteile { display: grid; gap: .5rem; }
.bestandteil { border: 1px solid #e3e7eb; border-radius: .5rem; padding: .6rem .9rem; background: #fff; }
.bestandteil.inaktiv { opacity: .55; }
.bestandteil .zeile { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.bestandteil .betrag { font-weight: 700; white-space: nowrap; font-size: 1.05rem; }
.bestandteil .betrag small { font-weight: 400; color: #78909c; font-size: .8rem; }
.bestandteil p { margin: .15rem 0 .2rem; font-size: .95rem; }
.klein { font-size: .82rem; }
.klartext { background: var(--vt-gold-hell); border-left: 4px solid var(--vt-gold); padding: .7rem 1rem; }
fieldset.abschnitt { border: 1px solid #e3e7eb; border-radius: .5rem; padding: .6rem 1rem .4rem; margin-bottom: 1rem; }
fieldset.abschnitt legend { font-weight: 600; padding: 0 .3rem; }
.bezeichner { font-weight: 600; margin: .6rem 0 .3rem; font-size: .95rem; }
.formular.breit { max-width: 860px; }
form.kopieren { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
form.kopieren select { width: auto; margin: 0; }
.aktionen .rechts { margin-left: auto; }
/* ab 1.1.1: Spielerauswahl */
.auswahl-kopf { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.auswahl-kopf input[type=search] { max-width: 260px; margin: 0; padding: .35rem .7rem; height: auto; }
.auswahl-kopf button { width: auto; margin: 0; padding: .3rem .7rem; }
.auswahl-kopf .zaehler { margin-left: auto; font-weight: 600; color: #455a64; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .1rem 1rem; margin-bottom: .6rem; }
.raster label { margin: .15rem 0; }
.spielerliste .weitere, table.einsatz tbody.weitere tr[data-name], table.einsatz tbody.weitere tr.hinweiszeile { display: none; }
.spielerliste.zeigt-weitere .weitere, .spielerliste.sucht .weitere { display: grid; }
table.einsatz.zeigt-weitere tbody.weitere tr[data-name], table.einsatz.sucht tbody.weitere tr[data-name],
table.einsatz tbody.weitere tr.dabei { display: table-row; }
[data-name][hidden] { display: none !important; }
.linklike { background: none; border: 0; padding: 0; margin: .2rem 0 .6rem; color: var(--vt-gold-dunkel); cursor: pointer; width: auto; font-size: .9rem; }
.pillen { display: inline-flex; border: 1px solid #b0bec5; border-radius: .4rem; overflow: hidden; white-space: nowrap; }
.pillen label { margin: 0; cursor: pointer; border-right: 1px solid #b0bec5; }
.pillen label:last-child { border-right: 0; }
.pillen input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pillen span { display: inline-block; padding: .2rem .6rem; font-size: .85rem; }
.pillen label:has(input:checked) { background: var(--vt-gold); color: #111; font-weight: 600; }
.pillen label:has(input[value=""]:checked) { background: #eceff1; color: #546e7a; }
.pillen label:has(input:focus-visible) { outline: 2px solid var(--vt-gold); outline-offset: -2px; }
table.einsatz tr.ohne td.detail > * { visibility: hidden; }
table.einsatz tr.ohne td:first-child { color: #78909c; }
table.einsatz tr.gruppenzeile td { background: #fafbfc; }
.auswahl-kopf input[type=search] { padding-inline-start: 2.4rem; }
.klartext { max-width: 860px; }
fieldset.abschnitt details { margin: .6rem 0; }
table.einsatz input[type=checkbox] { width: 1.3rem; height: 1.3rem; padding: 0; margin: 0; }
/* ab 1.2.0 */
.art-karte.gleich { border-style: dashed; }
.monate { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; margin-bottom: .5rem; }
.monate label { margin: 0; cursor: pointer; }
.monate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.monate span { display: flex; flex-direction: column; align-items: center; padding: .35rem .2rem; border: 1px solid #b0bec5; border-radius: .4rem; font-size: .9rem; }
.monate span small { font-size: .7rem; color: inherit; opacity: .75; }
.monate label:has(input:checked) span { background: var(--vt-gold); border-color: var(--vt-gold); color: #111; font-weight: 600; }
.monate label:has(input:focus-visible) span { outline: 2px solid var(--vt-gold); outline-offset: 1px; }
.aktionen.klein button { padding: .2rem .6rem; font-size: .82rem; }
@media (max-width: 600px) { .monate { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.schalterzeile .inline { display: inline; } .schalterzeile button { padding: .15rem .6rem; font-size: .82rem; width: auto; margin: 0 0 0 .3rem; }
.kachel.betont { border-color: #ef6c00; background: #fff8f0; }
.kachel small { display: block; font-size: .75rem; margin-top: .15rem; }
article.finanzen .kacheln { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
table.personen td.zahl, table.personen th.zahl { font-size: .9rem; }
.monate label { display: block; width: 100%; }
.monate span { width: 100%; box-sizing: border-box; }
.schlecht-text { color: #b71c1c; }

/* ===== ab 1.2.1: Vereinsfarben SC United – Gold & Schwarz ===== */
:root { --vt-gold: #c9a227; --vt-gold-dunkel: #7d6000; --vt-gold-hell: #fbf6e6; --vt-gold-rand: #e4d39c; --vt-schwarz: #121212; }
html:root:not([data-theme=dark]), html[data-theme=light]:root {
  --pico-primary: #7d6000;
  --pico-primary-background: #c9a227;
  --pico-primary-border: #c9a227;
  --pico-primary-underline: rgba(125, 96, 0, .45);
  --pico-primary-hover: #5c4700;
  --pico-primary-hover-background: #b08b17;
  --pico-primary-hover-border: #b08b17;
  --pico-primary-hover-underline: #5c4700;
  --pico-primary-focus: rgba(201, 162, 39, .4);
  --pico-primary-inverse: #121212;
  --pico-form-element-focus-color: #c9a227;
}
.topbar { background: var(--vt-schwarz); border-bottom: 3px solid var(--vt-gold); margin-bottom: 1.2rem; }
.topbar nav a, .topbar nav summary { color: #efe7cf; }
.topbar .brand, .topbar .brand strong { color: var(--vt-gold); letter-spacing: .02em; }
.topbar .brand::before { content: ""; display: inline-block; width: .9rem; height: .9rem; margin-right: .5rem; vertical-align: -1px;
  background: var(--vt-gold); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.topbar .mainnav > li > a:hover, .topbar .mainnav > li > a:focus { color: var(--vt-gold); background: transparent; }
.topbar details.dropdown > summary { background: transparent; border-color: #4d3f17; color: #efe7cf; }
.topbar details.dropdown > summary::after { filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg); }
.topbar details.dropdown ul a { color: var(--pico-color); }
.topbar details.dropdown ul a:hover { color: var(--vt-gold-dunkel); }
.topbar details.dropdown ul button.linklike { color: var(--vt-gold-dunkel); }
.oeffentlich .topbar nav { justify-content: center; }
h1, h2, h3 { color: var(--vt-schwarz); }
.kopf h1 { border-left: 5px solid var(--vt-gold); padding-left: .6rem; }
.kachel { border-top: 3px solid var(--vt-gold); }
.kachel.betont { border-color: #ef6c00; border-top-color: #ef6c00; }
.badge.ok { background: #efe6c8; color: #4f3d00; }
.msg-success { border-left-color: var(--vt-gold); background: var(--vt-gold-hell); }
.art-karte:hover { border-color: var(--vt-gold); }
.bestandteil { border-left: 3px solid var(--vt-gold-rand); }
fieldset.abschnitt { border-color: var(--vt-gold-rand); }
.fuss { border-top: 1px solid var(--vt-gold-rand); padding-top: .6rem; }
mark.gut { background: #efe6c8; color: #3d2f00; }
.aufgaben-link { font-size: .9rem; color: var(--vt-gold-dunkel); border: 1px solid var(--vt-gold-rand); border-radius: 1rem; padding: .15rem .7rem; text-decoration: none; }
details.aufgaben { border: 1px solid var(--vt-gold-rand); border-radius: .5rem; padding: .5rem 1rem; background: #fffdf6; }
details.aufgaben summary { margin-bottom: 0; }
details.aufgaben[open] summary { margin-bottom: .6rem; }
.badge.art { background: var(--vt-gold-hell); color: #4f3d00; border: 1px solid var(--vt-gold-rand); }
article.naechste table { margin-bottom: 0; }
.schalterzeile form { display: inline; margin: 0; }
.topbar .brand::before { width: .85rem; height: 1rem; border-radius: 0; transform: none; vertical-align: -2px;
  clip-path: polygon(50% 0, 100% 14%, 100% 58%, 50% 100%, 0 58%, 0 14%); }

/* ab 1.2.3: Löschen */
button.gefahr, [role=button].gefahr { --pico-background-color: #b3261e; --pico-border-color: #b3261e; --pico-color: #fff; }
button.gefahr:hover, [role=button].gefahr:hover { --pico-background-color: #8c1d18; --pico-border-color: #8c1d18; }
a.gefahr:not([role=button]) { color: #b3261e; }
table.personen th.wahl, table.personen td.wahl { width: 2.2rem; padding-right: 0; }
table.personen td.wahl input, table.personen th.wahl input { margin: 0; }
article.loeschen { border-left: 4px solid #b3261e; }
article.gesperrt { border-left: 4px solid var(--vt-gold); }
