:root { color-scheme: light dark; --grund: #faf8f5; --text: #22201c; --leise: #6b665e; --linie: #d8d3ca; --akzent: #2f5d50; --auf-akzent: #fff; --fehler: #a32a1f; }
@media (prefers-color-scheme: dark) {
  :root { --grund: #1b1a18; --text: #f1eee8; --leise: #aaa499; --linie: #45413a; --akzent: #7fc2ad; --auf-akzent: #10211c; --fehler: #ff9d90; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--grund); color: var(--text); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 26rem; margin: 0 auto; padding: 2rem 1rem; }
h1 { margin: 0 0 1rem; font-size: 1.5rem; }
a { color: var(--akzent); }
label { display: block; margin-bottom: .25rem; font-weight: 600; }
input:not([type="hidden"]) { width: 100%; min-height: 48px; padding: .6rem .75rem; border: 1px solid var(--linie); border-radius: 8px; background: transparent; color: inherit; font-size: 1.05rem; }
button { width: 100%; min-height: 48px; margin-top: .75rem; border: 0; border-radius: 8px; background: var(--akzent); color: var(--auf-akzent); font-size: 1.05rem; font-weight: 600; cursor: pointer; }
button.leise { background: transparent; border: 1px solid var(--linie); color: var(--text); font-weight: 500; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.fehler { color: var(--fehler); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset:disabled { opacity: .65; }
form label { margin-top: .75rem; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.zwei > div { min-width: 0; }
.gruss { margin: 0 0 .75rem; }
.leise { color: var(--leise); font-size: .92rem; }
button.leise { font-size: 1rem; }
a.knopf { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; background: var(--akzent); color: var(--auf-akzent); font-weight: 600; text-decoration: none; }
.monat { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin: 1rem 0 .5rem; text-align: center; }
.monat a { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 1.6rem; text-decoration: none; }
.tage { margin: 0 0 1rem; padding: 0; list-style: none; }
.tag { padding: .35rem 0; border-top: 1px solid var(--linie); scroll-margin-top: .5rem; }
.tagkopf { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 600; }
.tagkopf a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 1.5rem; font-weight: 400; text-decoration: none; }
.marke { margin-left: .25rem; padding: .05rem .4rem; border-radius: 6px; background: var(--akzent); color: var(--auf-akzent); font-size: .75rem; font-weight: 600; }
.eintrag { display: block; margin-bottom: .4rem; padding: .5rem .7rem; border: 1px solid var(--linie); border-radius: 8px; color: inherit; text-decoration: none; }
.eintrag span { display: block; overflow-wrap: anywhere; }
.eintrag .zeit { font-weight: 600; font-variant-numeric: tabular-nums; }
.storniert .zeit { text-decoration: line-through; color: var(--leise); }
.hinweis { margin: .25rem 0 .5rem; color: var(--leise); font-size: .92rem; }
h2 { margin: 0 0 .75rem; font-size: 1.25rem; overflow-wrap: anywhere; }
h3 { margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
a.knopf.zweit { margin-top: .75rem; border: 1px solid var(--linie); background: transparent; color: var(--text); font-weight: 500; }
.personen, .verlauf { margin: 0 0 1rem; padding: 0; list-style: none; }
.personen li { border-top: 1px solid var(--linie); }
.personen a { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; padding: .6rem 0; color: inherit; text-decoration: none; }
.person-name { font-weight: 600; overflow-wrap: anywhere; }
.person-summe { font-weight: 600; font-variant-numeric: tabular-nums; }
.person-info { grid-column: 1 / -1; }
.verlauf li { padding: .5rem 0; border-top: 1px solid var(--linie); }
.verlauf span { display: block; overflow-wrap: anywhere; }

/* Handy */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button { touch-action: manipulation; }
input[type="date"], input[type="time"] { display: block; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; }
.zurueck { margin: -.5rem 0 .5rem; }
.zurueck a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 1rem; }
.wahl { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin-top: .4rem; }
.wahl button { min-width: 0; min-height: 44px; margin: 0; border: 1px solid var(--linie); background: transparent; color: var(--text); font-size: 1rem; font-weight: 500; }
.wahl button[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent); color: var(--auf-akzent); font-weight: 600; }
button.sendet { opacity: .6; cursor: progress; }
.abstand { margin-top: 1.5rem; }
.tag.leer { padding: 0; }
.tag.leer .tagkopf { font-weight: 400; color: var(--leise); }
.tag.heute .tagkopf { color: var(--text); font-weight: 600; }
.tag:target { margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; border-radius: 8px; background: color-mix(in srgb, var(--akzent) 16%, transparent); }
