/* Deutsch-Wortschatz-Trainer: ergänzt /deutsch-a1-pruefung/da.css (gemeinsame Bausteine der Deutschprüfungen). */
.dw-stufen { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 5px; }
.dw-stufen button { flex: 1; border: 0; background: transparent; color: inherit; font: inherit; padding: 10px; border-radius: 12px; cursor: pointer; font-size: 1.05rem; }
.dw-stufen button.an { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.dw-akt { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.dw-akt .da-btn { padding: 14px 10px; }
.dw-themen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dw-thema { text-align: left; border: 1px solid var(--border); background: var(--surface); color: inherit; border-radius: 18px; padding: 14px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform .12s, border-color .12s; }
.dw-thema:hover { transform: translateY(-2px); border-color: #818cf8; }
.dw-thema .ic { font-size: 1.8rem; line-height: 1; } .dw-thema small { color: var(--muted, #64748b); font-size: .8rem; }
.dw-thema .da-bar i, .dw-fort i { background: linear-gradient(90deg, #34d399, #10b981); }
.dw-fort { flex: 1; }
.dw-tkopf { display: flex; gap: 14px; align-items: center; } .dw-tkopf .ic { font-size: 2.6rem; line-height: 1; } .dw-tkopf h2 { margin: 0; }
.dw-ziel { display: flex; gap: 8px; flex-wrap: wrap; }
.da-hb.an { background: #4f46e5; color: #fff; border-color: #4f46e5; }

.dw-liste { gap: 0; } .dw-liste > b { margin-bottom: 8px; }
.dw-zeile { border-top: 1px solid var(--border); } .dw-zeile:first-of-type { border-top: 0; }
.dw-zk { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; padding: 10px 2px; cursor: pointer; min-height: 46px; }
.dw-zk b { flex: none; max-width: 55%; } .dw-zk span[lang] { color: var(--muted, #64748b); font-size: .92rem; margin-left: auto; text-align: right; }
.dw-ze { width: 1.6em; text-align: center; flex: none; font-size: 1.15rem; }
.dw-punkt { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #cbd5e1; } .dw-punkt.lernt { background: #f59e0b; } .dw-punkt.sicher { background: #16a34a; }
.dw-st { flex: none; }
.dw-auf { padding: 0 0 12px; } .dw-auf[hidden] { display: none; }

.dw-wk { display: flex; flex-direction: column; gap: 10px; background: rgba(99,102,241,.07); border: 1px solid rgba(99,102,241,.25); border-radius: 16px; padding: 14px; }
.dw-wkopf { display: flex; gap: 14px; align-items: center; } .dw-wkopf > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dw-emo { font-size: 2.6rem; line-height: 1; flex: none; } .dw-emo.riesig { font-size: 5.5rem; }
.dw-wort { font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere; }
.dw-form { color: var(--muted, #64748b); font-size: .9rem; }
.dw-ueb { font-size: 1.05rem; color: #4338ca; font-weight: 700; }
.dw-satz { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.dw-satz mark { background: #fde68a; color: #1e1b4b; border-radius: 5px; padding: 0 3px; font-weight: 700; }
.dw-satz u { text-decoration: none; border-bottom: 3px solid #6366f1; margin: 0 2px; white-space: pre; }

.dw-frage { font-weight: 800; color: #6366f1; font-size: .95rem; }
.dw-gross { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 10px 0; }
.dw-gross b { font-size: 1.9rem; line-height: 1.2; overflow-wrap: anywhere; }
.dw-opts { display: grid; grid-template-columns: 1fr 1fr; } .dw-opts.drei { grid-template-columns: repeat(3, 1fr); }
.dw-opts .da-opt { justify-content: center; text-align: center; min-height: 58px; font-size: 1.05rem; overflow-wrap: anywhere; }
.dw-opts .da-opt:disabled { cursor: default; opacity: 1; }
.dw-laut { font-size: 1.05rem; }
.dw-in { font-size: 1.3rem; text-align: center; padding: 14px; }
.dw-in.ok { border-color: #16a34a; background: #dcfce7; color: #14532d; } .dw-in.no { border-color: #dc2626; background: #fee2e2; color: #7f1d1d; }
.dw-tasten { display: flex; gap: 8px; justify-content: center; } .dw-tasten[hidden] { display: none; }
.dw-tasten button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: inherit; font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.dw-rueck { display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed var(--border); padding-top: 12px; animation: dw-rein .25s ease-out; }
.dw-rueck.ok > b { color: #15803d; } .dw-rueck.no > b { color: #b91c1c; }
@keyframes dw-rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dw-hoch { margin: 0; text-align: center; font-weight: 800; font-size: 1.15rem; background: linear-gradient(135deg, #fef3c7, #fde68a); color: #78350f; border-radius: 16px; padding: 12px; }

@media (max-width: 640px) {
  .dw-akt { grid-template-columns: 1fr 1fr; } .dw-akt .gold { grid-column: 1 / -1; }
  .dw-themen { grid-template-columns: 1fr 1fr; } .dw-thema { padding: 12px; }
  .dw-gross b { font-size: 1.6rem; } .dw-opts .da-opt { padding: 10px 8px; }
}
@media (max-width: 380px) { .dw-opts:not(.drei) { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dw-rueck { animation: none; } .dw-thema { transition: none; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dw-ueb { color: #a5b4fc; }
  :root:not([data-theme="light"]) .dw-in.ok { background: #14532d; color: #dcfce7; } :root:not([data-theme="light"]) .dw-in.no { background: #7f1d1d; color: #fee2e2; }
  :root:not([data-theme="light"]) .dw-wk { background: rgba(129,140,248,.12); }
}
:root[data-theme="dark"] .dw-ueb { color: #a5b4fc; }
:root[data-theme="dark"] .dw-in.ok { background: #14532d; color: #dcfce7; } :root[data-theme="dark"] .dw-in.no { background: #7f1d1d; color: #fee2e2; }
:root[data-theme="dark"] .dw-wk { background: rgba(129,140,248,.12); }
