/*
 * NhTools – Basis der Tool-Seiten (/tools …) und der Tool-Bausteine (.nt-*). Vertrag: Tools/README.md Abschnitt 6.
 * Gestaltung: ruhiges Arbeitsblatt – helle Fläche, Haarlinien, Beschriftungen in Monoschrift, eine Akzentfarbe, keine
 * Schatten-Kacheln, keine Pillen, keine Animationen. Dunkelmodus über html.nh-dark (Cookie nh_theme).
 * Alle Regeln sind auf .nt-page bzw. .nt-tool begrenzt, damit nichts in Kopf- oder Fußzeile des Shops wirkt.
 */
.nt-page, .nt-tool {
    --nt-bg: #f4f5f7;
    --nt-surface: #ffffff;
    --nt-surface-2: #f0f2f5;
    --nt-text: #0f1729;
    --nt-muted: #5b6474;
    --nt-accent: #4338ca;
    --nt-accent-text: #ffffff;
    --nt-accent-soft: #eef0ff;
    --nt-border: #dde1e8;
    --nt-border-strong: #c3c9d4;
    --nt-radius: 6px;
    --nt-ok: #15803d;
    --nt-warn: #b45309;
    --nt-bad: #b91c1c;
    --nt-focus: #4338ca;
    --nt-mono: "NH Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
html.nh-dark .nt-page, html.nh-dark .nt-tool {
    --nt-bg: #121213;
    --nt-surface: #19191b;
    --nt-surface-2: #212124;
    --nt-text: #ececee;
    --nt-muted: #a1a1aa;
    --nt-accent: #9b9cfb;
    --nt-accent-text: #121213;
    --nt-accent-soft: #23233a;
    --nt-border: #2c2c31;
    --nt-border-strong: #3d3d44;
    --nt-ok: #4ade80;
    --nt-warn: #fbbf24;
    --nt-bad: #f87171;
    --nt-focus: #9b9cfb;
}

/* ---- Seite ------------------------------------------------------------------------------------------------------ */
/* Im Shop: Hintergrund des Shops (kein eigener grauer Block), Abstände knapp – die Seite sitzt im Inhaltsbereich des Themes */
.nt-page { background: transparent; color: var(--nt-text); padding: 1rem 0 2.5rem; font-size: 1rem; line-height: 1.55; }
/* Theme-Regeln für nackte Elemente neutralisieren (style.css: section mit 3,5rem Abstand, header mit Fläche und z-index 1020) */
.nt-page section, .nt-tool section { padding: 0; }
.nt-page header, .nt-tool header, .nt-page aside { position: static; z-index: auto; background: transparent; }
.nt-page ul, .nt-page ol { margin-bottom: 0; }
.nt-page *, .nt-page *::before, .nt-page *::after { box-sizing: border-box; }
.nt-wrap { max-width: 1560px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 4rem); }
/* volle Breite: aus dem 1200-px-Rahmen des Themes ausbrechen, die Breite bringt .nt-wrap mit */
main.page-main:has(.nt-page) { max-width: none; }
@media (min-width: 768px) { main.page-main:has(.nt-page) { padding-left: 0; padding-right: 0; } }
.nt-page a { color: var(--nt-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nt-page a:hover { text-decoration-thickness: 2px; }
.nt-page :focus-visible { outline: 2px solid var(--nt-focus); outline-offset: 2px; }
.nt-page h1, .nt-page h2, .nt-page h3 { color: var(--nt-text); letter-spacing: -.01em; }
.nt-label { font-family: var(--nt-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--nt-muted); }

.nt-crumbs { font-size: .85rem; color: var(--nt-muted); margin: 0 0 1.25rem; }
.nt-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.nt-crumbs li { display: inline-flex; gap: .5rem; align-items: center; }
.nt-crumbs li + li::before { content: "/"; color: var(--nt-border-strong); }
.nt-page .nt-crumbs a { color: var(--nt-muted); text-decoration: none; }
.nt-page .nt-crumbs a:hover { color: var(--nt-text); text-decoration: underline; }
.nt-crumbs [aria-current] { color: var(--nt-text); }

.nt-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 1rem; align-items: start; margin-bottom: 1.5rem; }
.nt-head__icon { grid-row: span 2; width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid var(--nt-border-strong); border-radius: var(--nt-radius); color: var(--nt-accent); background: var(--nt-surface); }
.nt-head h1 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); line-height: 1.12; margin: 0; font-weight: 700; }
.nt-head p { margin: .35rem 0 0; color: var(--nt-muted); max-width: 46rem; font-size: 1.05rem; }
.nt-head__meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .6rem; }
.nt-head--plain { grid-template-columns: minmax(0, 1fr); }
.nt-head--plain .nt-head__meta { grid-column: 1; }

/* Arbeitsfläche des Tools */
.nt-bench { background: var(--nt-surface); border: 1px solid var(--nt-border-strong); border-radius: var(--nt-radius); padding: 1.25rem; }
.nt-bench__foot { margin: .75rem 0 0; font-size: .85rem; color: var(--nt-muted); }

/* Anleitung + FAQ */
.nt-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2.5rem; }
.nt-info h2, .nt-section h2 { font-size: 1.2rem; font-weight: 650; margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--nt-border); }
.nt-steps { list-style: none; margin: 0; padding: 0; counter-reset: nt-step; }
.nt-steps li { counter-increment: nt-step; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .5rem; padding: .45rem 0; }
.nt-steps li::before { content: counter(nt-step, decimal-leading-zero); font-family: var(--nt-mono); font-size: .8rem; color: var(--nt-muted); padding-top: .15rem; }
.nt-faq details { border-bottom: 1px solid var(--nt-border); }
.nt-faq summary { cursor: pointer; list-style: none; padding: .75rem 2rem .75rem 0; font-weight: 600; position: relative; }
.nt-faq summary::-webkit-details-marker { display: none; }
.nt-faq summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font-family: var(--nt-mono); color: var(--nt-muted); }
.nt-faq details[open] summary::after { content: "–"; }
.nt-faq details p { margin: 0 0 .75rem; color: var(--nt-text); }
.nt-faq details p:last-child { margin-bottom: 1rem; }

/* Produkthinweis: eine ruhige Zeile mit Haarlinien, kein Kasten */
.nt-offer { margin-top: 2.5rem; padding: 1rem 0; border-top: 1px solid var(--nt-border-strong); border-bottom: 1px solid var(--nt-border-strong); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; justify-content: space-between; }
.nt-offer p { margin: 0; max-width: 44rem; }
.nt-offer .nt-label { display: block; margin-bottom: .2rem; }
.nt-page .nt-offer a { font-weight: 600; white-space: nowrap; }

/* Listen von Tools (Verwandte, Kategorie, Übersicht) */
.nt-section { margin-top: 2.5rem; }
.nt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--nt-border); }
.nt-list li { border-bottom: 1px solid var(--nt-border); }
.nt-page .nt-list a { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .15rem .75rem; padding: .8rem .25rem; text-decoration: none; color: var(--nt-text); min-height: 44px; }
.nt-page .nt-list a:hover { background: var(--nt-surface-2); }
.nt-page .nt-list a:hover .nt-list__name { text-decoration: underline; text-underline-offset: 3px; }
.nt-list .nt-icon { color: var(--nt-accent); margin-top: .15rem; grid-row: span 2; }
.nt-list__name { font-weight: 600; }
.nt-list__sum { color: var(--nt-muted); font-size: .92rem; }

/* Übersicht */
.nt-search { margin: 0 0 1.75rem; max-width: 34rem; }
.nt-search label { display: block; margin-bottom: .35rem; }
.nt-toc { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .95rem; }
.nt-cat { margin-top: 2.25rem; scroll-margin-top: 6rem; }
.nt-cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; justify-content: space-between; padding-bottom: .5rem; border-bottom: 1px solid var(--nt-border-strong); }
.nt-cat__head h2 { font-size: 1.25rem; margin: 0; display: flex; gap: .6rem; align-items: center; font-weight: 650; }
.nt-cat__head h2 .nt-icon { color: var(--nt-accent); }
.nt-page .nt-cat__head h2 a { color: var(--nt-text); text-decoration: none; }
.nt-page .nt-cat__head h2 a:hover { text-decoration: underline; }
.nt-cat__intro { color: var(--nt-muted); margin: .5rem 0 0; }
.nt-cat .nt-list { border-top: 0; }
.nt-empty { padding: 1rem 0; color: var(--nt-muted); }
.nt-page [hidden] { display: none !important; }

@media (min-width: 768px) {
    .nt-page { padding-top: .75rem; }
    .nt-bench { padding: 1.75rem; }
    .nt-info { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
    .nt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
    .nt-cat .nt-list, .nt-section .nt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .nt-section--related .nt-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Bausteine der Tools (.nt-tool) ------------------------------------------------------------------------------ */
.nt-tool { color: var(--nt-text); font-size: 1rem; line-height: 1.5; }
.nt-tool *, .nt-tool *::before, .nt-tool *::after { box-sizing: border-box; }
.nt-tool :focus-visible { outline: 2px solid var(--nt-focus); outline-offset: 2px; }
.nt-tool > * + * { margin-top: 1rem; }
.nt-tool h2, .nt-tool h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 .5rem; }
.nt-tool p { margin: 0 0 .5rem; }

.nt-card { background: var(--nt-surface); border: 1px solid var(--nt-border); border-radius: var(--nt-radius); padding: 1rem; }
.nt-bench .nt-card { background: var(--nt-surface-2); }
.nt-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.nt-row > .nt-field { flex: 1 1 12rem; }
.nt-row--end { justify-content: flex-end; }
.nt-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 768px) {
    .nt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.nt-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.nt-field > label, .nt-field > .nt-field__label { font-size: .85rem; font-weight: 600; color: var(--nt-text); }
.nt-hint { font-size: .82rem; color: var(--nt-muted); }

.nt-input, .nt-select {
    width: 100%; min-height: 44px; padding: .55rem .75rem; font: inherit; font-size: 1rem; color: var(--nt-text);
    background: var(--nt-surface); border: 1px solid var(--nt-border-strong); border-radius: var(--nt-radius);
}
textarea.nt-input { min-height: 7rem; resize: vertical; line-height: 1.45; }
.nt-input::placeholder { color: var(--nt-muted); opacity: .8; }
.nt-input:focus, .nt-select:focus { border-color: var(--nt-accent); outline: 2px solid var(--nt-accent-soft); outline-offset: 0; }
.nt-input[aria-invalid="true"] { border-color: var(--nt-bad); }
.nt-select { appearance: none; padding-right: 2.25rem; background-image: linear-gradient(45deg, transparent 50%, var(--nt-muted) 50%), linear-gradient(135deg, var(--nt-muted) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 52%, calc(100% - .75rem) 52%; background-size: .35rem .35rem; background-repeat: no-repeat; }
.nt-check { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; }
.nt-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--nt-accent); margin: 0; }
.nt-range { width: 100%; accent-color: var(--nt-accent); min-height: 44px; }

.nt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem;
    font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none;
    color: var(--nt-text); background: var(--nt-surface); border: 1px solid var(--nt-border-strong); border-radius: var(--nt-radius);
}
.nt-btn:hover { border-color: var(--nt-text); }
.nt-btn--primary { color: var(--nt-accent-text); background: var(--nt-accent); border-color: var(--nt-accent); }
.nt-btn--primary:hover { filter: brightness(1.08); border-color: var(--nt-accent); }
.nt-btn--ghost { background: transparent; border-color: transparent; color: var(--nt-accent); padding-left: .6rem; padding-right: .6rem; }
.nt-btn--ghost:hover { border-color: var(--nt-border-strong); }
.nt-btn--sm { min-height: 36px; padding: .35rem .7rem; font-size: .85rem; }
.nt-btn[disabled], .nt-btn[aria-busy="true"] { opacity: .6; cursor: default; }

.nt-output {
    display: block; width: 100%; margin: 0; padding: .85rem 1rem; font-family: var(--nt-mono); font-size: .88rem; line-height: 1.55;
    color: var(--nt-text); background: var(--nt-surface-2); border: 1px solid var(--nt-border); border-radius: var(--nt-radius);
    white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; overflow-x: auto; max-height: 32rem;
}
textarea.nt-output { min-height: 8rem; resize: vertical; }
.nt-copy { white-space: nowrap; }
.nt-note { font-size: .88rem; color: var(--nt-muted); margin: 0; }
.nt-error { color: var(--nt-bad); font-size: .95rem; margin: 0; padding-left: .75rem; border-left: 3px solid var(--nt-bad); }

.nt-stat { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.nt-stat__value { font-size: 2rem; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nt-stat__label { font-family: var(--nt-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--nt-muted); }

.nt-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--nt-border-strong); }
.nt-tabs [role="tab"] { font: inherit; font-size: .95rem; font-weight: 600; min-height: 44px; padding: .5rem 1rem; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--nt-muted); cursor: pointer; }
.nt-tabs [role="tab"][aria-selected="true"] { color: var(--nt-text); border-bottom-color: var(--nt-accent); }
.nt-tabs [role="tab"]:hover { color: var(--nt-text); }

.nt-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.nt-table th { text-align: left; font-family: var(--nt-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--nt-muted); font-weight: 500; padding: .5rem .6rem; border-bottom: 1px solid var(--nt-border-strong); }
.nt-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--nt-border); vertical-align: top; overflow-wrap: anywhere; }
.nt-table td.nt-mono, .nt-table .nt-mono { font-size: .86rem; }
@media (max-width: 640px) {
    .nt-table thead { display: none; }
    .nt-table tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--nt-border); }
    .nt-table td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem; border: 0; padding: .2rem 0; }
    .nt-table td::before { content: attr(data-label); font-family: var(--nt-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--nt-muted); padding-top: .15rem; }
}

.nt-kv { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); gap: .4rem 1.25rem; margin: 0; }
.nt-kv dt { font-family: var(--nt-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--nt-muted); padding-top: .2rem; }
.nt-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .nt-kv { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .nt-kv dd { margin-bottom: .5rem; } }

.nt-status { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.nt-status::before { content: ""; width: .6rem; height: .6rem; background: var(--nt-muted); flex: none; }
.nt-status--ok { color: var(--nt-ok); } .nt-status--ok::before { background: var(--nt-ok); }
.nt-status--warn { color: var(--nt-warn); } .nt-status--warn::before { background: var(--nt-warn); }
.nt-status--bad { color: var(--nt-bad); } .nt-status--bad::before { background: var(--nt-bad); }

.nt-stage { position: relative; width: 100%; height: 320px; border: 1px solid var(--nt-border-strong); border-radius: var(--nt-radius); background: var(--nt-surface-2); overflow: hidden; touch-action: manipulation; user-select: none; }
.nt-muted { color: var(--nt-muted); }
.nt-mono { font-family: var(--nt-mono); }
.nt-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nt-icon { flex: none; vertical-align: middle; }

/* Meldung unten (NhTools.toast) – ohne Bewegung */
.nt-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 1080; max-width: calc(100% - 32px); padding: .65rem 1rem; font-size: .95rem; color: #fff; background: #1b1f2a; border-radius: var(--nt-radius); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
html.nh-dark .nt-toast { color: #121213; background: #ececee; }

@media (prefers-reduced-motion: reduce) { .nt-page *, .nt-tool * { transition: none !important; animation: none !important; } }
.nt-more { margin-top: 1rem !important; }
.nt-section--first { margin-top: 0; }
.nt-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; justify-content: flex-end; }
.nt-actions--start { justify-content: flex-start; }
.nt-tool [hidden] { display: none !important; }
.nt-tool .nt-result > * + * { margin-top: 1rem; }
.nt-tool .nt-result > * { margin-bottom: 0; }
.nt-grid--stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: .75rem 1.5rem; }

/* Ruhigere Beschriftungen: Großbuchstaben/Monoschrift nur noch für Kennzahlen, nicht für Kopfzeilen und Listen */
.nt-head__meta .nt-label { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .875rem; }
.nt-head__meta { gap: .25rem 1rem; }
.nt-kv dt { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .875rem; padding-top: .05rem; }
.nt-table th { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 600; }

/* Einheitliche Abstände zwischen Feldgruppen in Karten */
.nt-card > * + *, .nt-tool fieldset > * + * { margin-top: 1rem; }
.nt-tool fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Handy: Bedienelemente mindestens 44 px, weniger Rand (Karte in Karte) */
@media (max-width: 600px) {
    .nt-btn--sm { min-height: 44px; padding: .5rem .8rem; }
    .nt-toc a { display: inline-flex; align-items: center; min-height: 44px; }
    .nt-faq summary { min-height: 44px; }
    .nt-tool summary { min-height: 44px; display: flex; align-items: center; }
    .nt-page .nt-crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
    .nt-bench { padding: .9rem; }
    .nt-bench .nt-card { padding: .75rem; }
    .nt-page { padding-top: .5rem; }
}
.nt-cat__head .nt-label { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .85rem; }

/* Shop-Theme (hw.css, nh-custom.css): „table thead th, table tbody td { padding: 1rem 1.5rem !important }“ und Kopfzeilen mit
   Fläche/Rundung zerreißen die Tool-Tabellen auf dem Handy – innerhalb .nt-tool mit höherem Gewicht zurücksetzen. */
.nt-tool table thead th, .nt-tool table tbody td, .nt-tool table tbody th, .nt-tool table tfoot td { padding: .5rem .6rem !important; vertical-align: top; }
.nt-tool table thead tr th { background-color: transparent; border-radius: 0 !important; }
.nt-tool table tbody tr:hover { background: transparent; }
.nt-tool .nt-table td { overflow-wrap: break-word; word-break: normal; }
@media (max-width: 640px) {
    .nt-tool table.nt-table tbody td { padding: .15rem 0 !important; }
    .nt-tool table.nt-table td::before { white-space: nowrap; }
    .nt-tool table:not(.nt-table) thead th, .nt-tool table:not(.nt-table) tbody td, .nt-tool table:not(.nt-table) tbody th { padding: .45rem .3rem !important; }
}
@media (max-width: 600px) {
    .nt-page .nt-more a, .nt-page .nt-head__meta a, .nt-page .nt-toc a { display: inline-flex; align-items: center; min-height: 44px; }
    .nt-toc { gap: 0 1.25rem; }
}
@media (max-width: 640px) {
    /* gestapelte Zelle mit mehreren Kindern (z. B. mehrere Adressen): Etikett links über alle Zeilen, Inhalt rechts */
    .nt-tool .nt-table td { row-gap: 0; }
    .nt-tool .nt-table td::before { grid-row: 1 / span 30; }
    .nt-tool .nt-table td > * { grid-column: 2; }
}
.nt-head__meta { align-items: center; }
@media (max-width: 640px) { .nt-tool .nt-table td { grid-template-columns: 5.25rem minmax(0, 1fr); } }

/* ---- Config-Generatoren (NhTools.generator, Tools-Welle 2) -------------------------------------------------------- */
.nt-gen__bar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; justify-content: space-between; }
.nt-gen__bar:empty { display: none; }
.nt-gen__preset { flex: 1 1 14rem; max-width: 24rem; }
.nt-gen__reset { margin-left: auto; }
.nt-tool .nt-gen__group > summary { font-weight: 650; font-size: 1.05rem; cursor: pointer; padding: .25rem 0; }
.nt-tool .nt-gen__group[open] > summary { margin-bottom: .5rem; }
.nt-gen__grid { display: grid; gap: 1.1rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: start; }
.nt-gen__field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.nt-gen__field--wide { grid-column: 1 / -1; }
.nt-gen__field > label:not(.nt-check) { font-size: .85rem; font-weight: 600; }
.nt-gen__field .nt-hint { margin: 0; line-height: 1.4; }
.nt-gen__key { align-self: flex-start; font-family: var(--nt-mono); font-size: .75rem; color: var(--nt-muted); background: none; padding: 0; overflow-wrap: anywhere; }
.nt-gen__err { margin: 0; font-size: .82rem; color: var(--nt-bad); }
.nt-gen__warn { border-left: 3px solid var(--nt-warn); padding: .25rem 0 .25rem .75rem; }
.nt-gen__warnline { margin: 0 0 .25rem; font-size: .92rem; }
.nt-gen__file { display: block; margin-bottom: .5rem; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.nt-gen__out { width: 100%; }
.nt-gen__card .nt-note { margin-top: .75rem; }
.nt-gen__form > * + *, .nt-gen__outs > * + * { margin-top: .75rem; }
.nt-gen__card .nt-note, .nt-faq details p { overflow-wrap: anywhere; }
/* Leiste ohne Vorlagen: nur der Zurücksetzen-Knopf, dann kein eigener Kasten */
.nt-gen__bar:not(:has(.nt-gen__preset)) { background: none; border: 0; box-shadow: none; padding: 0; }
/* Breite Bildschirme: Formular links, Vorschau rechts und beim Rollen sichtbar */
@media (min-width: 1200px) {
    .nt-tool.nt-gen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem); gap: 1rem 1.25rem; align-items: start; }
    .nt-tool.nt-gen > * { margin-top: 0; grid-column: 1 / -1; }
    .nt-tool.nt-gen > .nt-gen__form { grid-column: 1; }
    .nt-tool.nt-gen > .nt-gen__outs { grid-column: 2; position: sticky; top: 6.75rem; max-height: calc(100vh - 7.75rem); overflow-y: auto; overscroll-behavior: contain; }
    .nt-tool.nt-gen .nt-gen__out { max-height: calc(100vh - 20rem); }
}
