/* Ergänzungen zum Hauptdesign (style.css der Hauptdomain) für die Tool-Seiten. */

.tool-meta { color: var(--color-muted); font-size: 0.9rem; margin: 0.4rem 0; }

.tool-page { padding: 2.5rem 0 3.5rem; border-bottom: 1px solid var(--color-border); }
.tool-page h1 { font-size: 1.9rem; margin: 0 0 0.6rem; }
.tool-page .lead { color: var(--color-muted); max-width: 46rem; margin: 0 0 1.8rem; }

.tool-form { border: 1px solid var(--color-border); border-radius: 6px; padding: 1.5rem; max-width: 46rem; background: var(--color-accent-light); }
.tool-form .form-group:last-of-type { margin-bottom: 0.5rem; }
.tool-form input[type="file"], .tool-form select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}
.tool-form .hint { color: var(--color-muted); font-size: 0.9rem; margin: 0.3rem 0 0; }
.tool-form .btn { margin-top: 0.5rem; }

.result-bar { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; align-items: center; justify-content: space-between; margin: 0 0 1rem; }
.result-bar .meta { color: var(--color-muted); font-size: 0.9rem; margin: 0; }
.result-bar .actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-secondary { background: #fff; color: var(--color-accent); border: 1px solid var(--color-accent); margin-top: 0; }
.btn-secondary:hover { background: var(--color-accent-light); }
.btn.btn-small { margin-top: 0; padding: 0.5rem 1rem; }

.result-frame { width: 100%; height: 78vh; min-height: 520px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; }

.privacy-note { max-width: 46rem; font-size: 0.9rem; color: var(--color-muted); margin-top: 1.2rem; }
.privacy-note strong { color: var(--color-text); }

.tool-links { margin-top: 2rem; font-size: 0.9rem; color: var(--color-muted); }

/* Validator-Tools: Ergebnisseite */
.alert-info { background: var(--color-accent-light); color: var(--color-text); border: 1px solid #c4d7dd; }
.verdict { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0.5rem 0 1.5rem; }
.verdict-text { font-size: 1.1rem; font-weight: 600; }
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.9rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge-valid { background: #e6f4ea; color: #1e4620; border-color: #b7dfc0; }
.badge-invalid { background: #fdecea; color: #611a15; border-color: #f5c6c2; }
.badge-warn { background: #fff4e0; color: #6b4300; border-color: #f1d49b; }
.badge-neutral { background: #eef0f1; color: #3b4348; border-color: #d5d9db; }
.res-h { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.res-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-bottom: 0.5rem; }
.res-table th, .res-table td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.res-table th { font-weight: 600; width: 14rem; }
.res-table.msgs { table-layout: fixed; }
.res-table.msgs th { width: auto; background: var(--color-accent-light); }
.res-table.msgs th:nth-child(1) { width: 7rem; }
.res-table.msgs th:nth-child(3) { width: 18%; }
.res-table.msgs td { overflow-wrap: anywhere; }
.res-table.msgs td.loc { color: var(--color-muted); font-size: 0.8rem; }
.res-table code { font-size: 0.85rem; }
.res-counts { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin: 0 0 0.8rem; }
.msg-group { margin-bottom: 1rem; border: 1px solid var(--color-border); border-radius: 6px; padding: 0.3rem 1rem 0.8rem; }
.msg-group summary { cursor: pointer; font-weight: 600; padding: 0.5rem 0; }
.actions.dl { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
@media (max-width: 640px) { .res-table th { width: auto; } .res-table.msgs th:nth-child(1) { width: 4.5rem; } .res-table.msgs th:nth-child(3) { width: 26%; } }
