/* ============================================================
   Vollmacht-Generator – Tool-spezifische Ergänzungen
   Baut auf invoice-generator.css auf (invgen-* Klassen).
   ============================================================ */

/* Vollmacht-Typ-Kacheln */
.al-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.al-type-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1.5px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.al-type-tile input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.al-type-tile:hover {
  border-color: var(--color-primary);
}

.al-type-tile:has(input:checked) {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.06), rgba(67, 56, 202, 0.02));
}

.al-type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.al-type-label {
  font-size: 13px;
  font-weight: var(--font-medium, 500);
  color: var(--text-primary);
  line-height: 1.3;
}

/* Live-Vorschau: Dokument-Darstellung */
.al-preview-card {
  background: var(--bg-primary, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.al-preview-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: var(--font-semibold, 600);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.al-preview {
  background: #fdfdfc;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  padding: 24px 26px;
  font-size: 13px;
  line-height: 1.6;
  color: #1f2937;
  min-height: 320px;
  max-height: 560px;
  overflow-y: auto;
}

.al-preview-heading {
  font-weight: var(--font-semibold, 600);
  font-size: 17px;
  color: #111827;
  text-align: center;
  margin-bottom: 20px;
}

.al-preview-body p {
  margin: 0 0 12px;
}

.al-preview-hint {
  font-size: 11px;
  font-style: italic;
  color: #9ca3af;
  margin: 16px 0 14px;
  line-height: 1.5;
}

.al-preview-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.al-preview-sign {
  margin-top: 22px;
  color: #6b7280;
}
