/* Bausteine, die in mehreren Bildschirmen vorkommen. */

/* ---- Marke ---- */
.marke { display: flex; align-items: center; gap: 6px; }
.wortmarke {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(to bottom,
    var(--liesi-mittel) 0%, var(--liesi-mittel) 57%,
    var(--benni-mittel) 57%, var(--benni-mittel) 100%);
}
.wortmarke.klein { font-size: 25px; }
.wortmarke.gross { font-size: 30px; }

/* ---- Kopfzeile ---- */
.kopf { display: flex; align-items: center; justify-content: space-between; }
.kopf .symbolknopf { margin-right: -10px; }

.symbolknopf {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0;
  color: var(--ink);
}

/* ---- Knöpfe ---- */
.knopf-haupt {
  width: 100%; padding: 16px; border: 0;
  border-radius: var(--r-mittel);
  background: var(--ink); color: var(--stein);
  font-weight: 600; font-size: 16px;
}
.knopf-haupt[disabled] { opacity: 0.45; }

.knopf-rand {
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--dashed); border-radius: var(--r-rund);
  background: transparent; color: var(--ink);
  font-weight: 600; font-size: 13px;
}
.knopf-rand.stark { border: 2px solid var(--ink); font-size: 14px; padding: 0 18px; }

.knopf-schlicht {
  min-height: 40px; padding: 0; border: 0; background: transparent;
  color: var(--muted); font-size: 13px; text-decoration: underline;
}

.knopf-plus {
  width: 50px; flex-shrink: 0; border: 0; border-radius: var(--r-mittel);
  background: var(--ink); color: var(--stein); font-size: 22px; line-height: 1;
}

/* ---- Auswahl-Pillen ---- */
.pille {
  min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: var(--r-rund);
  background: transparent; color: var(--ink);
  font-weight: 600; font-size: 14px;
}
.pille.is-aktiv { background: var(--ink); color: var(--stein); }
.pille.klein { min-height: 34px; padding: 0 12px; font-size: 13px; border-width: 1px; border-color: var(--dashed); }
.pille.klein.is-aktiv { border-color: var(--ink); }
.pille-reihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---- Eingabefelder ---- */
.feld {
  flex-grow: 1; min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-mittel);
  background: var(--karte); color: var(--ink); font-size: 16px;
}
.feld.schmal { padding: 11px 14px; }
.feld-reihe { display: flex; gap: 8px; }

/* ---- Karten ---- */
.karte {
  background: var(--karte);
  border: 1px solid var(--line);
  border-radius: var(--r-karte);
  padding: 16px 18px;
}
.karte.akzent { background: var(--akzent-ton); border-color: var(--akzent); }

/* ---- Personen ---- */
.punkt-farbe { width: 8px; height: 8px; border-radius: var(--r-rund); flex-shrink: 0; display: inline-block; }
.punkt-farbe.A { background: var(--liesi); }
.punkt-farbe.B { background: var(--benni); }

/* ---- Marken/Chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: var(--r-rund);
  font-size: 12px; color: var(--ink);
}
.chip.rand { border: 1px solid var(--dashed); }
.chip.faellig { background: var(--akzent-ton); font-weight: 700; }
.chip.uebernimmt { background: var(--track); font-weight: 600; }

/* ---- Notiz / Kommentar ---- */
.notiz {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--notiz); border-radius: var(--r-klein);
  padding: 9px 11px; font-size: 13px; line-height: 1.45; color: #45473F;
}
.notiz .wer { font-weight: 600; color: var(--ink); }

/* ---- Kästchen zum Abhaken ---- */
.haken-knopf {
  width: 44px; height: 44px; margin-left: -9px; flex-shrink: 0;
  background: transparent; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.haken {
  width: 26px; height: 26px; border-radius: var(--r-klein);
  border: 2px solid var(--dashed); background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.haken.A { background: var(--liesi); border-color: var(--liesi); }
.haken.B { background: var(--benni); border-color: var(--benni); }

/* ---- Untere Leiste ---- */
.leiste {
  position: sticky; bottom: 0;
  display: flex;
  background: var(--karte);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(16px + env(safe-area-inset-bottom));
}
.leiste a {
  flex: 1; min-height: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted);
  font-size: 12px; font-weight: 500;
}
.leiste a .kreis {
  position: relative; width: 56px; height: 30px; border-radius: var(--r-rund);
  display: flex; align-items: center; justify-content: center;
}
.leiste a.is-aktiv { color: var(--ink); font-weight: 700; }
.leiste a.is-aktiv .kreis { background: var(--akzent); }
.leiste .neu-punkt {
  position: absolute; top: 2px; right: 13px;
  width: 9px; height: 9px; border-radius: var(--r-rund);
  border: 2px solid var(--karte);
}

/* ---- Hinweis unten (Rückgängig, Fehler) ---- */
.melder {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(var(--leiste) + 14px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: var(--r-mittel);
  background: var(--ink); color: var(--stein); font-size: 14px;
  z-index: 20;
}
.melder button { border: 0; background: transparent; color: var(--stein); font-weight: 700; text-decoration: underline; min-height: 40px; padding: 0 10px; }

/* ---- Zustand des Abgleichs ---- */
.abgleich { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0 0; }

/* ---- Fotos ---- */
.foto-knopf {
  width: 48px; flex-shrink: 0;
  border: 1px solid var(--dashed); border-radius: var(--r-mittel);
  background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.foto-knopf .laedt { font-size: 20px; }

.anhang {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.anhang img { width: 54px; height: 42px; object-fit: cover; border-radius: var(--r-klein); border: 1px solid var(--line); }
.anhang button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 20px; }

.foto-vorschau {
  align-self: flex-start; padding: 0; border: 1px solid var(--line);
  border-radius: 10px; background: var(--track); overflow: hidden; line-height: 0;
}
.foto-vorschau img { width: 132px; height: 96px; object-fit: cover; display: block; }

.foto-gross {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(32, 35, 31, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.foto-gross img { max-width: 100%; max-height: 100%; border-radius: var(--r-mittel); }
.foto-gross .zu {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px;
  width: 44px; height: 44px; border: 0; border-radius: var(--r-rund);
  background: rgba(233, 235, 231, 0.15); color: var(--stein); font-size: 24px;
}

.chip.frage { background: var(--akzent-ton); border: 1px solid var(--akzent); }

/* ---- Schalter (an/aus) ---- */
.schalter {
  width: 46px; height: 28px; flex-shrink: 0;
  border-radius: var(--r-rund); background: var(--dashed);
  position: relative; transition: background 0.15s;
}
.schalter.is-an { background: var(--ink); }
.schalter .knauf {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: var(--r-rund);
  background: var(--karte); transition: left 0.15s;
}
.schalter.is-an .knauf { left: 21px; }

/* Datumsfeld („bis wann") */
.datum {
  min-height: 34px; padding: 0 10px;
  border: 1px solid var(--dashed); border-radius: var(--r-rund);
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 600;
}
