/* Created by Andreas Schneider. Die Seite der Sammelstelle: Sand und Papier wie in den Apps, in Dunkel schwarz. */
:root {
  --grund: #edebe5; --papier: #ffffff; --gehoben: #f6f5f1; --tinte: #141414; --leise: #6d6a63; --linie: rgba(0,0,0,.1);
  --offen: #b4541a; --arbeit: #1d5fa8; --fertig: #2c7a4b; --rot: #b3261e;
  --schatten: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #000; --papier: #1c1c1e; --gehoben: #141416; --tinte: #f4f3ef; --leise: #9a978f; --linie: rgba(255,255,255,.12);
    --offen: #f0a35e; --arbeit: #7db4f2; --fertig: #7fd39f; --rot: #ff8a80; --schatten: none; }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.kaefer { font-size: 44px; line-height: 1; }
.kaefer.klein { font-size: 20px; }

#tor { height: 100%; display: grid; place-items: center; padding: 24px; }
.tor-karte { background: var(--papier); border-radius: 28px; padding: 36px 32px; max-width: 360px; text-align: center; box-shadow: var(--schatten); display: grid; gap: 14px; }
.tor-karte p { color: var(--leise); }

.knopf { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linie); background: var(--papier); color: var(--tinte); text-decoration: none; font-weight: 600; }
.knopf.voll { background: var(--tinte); color: var(--grund); border-color: transparent; height: 46px; }
.knopf:disabled { opacity: .45; cursor: default; }
.schlicht { background: none; border: 0; color: var(--leise); text-decoration: underline; text-underline-offset: 3px; padding: 0; }

#seite { height: 100%; display: grid; grid-template-columns: 220px minmax(320px, 420px) 1fr; }
#leiste { padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--linie); }
.kopf { display: flex; align-items: center; gap: 8px; font-size: 17px; padding: 0 8px; }
#apps { display: grid; gap: 2px; flex: 1; align-content: start; }
#apps button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 12px; background: none; text-transform: capitalize; }
#apps button[aria-current="true"] { background: var(--papier); font-weight: 600; box-shadow: var(--schatten); }
.zahl { font-size: 12px; font-weight: 700; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--offen); color: #fff; text-align: center; }
.zahl.null { background: transparent; color: var(--leise); font-weight: 500; }
.fuss { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--leise); padding: 0 8px; }

#mitte { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--linie); }
#mitte header { padding: 20px 18px 12px; display: grid; gap: 12px; }
#titel { font-size: 22px; letter-spacing: -.01em; text-transform: capitalize; }
#filter { display: flex; gap: 6px; flex-wrap: wrap; }
#filter button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linie); background: none; font-size: 13px; font-weight: 600; color: var(--leise); }
#filter button[aria-selected="true"] { background: var(--tinte); color: var(--grund); border-color: transparent; }
#liste { overflow: auto; padding: 4px 12px 24px; display: grid; gap: 8px; align-content: start; flex: 1; }
.karte { display: grid; grid-template-columns: 1fr auto; gap: 12px; text-align: left; width: 100%; padding: 12px 14px; border-radius: 18px; border: 1px solid transparent; background: var(--gehoben); }
.karte[aria-current="true"] { background: var(--papier); border-color: var(--linie); box-shadow: var(--schatten); }
.karte .wer { font-size: 12px; color: var(--leise); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.karte .wer b { color: var(--tinte); }
.karte .worte { margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.karte .worte.stimme { color: var(--leise); font-style: italic; }
.karte img { width: 44px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--linie); background: var(--linie); }
.punkt { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--offen); }
.punkt.in_progress { background: var(--arbeit); } .punkt.done { background: var(--fertig); }
.marke { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--linie); text-transform: capitalize; }
.leer { color: var(--leise); padding: 40px 20px; text-align: center; }

#detail { overflow: auto; min-width: 0; }
.blatt { max-width: 760px; margin: 0 auto; padding: 24px 28px 60px; display: grid; gap: 20px; }
.blatt .oben { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.blatt h3 { font-size: 20px; }
.blatt .meta { color: var(--leise); font-size: 13px; }
.text { font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.abschrift { padding: 12px 14px; border-radius: 16px; background: var(--gehoben); color: var(--leise); white-space: pre-wrap; }
.abschrift::before { content: "Sprachnachricht · "; font-weight: 600; }
audio { width: 100%; }
.bilder { display: flex; gap: 12px; flex-wrap: wrap; }
.bilder img, .bilder video { height: 420px; max-width: 100%; border-radius: 18px; border: 1px solid var(--linie); background: var(--linie); }
.bilder img { cursor: zoom-in; }
.kasten { background: var(--papier); border-radius: 20px; padding: 16px; display: grid; gap: 12px; box-shadow: var(--schatten); }
.kasten h4 { margin: 0; font-size: 13px; color: var(--leise); font-weight: 600; }
.wahl { display: flex; gap: 6px; flex-wrap: wrap; }
.wahl button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie); background: none; font-weight: 600; }
.wahl button[aria-pressed="true"].open { background: var(--offen); color: #fff; border-color: transparent; }
.wahl button[aria-pressed="true"].in_progress { background: var(--arbeit); color: #fff; border-color: transparent; }
.wahl button[aria-pressed="true"].done { background: var(--fertig); color: #fff; border-color: transparent; }
textarea { width: 100%; min-height: 64px; resize: vertical; font: inherit; color: inherit; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--linie); background: var(--gehoben); }
.zeile { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.hinweis { font-size: 12px; color: var(--leise); }
.kommentar { padding: 10px 12px; border-radius: 14px; background: var(--gehoben); white-space: pre-wrap; }
.kommentar small { display: block; color: var(--leise); margin-bottom: 2px; }
.weg { color: var(--rot); }
#zurueck { display: none; }

#gross { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: grid; place-items: center; cursor: zoom-out; z-index: 10; }
#gross img { max-width: 96vw; max-height: 96vh; border-radius: 12px; }

@media (max-width: 1000px) {
  #seite { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  #leiste { flex-direction: row; align-items: center; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--linie); overflow-x: auto; }
  #apps { display: flex; flex: 1; } #apps button { width: auto; white-space: nowrap; } .fuss span { display: none; }
  #mitte { border-right: 0; }
  #detail { position: fixed; inset: 0; background: var(--grund); z-index: 5; display: none; }
  #seite.offen #detail { display: block; }
  #zurueck { display: inline-flex; }
  .blatt { padding: 16px 16px 60px; } .bilder img, .bilder video { height: auto; max-height: 70vh; }
}
