/* ==========================================================================
   AppDesigns · Formulare – Ergänzungen zu app.css
   ========================================================================== */

/* Farbpunkt für Kunden-Akzentfarbe */
.farbpunkt { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--c); margin-right: 10px; vertical-align: 0; box-shadow: inset 0 0 0 1px rgba(12, 17, 30, .12); }
.opt .farbpunkt { margin-right: 0; }

.tag-neu { background: var(--brand); color: var(--white); margin-left: 8px; }
.tabelle tr.ungelesen td:first-child .zeile-link { font-weight: 800; }
.tabelle td .status + .muted, .tabelle td .status + .fehlertext { display: block; margin-top: 2px; }

/* Zurück-Link im Label */
.label .zurueck { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.label .zurueck .i { width: 18px; height: 18px; }
.label .zurueck:hover { color: var(--brand-dark); }

/* Kunde bearbeiten */
.farbwahl { display: flex; gap: 10px; }
.farbwahl input[type="color"] { flex: none; width: 56px; padding: 4px; cursor: pointer; }
.farbwahl input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.farbwahl input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 10px; }
.farbwahl input[type="color"]::-moz-color-swatch { border: 0; border-radius: 10px; }
.label-text { display: block; color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.schalter { margin: 0; }
.schalter .i { width: 18px; height: 18px; }
.klein-schalter { min-height: 38px; font-size: 14px; margin: 0 0 12px; }
.grid-2.innen { gap: 0 12px; }
.logo-vorschau { display: inline-grid; place-items: center; min-width: 160px; min-height: 72px; padding: 12px 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: repeating-conic-gradient(#f3f6fa 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.logo-vorschau img { display: block; max-width: 220px; max-height: 64px; }
.speicherleiste { position: sticky; bottom: 16px; z-index: 5; margin-top: 0; padding: 12px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; }
.einbau-code {
  margin: 0 0 12px; padding: 16px 18px; overflow-x: auto;
  background: var(--ink); color: #e6ebf3; border-radius: var(--radius-sm);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre;
}
.knopf-stapel { display: grid; gap: 10px; justify-items: start; }
.knopf-stapel form { margin: 0; }

/* Formular-Baukasten */
.baukasten { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.feldliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feld-karte { padding: 18px 22px 4px; }
.card.feld-karte + .card { margin-top: 0; }
.feld-karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px -10px 14px 0; }
.feld-karte-knoepfe { display: flex; gap: 2px; }
.feld-karte-knoepfe .icon-btn:not([data-aktion="weg"]):hover { color: var(--ink); }
.icon-btn[disabled] { opacity: .3; cursor: default; background: transparent; }
.feld-karte-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.feld-karte-reihe .opt { min-height: 38px; font-size: 14px; padding: 0 14px; }
.feld-karte .feld { margin-bottom: 14px; }
.feld-karte input, .feld-karte textarea { min-height: 46px; padding: 9px 14px; font-size: 15px; }
.neu-feld { margin-top: 24px; }
.neu-feld .opt { min-height: 40px; font-size: 14px; padding: 0 14px; }
.neu-feld .opt .i { width: 16px; height: 16px; color: var(--brand); }
.baukasten-vorschau { position: sticky; top: 132px; }
.vorschau-rahmen { border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px 28px 28px; max-height: calc(100vh - 160px); overflow: auto; color: var(--ink); }
.vorschau-titel { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Eingang */
.angaben { margin: 0; }
.angaben > div { display: grid; grid-template-columns: minmax(120px, 32%) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.angaben > div:first-child { border-top: 0; padding-top: 0; }
.angaben dt { color: var(--muted); font-size: 15px; }
.angaben dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .baukasten { grid-template-columns: 1fr; }
  .baukasten-vorschau { position: static; }
  .vorschau-rahmen { max-height: none; }
}
@media (max-width: 720px) {
  .angaben > div { grid-template-columns: 1fr; gap: 2px; }
  .speicherleiste { border-radius: var(--radius); }
  .speicherleiste .btn { flex: 1 1 auto; }
  .feld-karte { padding: 14px 16px 2px; }
}
