* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #1c1c1e;
}

header.topbar {
  background: #1f4e78;
  color: white;
  padding: 14px 24px;
}

header.topbar h1 { font-size: 18px; margin: 0; font-weight: 600; }

nav.tabs {
  display: flex;
  gap: 4px;
  background: white;
  padding: 0 20px;
  border-bottom: 1px solid #dfe3e8;
  flex-wrap: wrap;
}

nav.tabs a {
  padding: 10px 14px;
  text-decoration: none;
  color: #1c1c1e;
  font-size: 14px;
}

nav.tabs a:hover { background: #d9e1f2; }

main { padding: 24px; max-width: 1000px; margin: 0 auto; }

table { border-collapse: collapse; width: 100%; margin: 16px 0; }

th, td { padding: 8px 12px; border-bottom: 1px solid #dfe3e8; text-align: left; }

th { background: #d9e1f2; }

tr.hit, td.hit { background: #e6f4ea; }

#fortschritt { font-weight: 600; margin-bottom: 12px; }

.tippabgabe-columns {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.pool-spalte { flex: 1 1 220px; min-width: 200px; }
.slots-spalte { flex: 2 1 420px; min-width: 300px; }

.pool-spalte h3, .slots-spalte h3 { font-size: 14px; margin: 0 0 8px; color: #4a4a4c; }

#pool.dropzone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
  padding: 8px;
  background: white;
  border: 1px dashed #c3cad6;
  border-radius: 6px;
}

#slots { display: flex; flex-direction: column; gap: 6px; }

.slot {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  padding: 6px 10px;
}

.slot-label { width: 70px; flex-shrink: 0; font-size: 13px; color: #4a4a4c; }

.slot-content.dropzone {
  flex: 1;
  min-height: 32px;
  border-radius: 4px;
}

.slot-content.dropzone:empty {
  border: 1px dashed #c3cad6;
}

.dropzone.drag-over { background: #d9e1f2; }

.team-card {
  padding: 6px 10px;
  background: #1f4e78;
  color: white;
  border-radius: 4px;
  cursor: grab;
  font-size: 14px;
}

.team-card.dragging { opacity: 0.4; }

#weiter-btn, #zurueck-btn, #abgeben-btn {
  margin-top: 16px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
}

#weiter-btn:disabled { cursor: not-allowed; opacity: 0.5; }

#bestaetigung-liste { padding-left: 20px; }
#bestaetigung-liste li { padding: 2px 0; }
