* { box-sizing: border-box; }
:root {
  --bg: #f4f6f9; --panel: #fff; --text: #1d2530; --muted: #68727f;
  --line: #dfe4ea; --accent: #2563eb; --ok: #17834b; --change: #b45309;
  --shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 5px rgba(0, 0, 0, .05), 0 12px 32px rgba(0, 0, 0, .055);
}
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.review-header {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px clamp(20px, 4vw, 56px); background: var(--panel); border-bottom: 1px solid var(--line);
}
.zurueck { display: inline-block; margin-bottom: 10px; color: var(--accent); font-size: 13px; text-decoration: none; }
h1 { margin: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.review-header p { margin: 9px 0 0; color: var(--muted); text-wrap: pretty; }
.button {
  min-height: 42px; padding: 9px 14px; border: 0; border-radius: 10px; font-weight: 650;
  transition-property: background-color, color, box-shadow, transform; transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.button:active, .icon-button:active, .status-auswahl button:active { transform: scale(.96); }
.button:focus-visible, .icon-button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 1px 3px rgba(37, 99, 235, .26); }
.button-primary:hover { background: #1d4ed8; }
.button-secondary { color: #2d3a49; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .05); }
.button-secondary:hover { background: #f8fafc; }

.review-status { padding: 16px clamp(20px, 4vw, 56px); color: #fff; background: #17243a; }
.fortschritt-text { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.fortschritt-text strong { font-variant-numeric: tabular-nums; }
#speicherstatus { color: #b9c6d8; }
.fortschritt-bahn { height: 8px; margin: 10px 0 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.14); }
.fortschritt-bahn span { display: block; width: 0; height: 100%; border-radius: inherit; background: #6ea0ff; transition-property: width; transition-duration: 200ms; }
.kennzahlen { display: flex; flex-wrap: wrap; gap: 16px; color: #c7d3e3; font-size: 12px; font-variant-numeric: tabular-nums; }
.kennzahlen b { color: #fff; }

.review-toolbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: end; flex-wrap: wrap; gap: 12px;
  padding: 12px clamp(20px, 4vw, 56px); background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.review-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.review-toolbar .suche { flex: 1 1 260px; }
input, select, textarea { border: 1px solid #cfd6df; color: var(--text); background: #fff; }
input, select { min-height: 42px; padding: 8px 11px; border-radius: 9px; }
.suche input { width: 100%; font-size: 14px; }

main { padding: 22px clamp(20px, 4vw, 56px) 80px; }
.treffer { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(284px, 1fr)); gap: 18px; align-items: start; }
.symbol-karte {
  --farbe: #607080; padding: 14px; border-radius: 18px; background: var(--panel); box-shadow: var(--shadow);
  border-top: 5px solid var(--farbe); transition-property: box-shadow, transform; transition-duration: 150ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.symbol-karte:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 3px 8px rgba(0,0,0,.07), 0 16px 38px rgba(0,0,0,.07); }
.symbol-karte[data-status="passt"] { box-shadow: 0 0 0 2px rgba(23, 131, 75, .18), 0 8px 26px rgba(0,0,0,.055); }
.symbol-karte[data-status="aendern"] { box-shadow: 0 0 0 2px rgba(180, 83, 9, .22), 0 8px 26px rgba(0,0,0,.055); }
.symbol-kopf { min-height: 25px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; }
.bereich-label, .status-label { font-size: 10px; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.bereich-label { color: var(--farbe); }
.status-label { padding: 4px 7px; border-radius: 999px; color: #697586; background: #f0f3f6; }
[data-status="passt"] .status-label { color: var(--ok); background: #e9f7ef; }
[data-status="aendern"] .status-label { color: var(--change); background: #fff3e5; }
.bild-knopf { display: block; width: 100%; padding: 0; border: 0; border-radius: 13px; background: #f8fafc; overflow: hidden; }
.symbol-bild { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px; }
.symbol-inhalt { padding: 13px 2px 12px; }
.teilbereich { margin: 0 0 6px; color: var(--muted); font-size: 11px; }
.kindtitel { margin: 0; font-size: 17px; line-height: 1.28; text-wrap: balance; }
.fachtitel { margin: 7px 0; color: #4e5a68; font-size: 13px; line-height: 1.42; text-wrap: pretty; }
.kompetenz-id { display: block; overflow: hidden; color: #7c8795; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-auswahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-auswahl button { min-height: 42px; border: 0; border-radius: 9px; color: #465261; background: #eef1f5; font-weight: 700; transition-property: background-color, color, box-shadow, transform; transition-duration: 150ms; }
.status-auswahl button:hover { background: #e4e9ef; }
.status-auswahl [data-status="passt"].active { color: #fff; background: var(--ok); box-shadow: 0 1px 3px rgba(23,131,75,.24); }
.status-auswahl [data-status="aendern"].active { color: #fff; background: var(--change); box-shadow: 0 1px 3px rgba(180,83,9,.24); }
.feedback-wrap { display: none; gap: 6px; margin-top: 11px; color: var(--change); font-size: 12px; font-weight: 700; }
[data-status="aendern"] .feedback-wrap { display: grid; }
.feedback { width: 100%; min-height: 96px; padding: 10px 11px; border-radius: 9px; resize: vertical; color: var(--text); font-size: 13px; line-height: 1.45; font-weight: 400; }
.leerzustand { max-width: 520px; margin: 60px auto; padding: 32px; text-align: center; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.leerzustand p { color: var(--muted); }

dialog { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; color: var(--text); background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.26); }
dialog::backdrop { background: rgba(17, 24, 39, .58); backdrop-filter: blur(3px); }
.dialog-inhalt { padding: 22px; }
.dialog-kopf { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.dialog-kopf h2 { margin: 3px 0 5px; font-size: 24px; }
.dialog-kopf p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.icon-button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 10px; color: #54606e; background: #eef1f5; font-size: 25px; line-height: 1; transition-property: background-color, transform; transition-duration: 150ms; }
#export-text { width: 100%; height: min(54vh, 560px); padding: 14px; border-radius: 11px; resize: vertical; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.export-warnung { margin-bottom: 12px; padding: 10px 12px; border-radius: 9px; color: #8a4809; background: #fff4e5; font-size: 13px; }
.dialog-aktionen { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.bild-dialog { width: min(620px, calc(100vw - 32px)); }
.bild-dialog form { position: relative; padding: 18px; text-align: center; }
.bild-dialog .icon-button { position: absolute; top: 26px; right: 26px; }
#grossbild { display: block; width: 100%; height: auto; border-radius: 14px; outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px; }
#grossbild-titel { margin: 13px 8px 3px; font-weight: 700; }

@media (max-width: 720px) {
  .review-header { align-items: stretch; flex-direction: column; }
  .review-toolbar { position: static; align-items: stretch; flex-direction: column; }
  .review-toolbar label, .review-toolbar .button { width: 100%; }
  .fortschritt-text { align-items: flex-start; flex-direction: column; gap: 4px; }
  .symbol-grid { grid-template-columns: 1fr; }
  .dialog-aktionen .button { width: 100%; }
}

