/* Salbei-Teal als Grundton, Lehm für Wärme, Bernstein als Kontrast — der
   trägt zugleich die Bedeutung „unklar" in der Prüfanzeige. */
:root {
  --ton: #37766b;
  --ton-tief: #23514a;
  --ton-hell: #e6efec;
  --lehm: #b08968;
  --lehm-hell: #f5efe8;
  --bernstein: #c8862a;
  --terrakotta: #a8503a;
  --papier: #fbfaf7;
  --tinte: #22302c;
  --grau: #6b7a76;
  --rand: #d8e0dd;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ton: #6fb3a4; --ton-tief: #8fcdbe; --ton-hell: #1b2b28;
    --lehm: #c79c78; --lehm-hell: #262220; --papier: #121a18; --tinte: #e8efec;
    --grau: #9aa8a4; --rand: #2c3a36; --bernstein: #d9a441; --terrakotta: #cf7358;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 46rem; margin: 0 auto; padding: 1.25rem 1.1rem 4rem; }
h1 { font-size: 1.45rem; margin: .2rem 0 .1rem; letter-spacing: -.01em; }
h1 span { color: var(--ton); }
.unterzeile { color: var(--grau); margin: 0 0 1.4rem; }
.knopf {
  display: block; width: 100%; border: 0; border-radius: var(--radius);
  background: var(--ton); color: #fff; font-size: 1.05rem; font-weight: 600;
  padding: 1.05rem 1rem; cursor: pointer; text-align: center;
}
.knopf:active { background: var(--ton-tief); }
.knopf[disabled] { opacity: .55; cursor: default; }
.zweit {
  background: transparent; color: var(--ton); border: 1.5px solid var(--rand);
  margin-top: .6rem; font-weight: 500;
}
input[type=file] { display: none; }
.stand { color: var(--grau); margin: 1rem 0; min-height: 1.5rem; }
.balken { height: 4px; background: var(--rand); border-radius: 2px; overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; background: var(--ton); transition: width .2s; }
.karte {
  border: 1px solid var(--rand); border-radius: var(--radius);
  padding: .9rem 1rem; margin: 1rem 0; background: color-mix(in srgb, var(--papier) 92%, var(--ton) 8%);
}
.karte h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--grau); margin: 0 0 .6rem; font-weight: 700; }
.karte.bezeugt { border-left: 4px solid var(--ton); }
.karte.geprueft { border-left: 4px solid var(--lehm); }
.karte.behauptet { border-left: 4px solid var(--rand); }
.karte.profil { border-left: 4px solid var(--ton-tief); }
.karte.grenzfall { border-left: 4px solid var(--lehm); }
.karte.grenzfall textarea { width: 100%; margin: .5rem 0; }
.karte .name { font-size: 1.15rem; font-weight: 600; margin: 0 0 .35rem; overflow-wrap: anywhere; }
.zeile { display: flex; gap: .8rem; justify-content: space-between; padding: .28rem 0; }
.zeile b { font-weight: 600; }
.wert { text-align: right; }
.ja { color: var(--ton); font-weight: 600; }
.nein { color: var(--terrakotta); font-weight: 600; }
.offen { color: var(--grau); }
.unklar { color: var(--bernstein); font-weight: 600; }
.fahne {
  display: inline-block; padding: .12rem .5rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; background: var(--ton-hell); color: var(--ton-tief);
}
.hinweis {
  background: var(--lehm-hell); border-radius: var(--radius);
  padding: .8rem .95rem; margin: 1rem 0; border-left: 4px solid var(--lehm);
}
.merk { font-size: .88rem; color: var(--grau); }
.code-gross { font: 600 1.5rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
footer { margin-top: 2.2rem; color: var(--grau); font-size: .85rem; }

/* ---- App-Hülle: vier Reiter, Leiste unten (13.9.2026) ---- */
[hidden] { display: none !important; }
body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
main { padding-top: calc(1.25rem + env(safe-area-inset-top)); }
a { color: var(--ton); }
a.knopf { text-decoration: none; }
.fuss { margin-top: 2rem; color: var(--grau); font-size: .85rem; }
.absatz { margin: .35rem 0 .55rem; }
.feld {
  width: 100%; padding: .8rem; margin-top: .5rem; border: 1.5px solid var(--rand);
  border-radius: 12px; background: transparent; color: inherit; font-size: 1rem;
}
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, minmax(0, 10rem)); justify-content: center;
  background: color-mix(in srgb, var(--papier) 94%, var(--ton) 6%);
  border-top: 1px solid var(--rand);
  padding: .35rem .2rem calc(.35rem + env(safe-area-inset-bottom));
}
.leiste a {
  display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .2rem 0;
  font-size: .72rem; color: var(--grau); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.leiste a[aria-current="page"] { color: var(--ton); font-weight: 600; }
.leiste svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Meine Bilder ---- */
#bilder h1 { margin-bottom: 1.1rem; }    /* ohne Unterzeile (14.9.2026) */
.bild {
  display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .85rem;
  padding: .95rem 0; border-bottom: 1px solid var(--rand);
}
.bild img {
  width: 4.6rem; height: 4.6rem; object-fit: cover; border-radius: 10px; background: var(--rand);
}
.bild h3 { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
.bild .merk { margin: .1rem 0 0; }
.aktionen { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.klein {
  border: 1.5px solid var(--rand); background: transparent; color: var(--ton);
  border-radius: 999px; padding: .38rem .85rem; font-size: .9rem; font-weight: 500; cursor: pointer;
}
.klein.voll { background: var(--ton); border-color: var(--ton); color: #fff; }
.klein.leise { color: var(--grau); border-color: transparent; padding-left: .3rem; padding-right: .3rem; }
.leer { text-align: center; padding: 1.6rem 0 .6rem; }
.leer .knopf { margin-top: 1rem; }

details.einzeln { margin: .7rem 0; }
details.einzeln > summary { cursor: pointer; font-weight: 600; padding: .35rem 0; }
