/* /modlist – mod list guide for admins. After site.css and seite2.css, own blocks .ml-*. Phone first. */
.ml-klein { max-width: 76ch; color: var(--text-3); font-size: var(--fs-meta); line-height: 1.45; }
.ml-q { padding-block: 13px; font-size: var(--fs-min); white-space: nowrap; }
.ml-regeln, .ml-proben, .ml-schritte, .ml-ordnung, .ml-wand { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--luecke); }
:is(.ml-regeln, .ml-proben, .ml-schritte, .ml-ordnung) h3 { font-size: var(--fs-h3); line-height: 1.3; }

.ml-stand { display: grid; gap: 4px; max-width: 68ch; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-left: 4px solid var(--warn); border-radius: 12px;
  background: color-mix(in srgb, var(--warn) 8%, var(--karte)); }
.ml-stand > strong { font-size: var(--fs-h3); line-height: 1.3; }
.ml-stand > :is(p, ul) { max-width: none; color: var(--text-1); font-size: .9375rem; line-height: 1.45; }
.ml-stand > ul { margin: 4px 0 0; padding-left: 1.1em; display: grid; gap: 6px; }
.ml-kopf { padding-bottom: 28px; }
.ml-kopf > .etikett > a { min-width: 44px; }
@media (min-width: 1000px) {
  .ml-kopf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; }
  .ml-kopf > * { grid-column: 1; }
  .ml-kopf > .ml-stand { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
  .ml-kopf > nav { grid-column: 1 / -1; }
}

/* ---------- in 60 seconds, how we test ---------- */
:is(.ml-regeln, .ml-proben) > li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
:is(.ml-regeln, .ml-proben) > li > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ml-beleg { display: grid; justify-items: start; gap: 6px; margin-top: 4px; }
.ml-beleg > small { color: var(--text-3); font-size: var(--fs-min); line-height: 1.4; }
@media (min-width: 720px) { .ml-regeln { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ml-regeln > li:first-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .ml-regeln { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ml-regeln > li:nth-child(n) { grid-column: auto; grid-template: auto 1fr / minmax(0, 1fr); }
  .ml-regeln > li > div { grid-template-rows: auto 1fr auto; }
  .ml-proben { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- builder ---------- */
.ml-ohne > ol { margin: 0; padding-left: 2em; color: var(--text-1); line-height: 1.9; }
.ml-bau, .ml-wahl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.ml-gruppe { margin-bottom: 18px; }
.ml-gruppe > legend { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 0; font: 600 var(--fs-h3)/1.3 var(--f-ui); letter-spacing: 0; }
.ml-gruppe > div, .ml-art > div { display: flex; flex-wrap: wrap; gap: 8px; }
:is(.ml-gruppe, .ml-art) label { position: relative; display: inline-flex; max-width: 100%; }
:is(.ml-gruppe, .ml-art) input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
:is(.ml-gruppe, .ml-art) label > span { display: flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--linie-feld); border-radius: 22px; background: var(--karte); color: var(--text-1); font: 600 .9375rem/1.25 var(--f-ui); }
:is(.ml-gruppe, .ml-art) input:checked + span { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 16%, var(--karte)); color: var(--akzent-hell); }
:is(.ml-gruppe, .ml-art) input:checked + span::before { content: "✓"; margin-right: 7px; }
:is(.ml-gruppe, .ml-art) input:focus-visible + span { outline: 2px solid var(--akzent-hell); outline-offset: 2px; }
.ml-wahl :is(input, summary) { scroll-margin-bottom: 76px; }
.ml-zu { position: sticky; bottom: 12px; z-index: 2; justify-self: start; }
.ml-zu b { padding: 2px 9px; border-radius: 99px; background: var(--akzent-dunkel); }
.ml-liste > h3 { font-size: 1.25rem; line-height: 1.25; }
.s2-karte > .ml-rand { color: var(--text-3); font-size: var(--fs-meta); }
.ml-wand { gap: 6px; }
.ml-luecke { display: flex; align-items: center; gap: 10px; min-height: 26px; padding-left: 14px; color: var(--text-3); font-size: var(--fs-meta); }
.ml-luecke > img { filter: grayscale(.6); opacity: .75; }
.ml-luecke::after { content: ""; flex: 1; border-top: 1px dashed var(--linie-stark); }
.ml-schild { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 58px; padding: 6px 6px 6px 8px; border: 1px solid var(--linie-stark); border-radius: 29px 14px 14px 29px; background: var(--karte-2); }
.ml-schild > span:nth-child(2) { min-width: 0; line-height: 1.25; }
.ml-schild b { color: var(--text-1); overflow-wrap: anywhere; }
.ml-schild i { color: var(--akzent-hell); font-weight: 700; }
.ml-schild small { display: block; color: var(--text-3); font-size: var(--fs-meta); }
.ml-schild--vam { border-color: var(--bronze); background: color-mix(in srgb, var(--bronze) 10%, var(--karte)); }
.ml-schild > p { grid-column: 2 / -1; padding: 0 8px 4px 0; color: var(--text-2); font-size: var(--fs-meta); line-height: 1.4; }
.ml-schild--warn { border-color: var(--warn); }
.ml-fremd { display: grid; place-items: center; height: 40px; border: 2px dashed var(--linie-feld); border-radius: 50%; font-weight: 700; }
.ml-tun { display: flex; }
.ml-tun > button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--text-1); font: 700 1.125rem/1 var(--f-ui); cursor: pointer; }
.ml-tun > button:hover { background: var(--karte-hover); }
.ml-tun > button:disabled { color: var(--text-3); background: none; }
#ml-warn { display: grid; gap: 10px; }
#ml-warn:empty { display: none; }
.ml-kopie { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--linie); }
.ml-art > legend { padding: 0; margin-bottom: 8px; letter-spacing: 0; }
.ml-kopie textarea { min-height: 96px; font: .9375rem/1.5 var(--f-mono); overflow-wrap: anywhere; }
@media (min-width: 1000px) {
  .ml-bau { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: start; }
  .ml-zu { display: none; }
  .ml-liste { position: sticky; top: 76px; }
}

/* ---------- why this order ---------- */
.ml-mess { margin-bottom: 16px; }
.ml-mess > p { max-width: 90ch; }
.ml-ordnung { gap: 0; border-top: 1px solid var(--linie); }
.ml-ordnung > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.ml-ordnung > li > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; align-content: start; }
.ml-ordnung > .ml-ord--vam { margin-block: 8px; padding: 16px; border: 1px solid var(--bronze); border-radius: var(--r-karte); background: color-mix(in srgb, var(--bronze) 10%, var(--karte)); }
.ml-marken { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (min-width: 960px) {
  .ml-ordnung > li > div { grid-template-columns: minmax(0, 72ch) auto; justify-content: space-between; }
  .ml-marken { grid-area: 1 / 2 / span 2; align-self: center; justify-content: flex-end; max-width: 300px; }
}
.ml-marke { display: inline-flex; align-items: baseline; gap: 7px; color: var(--text-1); font: 700 var(--fs-min)/1.35 var(--f-ui); }
.ml-marke::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--warn); }
.ml-marke[data-m="author"]::before { border-radius: 50%; background: var(--bronze); }
.ml-marke[data-m="host"]::before { background: var(--info); }
.ml-marke[data-m="guide"]::before { background: var(--akzent); transform: rotate(45deg); }
.ml-marke[data-m="second"]::before { background: var(--aurora); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ml-marke[data-m="own"]::before { background: none; border: 2px solid var(--text-3); border-radius: 50%; }
.ml-marke[data-m="test"]::before { background: var(--gut); }
.ml-marke[data-m="none"]::before { height: 2px; align-self: center; background: var(--text-3); }

/* ---------- tables: rows are cards below 900 px ---------- */
.ml-filter { display: grid; gap: 12px 16px; margin-bottom: 16px; }
.ml-filter > p:empty { display: none; }
.ml-filter select { min-height: 50px; }
.ml-tab { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.ml-tab > caption { padding-bottom: 12px; color: var(--text-3); font-size: var(--fs-meta); text-align: left; }
.ml-tab th { color: var(--text-1); text-align: left; overflow-wrap: anywhere; }
.ml-tab > thead th { color: var(--text-2); font: 600 var(--fs-min)/1.3 var(--f-ui); }
.ml-tab small, .ml-tab td > strong { display: block; color: var(--text-3); font-size: var(--fs-min); font-weight: 400; }
.ml-tab td > strong { color: var(--warn); font-weight: 700; }
.ml-tab td > ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ml-tab td > ul > li > .ml-marke { display: flex; }
.ml-tab td > p { margin-top: 6px; font-size: var(--fs-min); overflow-wrap: anywhere; }
.ml-tab td > .s2-chip + small { margin-top: 6px; }
.s2-chip.ml-warnchip { color: #ffe2ad; background: color-mix(in srgb, var(--warn) 14%, transparent); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
/* first rows only; the link shows the rest (:target), a row someone links to always shows */
@media (scripting: enabled) {
  .s2-karte.ml-ohne { display: none; }
  #all-mods:not(:target, .ist-offen) > tbody > tr:nth-child(n+13):not(:target) { display: none; }
  @media (max-width: 899.98px) { #all-mods:not(:target, .ist-offen) > tbody > tr:nth-child(n+9):not(:target) { display: none; } }
}
#all-mods:target ~ .ml-alle { display: none; }
.ml-alle { margin-top: 16px; }
@media (min-width: 900px) {
  .ml-filter { grid-template-columns: 320px 240px auto; align-items: end; }
  .ml-tab { table-layout: fixed; background: var(--karte); border: 1px solid var(--linie); }
  .ml-tab :is(th, td) { padding: 12px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
  .ml-tab > thead th:first-child { width: 18%; }
  #all-mods > thead th:nth-child(2) { width: 12%; }
  #all-mods > thead th:is(:nth-child(3), :nth-child(4)) { width: 9.5%; }
  #all-mods > thead th:nth-child(5) { width: 19%; }
}
@media (max-width: 899.98px) {
  .ml-tab, .ml-tab > caption, .ml-tab > tbody > tr > * { display: block; }
  .ml-tab > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ml-tab > tbody { display: grid; gap: var(--luecke); }
  .ml-tab > tbody > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 16px; border: 1px solid var(--linie); border-radius: var(--r-karte); background: var(--karte); }
  .ml-tab > tbody > tr > :is(th, td:nth-child(n+6), td:has(> p)), .ml-tab--streit > tbody > tr > td { grid-column: 1 / -1; }
  .ml-tab > tbody > tr > th { font-size: var(--fs-h3); line-height: 1.3; }
  .ml-tab td::before { content: attr(data-l); display: block; color: var(--text-3); font-size: var(--fs-min); }
}

/* ---------- steps, testing, sources ---------- */
.ml-schritte { counter-reset: schritt; max-width: 900px; }
.ml-schritte > li { counter-increment: schritt; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.ml-schritte > li::before { content: counter(schritt); display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--linie-stark); border-radius: 50%; background: var(--slot); color: var(--akzent-hell); font: 700 1rem/1 var(--f-ui); }
.ml-schritte > li > div { display: grid; justify-items: start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.ml-teil { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.ml-heisst { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 28px; margin: 24px 0; }
.ml-heisst dt { color: var(--text-1); font-weight: 700; }
.ml-heisst dd { margin: 2px 0 0; }
.ml-quellen, .ml-quellen + p { margin-bottom: 16px; }
.ml-quellen > ol { margin: 0 0 12px; padding-left: 2em; overflow-wrap: anywhere; }
.ml-quellen li { line-height: 2.1; }
@media (scripting: none) { .ml-bau, .ml-filter, .ml-alle { display: none; } }
