/* Technikhilfe: kompaktes Werkzeuglayout, nur auf anleitungen-technik.html geladen. */
.th-page{--th-petrol:#245f66;--th-petrol-deep:#18454b;--th-ink:#252b33;--th-muted:#53616c;--th-line:#d9e3e5;--th-soft:#f4f7f7;--th-yellow:#ffde70;--th-yellow-deep:#c7a33a}
.th-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;margin:-1px}
.th-tool{max-width:760px;margin:20px auto 0;padding:0;color:var(--th-ink);scroll-margin-top:90px}
.th-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 20px;margin:0 0 14px}
.th-top h1{margin:0;font-size:clamp(26px,3.2vw,34px);line-height:1.1;letter-spacing:-.01em;color:var(--th-ink)}
.th-ways{display:flex;gap:16px;font-size:14px}
.th-ways a{color:var(--th-petrol);font-weight:650;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.th-tool #kb-ai-form{display:grid;gap:12px;margin:0;padding:18px;border:1px solid var(--th-line);border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(37,43,51,.05)}
.th-tool #kb-ai-form label.th-ask{display:block;margin:0;font-size:18px;font-weight:700;color:var(--th-ink)}
.th-tool #kb-question{display:block;width:100%;box-sizing:border-box;min-height:64px;margin:0;padding:12px 14px;font:inherit;font-size:17px;line-height:1.4;color:var(--th-ink);border:2px solid var(--th-petrol);border-radius:10px;background:#fff;resize:vertical}
.th-tool #kb-question::placeholder{color:#6b7882}
.th-mode{display:inline-flex;justify-self:start;margin:0;padding:3px;border:1px solid var(--th-line);border-radius:999px;background:var(--th-soft);min-width:0}
.th-tool #kb-ai-form .th-mode label{display:block;margin:0;font-size:14px;font-weight:650;cursor:pointer}
.th-tool #kb-ai-form .th-mode label{position:relative}
.th-tool #kb-ai-form .th-mode input[type=radio]{position:absolute;inset:auto;left:0;top:50%;width:1px;min-width:0;height:1px;min-height:0;margin:0;padding:0;border:0;opacity:0}
.th-mode span{display:block;padding:7px 14px;border-radius:999px;color:var(--th-muted)}
.th-mode input:checked+span{background:#fff;color:var(--th-ink);box-shadow:inset 0 -3px 0 var(--th-yellow),0 1px 2px rgba(37,43,51,.12)}
.th-mode input:focus-visible+span{outline:3px solid var(--th-petrol);outline-offset:2px}
.th-device{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:10px 12px;padding:12px;border-radius:10px;background:var(--th-soft)}
.th-tool #kb-ai-form .th-device label{display:grid;gap:4px;margin:0;font-size:14px;font-weight:650;color:var(--th-ink)}
.th-device label span{font-weight:400;color:var(--th-muted)}
.th-device select,.th-device input{width:100%;box-sizing:border-box;min-height:44px;padding:8px 10px;font:inherit;font-size:15px;border:1px solid #b9c6c9;border-radius:8px;background:#fff;color:var(--th-ink)}
.th-hint{grid-column:1/-1;margin:0;font-size:13px;color:var(--th-muted)}
.th-examples{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 14px}
.th-examples:empty{display:none}
.th-examples button{padding:2px 0;border:0;background:none;color:var(--th-petrol);font:inherit;font-size:14px;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.th-tool .kb-observation-details{margin:0;border:0;padding:0;background:none}
.th-tool .kb-observation-details>summary{font-size:14px;color:var(--th-petrol);font-weight:650;cursor:pointer}
.th-tool #kb-ai-form .th-consent{display:flex;gap:10px;align-items:flex-start;margin:0;font-size:14px;font-weight:400;line-height:1.45;color:var(--th-ink)}
.th-consent input{width:20px;height:20px;flex:none;margin:1px 0 0;accent-color:var(--th-petrol)}
.th-consent a{color:var(--th-petrol)}
.th-consent small{display:block;margin-top:2px;font-size:13px;color:var(--th-muted)}
.th-submit{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px}
.th-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:12px 24px;border:0;border-radius:10px;background:var(--th-petrol);color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.th-primary:hover:not(:disabled){background:var(--th-petrol-deep)}
.th-primary:focus-visible{outline:3px solid var(--th-yellow-deep);outline-offset:3px}
.th-primary:disabled{background:#8fa3a6;cursor:not-allowed}
.th-submit>a{font-size:14px;color:var(--th-muted);text-decoration:underline;text-underline-offset:3px}
.th-tool .th-status{margin:10px 2px 0;padding:0;border:0;background:none;font-size:14px;line-height:1.45;color:var(--th-muted)}
.th-tool .th-status[data-state=ready],.th-tool .th-status[data-state=done]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
.th-tool .th-status[data-state=warning]{color:#8a1f1f;font-weight:650}
.th-tool .th-status a{color:var(--th-petrol);font-weight:650}
/* Ergebnis und Rückfrage */
.th-tool .th-result{display:grid;gap:14px;margin:0;padding:20px;border:1px solid var(--th-line);border-radius:12px;background:#fff;scroll-margin-top:90px}
.th-tool .th-result:focus{outline:none}
.th-tool .th-result:focus-visible{outline:3px solid var(--th-petrol);outline-offset:3px}
.th-tool .th-result>*{margin:0}
.th-tool .kb-answer-heading{display:grid;gap:4px}
.th-tool .kb-answer-heading h2{margin:0;font-size:22px;line-height:1.2;color:var(--th-ink)}
.th-tool .kb-answer-tag{order:2;justify-self:start;padding:0;background:none;font-size:13px;font-weight:650;color:var(--th-petrol);letter-spacing:0;text-transform:none}
.th-tool .th-result #kb-answer-text{font-size:17px;line-height:1.55;color:var(--th-ink)}
.th-tool .th-result[data-status=needs_details] #kb-answer-text{font-size:15px;color:var(--th-muted)}
.th-tool .kb-follow-up{display:grid;gap:10px;margin:0;padding:0;border:0;background:none}
.th-tool .kb-follow-up h2{margin:0;font-size:22px;line-height:1.25;color:var(--th-ink);scroll-margin-top:90px}
.th-tool .kb-follow-up h2:focus{outline:none}
.th-tool .kb-follow-up>p{margin:0;font-size:15px;color:var(--th-muted)}
.th-tool .kb-follow-up label{font-size:14px;font-weight:650;margin:0}
.th-tool .kb-follow-up input{width:100%;box-sizing:border-box;min-height:50px;padding:10px 14px;font:inherit;font-size:18px;border:2px solid var(--th-petrol);border-radius:10px;scroll-margin-top:140px}
.th-tool .kb-follow-up-options{display:flex;flex-wrap:wrap;gap:8px}
.th-tool .kb-follow-up-options button:not(.th-primary){min-height:44px;padding:9px 14px;border:1px solid #b9c6c9;border-radius:10px;background:#fff;color:var(--th-ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer;text-align:left}
.th-tool .kb-follow-up-options button:not(.th-primary):hover{border-color:var(--th-petrol)}
.th-tool .kb-follow-up-options .kb-choice-unknown{border-style:dashed!important;color:var(--th-muted)!important;font-weight:500!important}
.th-tool .th-code-actions{align-items:center;gap:10px 18px}
.th-tool .th-code-actions .kb-choice-unknown{min-height:auto!important;padding:6px 0!important;border:0!important;background:none!important;text-decoration:underline;text-underline-offset:3px}
.th-tool .kb-request-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:10px 14px;border:0;border-left:3px solid var(--th-yellow);border-radius:4px;background:var(--th-soft)}
.th-tool .th-result .kb-request-summary{margin:0}
.th-tool .kb-request-summary strong{display:block;font-size:12px;font-weight:650;color:var(--th-muted);text-transform:none;letter-spacing:0}
.th-tool .kb-request-summary p{margin:0;font-size:15px;color:var(--th-ink);overflow-wrap:anywhere}
.th-tool .kb-request-summary small{display:block;font-size:13px;color:var(--th-muted)}
.th-tool .kb-request-summary>button{flex:none;padding:6px 0;border:0;background:none;color:var(--th-petrol);font:inherit;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.th-tool #kb-answer-steps{margin:0;padding-left:22px}
.th-tool #kb-answer-sources{margin:0;padding:12px 14px;border-radius:10px;background:var(--th-soft)}
.th-tool #kb-answer-sources h4{margin:0 0 6px;font-size:14px}
.th-tool .kb-answer-limit{font-size:13px;color:var(--th-muted)}
.th-tool .th-result[data-status=needs_details] .kb-answer-limit{display:none}
.th-tool .th-result[data-status=safety_stop]{border:2px solid #b42318;background:#fff7f5}
.th-tool .th-result[data-status=safety_stop] .kb-answer-heading h2{color:#8a1f1f}
.th-danger.kb-danger{max-width:760px;box-sizing:border-box;margin:14px auto 40px;padding:10px 14px;border:0;border-left:4px solid #b42318;border-radius:4px;background:#fff7f5;font-size:14px;line-height:1.45}
.th-danger.kb-danger strong{display:block;font-size:14px;color:#8a1f1f}
.th-danger.kb-danger p{margin:2px 0 0;font-size:14px;color:var(--th-ink)}
@media (max-width:720px){
 .th-tool{margin-top:12px;scroll-margin-top:72px}
 .th-top{margin-bottom:10px}
 .th-top h1{font-size:26px}
 .th-ways{gap:12px;font-size:13px}
 .th-tool #kb-ai-form{padding:14px;gap:11px;border-radius:10px}
 .th-device{grid-template-columns:1fr;padding:10px}
 .th-primary{width:100%}
 .th-submit{gap:8px}
 .th-tool .th-result{padding:16px;scroll-margin-top:72px}
 .th-tool .kb-follow-up h2,.th-tool .kb-answer-heading h2{font-size:20px}
 .th-tool .kb-request-summary{align-items:flex-start}
 .th-tool .th-code-actions .th-primary{width:100%}
}
@media (max-width:360px){.th-mode span{padding:7px 11px}.th-tool #kb-ai-form{padding:12px;gap:7px}}
.th-tool .kb-follow-up-options button.th-primary{min-height:50px;padding:12px 24px;border:0;border-radius:10px;background:var(--th-petrol);color:#fff;font-size:16px;font-weight:700}
.th-tool .kb-follow-up-options button.th-primary:hover{background:var(--th-petrol-deep)}
.th-tool #kb-ai-form .th-consent span{color:var(--th-ink)}
.th-tool .kb-observation-details>summary{padding:0;margin:0;list-style-position:inside}
.th-tool .kb-observation-details[open]>summary{margin-bottom:8px}
.th-danger.kb-danger{display:block}
.th-tool #kb-ai-form .th-device label>span{display:inline;font-size:13px}
.th-device{align-items:start}
.th-tool .th-device select,.th-tool .th-device input{height:44px;margin:0}
.th-tool .th-result:focus-visible,.th-tool .th-result:focus{outline:none;box-shadow:none}
.th-tool .th-result #kb-answer-steps li{margin:0 0 6px;font-size:16px;line-height:1.5}
.th-tool .th-result #kb-answer-text{margin:0}
.th-device{align-items:end}

/* Einführung und Formular teilen sich auf großen Bildschirmen eine Zeile. */
.th-page .th-tool {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: clamp(22px, 3.4vw, 56px);
  max-width: 1120px;
  margin: clamp(16px, 2vw, 32px) auto 0;
}
.th-intro { min-width: 0; }
.th-intro .th-rubrik { font-size: 14px; font-weight: 650; color: #245f66; text-underline-offset: 3px; }
.th-intro h1 { margin: 8px 0 12px; color: #252b33; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
.th-intro .th-lead { margin: 0 0 10px; color: #26383b; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.42; }
.th-intro .th-explain { margin: 0; color: #485960; font-size: 16px; line-height: 1.5; }
.th-intro figure { margin: 18px 0 0; }
.th-intro figure img { display: block; width: 100%; max-height: 185px; object-fit: cover; object-position: 55% 57%; border-radius: 9px; }
.th-intro figcaption { margin: 4px 0 0; color: #53616c; font-size: 12px; line-height: 1.35; }
.th-intro figcaption a { color: inherit; text-underline-offset: 2px; }
.th-form-column { min-width: 0; }
.th-page .th-tool #kb-ai-form { padding: clamp(16px, 2vw, 28px); border-top: 3px solid #2b646a; background: #fafcfb; }
.th-page .th-tool .th-ways { flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.th-page .th-danger.kb-danger { max-width: 1120px; margin: 24px auto 40px; }
.th-tool:has(#kb-ai-form[hidden]) { display: block; max-width: 780px; }
.th-tool:has(#kb-ai-form[hidden]) .th-intro { display: none; }
@media (max-width: 760px) {
  .th-page .th-tool { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 12px; }
  .th-intro { padding-left: 12px; border-left: 3px solid #efc34f; }
  .th-intro h1 { margin: 4px 0 8px; font-size: 32px; }
  .th-intro .th-lead { margin-bottom: 5px; font-size: 17px; line-height: 1.35; }
  .th-intro .th-explain { font-size: 15px; line-height: 1.4; }
  .th-intro figure { display: none; }
  .th-page .th-tool #kb-ai-form { padding: 14px; }
  .th-page .th-danger.kb-danger { margin-top: 16px; }
}
.th-beta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin: 12px 0 0; padding: 8px 12px; border: 1px solid #ead9a4; border-radius: 8px; background: #fdf6df; color: #3b3a2c; font-size: 15px; line-height: 1.4; }
.th-beta b { padding: 1px 8px; border-radius: 999px; background: #efc34f; color: #252b33; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.th-beta a { color: #1d5158; font-weight: 650; text-underline-offset: 3px; }
