:root{font-family:system-ui,sans-serif;color:#17342e;background:#f2f5f0;line-height:1.45;color-scheme:light}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
main{max-width:38rem;margin:auto;padding:max(1.25rem,env(safe-area-inset-top)) 1rem max(1.5rem,env(safe-area-inset-bottom))}
header{display:flex;align-items:center;gap:1rem;margin:0 0 1.25rem}
header img{object-fit:contain;border-radius:1rem;background:white}
h1{font-size:clamp(1.65rem,6vw,2.3rem);line-height:1.03;letter-spacing:-.045em;margin:0}
h2{font-size:1.35rem;margin:0 0 1rem}
h3{margin:0 0 .7rem}
nav{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem;background:#e1e9e1;padding:.25rem;border-radius:1rem;margin-bottom:1rem}
button,input,select{font:inherit;min-height:44px;color:inherit}
button{border:0;border-radius:.72rem;padding:.5rem .78rem;background:#e6eee8;cursor:pointer;font-weight:650}
button[aria-current=true]{background:#fff;box-shadow:0 1px 4px #17342e23}
.primary{color:white;background:#21574a}
section{padding:1rem;background:#fff;border-radius:1.1rem;border:1px solid #dce6dc}
.heading,.monat,.total,.zeile,.aktionen{display:flex;gap:.65rem;align-items:center;justify-content:space-between}
.heading h2{margin:0}
form{background:#f5f7f3;border-radius:.85rem;padding:.9rem;margin-top:1rem}
label{display:block;font-weight:600;margin-top:.45rem}
input,select{display:block;width:100%;min-width:0;border:1px solid #a6b9af;border-radius:.65rem;padding:.4rem;background:white}
.paar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.aktionen{justify-content:flex-start;margin-top:.8rem;flex-wrap:wrap}
.liste{list-style:none;margin:1rem 0 0;padding:0}
.liste li{padding:.7rem 0;border-top:1px solid #e0e8e0;overflow-wrap:anywhere}
.zeile>div:first-child{min-width:0}
.zeile small{display:block;font-size:.88rem;color:#52695f}
.zeile .aktionen{margin:0;justify-content:flex-end;flex-shrink:0}
.gefahr{color:#872d25}
.total{background:#e7f0e8;border-radius:.8rem;padding:.8rem;margin-top:.6rem}
.hinweis,footer{color:#52695f;font-size:.88rem}
footer{text-align:center;margin-top:1rem}
#status{padding:.65rem;background:#fff3dc;border-radius:.75rem}
fieldset{min-width:0;margin:0 0 .6rem;padding:.25rem .65rem;border:1px solid #a6b9af;border-radius:.65rem}
legend{padding:0 .25rem;font-weight:650}
.auswahlzeile{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem}
.auswahlzeile + .auswahlzeile{border-top:1px solid #dce6dc}
.auswahlzeile label{display:flex;align-items:center;gap:.45rem;min-height:44px;margin:0;overflow-wrap:anywhere}
.auswahlzeile input[type=checkbox]{flex:none;width:1.25rem;height:1.25rem;min-height:0;margin:0;accent-color:#21574a}
.auswahlzeile label:has(input:disabled:not(:checked)){color:#52695f}
#unterschrift{display:block;width:100%;aspect-ratio:3/1;height:auto;background:white;border:1px solid #a6b9af;border-radius:.65rem;touch-action:none}
#signaturloeschen,.tagesmail button{margin-top:.5rem}
.tagesmail{margin-top:1rem;padding:.7rem 0 0;border-top:1px solid #e0e8e0}
.tagesmail summary{cursor:pointer;font-weight:650}
@media(max-width:30rem){#buchungen .zeile{flex-wrap:wrap}#buchungen .zeile .aktionen{justify-content:flex-start}}
nav button{padding-inline:.35rem}
footer button{margin-left:.35rem}
