/* Mobile-first Ergänzungen zu Pico CSS. Getestet bei 375 px Breite. */
:root {
  --pico-font-size: 100%;
  --pico-spacing: 0.8rem;
  --pico-form-element-spacing-vertical: 0.55rem;
  --pico-form-element-spacing-horizontal: 0.8rem;
}
body { padding-bottom: 4.6rem; }
.kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.9rem; background: var(--pico-card-background-color);
  border-bottom: 1px solid var(--pico-muted-border-color); position: sticky; top: 0; z-index: 5;
}
.marke { font-weight: 700; text-decoration: none; color: inherit; }
.kopf-rechts { display: flex; align-items: center; gap: 0.6rem; }
.jahr { font-size: 0.8rem; color: var(--pico-muted-color); }
.inline { display: inline; margin: 0; }
.inhalt { padding-top: 0.9rem; max-width: 760px; }
h1 { font-size: 1.45rem; margin-bottom: 0.6rem; }
h2 { font-size: 1.15rem; margin: 1.1rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 0.8rem 0 0.4rem; }
button, [role=button], input[type=submit] { min-height: 44px; }
button.klein, .klein { min-height: 34px; padding: 0.25rem 0.7rem; font-size: 0.85rem; width: auto; margin: 0; }
.flash { padding: 0.7rem 0.9rem; border-radius: 8px; background: #eef7ee; border: 1px solid #b7dfb9; margin-bottom: 0.9rem; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.7rem; }
.karte {
  display: block; padding: 0.8rem 0.9rem; border-radius: 10px; text-decoration: none; color: inherit;
  background: var(--pico-card-background-color); border: 1px solid var(--pico-muted-border-color);
}
.karte:hover { border-color: var(--pico-primary); }
.karte .label { font-size: 0.78rem; color: var(--pico-muted-color); text-transform: uppercase; letter-spacing: 0.03em; }
.karte .wert { font-size: 1.45rem; font-weight: 700; line-height: 1.2; margin: 0.2rem 0; }
.karte .zusatz { font-size: 0.85rem; color: var(--pico-muted-color); }
.karte.breit { grid-column: 1 / -1; }
.liste { list-style: none; padding: 0; margin: 0; }
.liste li { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid var(--pico-muted-border-color); }
.liste li:last-child { border-bottom: 0; }
.liste .haupt { flex: 1; min-width: 0; }
.liste .haupt small { display: block; color: var(--pico-muted-color); font-size: 0.8rem; }
.liste .rechts { text-align: right; white-space: nowrap; }
.liste a.block { text-decoration: none; color: inherit; display: block; }
.badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: #e9ecef; color: #333; }
.badge.gruen, .badge.bezahlt { background: #d7f1d9; color: #1d5b22; }
.badge.gelb, .badge.teilweise { background: #fff1c2; color: #6b4e00; }
.badge.rot, .badge.offen { background: #fcd5d5; color: #7a1414; }
.badge.grau { background: #e9ecef; color: #555; }
.rot { color: #b00020; font-weight: 700; }
.gruen { color: #1d5b22; }
.hinweis { font-size: 0.85rem; color: var(--pico-muted-color); }
.warn { background: #fff7e0; border: 1px solid #f1d58a; padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.9rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.aktionen a, .aktionen button { width: auto; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
form label { font-size: 0.9rem; }
table { font-size: 0.9rem; }
th, td { padding: 0.45rem 0.4rem; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
details summary { cursor: pointer; }
details.box { border: 1px solid var(--pico-muted-border-color); border-radius: 8px; padding: 0.4rem 0.8rem; margin-bottom: 0.6rem; }
.fussnav {
  position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around;
  background: var(--pico-card-background-color); border-top: 1px solid var(--pico-muted-border-color);
  padding: 0.3rem 0 calc(0.3rem + env(safe-area-inset-bottom)); z-index: 5;
}
.fussnav a { display: flex; flex-direction: column; align-items: center; font-size: 0.65rem; text-decoration: none; color: var(--pico-muted-color); min-width: 44px; padding: 0.2rem 0.1rem; }
.fussnav a span { font-size: 1.25rem; line-height: 1.2; }
.fussnav a.aktiv { color: var(--pico-primary); font-weight: 600; }
.login { max-width: 380px; margin: 3rem auto; }
.login h1 { text-align: center; }
.ampel { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; margin-right: 0.3rem; vertical-align: middle; }
.ampel.gruen { background: #2e9b3a; } .ampel.gelb { background: #e3b500; } .ampel.rot { background: #d12a2a; } .ampel.grau { background: #aaa; }
.balken { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; margin-top: 0.3rem; }
.balken div { height: 100%; background: #2e9b3a; }
.balken.gelb div { background: #e3b500; } .balken.rot div { background: #d12a2a; }
.kopiefeld { width: 100%; font-family: inherit; }
.tabelle-scroll { overflow-x: auto; }
@media (min-width: 600px) { .fussnav a { font-size: 0.75rem; } }
