/* Ergänzungen zu /shared/polarwolke.css, nur für die Werkzeug-Seite */
[hidden] { display: none !important; }
.hero { padding-bottom: 24px; }
.small { font-size: .9rem; }
.back { margin: 24px 0 8px; }
.back a { text-decoration: none; }

/* Übersicht */
.grid.tools { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.grid.tools .card { padding: 16px 18px; }
.card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.grid.tools .card p { margin-top: 4px; font-size: .9rem; }
.card.wide { margin-top: 8px; border-color: var(--accent); background: var(--accent-soft); }

/* Formular eines Werkzeugs */
.tool { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; align-items: end; margin-top: 16px; }
.tool label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.tool input[type=text], .tool input[type=date], .tool select {
    width: 100%; min-height: 44px; padding: 9px 12px; font: inherit; font-weight: 400; color: var(--text);
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.tool label.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; color: var(--text); }
.tool .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn { min-height: 44px; }
.btn:disabled { opacity: .6; cursor: progress; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Ergebnis */
.out { margin-top: 20px; }
.out > * + * { margin-top: 14px; }
.result { padding: 18px 20px; font-size: 1.25rem; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result strong { color: var(--accent); }
.note.err { border-color: var(--err); }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 16px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
tr + tr > * { border-top: 1px solid var(--line); }
thead th { border-bottom: 1px solid var(--line); }
th { font-size: .9rem; font-weight: 600; color: var(--muted); }
tbody th { width: 38%; min-width: 9em; }
.st-ok span { color: var(--ok); font-weight: 700; }
.st-warn span { color: #b26a00; font-weight: 700; }
.st-bad span { color: var(--err); font-weight: 700; }
@media (prefers-color-scheme: dark) { .st-warn span { color: #e3b341; } }
.cal th, .cal td { text-align: center; padding: 10px 6px; }
.cal tbody th { width: auto; min-width: 0; }
.cal .today { font-weight: 700; color: var(--accent); background: var(--accent-soft); }
pre { margin: 0; padding: 16px; overflow-x: auto; font: .88rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; }
.pw { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pw code { font-size: 1.05rem; }

/* Mehrzeilige Eingabe und Farbmuster (Ergänzungen 10.10.2026) */
.tool label.wide { grid-column: 1 / -1; }
.tool textarea {
    width: 100%; min-height: 132px; padding: 10px 12px; font: .95rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 400;
    color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; resize: vertical;
}
.swatch { display: block; border: 1px solid var(--line); border-radius: var(--radius); }

/* Formular "Werkzeug vorschlagen" unten auf der Übersicht */
.feedback { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Kurzerklärung mit Formel (Ergänzung 10.10.2026) */
.info { margin-top: 14px; padding: 12px 16px; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.info p { margin: 0; }
.info .formula { margin-top: 6px; font: .88rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); overflow-wrap: anywhere; }

/* Diagramme (SVG, Farben nur hier – die Seite erlaubt keine Inline-Styles) */
.plot { margin: 0; padding: 12px 12px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plot svg { display: block; width: 100%; height: auto; }
.plot text { font-size: 11px; fill: var(--muted); }
.plot .grid { stroke: var(--line); stroke-width: 1; }
.plot .frame { fill: none; stroke: var(--muted); stroke-width: 1; }
.plot .ref { stroke: var(--muted); stroke-width: 1; }
.plot path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.plot path.s1 { stroke: var(--accent); }
.plot path.s2 { stroke: #d9480f; }
.plot path.s3 { stroke: var(--ok); }
.plot figcaption { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.key { display: inline-block; width: 16px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.key.s1 { background: var(--accent); }
.key.s2 { background: #d9480f; }
.key.s3 { background: var(--ok); }
@media (prefers-color-scheme: dark) { .plot path.s2 { stroke: #ff922b; } .key.s2 { background: #ff922b; } }

/* Schaltbilder, Dreiecke, Blockbilder und Schieberegler (Ergänzung 10.10.2026) */
.sch svg { max-width: 620px; margin: 0 auto; }
.sch .w { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sch .c, .sch .pin { fill: var(--surface); stroke: var(--text); stroke-width: 2; }
.sch .m { fill: var(--surface); stroke: none; }
.sch .d, .sch .ah { fill: var(--text); stroke: none; }
.sch text { font-size: 13px; fill: var(--text); }
.sch text.val { fill: var(--accent); font-weight: 600; }
.sch .tri, .sch .box { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.sch .b0 { fill: #4dabf7; } .sch .b1 { fill: var(--ok); } .sch .b2 { fill: #f59f00; } .sch .b3 { fill: var(--err); }
.rng { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; align-items: center; }
.rng input[type=range] { width: 100%; min-height: 44px; accent-color: var(--accent); }

/* Aufklappbare Rubriken, Suchvorschlag, hervorgehobene Ergebniszeile (Ergänzung 11.10.2026) */
details.cat { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.cat > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 18px; cursor: pointer; list-style: none; }
details.cat > summary::-webkit-details-marker { display: none; }
details.cat > summary::before { content: "▸"; color: var(--accent); font-size: 1.1rem; transition: transform .15s; }
details.cat[open] > summary::before { transform: rotate(90deg); }
details.cat > summary h2 { flex: 1; margin: 0; font-size: 1.15rem; }
details.cat .count { min-width: 2.2em; padding: 2px 10px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; }
details.cat > .grid { padding: 4px 14px 16px; }
.card.none { margin-top: 16px; border-color: var(--accent); background: var(--accent-soft); }
.card.none p { margin: 0; }
tr.hit > * { background: var(--accent-soft); font-weight: 600; }
