/* Deutsch A1 – Prüfung und Üben */
.da-main { max-width: 860px; }
#da { display: flex; flex-direction: column; gap: 14px; margin-bottom: var(--sp-7, 48px); min-height: 320px; }
.da-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.da-card h2 { margin: 0; font-size: 1.3rem; } .da-card h3 { margin: 14px 0 0; font-size: 1.05rem; }
.da-klein { font-size: .86rem; color: var(--muted, #64748b); margin: 0; } .da-hin { padding: 0 6px; }
.da-warn { background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; border-radius: 14px; padding: 10px 14px; font-size: .88rem; margin: 0; }

/* Übersicht */
.da-stand { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; }
.da-stand > div { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.da-stand .da-zahl { background: var(--surface); color: inherit; border: 1px solid var(--border); text-align: center; } .da-zahl b { font-size: 1.5rem; }
.da-lv b { font-size: 1.2rem; } .da-stand small { opacity: .85; font-size: .78rem; }
.da-bar { height: 9px; border-radius: 99px; background: rgba(127,127,160,.28); overflow: hidden; } .da-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #fbbf24, #f59e0b); transition: width .6s; }
.da-wege { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.da-weg { text-align: left; border-radius: 22px; padding: 18px; border: 0; font: inherit; color: #fff; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 26px -12px rgba(30,27,75,.55); }
.da-weg .ic { font-size: 2.2rem; line-height: 1; } .da-weg b { font-size: 1.25rem; } .da-weg small { font-size: .88rem; opacity: .92; line-height: 1.4; }
.da-weg.echt { background: linear-gradient(135deg, #f59e0b, #dc2626); cursor: pointer; transition: transform .15s; } .da-weg.echt:hover { transform: translateY(-3px); }
.da-weg.ueben { background: linear-gradient(135deg, #0ea5e9, #4f46e5); }
.da-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.da-mods button { border: 0; border-radius: 12px; padding: 10px 6px; font: inherit; font-weight: 800; background: rgba(255,255,255,.94); color: #1e1b4b; cursor: pointer; } .da-mods button:hover { background: #fff; transform: translateY(-1px); }
.da-sel { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: inherit; font: inherit; max-width: 320px; }
.da-verlauf { display: flex; gap: 8px; flex-wrap: wrap; } .da-verlauf > div { border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; min-width: 92px; border: 1px solid var(--border); }
.da-verlauf .ok { border-color: #22c55e; } .da-verlauf .no { border-color: #f87171; } .da-verlauf small { font-size: .72rem; opacity: .75; }
.da-ablauf { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }

/* Prüfungsleiste */
.da-leiste { position: sticky; top: 6px; z-index: 5; display: flex; align-items: center; gap: 10px; background: #1e1b4b; color: #fff; border-radius: 16px; padding: 9px 14px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
.da-schritte { display: flex; gap: 4px; flex: 1; } .da-schritte i { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); max-width: 46px; } .da-schritte i.an { background: #fbbf24; }
.da-zeit { font-weight: 800; font-variant-numeric: tabular-nums; margin-left: auto; } .da-zeit.knapp { color: #fca5a5; }
.da-x { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font: inherit; }

/* Aufgaben */
.da-teil { display: flex; flex-direction: column; gap: 2px; } .da-teil b { color: #4f46e5; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; } .da-teil span { font-weight: 700; }
.da-frage { font-weight: 700; margin: 0; font-size: 1.04rem; }
.da-opts { display: flex; flex-wrap: wrap; gap: 8px; } .da-opts.abc { flex-direction: column; }
.da-opt { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--border); background: var(--surface); color: inherit; border-radius: 14px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 46px; transition: transform .12s, border-color .12s; }
.da-opt b { width: 26px; height: 26px; border-radius: 50%; background: #e0e7ff; color: #3730a3; display: grid; place-items: center; flex: none; font-size: .85rem; }
.da-opt:hover:not(:disabled) { border-color: #818cf8; transform: translateY(-1px); } .da-opt.an { border-color: #4f46e5; background: #eef2ff; color: #1e1b4b; }
.da-opt.ok { border-color: #16a34a; background: #dcfce7; color: #14532d; } .da-opt.no { border-color: #dc2626; background: #fee2e2; color: #7f1d1d; }
.da-ton { font-size: .9rem; color: #4f46e5; font-weight: 700; }
.da-text, .da-brief pre, .da-muster pre { white-space: pre-wrap; font: inherit; margin: 0; line-height: 1.5; }
.da-text { background: rgba(127,127,160,.12); border-radius: 12px; padding: 10px 12px; font-size: .93rem; }
.da-block { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px dashed var(--border); } .da-block:first-of-type { border-top: 0; }
.da-brief { background: #fffbeb; color: #422006; border: 1px solid #fde68a; border-radius: 14px; padding: 12px 14px; } .da-brief small { display: block; font-weight: 800; color: #b45309; font-size: .74rem; text-transform: uppercase; margin-bottom: 4px; }
.da-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .da-zeile > span { flex: 1; min-width: 180px; font-weight: 600; }
.da-anz { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.da-an { position: relative; text-align: left; border: 2px solid var(--border); background: var(--surface); color: inherit; border-radius: 14px; padding: 12px 12px 12px 42px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.da-an b { position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: #e0e7ff; color: #3730a3; display: grid; place-items: center; font-size: .85rem; } .da-an strong { color: #4f46e5; font-size: .88rem; } .da-an span { font-size: .9rem; line-height: 1.35; }
.da-an.an { border-color: #4f46e5; background: #eef2ff; color: #1e1b4b; } .da-an.ok { border-color: #16a34a; background: #dcfce7; color: #14532d; } .da-an.no { border-color: #dc2626; background: #fee2e2; color: #7f1d1d; }
.da-schild { border: 3px solid #1e1b4b; border-radius: 12px; padding: 10px 14px; background: #fff; color: #111; max-width: 440px; } .da-schild small { color: #64748b; font-size: .74rem; } .da-schild p { margin: 2px 0 0; font-weight: 800; }
.da-info { background: rgba(79,70,229,.08); border-radius: 12px; padding: 10px 12px; margin: 0; line-height: 1.5; }
.da-form { border: 2px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; } .da-form > b { font-size: 1.05rem; }
.da-form label { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 4px 10px; font-size: .92rem; } .da-form label span { font-weight: 700; }
.da-form input, .da-form output { border: 0; border-bottom: 2px solid #94a3b8; padding: 7px 4px; font: inherit; background: transparent; color: inherit; min-width: 0; } .da-form output { border-bottom-style: dotted; opacity: .8; }
.da-form input:focus { outline: 0; border-color: #4f46e5; } .da-form input.ok { border-color: #16a34a; color: #15803d; } .da-form input.no { border-color: #dc2626; color: #b91c1c; } .da-form em { grid-column: 2; font-size: .8rem; color: #15803d; font-style: normal; }
.da-punkte { margin: 0; padding-left: 20px; line-height: 1.5; } .da-punkte li.ok { color: #15803d; list-style: none; margin-left: -20px; } .da-punkte li.no { color: #b91c1c; list-style: none; margin-left: -20px; }
#da textarea { width: 100%; box-sizing: border-box; border: 2px solid var(--border); border-radius: 14px; padding: 12px; font: inherit; background: var(--surface); color: inherit; resize: vertical; line-height: 1.5; }
.da-woerter { color: #64748b; } .da-woerter.gut { color: #15803d; font-weight: 700; }
.da-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.da-btn { border: 2px solid var(--border); background: var(--surface); color: inherit; border-radius: 14px; padding: 11px 18px; font: inherit; font-weight: 800; cursor: pointer; } .da-btn:disabled { opacity: .45; cursor: default; }
.da-btn.gold { border: 0; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1e1b4b; box-shadow: 0 4px 0 #b45309; } .da-btn.gold:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #b45309; }

/* Sprechen */
.da-sptitel { color: #4f46e5; } .da-stich { display: flex; flex-wrap: wrap; gap: 6px; } .da-stich span { background: #e0e7ff; color: #1e1b4b; border-radius: 10px; padding: 6px 12px; font-weight: 800; }
.da-wk, .da-bk { align-self: flex-start; border: 2px solid #1e1b4b; border-radius: 14px; padding: 10px 18px; background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; min-width: 150px; } .da-wk small { font-size: .72rem; color: #64748b; } .da-wk b, .da-bk b { font-size: 1.25rem; } .da-bk span { font-size: 2.6rem; line-height: 1.1; }
.da-mic { border: 0; border-radius: 14px; padding: 11px 16px; font: inherit; font-weight: 800; background: #4f46e5; color: #fff; cursor: pointer; } .da-mic.an { background: #dc2626; animation: daPuls 1s infinite; }
@keyframes daPuls { 50% { box-shadow: 0 0 0 8px rgba(220,38,38,.25); } }
.da-gesagt { background: rgba(127,127,160,.12); border-radius: 12px; padding: 8px 12px; font-size: .92rem; }
.da-muster { background: #ecfdf5; color: #064e3b; border: 1px solid #a7f3d0; border-radius: 12px; padding: 10px 12px; } .da-muster small { font-weight: 800; font-size: .76rem; } .da-muster p { margin: 3px 0 0; }
.da-fh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-style: italic; }

/* Hilfe beim Üben */
.da-hbox { border-top: 1px dashed var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; } .da-hbox > small { font-weight: 800; color: #64748b; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
.da-hilfen { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.da-hb { border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 99px; padding: 7px 13px; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; } .da-hb:hover { background: #e0e7ff; }
.da-tr { flex-basis: 100%; background: #f0f9ff; color: #0c4a6e; border: 1px solid #bae6fd; border-radius: 12px; padding: 9px 12px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; } .da-tr p { margin: 0 0 4px; } .da-tr[hidden] { display: none; }
.da-rueck { border-radius: 12px; padding: 10px 14px; font-weight: 700; } .da-rueck.ok { background: #dcfce7; color: #14532d; } .da-rueck.no { background: #fee2e2; color: #7f1d1d; }

/* Ergebnis */
.da-erg { display: flex; gap: 18px; align-items: center; border-radius: 22px; padding: 20px; color: #fff; background: linear-gradient(135deg, #16a34a, #0d9488); } .da-erg.no { background: linear-gradient(135deg, #475569, #7c3aed); }
.da-erg h2 { margin: 0 0 4px; font-size: 1.5rem; } .da-erg p { margin: 0; } .da-erg .da-klein { color: rgba(255,255,255,.85); margin-top: 6px; }
.da-ring { --p: 0; flex: none; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, rgba(15,23,42,.9) 79%, transparent 80%), conic-gradient(#fde047 calc(var(--p) * 1%), rgba(255,255,255,.25) 0); } .da-ring b { font-size: 2.1rem; line-height: 1; } .da-ring small { font-size: .7rem; }
.da-mb { display: grid; grid-template-columns: 96px 1fr 56px; align-items: center; gap: 10px; font-size: .92rem; } .da-mb b { text-align: right; }
.da-loes summary { cursor: pointer; font-weight: 800; } .da-rz { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--border); } .da-rz small { display: block; color: #64748b; font-size: .84rem; } .da-rz details { margin-top: 4px; font-size: .88rem; }
.da-r { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .8rem; } .da-r.ok { background: #16a34a; } .da-r.no { background: #dc2626; }

@media (max-width: 640px) {
  .da-stand { grid-template-columns: 1fr 1fr; } .da-stand .da-lv { grid-column: 1 / -1; }
  .da-wege, .da-anz { grid-template-columns: 1fr; } .da-form label { grid-template-columns: 1fr; } .da-form em { grid-column: 1; }
  .da-erg { flex-direction: column; text-align: center; } .da-card { padding: 14px; border-radius: 18px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .da-opt.an, :root:not([data-theme="light"]) .da-an.an { background: #312e81; color: #fff; }
  :root:not([data-theme="light"]) .da-hb { background: #312e81; color: #e0e7ff; border-color: #4338ca; }
  :root:not([data-theme="light"]) .da-tr { background: #0c4a6e; color: #e0f2fe; border-color: #075985; }
  :root:not([data-theme="light"]) .da-mods button { background: rgba(255,255,255,.94); }
}

/* A2: Informationstafel, Anzeigenliste, Zuordnung, Kalender */
.da-tafel, .da-kal { border: 2px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; } .da-tafel table, .da-kal table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.da-tafel th, .da-kal th { text-align: left; white-space: nowrap; padding: 6px 12px 6px 0; vertical-align: top; font-weight: 800; } .da-tafel td, .da-kal td { padding: 6px 0; line-height: 1.45; } .da-tafel tr + tr, .da-kal tr + tr { border-top: 1px dashed var(--border); }
.da-kal { max-width: 420px; } .da-kal tr.frei td { color: #15803d; font-weight: 700; }
.da-anzl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .da-anzl > div { display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); } .da-anzl > div > b { flex: none; width: 26px; height: 26px; border-radius: 8px; background: #e0e7ff; color: #1e1b4b; display: grid; place-items: center; }
.da-anzl strong { display: block; font-size: .9rem; } .da-anzl span { font-size: .88rem; line-height: 1.4; }
.da-zu { display: flex; flex-direction: column; gap: 10px; } .da-zu label { display: grid; grid-template-columns: 1fr minmax(180px, 280px); gap: 4px 12px; align-items: center; } .da-zu label > span { font-weight: 600; } .da-zu em { grid-column: 2; font-size: .85rem; color: #15803d; font-style: normal; }
.da-zusel { max-width: 100%; width: 100%; } .da-zusel.ok { border-color: #16a34a; } .da-zusel.no { border-color: #dc2626; }
.da-wk.breit { align-items: flex-start; gap: 8px; } .da-brief > b { display: block; margin-bottom: 6px; font-size: 1.05rem; } .da-hin a { font-weight: 700; }
@media (max-width: 640px) { .da-anzl { grid-template-columns: 1fr; } .da-zu label { grid-template-columns: 1fr; } .da-zu em { grid-column: 1; } }
/* B1: Kommentare, Modulbalken */
.da-komm { border-left: 4px solid #c7d2fe; background: var(--surface); border-radius: 0 12px 12px 0; padding: 10px 14px; } .da-komm p { margin: 4px 0 0; line-height: 1.5; font-size: .95rem; } .da-komm b { font-size: .9rem; }
.da-bar.rot i { background: #dc2626; } .da-wk.breit span { font-size: .9rem; }
/* B2: Lückentext, einspaltige Listen, Absätze */
.da-anzl.eins { grid-template-columns: 1fr; } .da-lt p { margin: 0; line-height: 1.65; white-space: pre-wrap; } .da-lt mark { background: #fde68a; color: #422006; border-radius: 6px; padding: 1px 6px; font-weight: 800; }
.da-abs { margin: 0; line-height: 1.55; font-size: .95rem; } .da-komm + .da-komm { margin-top: 8px; }
.da-in { width: 100%; box-sizing: border-box; border: 2px solid rgba(100,116,139,.45); border-radius: 12px; padding: 10px 12px; font: inherit; background: transparent; color: inherit; } .da-in:focus { outline: 0; border-color: #4f46e5; } .da-in:disabled { opacity: .85; }
/* kurzer Einstieg und Tagesabschluss (basis.js kurzKarte/tagesKarte) */
.da-kurz { display: block; text-decoration: none; color: inherit; border-left: 4px solid #f59e0b; }
.da-kurz:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .1); }
.da-kurz small { display: block; margin-top: 2px; }
.da-tag { border-left: 4px solid #16a34a; text-align: center; }
.da-tag p { margin: 6px 0; }
.da-tag .da-btn { display: inline-block; margin-top: 6px; text-decoration: none; }
