/* „So genau rechnet Dienstnetto“ (bau/methodik.py) – nur auf dieser Seite geladen. Farben aus stil.css (hell/dunkel). */

/* ---------- Kopf: Text + Prüfstand ---------- */
.m-held { display: grid; gap: 1.4rem; margin: 0.4rem 0 2.6rem; }
.m-zeile { margin: 0 0 0.3rem; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent); }
.m-held h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 0.8rem; }
.m-held h1 em { font-style: normal; color: var(--akzent); }
.m-unter { font-size: 1.08rem; line-height: 1.55; color: var(--leise); margin: 0 0 1.2rem; max-width: 34rem; }
.m-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.m-pruefstand {
  position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten-hoch); padding: 1.3rem 1.3rem 1.2rem; overflow: hidden;
}
.m-pruefstand::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--akzent), var(--akzent-hell)); }
.m-pk-titel { margin: 0; font-size: 0.75rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent); }
.m-pk-zahl { margin: 0.2rem 0 0; display: flex; align-items: baseline; gap: 0.5rem; }
.m-pk-zahl b { font-size: clamp(3rem, 14vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; color: var(--akzent); font-variant-numeric: tabular-nums; }
.m-pk-zahl span { font-size: 1.1rem; font-weight: 650; color: var(--leise); }
.m-pk-text { margin: 0.35rem 0 0.9rem; color: var(--leise); line-height: 1.45; }
.m-pk-text strong { color: var(--text); }
/* Je Testfall ein grüner Punkt – zum Zählen gedacht, nicht zum Lesen */
.m-punkte { display: grid; grid-template-columns: repeat(auto-fill, minmax(9px, 1fr)); gap: 4px; margin: 0 0 1.1rem; }
.m-punkte i { aspect-ratio: 1; border-radius: 50%; background: var(--gut); opacity: 0.85; }
.m-pk-liste { list-style: none; margin: 0; padding: 0.9rem 0 0; border-top: 1px dashed var(--linie); display: grid; gap: 0.55rem; }
.m-pk-liste li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.6rem; align-items: baseline; }
.m-pk-liste b { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-pk-liste span { color: var(--leise); font-size: 0.9rem; line-height: 1.35; }

/* ---------- Abschnitte ---------- */
.m-block h2 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); letter-spacing: -0.025em; margin-bottom: 0.9rem; }
.m-lead { color: var(--leise); margin: -0.3rem 0 1.1rem; max-width: 46rem; }
.m-block h3 { font-size: 1.02rem; margin: 0 0 0.3rem; letter-spacing: -0.01em; }

/* Vier Schritte */
.m-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; counter-reset: none; }
.m-schritte li {
  position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  padding: 1rem 1rem 1rem 3.6rem;
}
.m-schritte p { margin: 0; color: var(--leise); font-size: 0.93rem; line-height: 1.5; }
.m-nr {
  position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--akzent); color: var(--akzent-text); font-weight: 800; font-size: 0.95rem;
}

/* Beispiel */
.m-person { display: flex; gap: 0.7rem; align-items: flex-start; background: var(--akzent-zart); border-radius: var(--radius-klein);
  padding: 0.85rem 1rem; margin: 0 0 1.1rem; line-height: 1.5; }
.m-person-ik { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px;
  background: var(--flaeche); color: var(--akzent); font-size: 1.3rem; }
.m-zettel-paar { display: grid; gap: 1rem; align-items: start; }
.m-zettel {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 1.1rem 1.1rem 1rem;
}
.m-zettel header { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding-bottom: 0.8rem; border-bottom: 2px solid var(--text); }
.m-zettel header b { font-size: 1.02rem; }
.m-marke { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; }
.m-tarif { background: var(--flaeche-2); color: var(--text); }
.m-beamte { background: var(--akzent); color: var(--akzent-text); }
.m-zeilen { list-style: none; margin: 0; padding: 0; }
.m-zeilen li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.8rem; row-gap: 0.15rem;
  padding: 0.65rem 0; border-bottom: 1px dashed var(--linie);
}
.m-z-name { font-weight: 650; -webkit-hyphens: manual; hyphens: manual; }
.m-z-betrag { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; text-align: right; }
.m-z-warum { grid-column: 1 / -1; color: var(--leise); font-size: 0.86rem; line-height: 1.45; }
.m-zeilen .minus .m-z-betrag { color: var(--warn-text); }
.m-zeilen .summe { border-bottom: 1px solid var(--text); }
.m-zeilen .summe .m-z-name, .m-zeilen .summe .m-z-betrag { font-weight: 800; }
.m-zeilen .netto { border-bottom: 0; padding-top: 0.85rem; align-items: baseline; }
.m-zeilen .netto .m-z-name { font-size: 1.1rem; font-weight: 800; }
.m-zeilen .netto .m-z-betrag { font-size: 1.7rem; font-weight: 800; color: var(--akzent); letter-spacing: -0.02em; }
.m-balken { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 0.6rem 0 0.5rem; background: var(--flaeche-2); }
.m-b-netto { background: var(--akzent); }
.m-b-steuer { background: var(--geld-steuer); }
.m-b-abgaben { background: var(--geld-sozial); }
.m-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.82rem; color: var(--leise); }
.m-legende i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 3px; margin-right: 0.35rem; vertical-align: -1px; }
.m-aha { margin: 1.1rem 0 0.6rem; padding: 0.95rem 1.1rem; border-radius: var(--radius-klein); background: var(--flaeche);
  border: 1px solid var(--linie); border-left: 4px solid var(--gold); line-height: 1.55; }
.m-aha a { font-weight: 700; white-space: nowrap; }

/* Was wir einrechnen */
.m-kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.m-kacheln li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 1rem; }
.m-kacheln li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.85rem; align-content: start; }
.m-kacheln .m-ikon { grid-row: 1 / span 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px;
  background: var(--akzent-zart); color: var(--akzent); font-size: 1.25rem; }
.m-kacheln h3 { align-self: center; }
.m-kacheln p { margin: 0; color: var(--leise); font-size: 0.9rem; line-height: 1.5; }

/* Zweimal abgeschrieben */
.m-zwei { display: grid; gap: 1.2rem; align-items: center; }
.m-zwei-text p { margin: 0 0 0.8rem; line-height: 1.6; }
.m-vergleich { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.5rem; align-items: center;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; box-shadow: var(--schatten); }
.m-durchgang p { margin: 0 0 0.4rem; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leise); }
.m-durchgang table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.m-durchgang th { text-align: left; font-weight: 600; color: var(--leise); padding: 0.35rem 0.3rem 0.35rem 0; white-space: nowrap; }
.m-durchgang td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; padding: 0.35rem 0.4rem; white-space: nowrap;
  background: var(--akzent-zart); border-radius: 6px; }
.m-durchgang tr + tr th, .m-durchgang tr + tr td { border-top: 3px solid var(--flaeche); }
.m-gleich { font-size: 1.6rem; font-weight: 800; color: var(--gut); }
.m-vergleich-fazit { grid-column: 1 / -1; margin: 0.4rem 0 0; font-weight: 700; color: var(--gut); font-size: 0.92rem; }
@media (max-width: 479px) {
  .m-vergleich { grid-template-columns: 1fr; }
  .m-gleich { text-align: center; line-height: 1; }
}

/* Gegenprobe */
.m-gp { display: grid; gap: 0.8rem; }
.m-gp-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 1rem; }
.m-gp-karte > p { margin: 0 0 0.6rem; color: var(--leise); font-size: 0.88rem; }
.m-gp-karte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.m-gp-karte li { font-size: 0.9rem; color: var(--text); display: flex; gap: 0.45rem; }
.m-haken { color: var(--gut); font-weight: 800; flex: none; }

/* Annahmen */
.m-annahmen { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.m-annahmen li { display: flex; gap: 0.75rem; align-items: center; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius-klein); padding: 0.75rem 0.9rem; line-height: 1.5; }
.m-annahme-ik { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px;
  background: var(--akzent-zart); color: var(--akzent); font-size: 1.1rem; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .m-schritte { grid-template-columns: 1fr 1fr; }
  .m-zettel-paar { grid-template-columns: 1fr 1fr; }
  .m-gp { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .m-held { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; align-items: center; margin: 1.2rem 0 4rem; }
  .m-held h1 { font-size: 3.9rem; }
  .m-unter { font-size: 1.18rem; }
  .m-pruefstand { padding: 1.6rem 1.7rem 1.5rem; }
  .m-schritte { grid-template-columns: repeat(4, 1fr); }
  .m-schritte li { padding: 3.7rem 1.15rem 1.25rem; }
  .m-schritte .m-nr { top: 1.1rem; left: 1.1rem; }
  /* Pfeile zwischen den Schritten */
  .m-schritte li:not(:last-child)::after {
    content: "→"; position: absolute; right: -0.72rem; top: 1.35rem; z-index: 1; width: 1.4rem; height: 1.4rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--bg); color: var(--akzent); font-weight: 800; font-size: 0.85rem;
  }
  .m-zettel { padding: 1.4rem 1.5rem 1.2rem; }
  .m-zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
  .m-kacheln { grid-template-columns: repeat(3, 1fr); }
}
