/* Taglohn / Bauwochenbericht (ber-) und Unterschrift (unt-). */

/* ---- Dialog ----------------------------------------------------------- */

.ber-kopf { padding: 0 4px 16px; }

.ber-schritte { display: flex; align-items: center; gap: 6px; }

.ber-punkt {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; line-height: 1;
  background: var(--linie); color: var(--text2);
}
.ber-punkt.aktiv { background: var(--akzent); color: #fff; }
.ber-punkt.fertig { background: var(--gruen); color: #000; }

.ber-linie { flex: 1; height: 2px; border-radius: 1px; background: var(--linie); }
.ber-linie.fertig { background: var(--gruen); }

.ber-schritt-zeile { position: relative; margin-top: 6px; min-height: 28px; display: flex; align-items: center; justify-content: center; }
.ber-schritt-text { font-size: 12px; color: var(--text2); text-align: center; padding: 0 76px; }
.ber-menue {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font: inherit; font-size: 13px; color: var(--akzent);
  background: none; border: 1px solid var(--linie); border-radius: 999px;
  padding: 4px 12px; cursor: pointer;
}

/* ---- Formularzeilen ---------------------------------------------------- */

.ber-knopf[hidden], .ber-hinweis[hidden], .unt-platzhalter[hidden] { display: none !important; }

.ber-hinweis { padding: 8px 14px; font-size: 13px; line-height: 1.35; color: var(--text2); }
.ber-mitte { text-align: center; padding: 28px 16px; }

.ber-unter { display: block; font-size: 12px; font-weight: 400; color: var(--text2); margin-top: 2px; }
.ber-tag { display: block; }

.ber-text {
  display: block; width: 100%; box-sizing: border-box; min-height: 100px; resize: vertical;
  padding: 12px 14px; margin: 0; border: 0; border-radius: 0; outline: none;
  font: inherit; line-height: 1.4; color: var(--text); background: transparent;
}

input.ber-zeit { flex: none; width: 64px; min-width: 0; text-align: center; }
input.ber-kurz { flex: none; width: 64px; min-width: 0; text-align: right; }
.ber-strich-text { flex: none; padding: 0 6px; color: var(--text2); }

.ber-geraet { display: flex; align-items: center; gap: 8px; }
input.ber-geraet-name { flex: 1; min-width: 0; text-align: left; }

/* ---- Unterschrift im Dialog ------------------------------------------- */

.ber-sig { padding: 12px 14px 8px; }
.ber-sig-bild {
  display: block; width: 100%; max-height: 90px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 6px 0; box-sizing: border-box;
}
.ber-sig-art { margin-top: 6px; font-size: 12px; color: var(--text2); }
.ber-sig-art.gruen { color: var(--gruen); }

/* ---- Übersicht --------------------------------------------------------- */

.ber-vorschau-blatt {
  display: block; width: 100%; border: 0; background: #fff;
  border-radius: 6px; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  aspect-ratio: 814 / 1120;
}
.ber-vorschau-blatt.bauwoche { aspect-ratio: 1211 / 760; }

.ber-vorschau-blatt.ber-pdf { aspect-ratio: 595 / 842; }
.ber-vorschau-blatt.ber-pdf.bauwoche { aspect-ratio: 842 / 595; }
.ber-ansicht { margin-bottom: 12px; }

.ber-export { display: flex; gap: 10px; margin-top: 16px; }
.ber-export-knopf {
  flex: 1; min-height: 44px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--akzent);
  background: transparent; border: 1px solid var(--linie);
}
.ber-export-knopf.stark { background: var(--akzent); border-color: var(--akzent); color: #fff; }

/* ---- Entwürfe ---------------------------------------------------------- */

.ber-entwurf { display: flex; align-items: center; gap: 8px; }
.ber-entwurf-knopf {
  flex: 1; min-width: 0; text-align: left; padding: 0; cursor: pointer;
  font: inherit; color: var(--text); background: none; border: 0;
}
.ber-entwurf-titel { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ber-entwurf-loeschen {
  flex: none; padding: 6px 4px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--rot); background: none; border: 0;
}

/* ---- Unterschrift zeichnen -------------------------------------------- */

.unt-flaeche {
  position: relative; border-radius: 12px; overflow: hidden;
  background: var(--karte); border: 1px solid var(--linie);
}
.unt-canvas {
  display: block; width: 100%; aspect-ratio: 5 / 2;
  color: var(--text); cursor: crosshair;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.unt-platzhalter {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text2); opacity: 0.6; pointer-events: none;
}

.unt-leiste { display: flex; justify-content: flex-start; margin-top: 12px; }
.unt-knopf { font: inherit; padding: 6px 2px; background: none; border: 0; color: var(--akzent); cursor: pointer; }
.unt-knopf.rot { color: var(--rot); }

.unt-bisher { margin-top: 18px; }
.unt-bisher-titel { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.unt-bisher-bild {
  display: block; width: 100%; max-height: 90px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 6px 0; box-sizing: border-box;
}
