/* Vorlagen, Beispieldaten, Teilen (Link, QR-Code), Hinweis auf neue Version (js/ui/vorlagen.js). */

/* Anleitung im Bedienfeld */
.vl-anleitung .vl-titel { font-family: var(--schrift-titel); font-weight: 600; font-size: var(--gr-text); margin: 0 0 6px; }
.vl-text summary { list-style: none; border: 0; background: transparent; padding: 4px 0; min-height: 0; color: var(--accent); font-size: var(--gr-panel); }
.vl-text summary::-webkit-details-marker { display: none; }
.vl-text summary::before { content: '▸ '; }
.vl-text[open] summary::before { content: '▾ '; }
.vl-text[open] summary { margin-bottom: 4px; }
.vl-md { font-size: var(--gr-panel); line-height: 1.5; color: var(--text); }
.vl-md h3, .vl-md h4, .vl-md h5 { font-family: var(--schrift-titel); font-weight: 600; font-size: var(--gr-panel); margin: 12px 0 4px; color: var(--muted); }
.vl-md p { margin: 0 0 8px; }
.vl-md ol, .vl-md ul { margin: 0 0 8px; padding-left: 20px; }
.vl-md li { margin: 2px 0; }
.vl-md code { font-family: var(--schrift-mono); font-size: var(--gr-klein); background: var(--btn); border-radius: 4px; padding: 0 4px; }
.vl-md a { color: var(--accent); }

/* Listen in den Dialogen */
.vl-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.vl-eintrag { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.vl-text-kurz { flex: 1; display: grid; gap: 2px; min-width: 0; }
.vl-text-kurz .hinweis { margin: 0; }
.vl-sensoren { font-family: var(--schrift-mono); font-size: var(--gr-label); color: var(--muted); }
.vl-links { margin-right: auto; }
.dialog-knoepfe .vl-links + .vl-links { margin-right: 0; }

/* Vorlage exportieren */
.vl-feld { display: grid; gap: 4px; margin: 10px 0; font-size: var(--gr-panel); color: var(--muted); }
.vl-feld input, .vl-feld textarea { width: 100%; color: var(--text); font-family: var(--schrift-text) !important; }
.vl-feld textarea { font: inherit; font-family: var(--schrift-mono) !important; font-size: var(--gr-klein); background: var(--btn); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; resize: vertical; color: var(--text); }

/* Teilen */
.qr-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); gap: 20px; align-items: start; }
.qr-links { display: grid; gap: 8px; align-content: start; min-width: 0; }
.qr-links h3 { margin: 6px 0 0; }
.qr-links .segment { justify-self: start; }
.qr-link { width: 100%; font-size: var(--gr-klein) !important; }
.qr-linkzeile { margin: 0; }
.qr-laenge { font-family: var(--schrift-mono); font-size: var(--gr-klein); color: var(--muted); }
.qr-wahl { justify-self: start; max-width: 100%; }
.qr-rechts { display: grid; gap: 6px; justify-items: center; }
.qr-bild { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.qr-bild svg { width: 100%; height: auto; border-radius: 8px; image-rendering: pixelated; }
.qr-info { margin: 0; text-align: center; }
.qr-dialog.qr-gross { width: min(96vw, 96dvh); }
.qr-dialog.qr-gross .qr-raster { grid-template-columns: 1fr; }
.qr-dialog.qr-gross .qr-links { display: none; }
.qr-dialog.qr-gross .qr-bild { width: min(86vw, 78dvh); }
@media (max-width: 640px) {
  .qr-raster { grid-template-columns: 1fr; }
  .qr-rechts { max-width: 320px; justify-self: center; width: 100%; }
}

/* Neue Version */
.vl-update {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 10px; align-items: center;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); border-left: 4px solid var(--accent); border-radius: 12px;
  padding: 8px 10px 8px 14px; box-shadow: var(--shadow); font-size: var(--gr-panel);
}
