/* DISG-Test - schlankes, neutrales Layout */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f3f5f8;
  color: #1f2933;
  line-height: 1.5;
  font-size: 16px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 4px; margin-bottom: 16px;
}
.brand { font-weight: 600; color: #1a3a5c; }
.logout { color: #555; text-decoration: none; font-size: 14px; }
.logout:hover { text-decoration: underline; }

.card {
  background: white; border-radius: 8px;
  padding: 20px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
h1 { margin-top: 0; color: #1a3a5c; font-size: 24px; }
h2 { margin-top: 0; color: #1a3a5c; font-size: 18px; }
h3 { margin: 0 0 12px; font-size: 15px; color: #555; }
.lead { color: #555; }

.flash { list-style: none; padding: 0; margin: 0 0 16px; }
.flash li { padding: 10px 14px; border-radius: 6px; margin-bottom: 6px; }
.flash-error { background: #fdecea; color: #a02114; border-left: 3px solid #a02114; }
.flash-ok { background: #e8f5ec; color: #1f6f3a; border-left: 3px solid #1f6f3a; }

.field {
  display: block; margin-bottom: 12px;
}
.field > span { display: block; font-size: 14px; color: #555; margin-bottom: 4px; }
.field input[type=text], .field input[type=password] {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd2d9; border-radius: 6px;
  font-size: 16px; font-family: inherit;
}
.req { color: #c0392b; }

.btn-primary, .btn-danger {
  padding: 10px 18px; border: 0; border-radius: 6px;
  font-size: 16px; cursor: pointer; font-family: inherit;
}
.btn-primary { background: #1a3a5c; color: white; }
.btn-primary:hover { background: #2a5180; }
.btn-danger { background: #c0392b; color: white; font-size: 13px; padding: 6px 12px; }
.btn-danger:hover { background: #962c21; }

/* Progress */
.progress-card { position: sticky; top: 8px; z-index: 10; padding: 12px 20px; }
.progress-label { font-size: 14px; color: #555; margin-bottom: 6px; }
.progress-bar { height: 8px; background: #e4e7eb; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #27ae60, #1a3a5c); transition: width .2s; }

/* Item-Karte */
.item.ok { box-shadow: 0 0 0 2px #27ae60 inset, 0 1px 3px rgba(0,0,0,0.06); }
.item.clash { box-shadow: 0 0 0 2px #c0392b inset, 0 1px 3px rgba(0,0,0,0.06); }

.grid {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 8px 12px;
  align-items: center;
}
.col-head { font-size: 12px; color: #888; text-align: center; text-transform: uppercase; }
.col-aussage { font-size: 12px; color: #888; }
.aussage { font-size: 16px; padding: 6px 0; }
.radio { display: flex; justify-content: center; align-items: center; }
.radio input[type=radio] { width: 22px; height: 22px; cursor: pointer; }

.submit-card { text-align: center; }
.submit-card .btn-primary { padding: 14px 32px; font-size: 17px; }

/* Tables */
.datatable { width: 100%; border-collapse: collapse; }
.datatable th, .datatable td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee;
  font-size: 14px; vertical-align: top;
}
.datatable th { color: #555; font-weight: 600; }
.datatable tr.expired { color: #999; }
.link-field {
  width: 100%; min-width: 240px; padding: 4px 6px;
  border: 1px solid #cbd2d9; border-radius: 4px; font-size: 12px; font-family: monospace;
}
.warn { color: #c0392b; font-weight: 600; }

.foot { padding: 20px 4px; color: #888; font-size: 12px; text-align: center; }

/* Mobile */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 64px 1fr 64px;
    gap: 6px 8px;
  }
  .col-head { font-size: 11px; }
  .aussage { font-size: 15px; }
  .radio input[type=radio] { width: 24px; height: 24px; }
  .card { padding: 16px; }
  .progress-card { padding: 10px 16px; }
  .datatable th, .datatable td { padding: 6px 4px; font-size: 13px; }
  .link-field { font-size: 11px; min-width: 0; }
}
