.buehne { flex: 1 0 auto; width: 100%; }

.seite { padding: clamp(24px, 4vw, 48px) var(--rand) 64px; }
.seite.schmal { display: grid; gap: 20px; max-width: calc(720px + 2 * var(--rand)); }
.seite h1, .editor h1 { margin: 0; hyphens: auto; overflow-wrap: break-word; font-size: clamp(1.625rem, 1.2vw + 1.2rem, 2.25rem); line-height: 1.15; letter-spacing: -0.025em; }
.seiten-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.seite.schmal .seiten-kopf { margin-bottom: 0; }
.unterzeile { margin: 6px 0 0; color: var(--leise); }
.leise, .leer-hinweis { color: var(--hauch); margin: 0; }
.leer-hinweis { padding: 8px 0; }

.zurueck {
  display: inline-flex; align-items: center; gap: 4px;
  width: max-content;
  margin-left: -6px;
  padding: 6px 10px 6px 4px;
  border-radius: 999px;
  color: var(--leise);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .zurueck:hover { background: rgba(23, 35, 43, 0.05); color: var(--tinte); } }

/* Anmeldung */

.anmeldung {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px);
  align-items: center;
  gap: clamp(32px, 6vw, 120px);
  padding: clamp(32px, 7vw, 112px) var(--rand);
}
.anmeldung h1 {
  margin: 0;
  font-size: clamp(2.25rem, 3.4vw + 1rem, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  hyphens: manual;
}
.eckdaten { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.eckdaten li { display: flex; align-items: center; gap: 12px; font-size: 1.0625rem; color: var(--leise); }
.eckdaten .symbol { width: 24px; height: 24px; color: var(--blau); }
.anmeldung-karte { padding: clamp(22px, 3vw, 32px); }
.anmelde-form { display: grid; gap: 16px; }

.umschalter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: var(--feld);
  margin-bottom: 6px;
}
.umschalter button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--leise);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.umschalter [aria-selected="true"] { background: var(--karte); color: var(--tinte); box-shadow: 0 1px 3px rgba(23, 35, 43, 0.12); }

/* Übersicht */

.objekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.objekt { background: var(--karte); border-radius: var(--r-karte); box-shadow: var(--schatten); padding: 8px; }
.objekt-kopf { display: flex; align-items: flex-start; gap: 14px; padding: 16px 12px 14px 14px; }
.objekt-kopf > div { flex: 1; min-width: 0; }
.objekt-kopf h2 { margin: 0; font-size: 1.1875rem; letter-spacing: -0.015em; }
.objekt-kopf p { margin: 2px 0 0; color: var(--leise); font-size: 0.9375rem; }
.objekt-symbol { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--blau-zart); color: var(--blau-text); stroke-width: 1.6; }
.jahre { list-style: none; margin: 0; padding: 0; display: grid; }
.jahre li + li { border-top: 1px solid var(--linie); }
.jahre a, .jahr-neu {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--tinte);
  text-decoration: none;
  font-size: 1rem;
  text-align: left;
  transition: background-color 160ms ease;
}
.jahre strong { font-variant-numeric: tabular-nums; min-width: 3.2em; }
.jahre .pfeil { margin-left: auto; color: var(--hauch); }
.jahr-neu { color: var(--blau-text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .jahre a:hover, .jahr-neu:hover { background: var(--blau-hauch); } }

.status {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(23, 35, 43, 0.06);
  color: var(--leise);
}
.status-eingereicht { background: var(--blau-zart); color: var(--blau-text); }
.status-freigegeben { background: var(--gruen-zart); color: var(--gruen); }
.status-zurueck { background: var(--orange-zart); color: var(--orange); }

.leer-start { display: grid; gap: 24px; }
.art-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.art {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 26px 26px 24px;
  border: 0;
  border-radius: var(--r-karte);
  background: var(--karte);
  box-shadow: var(--schatten);
  text-align: left;
  transition: transform 160ms var(--aus), box-shadow 220ms ease;
}
.art strong { font-size: 1.25rem; letter-spacing: -0.015em; margin-top: 14px; }
.art span { color: var(--leise); }
.art-symbol { width: 44px; height: 44px; color: var(--blau); stroke-width: 1.5; }
.art:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .art:hover { box-shadow: var(--schatten-hoch); } }

.formular-karte { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); }
.formular-karte h1 { font-size: 1.5rem; }
.formular-karte h2 { margin: 0; font-size: 1.125rem; letter-spacing: -0.01em; }
.reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px 14px; align-items: start; }
.reihe.plz-ort { grid-template-columns: 7.5rem minmax(0, 1fr); }
.reihe.drei { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.reihe.vier { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.aktionen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* Editor */

.editor { padding: clamp(18px, 3vw, 36px) var(--rand) 72px; }
.editor-kopf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 22px; }
.editor-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.speicherstand { color: var(--hauch); font-size: 0.8125rem; margin-left: auto; font-variant-numeric: tabular-nums; }

.reiter {
  display: flex;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  border-radius: 14px;
  background: rgba(23, 35, 43, 0.06);
}
.reiter a {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--leise);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}
.reiter a[aria-current="page"] { background: var(--karte); color: var(--tinte); box-shadow: 0 1px 3px rgba(23, 35, 43, 0.12); }
.reiter-zahl:empty { display: none; }
.reiter-zahl {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--rot);
  color: #fff;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.leiste {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--blau-zart);
  color: var(--blau-text);
}
.leiste p { margin: 0; color: var(--tinte); }
.leiste > p { flex: 1; align-self: center; }
.leiste strong { display: block; color: inherit; }
.leiste-warnung { background: var(--orange-zart); color: var(--orange); }
.leiste-gut { background: var(--gruen-zart); color: var(--gruen); }
.leiste > .symbol { margin-top: 2px; }

.editor-flaeche {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 340px);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: start;
}
.reiter-inhalt { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 18px; }

.block { background: var(--karte); border-radius: var(--r-karte); box-shadow: var(--schatten); padding: clamp(18px, 2.2vw, 26px); display: grid; gap: 16px; }
.block > * { min-width: 0; }
.block h2 { margin: 0; font-size: 1.125rem; letter-spacing: -0.012em; }
.block h3 { margin: 0; font-size: 0.9375rem; color: var(--leise); }
.block-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.block-zusatz { margin: -10px 0 0; color: var(--leise); font-size: 0.9375rem; }
.reihe.zeitraum { grid-template-columns: repeat(2, minmax(0, 220px)); }

.tabelle { display: grid; gap: 10px; }
.tabelle-kopf, .tabelle-zeile {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
}
.tabelle-kopf span { font-size: 0.8125rem; font-weight: 600; color: var(--leise); }
@media (min-width: 761px) {
  .tabelle-zeile .feld > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.mieter-gruppe { display: grid; gap: 12px; justify-items: start; }
.mieter-gruppe + .mieter-gruppe { padding-top: 18px; border-top: 1px solid var(--linie); }
.mieter-karte {
  justify-self: stretch;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--blau-hauch);
  box-shadow: inset 0 0 0 1px rgba(0, 121, 173, 0.08);
}
.mieter-karte .eingabe:not(:focus) { background: var(--karte); }
.reihe.mieter-name { grid-template-columns: 9rem minmax(0, 1fr) 40px; align-items: end; }
.reihe.mieter-name .knopf-symbol { margin-bottom: 3px; }

/* Kosten */

.hochladen { gap: 12px; }
.ablage {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: clamp(22px, 3vw, 34px) 20px;
  border-radius: 14px;
  background: var(--blau-hauch);
  box-shadow: inset 0 0 0 1.5px rgba(0, 158, 224, 0.35);
  text-align: center;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 160ms var(--aus);
}
.ablage strong { font-size: 1.0625rem; letter-spacing: -0.01em; }
.ablage span { color: var(--leise); font-size: 0.9375rem; }
.ablage-symbol { width: 34px; height: 34px; color: var(--blau); margin-bottom: 6px; }
.ablage[data-ueber] { background: var(--blau-zart); box-shadow: inset 0 0 0 2px var(--blau); }
.ablage:active { transform: scale(0.99); }
#datei-wahl:focus-visible + .ablage { outline: 2px solid var(--blau); outline-offset: 2px; }
fieldset:disabled .ablage { opacity: 0.5; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .ablage:hover { background: var(--blau-zart); } }

.upload-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.upload-liste:empty { display: none; }
.upload-liste li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--feld);
  font-size: 0.9375rem;
}
.upload-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-stand { color: var(--leise); font-size: 0.875rem; text-align: right; }
.upload-liste .laedt .upload-stand { color: var(--blau-text); animation: puls 1.4s ease-in-out infinite; }
.upload-liste .fertig .symbol { color: var(--gruen); }
.upload-liste .fehler { background: var(--rot-zart); }
.upload-liste .fehler .upload-stand { color: var(--rot); }
@keyframes puls { 50% { opacity: 0.45; } }

.posten-liste { display: grid; gap: 10px; }
.posten {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: var(--karte);
  box-shadow: inset 0 0 0 1px var(--linie);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.posten.hat-fehler { box-shadow: inset 0 0 0 1.5px rgba(196, 51, 43, 0.55); background: #fffafa; }
.posten-haupt {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1.15fr) minmax(0, 0.95fr) 40px;
  gap: 12px;
  align-items: end;
}
.posten-haupt > .knopf-symbol { margin-bottom: 3px; }
.anteile { display: grid; gap: 8px; }
.posten-grund { margin: 0 0 12px; grid-column: span 2; color: var(--leise); font-size: 0.9375rem; }
.nicht-umlage { background: var(--feld); box-shadow: none; }
.nicht-umlage .eingabe:not(:focus) { background: var(--karte); }
.posten-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 0; }
.posten-fuss:not(:has(> :not(:empty))) { display: none; }
.beleg-marke {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 260px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--feld);
  color: var(--leise);
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.beleg-marke .symbol { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .beleg-marke:hover { background: var(--blau-zart); color: var(--blau-text); } }
.verwalter { color: var(--hauch); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.zeilen-hinweis { color: var(--rot); font-size: 0.8125rem; }

/* Auswertung rechts */

.auswertung {
  position: sticky;
  top: calc(var(--kopf-h, 88px) + 16px);
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r-karte);
  background: var(--karte);
  box-shadow: var(--schatten);
}
.auswertung h2 { margin: 0; font-size: 0.9375rem; color: var(--leise); }
.stand-mieter { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stand-mieter li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
.stand-mieter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.stand-mieter small { grid-column: 1; color: var(--hauch); font-size: 0.8125rem; }
.betrag { grid-row: span 2; align-self: center; font-size: 1.25rem; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; color: var(--gruen); }
.betrag.nachzahlung { color: var(--tinte); }
.stand-pruefung {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
.stand-pruefung.fehler { background: var(--rot-zart); color: var(--rot); }
.stand-pruefung.warnung { background: var(--orange-zart); color: var(--orange); }
.stand-pruefung.gut { background: var(--gruen-zart); color: var(--gruen); }

/* Ergebnis */

.pruefliste { list-style: none; margin: 0; padding: 0; display: grid; }
.pruefung { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; }
.pruefung + .pruefung { border-top: 1px solid var(--linie); }
.pruefung .symbol { margin-top: 2px; }
.pruefung.fehler .symbol { color: var(--rot); }
.pruefung.warnung .symbol { color: var(--orange); }
.pruefung.hinweis .symbol { color: var(--blau-text); }
.pruefung.fehler > span { font-weight: 600; }
.pruefung a { font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.alles-gut { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--gruen); font-weight: 600; }

.ergebnis-mieter {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding: 16px 0;
}
.ergebnis-mieter + .ergebnis-mieter { border-top: 1px solid var(--linie); }
.ergebnis-name { display: grid; }
.ergebnis-name span { color: var(--leise); font-size: 0.875rem; }
.ergebnis-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px 18px; margin: 0; }
.ergebnis-zahlen dt { color: var(--hauch); font-size: 0.8125rem; }
.ergebnis-zahlen dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ergebnis-zahlen .nachzahlung dd { color: var(--tinte); font-size: 1.125rem; }
.leerstand { margin: 0; color: var(--leise); font-size: 0.9375rem; }

.geschaeftsstelle .aktionen { justify-content: flex-start; }
.beratung { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; background: var(--blau-hauch); box-shadow: none; }
.beratung p { margin: 4px 0 0; color: var(--leise); }
.beratung-symbol { width: 40px; height: 40px; color: var(--blau); stroke-width: 1.5; }

@media (max-width: 1100px) {
  .editor-flaeche { grid-template-columns: minmax(0, 1fr); }
  .auswertung { position: static; order: -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .auswertung h2 { display: none; }
}

@media (max-width: 900px) {
  .posten-haupt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .posten-haupt > .feld:first-child { grid-column: 1 / 3; }
  .posten-haupt > .knopf-symbol { grid-column: 3; grid-row: 1; }
  .ergebnis-mieter { grid-template-columns: minmax(0, 1fr); }
  .ergebnis-mieter .knopf { justify-self: start; }
}

@media (max-width: 760px) {
  .anmeldung { grid-template-columns: minmax(0, 1fr); }
  .tabelle-kopf { display: none; }
  .tabelle-zeile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
  .tabelle-zeile:last-child { padding-bottom: 0; border-bottom: 0; }
  .tabelle-zeile > .feld:first-child { grid-column: 1 / -1; }
  .tabelle-zeile > .knopf-symbol { grid-column: 2; justify-self: end; }
  .tabelle-zeile > span:empty { display: none; }
  .auswertung { grid-template-columns: minmax(0, 1fr); }
  .beratung { grid-template-columns: minmax(0, 1fr); }
  .beratung-symbol { display: none; }
  .speicherstand { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .posten-haupt { grid-template-columns: minmax(0, 1fr) 40px; }
  .posten-haupt > .feld { grid-column: 1; }
  .posten-haupt > .feld:first-child { grid-column: 1; }
  .posten-haupt > .knopf-symbol { grid-column: 2; }
  .posten-grund { grid-column: 1; }
  .reihe.mieter-name { grid-template-columns: minmax(0, 1fr) 40px; }
  .reihe.mieter-name > .feld:first-child { grid-column: 1; }
  .reihe.mieter-name > .feld:nth-child(2) { grid-column: 1; grid-row: 2; }
  .reihe.mieter-name > .knopf-symbol { grid-column: 2; grid-row: 1; }
  .reihe.zeitraum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .seiten-kopf { flex-wrap: wrap; align-items: flex-start; }
}

/* Rechtstexte */

.recht { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.recht-text { margin-top: 20px; padding: clamp(22px, 3.4vw, 44px); display: grid; gap: 26px; }
.recht-text section { max-width: 72ch; }
.recht-text h2 { margin: 0 0 8px; font-size: 1.125rem; letter-spacing: -0.01em; }
.recht-text p { margin: 0 0 10px; color: var(--leise); }
.recht-text p:last-child { margin-bottom: 0; }
.form-zusatz { margin: -4px 0 0; color: var(--hauch); font-size: 0.8125rem; text-align: center; }

/* Schritte und Demo */

.reiter-nr {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(23, 35, 43, 0.08);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 180ms ease, color 180ms ease;
}
.reiter a[aria-current="page"] .reiter-nr { background: var(--blau-text); color: #fff; }

.weiter { display: flex; justify-content: flex-end; padding-top: 4px; }
.weiter .symbol { width: 18px; height: 18px; margin-right: -4px; }

.ablage-aktionen { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.ablage-aktionen:not(:has(*)) { display: none; }
.knopf-link {
  border: 0;
  background: none;
  padding: 6px 4px;
  border-radius: 8px;
  color: var(--blau-text);
  font-size: 0.9375rem;
  font-weight: 600;
  justify-self: start;
}
@media (hover: hover) and (pointer: fine) { .knopf-link:hover { text-decoration: underline; text-underline-offset: 0.2em; } }

.block-leise { background: transparent; box-shadow: inset 0 0 0 1px var(--linie); }
.block-leise .eingabe:not(:focus) { background: var(--karte); }

.schluessel-tabelle { display: grid; gap: 10px; }
.schluessel-kopf, .schluessel-zeile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.schluessel-kopf span { font-size: 0.8125rem; font-weight: 600; color: var(--leise); }
.schluessel-zeile strong { font-weight: 600; }
.schluessel-zeile .fest { padding: 0 14px; color: var(--leise); text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 761px) {
  .schluessel-zeile .feld > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 760px) {
  .schluessel-kopf { display: none; }
  .schluessel-zeile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .schluessel-zeile strong { grid-column: 1 / -1; }
  .schluessel-zeile .fest { display: none; }
}

.demo-marke {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange-zart);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.kopf-rechts { display: flex; align-items: center; gap: 10px; }
.demo-karte { display: grid; gap: 12px; }
.knopf.gross { min-height: 54px; font-size: 1.0625rem; }
@media (max-width: 480px) {
  .demo-marke { display: none; }
}

/* Kostenliste in Kurzform */

.posten-liste:has(> .posten-kurz) { gap: 0; }
.posten-kurz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 12px;
  margin: 0 -12px;
  width: calc(100% + 24px);
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  transition: background-color 160ms ease;
}
.posten-kurz + .posten-kurz { box-shadow: 0 -1px 0 var(--linie); }
.posten-kurz:hover + .posten-kurz, .posten-kurz + .posten-kurz:hover { box-shadow: none; }
.posten-text { display: grid; min-width: 0; }
.posten-text strong { display: flex; align-items: center; gap: 6px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.posten-text > span { color: var(--leise); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beleg-zeichen { width: 15px; height: 15px; color: var(--hauch); }
.posten-zahl { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.posten-zahl strong { font-weight: 600; }
.posten-zahl span { color: var(--hauch); font-size: 0.8125rem; }
.aussortiert .posten-kurz .posten-zahl strong { color: var(--hauch); font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(23, 35, 43, 0.3); }
.posten + .posten-kurz, .posten-kurz + .posten { margin-top: 8px; }
.posten-fuss .fertig { margin-left: auto; padding: 2px 4px; }
@media (hover: hover) and (pointer: fine) { .posten-kurz:hover { background: var(--blau-hauch); } }
fieldset:disabled .posten-kurz { cursor: default; }
@media (max-width: 520px) {
  .posten-text > span { white-space: normal; }
}

button.ablage { width: 100%; border: 0; font: inherit; color: inherit; }

a.knopf-link { text-decoration: none; }
@media (max-width: 520px) {
  .reiter { width: 100%; }
  .reiter a { flex: 1 1 0; justify-content: center; gap: 6px; padding: 0 6px; font-size: 0.875rem; }
  .reiter-nr { width: 20px; height: 20px; }
}

form[inert] .aktionen { display: none; }
form[inert] .eingabe { background: transparent; }
