/* Ergänzungen zu letto-design.css für den Lizenzserver */

.lt-main { max-width: 1400px; margin: 0 auto; }
.lt-card h2 { font-size: 1.05rem; margin: 0 0 8px; }
.lt-hilfe { color: var(--lt-muted); font-size: .85rem; margin: 2px 0 8px; overflow-wrap: anywhere; }
.lt-hilfe .fa { color: var(--lt-primary); }
.lt-zahl { font-size: 1.8rem; font-weight: 600; }
.lt-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.lt-kacheln a { color: inherit; text-decoration: none; }
.lt-kacheln .lt-card { margin: 0; }
.lt-suche { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lt-suche input[type=search] { flex: 1 1 220px; min-width: 0; }
.lt-archiv { opacity: .65; }
.lt-badge-ok { background: #dcfce7; color: #166534; }
.lt-badge-warn { background: #fef3c7; color: #92400e; }
.lt-badge-error { background: #fee2e2; color: #991b1b; }
.lt-badge-muted { background: #f3f4f6; color: #4b5563; }
td.lt-num, th.lt-num { text-align: right; white-space: nowrap; }
.lt-code { font-family: Consolas, "Courier New", monospace; font-size: .78rem; word-break: break-all; }
textarea.lt-code { width: 100%; min-height: 70px; }
.lt-zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.lt-zweispaltig > .lt-card { margin: 0; }
details.lt-details > summary { cursor: pointer; color: var(--lt-primary); margin: 6px 0; }

/* Navigation in der Kopfzeile */
.lt-nav a.lt-btn.aktiv { background: #eff6ff; border-color: #bfdbfe; color: var(--lt-primary); }

@media (max-width: 1000px) {
    .lt-zweispaltig { grid-template-columns: minmax(0, 1fr); }
}

/* Handy: Tabellen mit class="lt-table lt-responsive" werden zu Karten, die Spaltenüberschrift steht in data-label */
@media (max-width: 700px) {
    table.lt-responsive, table.lt-responsive tbody, table.lt-responsive tr, table.lt-responsive td { display: block; width: auto; }
    table.lt-responsive thead, table.lt-responsive tr.lt-kopf { display: none; }
    table.lt-responsive tr { border: 1px solid var(--lt-border); border-radius: 8px; margin: 0 0 8px; padding: 4px 0; background: var(--lt-card); }
    table.lt-responsive td { display: flex; gap: 12px; justify-content: space-between; border-bottom: none; padding: 3px 10px; white-space: normal; }
    table.lt-responsive td::before { content: attr(data-label); font-weight: 600; color: var(--lt-muted); flex: 0 0 auto; }
    table.lt-responsive td[data-label=""]::before { content: none; }
    table.lt-responsive tr:hover > td { background: none; }
    table.lt-responsive tr:hover > td:first-child { box-shadow: none; }
    .lt-zahl { font-size: 1.4rem; }
}

/* Fieldset nur zum gemeinsamen Sperren der Felder - ohne Rahmen, darf schmäler als sein Inhalt werden (Handy) */
.lt-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
