/* KI-Welt Web Tools – im hellen KI-Welt-Stil */
.kwt { width: 100%; text-align: left; font-family: var(--kw-font-body, 'Plus Jakarta Sans', sans-serif); color: #111; }
.kwt *, .kwt *::before, .kwt *::after { box-sizing: border-box; }
.kwt [hidden] { display: none !important; }
.kwt-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.kwt-panel { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid rgba(17, 17, 17, .08); box-shadow: 0 1px 2px rgba(17, 17, 17, .04); }
.kwt-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: #f5f5f5; border: 1px solid rgba(17, 17, 17, .06); }
.kwt-tab { flex: 1 1 auto; padding: 10px 14px; border: 0; border-radius: 10px; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; color: rgba(17, 17, 17, .6); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.kwt-tab:hover { color: #111; }
.kwt-tab.is-active { background: #fff; color: #111; box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 4px 12px rgba(17, 17, 17, .06); }
.kwt-field { display: flex; flex-direction: column; gap: 7px; }
.kwt-label { font-size: 13px; font-weight: 600; color: #111; }
.kwt-hint-inline { font-weight: 500; color: rgba(17, 17, 17, .5); }
.kwt-input, .kwt-select, .kwt-textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(17, 17, 17, .12); background: #fff; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.4; color: #111; outline: none; transition: border-color .2s, box-shadow .2s; }
.kwt-textarea { min-height: 110px; resize: vertical; }
.kwt-input:focus, .kwt-select:focus, .kwt-textarea:focus { border-color: #1a9bff; box-shadow: 0 0 0 4px rgba(26, 155, 255, .15); }
.kwt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kwt-color { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid rgba(17, 17, 17, .12); background: #fff; font-size: 14px; font-weight: 500; }
.kwt-color input[type="color"] { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: none; cursor: pointer; }
.kwt-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.kwt-color input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(17, 17, 17, .12); border-radius: 9px; }
.kwt-range { width: 100%; accent-color: #1a9bff; }
.kwt-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.kwt-check input { width: 18px; height: 18px; accent-color: #1a9bff; }
.kwt-preview { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px; border-radius: 20px; background-color: #fff; background-image: radial-gradient(rgba(17, 17, 17, .07) 1px, transparent 1px); background-size: 18px 18px; border: 1px solid rgba(17, 17, 17, .08); position: sticky; top: 110px; }
.kwt-qr-frame { padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 2px 6px rgba(17, 17, 17, .05), 0 24px 60px rgba(17, 17, 17, .12); }
.kwt-qr-canvas { display: block; width: 300px; max-width: 100%; height: auto; aspect-ratio: 1 / 1; image-rendering: pixelated; border-radius: 6px; }
.kwt-qr-status { margin: 0; font-size: 13px; font-weight: 500; text-align: center; color: rgba(17, 17, 17, .56); }
.kwt-qr-status.is-ok { color: #1f9a45; }
.kwt-qr-status.is-warn { color: #c2410c; }
.kwt-qr-status.is-error { color: #dc2626; }
.kwt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kwt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border: 0; border-radius: 999px; background: #111; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px rgba(17, 17, 17, .18); transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .25s, opacity .25s; }
.kwt-btn:hover { transform: translateY(-2px); background: #2a2a2a; }
.kwt-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.kwt-btn--orange { background: #ff4d24; box-shadow: 0 8px 20px rgba(255, 77, 36, .3); }
.kwt-btn--orange:hover { background: #ff6a47; }
.kwt-btn--ghost { background: #f5f5f5; color: #111; box-shadow: none; border: 1px solid rgba(17, 17, 17, .08); }
.kwt-btn--ghost:hover { background: #ededed; }
.kwt-privacy { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 12px; font-weight: 500; color: rgba(17, 17, 17, .5); }
.kwt-privacy::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fc25b; box-shadow: 0 0 0 4px rgba(47, 194, 91, .15); }

.kwt-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 230px; padding: 32px 20px; border-radius: 20px; border: 2px dashed rgba(17, 17, 17, .15); background-color: #fff; background-image: radial-gradient(rgba(17, 17, 17, .06) 1px, transparent 1px); background-size: 18px 18px; text-align: center; cursor: pointer; transition: border-color .25s, background-color .25s, transform .3s; }
.kwt-drop:hover, .kwt-drop.is-over { border-color: #1a9bff; background-color: rgba(26, 155, 255, .04); }
.kwt-drop.is-over { transform: scale(1.01); }
.kwt-drop-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #1a9bff; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px rgba(26, 155, 255, .35); }
.kwt-drop-icon svg { width: 26px; height: 26px; }
.kwt-drop-title { margin: 6px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -.03em; color: #111; }
.kwt-drop-sub { margin: 0; font-size: 13px; color: rgba(17, 17, 17, .55); }
.kwt-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kwt-settings { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; padding: 18px; border-radius: 18px; background: #f5f5f5; border: 1px solid rgba(17, 17, 17, .06); }
.kwt-results { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kwt-result { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 16px; background: #fff; border: 1px solid rgba(17, 17, 17, .08); }
.kwt-thumb { width: 56px; height: 56px; border-radius: 11px; object-fit: cover; background: #f5f5f5; }
.kwt-res-info { min-width: 0; }
.kwt-res-name { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwt-res-meta { margin: 2px 0 0; font-size: 12px; color: rgba(17, 17, 17, .55); }
.kwt-res-meta strong { color: #111; }
.kwt-res-loading { grid-column: 1 / -1; padding: 10px; font-size: 13px; color: rgba(17, 17, 17, .55); }
.kwt-res-loading.is-error { color: #dc2626; }
.kwt-badge { padding: 7px 10px; border-radius: 999px; background: rgba(47, 194, 91, .14); color: #1f9a45; font-size: 12px; font-weight: 700; white-space: nowrap; }
.kwt-badge.is-zero { background: #f5f5f5; color: rgba(17, 17, 17, .55); }
.kwt-res-dl { padding: 10px 14px; font-size: 13px; }
.kwt-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 14px 14px 20px; border-radius: 16px; background: #111; color: #fff; }
.kwt-summary-text { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.kwt-summary-text strong { color: #fff; }
.kwt-summary-text .kwt-save { color: #6ee7a0; }
.kwt-summary-actions { display: flex; gap: 8px; }
.kwt-summary .kwt-btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .15); }

.kwt-sig-wrap { position: relative; }
.kwt-sig-canvas { display: block; width: 100%; height: 260px; border-radius: 18px; border: 1px solid rgba(17, 17, 17, .1); background-color: #fff; background-image: linear-gradient(transparent calc(75% - 1px), rgba(17, 17, 17, .12) calc(75% - 1px), rgba(17, 17, 17, .12) 75%, transparent 75%); touch-action: none; cursor: crosshair; }
.kwt-sig-empty { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; text-align: center; font-size: 15px; font-weight: 500; color: rgba(17, 17, 17, .35); pointer-events: none; }
.kwt-swatches { display: flex; gap: 8px; }
.kwt-swatch { position: relative; width: 34px; height: 34px; cursor: pointer; }
.kwt-swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.kwt-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, .15); transition: box-shadow .2s; }
.kwt-swatch input:checked + span { box-shadow: 0 0 0 2px #1a9bff; }
.kwt-sig-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.kwt-text-area { min-height: 260px; font-size: 16px; line-height: 1.6; }
.kwt-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.kwt-op { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(17, 17, 17, .1); background: #fff; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; color: #111; cursor: pointer; transition: background .2s, color .2s, transform .25s; }
.kwt-op:hover { background: #111; color: #fff; transform: translateY(-1px); }
.kwt-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.kwt-count { padding: 8px 12px; border-radius: 999px; background: #f5f5f5; font-size: 13px; font-weight: 500; color: rgba(17, 17, 17, .6); }
.kwt-count b { color: #111; }
.kwt-text-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

.kwt-note { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; text-align: center; }
.kwt-note-title { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.04em; }
.kwt-note-text { margin: 0; max-width: 56ch; font-size: 15px; line-height: 1.6; color: rgba(17, 17, 17, .56); }

@media (max-width: 900px) {
  .kwt-grid { grid-template-columns: minmax(0, 1fr); }
  .kwt-preview { position: static; }
  .kwt-settings { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .kwt-panel, .kwt-preview { padding: 16px; }
  .kwt-result { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .kwt-thumb { width: 48px; height: 48px; }
  .kwt-res-dl { grid-column: 1 / -1; }
  .kwt-sig-canvas { height: 200px; }
}
