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

/* Kündigungstyp-Kacheln */
.tl-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.tl-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;
}

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

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

.tl-type-tile:has(input:checked) {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.06), rgba(220, 38, 38, 0.02));
}

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

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

/* Job-Warnhinweis (§ 623 BGB) */
.tl-job-warning {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tl-job-warning svg {
  flex-shrink: 0;
  color: #d97706;
  margin-top: 1px;
}

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

.tl-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;
}

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

.tl-preview-sender {
  font-size: 10.5px;
  color: #9ca3af;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.tl-preview-recipient {
  font-size: 12.5px;
  color: #374151;
  margin-bottom: 18px;
}

.tl-preview-meta {
  text-align: right;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
}

.tl-preview-subject {
  font-weight: var(--font-semibold, 600);
  font-size: 14px;
  color: #111827;
  margin-bottom: 14px;
}

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

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

/* Reason-Feld (außerordentliche Kündigung Fitnessstudio) */
#tl-reason-field {
  margin-top: 8px;
}

/* Frist-Hinweis Arbeitsverhältnis */
#tl-job-notice-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
}
